FreeBSD Port: onetbb-2021.4.0 error update

From: Alex V. Petrov <alexvpetrov_at_gmail.com>
Date: Mon, 11 Oct 2021 10:38:34 UTC
===>  Cleaning for onetbb-2021.4.0 
 

===>  License APACHE20 accepted by the user 
 

===>   onetbb-2021.4.0 depends on file: /usr/local/sbin/pkg - found 
 

===> Fetching all distfiles required by onetbb-2021.4.0 for building 
 

===>  Extracting for onetbb-2021.4.0 
 

=> SHA256 Checksum OK for oneapi-src-oneTBB-v2021.4.0_GH0.tar.gz. 
 

===>  Patching for onetbb-2021.4.0 
 

===>  Applying FreeBSD patches for onetbb-2021.4.0 from 
/usr/ports/devel/onetbb/files 
 

===>   onetbb-2021.4.0 depends on file: /usr/local/bin/cmake - found 
 

===>   onetbb-2021.4.0 depends on executable: ninja - found 
 

===>   onetbb-2021.4.0 depends on shared library: libhwloc.so.15 - found 
(/usr/local/lib/libhwloc.so.15) 

===>  Configuring for onetbb-2021.4.0 
 

===>  Performing out-of-source build 
 

/bin/mkdir -p /usr/ports/devel/onetbb/work/.build 
 

-- The CXX compiler identification is Clang 12.0.1 
 

-- Detecting CXX compiler ABI info 
 

-- Detecting CXX compiler ABI info - done 
 

-- Check for working CXX compiler: /usr/bin/c++ - skipped 
 

-- Detecting CXX compile features 
 

-- Detecting CXX compile features - done 
 

-- Looking for C++ include pthread.h 
 

-- Looking for C++ include pthread.h - found 
 

-- Found Threads: TRUE 
 

-- The C compiler identification is Clang 12.0.1 
 

-- Detecting C compiler ABI info 
 

-- Detecting C compiler ABI info - done 
 

-- Check for working C compiler: /usr/bin/cc - skipped 
 

-- Detecting C compile features 
 

-- Detecting C compile features - done 
 

-- HWLOC target HWLOC::hwloc_1_11 doesn't exist. The tbbbind target 
cannot be created 

-- HWLOC target HWLOC::hwloc_2_5 doesn't exist. The tbbbind_2_5 target 
cannot be created 

-- HWLOC 2 dependent tests were enabled. 
 

-- Configuring done 
 

-- Generating done 
 

CMake Warning: 
 

   Manually-specified variables were not used by the project: 
 

 
 

     CMAKE_CXX_FLAGS_DEBUG 
 

     CMAKE_C_FLAGS_DEBUG 
 

     CMAKE_MODULE_LINKER_FLAGS 
 

     CMAKE_VERBOSE_MAKEFILE 
 



-- Build files have been written to: /usr/ports/devel/onetbb/work/.build 
 

===>  Building for onetbb-2021.4.0
[  0% 1/320] /usr/bin/c++ -D__TBB_BUILD -D__TBB_USE_ITT_NOTIFY 
-I/usr/ports/devel/onetbb/work/oneTBB-2021.4.0/src/tbb/../../include -O2 
-pipe -fstack-protector-strong -fno-strict-aliasing -O2 -pipe -fstack-prot
ector-strong -fno-strict-aliasing -fPIC -Wall -Wextra -flto -pthread 
-std=c++11 -MD -MT src/tbb/CMakeFiles/tbb.dir/address_waiter.cpp.o -MF 
src/tbb/CMakeFiles/tbb.dir/address_waiter.cpp.o.d -o src/tbb/CMakeFile
s/tbb.dir/address_waiter.cpp.o -c 
/usr/ports/devel/onetbb/work/oneTBB-2021.4.0/src/tbb/address_waiter.cpp 
 

[  0% 2/320] /usr/bin/c++ -D__TBB_BUILD -D__TBB_USE_ITT_NOTIFY 
-I/usr/ports/devel/onetbb/work/oneTBB-2021.4.0/src/tbb/../../include -O2 
-pipe -fstack-protector-strong -fno-strict-aliasing -O2 -pipe -fstack-prot
ector-strong -fno-strict-aliasing -fPIC -Wall -Wextra -flto -pthread 
-std=c++11 -MD -MT src/tbb/CMakeFiles/tbb.dir/allocator.cpp.o -MF 
src/tbb/CMakeFiles/tbb.dir/allocator.cpp.o.d -o src/tbb/CMakeFiles/tbb.dir/
allocator.cpp.o -c 
/usr/ports/devel/onetbb/work/oneTBB-2021.4.0/src/tbb/allocator.cpp 
 

[  0% 3/320] /usr/bin/c++ -D__TBB_BUILD -D__TBB_USE_ITT_NOTIFY 
-I/usr/ports/devel/onetbb/work/oneTBB-2021.4.0/src/tbb/../../include -O2 
-pipe -fstack-protector-strong -fno-strict-aliasing -O2 -pipe -fstack-prot
ector-strong -fno-strict-aliasing -fPIC -Wall -Wextra -flto -pthread 
-std=c++11 -MD -MT src/tbb/CMakeFiles/tbb.dir/arena.cpp.o -MF 
src/tbb/CMakeFiles/tbb.dir/arena.cpp.o.d -o 
src/tbb/CMakeFiles/tbb.dir/arena.cp
p.o -c /usr/ports/devel/onetbb/work/oneTBB-2021.4.0/src/tbb/arena.cpp 

FAILED: src/tbb/CMakeFiles/tbb.dir/arena.cpp.o 

/usr/bin/c++ -D__TBB_BUILD -D__TBB_USE_ITT_NOTIFY 
-I/usr/ports/devel/onetbb/work/oneTBB-2021.4.0/src/tbb/../../include -O2 
-pipe -fstack-protector-strong -fno-strict-aliasing -O2 -pipe 
-fstack-protector-strong
-fno-strict-aliasing -fPIC -Wall -Wextra -flto -pthread -std=c++11 -MD 
-MT src/tbb/CMakeFiles/tbb.dir/arena.cpp.o -MF 
src/tbb/CMakeFiles/tbb.dir/arena.cpp.o.d -o 
src/tbb/CMakeFiles/tbb.dir/arena.cpp.o -c /usr/p
orts/devel/onetbb/work/oneTBB-2021.4.0/src/tbb/arena.cpp 

In file included from 
/usr/ports/devel/onetbb/work/oneTBB-2021.4.0/src/tbb/arena.cpp:17: 
 

In file included from 
/usr/ports/devel/onetbb/work/oneTBB-2021.4.0/src/tbb/task_dispatcher.h:24: 
 

/usr/ports/devel/onetbb/work/oneTBB-2021.4.0/src/tbb/scheduler_common.h:230:9: 
error: always_inline function '_tpause' requires target feature 
'waitpkg', but would be inlined into function 'prolonged_pause' tha
t is compiled without support for 'waitpkg'
         _tpause(0, time_stamp + 700); 

         ^
1 error generated.
ninja: build stopped: subcommand failed. 

*** Error code 1

Stop.
make[1]: stopped in /usr/ports/devel/onetbb 

*** Error code 1

Stop.
-- 
-----
Alex.