oneapi-src / oneTBB

oneAPI Threading Building Blocks (oneTBB)
https://oneapi-src.github.io/oneTBB/
Apache License 2.0
5.61k stars 1.01k forks source link

2021.3.0: build fails #468

Closed kloczek closed 3 years ago

kloczek commented 3 years ago
[ 14%] Building CXX object test/CMakeFiles/test_malloc_new_handler.dir/tbbmalloc/test_malloc_new_handler.cpp.o
cd /home/tkloczko/rpmbuild/BUILD/oneTBB-2021.3.0/x86_64-redhat-linux-gnu/test && /usr/bin/g++  -I/home/tkloczko/rpmbuild/BUILD/oneTBB-2021.3.0/test/.. -I/home/tkloczko/rpmbuild/BUILD/oneTBB-2021.3.0/test -I/home/tkloczko/rpmbuild/BUILD/oneTBB-2021.3.0/src/tbbmalloc_proxy/../../include -O2 -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m64 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -fdata-sections -ffunction-sections -flto=auto -flto-partition=none -DNDEBUG -Wall -Wextra -Werror -Wfatal-errors -Wshadow -Wcast-qual -Woverloaded-virtual -Wnon-virtual-dtor -mrtm -mwaitpkg -std=c++11 -MD -MT test/CMakeFiles/test_malloc_new_handler.dir/tbbmalloc/test_malloc_new_handler.cpp.o -MF CMakeFiles/test_malloc_new_handler.dir/tbbmalloc/test_malloc_new_handler.cpp.o.d -o CMakeFiles/test_malloc_new_handler.dir/tbbmalloc/test_malloc_new_handler.cpp.o -c /home/tkloczko/rpmbuild/BUILD/oneTBB-2021.3.0/test/tbbmalloc/test_malloc_new_handler.cpp
In file included from /home/tkloczko/rpmbuild/BUILD/oneTBB-2021.3.0/test/common/test.h:68,
                 from /home/tkloczko/rpmbuild/BUILD/oneTBB-2021.3.0/test/tbbmalloc/test_malloc_new_handler.cpp:22:
/home/tkloczko/rpmbuild/BUILD/oneTBB-2021.3.0/test/common/doctest.h:4047:47: error: size of array ‘altStackMem’ is not an integral constant-expression
 4047 |         static char             altStackMem[4 * SIGSTKSZ];
      |                                               ^
compilation terminated due to -Wfatal-errors.
make[2]: *** [test/CMakeFiles/test_malloc_new_handler.dir/build.make:79: test/CMakeFiles/test_malloc_new_handler.dir/tbbmalloc/test_malloc_new_handler.cpp.o] Error 1
make[2]: Leaving directory '/home/tkloczko/rpmbuild/BUILD/oneTBB-2021.3.0/x86_64-redhat-linux-gnu'
make[1]: *** [CMakeFiles/Makefile2:562: test/CMakeFiles/test_malloc_new_handler.dir/all] Error 2
make[1]: Leaving directory '/home/tkloczko/rpmbuild/BUILD/oneTBB-2021.3.0/x86_64-redhat-linux-gnu'
make: *** [Makefile:169: all] Error 2
alexey-katranov commented 3 years ago

Can you please specify GCC and RedHat version?

kloczek commented 3 years ago

Of course. I'm using gcc 11.1.1 from fedora rawhide.

kloczek commented 3 years ago

Sorry to ask .. any progress?

vlserov commented 3 years ago

Original issue has been resolved with commit https://github.com/oneapi-src/oneTBB/commit/55f9b178643d2925e9d81151efd08ac34dc69625. But there is another warning causing build failure. We are working on resolving it.

vlserov commented 3 years ago

Build issue has been resolved on the master - branch.