Created attachment 867144 [details] build.log (ppc, 2021.10.0) Got this on ppc but probably happens on all non-x86 32-bit arches. [...] [46/324] /usr/bin/powerpc-unknown-linux-gnu-g++ -I/var/tmp/portage/dev-cpp/tbb-2021.10.0/work/oneTBB-2021.10.0/test/.. -I/var/tmp/portage/dev-cpp/tbb-2021.10.0/work/oneTBB-2021.10.0/test -I/var/tmp/portage/dev-cpp/tbb-2021.10.0/work/oneTBB-2021.10.0/src/tbb/../../include -O2 -mcpu=powerpc -pipe -std=c++11 -Wall -Wextra -Wfatal-errors -Wshadow -Wcast-qual -Woverloaded-virtual -Wnon-virtual-dtor -fstack-clash-protection -fno-strict-overflow -fno-delete-null-pointer-checks -fwrapv -Wformat -Wformat-security -Werror=format-security -fstack-protector-strong -D_FORTIFY_SOURCE=2 -MD -MT test/CMakeFiles/test_tick_count.dir/tbb/test_tick_count.cpp.o -MF test/CMakeFiles/test_tick_count.dir/tbb/test_tick_count.cpp.o.d -o test/CMakeFiles/test_tick_count.dir/tbb/test_tick_count.cpp.o -c /var/tmp/portage/dev-cpp/tbb-2021.10.0/work/oneTBB-2021.10.0/test/tbb/test_tick_count.cpp [47/324] : && /usr/bin/powerpc-unknown-linux-gnu-g++ -O2 -mcpu=powerpc -pipe -Wl,-O1 -Wl,--as-needed -Wl,--hash-style=gnu -rdynamic test/CMakeFiles/test_tick_count.dir/tbb/test_tick_count.cpp.o -o gnu_11.3_cxx11_32_relwithdebinfo/test_tick_count -Wl,-rpath,/var/tmp/portage/dev-cpp/tbb-2021.10.0/work/oneTBB-2021.10.0_build-.ppc/gnu_11.3_cxx11_32_relwithdebinfo gnu_11.3_cxx11_32_relwithdebinfo/libtbb.so.12.10 -ldl && : FAILED: gnu_11.3_cxx11_32_relwithdebinfo/test_tick_count : && /usr/bin/powerpc-unknown-linux-gnu-g++ -O2 -mcpu=powerpc -pipe -Wl,-O1 -Wl,--as-needed -Wl,--hash-style=gnu -rdynamic test/CMakeFiles/test_tick_count.dir/tbb/test_tick_count.cpp.o -o gnu_11.3_cxx11_32_relwithdebinfo/test_tick_count -Wl,-rpath,/var/tmp/portage/dev-cpp/tbb-2021.10.0/work/oneTBB-2021.10.0_build-.ppc/gnu_11.3_cxx11_32_relwithdebinfo gnu_11.3_cxx11_32_relwithdebinfo/libtbb.so.12.10 -ldl && : /usr/lib/gcc/powerpc-unknown-linux-gnu/11/../../../../powerpc-unknown-linux-gnu/bin/ld: gnu_11.3_cxx11_32_relwithdebinfo/libtbb.so.12.10: undefined reference to `__atomic_fetch_sub_8' /usr/lib/gcc/powerpc-unknown-linux-gnu/11/../../../../powerpc-unknown-linux-gnu/bin/ld: gnu_11.3_cxx11_32_relwithdebinfo/libtbb.so.12.10: undefined reference to `__atomic_load_8' /usr/lib/gcc/powerpc-unknown-linux-gnu/11/../../../../powerpc-unknown-linux-gnu/bin/ld: gnu_11.3_cxx11_32_relwithdebinfo/libtbb.so.12.10: undefined reference to `__atomic_fetch_add_8' collect2: error: ld returned 1 exit status ninja: build stopped: subcommand failed. * ERROR: dev-cpp/tbb-2021.10.0::gentoo failed (compile phase): * ninja -v -j1 -l0 failed
Created attachment 867145 [details] build.log (ppc, 2021.9.0)
Created attachment 867146 [details] emerge --info
Should get automatically fixed in upcoming cmake 3.28 https://gitlab.kitware.com/cmake/cmake/-/merge_requests/8756
Still a problem on current tbb-2021.12.0, even when cmake 3.28 is used.
Created attachment 896308 [details] build.log (ppc, 2021.12.0)
The bug has been closed via the following commit(s): https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=52cd9426fc2dc5bd354e77b75bd29ad82c5b77d3 commit 52cd9426fc2dc5bd354e77b75bd29ad82c5b77d3 Author: James Le Cuirot <chewi@gentoo.org> AuthorDate: 2024-07-14 22:38:02 +0000 Commit: James Le Cuirot <chewi@gentoo.org> CommitDate: 2024-07-14 22:38:02 +0000 dev-cpp/tbb: Fix 2021.13.0 tests on non-x86 32-bit arches with patch Thanks to John Paul Adrian Glaubitz for the patch. It has been submitted but not yet accepted upstream. Closes: https://bugs.gentoo.org/911759 Signed-off-by: James Le Cuirot <chewi@gentoo.org> dev-cpp/tbb/files/tbb-2021.13.0-test-atomics.patch | 38 ++++++++++++++++++++++ dev-cpp/tbb/tbb-2021.13.0.ebuild | 1 + 2 files changed, 39 insertions(+)
Can this be backported to 2021.9.0 as well to unblock bug 908149?
Reopening and updating title since this is still an issue on the version requested to be stabled.
The bug has been closed via the following commit(s): https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=cdcf9ed835848e64d94bfbf28eb3df285f91007a commit cdcf9ed835848e64d94bfbf28eb3df285f91007a Author: James Le Cuirot <chewi@gentoo.org> AuthorDate: 2024-07-20 21:43:48 +0000 Commit: James Le Cuirot <chewi@gentoo.org> CommitDate: 2024-07-20 21:44:27 +0000 dev-cpp/tbb: Backport non-x86 32-bit tests to 2021.9.0 and 2021.12.0 Closes: https://bugs.gentoo.org/911759 Signed-off-by: James Le Cuirot <chewi@gentoo.org> dev-cpp/tbb/tbb-2021.12.0.ebuild | 1 + dev-cpp/tbb/tbb-2021.9.0.ebuild | 1 + 2 files changed, 2 insertions(+)