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: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]