make -f src/tbb/CMakeFiles/tbb.dir/build.make src/tbb/CMakeFiles/tbb.dir/depend
make[2]: Entering directory '/home/tkloczko/rpmbuild/BUILD/oneTBB-2021.2.0/x86_64-redhat-linux-gnu'
cd /home/tkloczko/rpmbuild/BUILD/oneTBB-2021.2.0/x86_64-redhat-linux-gnu && /usr/bin/cmake -E cmake_depends "Unix Makefiles" /home/tkloczko/rpmbuild/BUILD/oneTBB-2021.2.0 /home/tkloczko/rpmbuild/BUILD/oneTBB-2021.2.0/src/tbb /home/tkloczko/rpmbuild/BUILD/oneTBB-2021.2.0/x86_64-redhat-linux-gnu /home/tkloczko/rpmbuild/BUILD/oneTBB-2021.2.0/x86_64-redhat-linux-gnu/src/tbb /home/tkloczko/rpmbuild/BUILD/oneTBB-2021.2.0/x86_64-redhat-linux-gnu/src/tbb/CMakeFiles/tbb.dir/DependInfo.cmake --color=
make[2]: Leaving directory '/home/tkloczko/rpmbuild/BUILD/oneTBB-2021.2.0/x86_64-redhat-linux-gnu'
make -f src/tbb/CMakeFiles/tbb.dir/build.make src/tbb/CMakeFiles/tbb.dir/build
make[2]: Entering directory '/home/tkloczko/rpmbuild/BUILD/oneTBB-2021.2.0/x86_64-redhat-linux-gnu'
[ 0%] Building CXX object src/tbb/CMakeFiles/tbb.dir/arena.cpp.o
cd /home/tkloczko/rpmbuild/BUILD/oneTBB-2021.2.0/x86_64-redhat-linux-gnu/src/tbb && /usr/bin/g++ -D__TBB_BUILD -D__TBB_USE_ITT_NOTIFY -I/home/tkloczko/rpmbuild/BUILD/oneTBB-2021.2.0/src/tbb/../../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 -fPIC -MMD -flifetime-dse=1 -Wall -Wextra -Werror -Wfatal-errors -mrtm -pthread -std=c++11 -o CMakeFiles/tbb.dir/arena.cpp.o -c /home/tkloczko/rpmbuild/BUILD/oneTBB-2021.2.0/src/tbb/arena.cpp
In file included from /usr/lib/gcc/x86_64-redhat-linux/11/include/x86gprintrin.h:81,
from /usr/lib/gcc/x86_64-redhat-linux/11/include/immintrin.h:27,
from /home/tkloczko/rpmbuild/BUILD/oneTBB-2021.2.0/src/tbb/../../include/oneapi/tbb/detail/_machine.h:33,
from /home/tkloczko/rpmbuild/BUILD/oneTBB-2021.2.0/src/tbb/../../include/oneapi/tbb/detail/_utils.h:26,
from /home/tkloczko/rpmbuild/BUILD/oneTBB-2021.2.0/src/tbb/task_dispatcher.h:20,
from /home/tkloczko/rpmbuild/BUILD/oneTBB-2021.2.0/src/tbb/arena.cpp:17:
/home/tkloczko/rpmbuild/BUILD/oneTBB-2021.2.0/src/tbb/scheduler_common.h: In function ‘tbb::detail::r1::prolonged_pause()’:
/usr/lib/gcc/x86_64-redhat-linux/11/include/waitpkgintrin.h:53:1: error: inlining failed in call to ‘always_inline’ ‘_tpause(unsigned int, unsigned long long)’: target specific option mismatch
53 | _tpause (unsigned int __A, unsigned long long __B)
| ^~~~~~~
compilation terminated due to -Wfatal-errors.
make[2]: *** [src/tbb/CMakeFiles/tbb.dir/build.make:98: src/tbb/CMakeFiles/tbb.dir/arena.cpp.o] Error 1
Yeah I got that, but I thought my processor would surely fall into any of the “AMD64” categories…
… which apparently it doesn’t.
CMAKE_SYSTEM_PROCESSORis empty when using MinGW./edit The CMake documentation on CMAKE_SYSTEM_PROCESSOR says that the toolchain file should set this variable. Sorry for the false report, this is definitely my fault.
@detrout, this error was fixed by https://github.com/oneapi-src/oneTBB/pull/609 but it didn’t come to 2021.5. Please expect this fix in one of future releases.