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