You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@kvrocks.apache.org by "torwig (via GitHub)" <gi...@apache.org> on 2023/05/15 12:53:32 UTC

[GitHub] [incubator-kvrocks] torwig opened a new pull request, #1440: Suppress error in TBB to make build failure for GCCv12 and above

torwig opened a new pull request, #1440:
URL: https://github.com/apache/incubator-kvrocks/pull/1440

   Recently, a new build error occurred on my Fedora 37 (perhaps due to the `sudo dnf update`):
   
   ```
   In file included from /usr/include/c++/12/atomic:41,
                    from /home/yaroslav/programming/kvrocks/build/_deps/tbb-src/src/tbb/../../include/oneapi/tbb/detail/_utils.h:22,
                    from /home/yaroslav/programming/kvrocks/build/_deps/tbb-src/src/tbb/task_dispatcher.h:20,
                    from /home/yaroslav/programming/kvrocks/build/_deps/tbb-src/src/tbb/arena.cpp:17:
   In member function ‘void std::__atomic_base<_IntTp>::store(__int_type, std::memory_order) [with _ITp = bool]’,
       inlined from ‘void std::atomic<bool>::store(bool, std::memory_order)’ at /usr/include/c++/12/atomic:104:20,
       inlined from ‘void tbb::detail::r1::concurrent_monitor_base<Context>::notify_one_relaxed() [with Context = long unsigned int]’ at /home/yaroslav/programming/kvrocks/build/_deps/tbb-src/src/tbb/concurrent_monitor.h:293:53:
   /usr/include/c++/12/bits/atomic_base.h:464:25: error: ‘void __atomic_store_1(volatile void*, unsigned char, int)’ writing 1 byte into a region of size 0 overflows the destination [-Werror=stringop-overflow=]
     464 |         __atomic_store_n(&_M_i, __i, int(__m));
         |         ~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~
   compilation terminated due to -Wfatal-errors.
   cc1plus: all warnings being treated as errors
   make[2]: *** [_deps/tbb-build/src/tbb/CMakeFiles/tbb.dir/build.make:104: _deps/tbb-build/src/tbb/CMakeFiles/tbb.dir/arena.cpp.o] Error 1
   make[2]: *** Waiting for unfinished jobs....
   cp include/jemalloc/internal/private_namespace.gen.h include/jemalloc/internal/private_namespace.h
   make[1]: *** [CMakeFiles/Makefile2:1949: _deps/tbb-build/src/tbb/CMakeFiles/tbb.dir/all] Error 2
   make[1]: *** Waiting for unfinished jobs....
   
   ```
   
   Thanks to @PragmaTwice for the solution he provided here: https://github.com/Oneflow-Inc/oneflow/pull/10236.
   
   I've tried to add the flag in `CMakeLists.txt` but failed so I added it in TBB-related `.cmake`-file.


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: issues-unsubscribe@kvrocks.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


[GitHub] [incubator-kvrocks] PragmaTwice merged pull request #1440: Suppress error in TBB to make build failure for GCC 12 and above

Posted by "PragmaTwice (via GitHub)" <gi...@apache.org>.
PragmaTwice merged PR #1440:
URL: https://github.com/apache/incubator-kvrocks/pull/1440


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: issues-unsubscribe@kvrocks.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


[GitHub] [incubator-kvrocks] infdahai commented on pull request #1440: Suppress error in TBB to make build failure for GCCv12 and above

Posted by "infdahai (via GitHub)" <gi...@apache.org>.
infdahai commented on PR #1440:
URL: https://github.com/apache/incubator-kvrocks/pull/1440#issuecomment-1547814025

   I also encountered this.


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: issues-unsubscribe@kvrocks.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org