Re: FreeBSD Port: onetbb-2021.5.0 error build

From: Michael Fiano <mfml_at_fastmail.com>
Date: Thu, 06 Jan 2022 09:58:25 UTC
I can reproduce this problem. It seems identical to a recent issue that was patched: https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=259051

On Wed, Jan 5, 2022, at 4:19 PM, Alex V. Petrov wrote:
> ===>  Building for onetbb-2021.5.0
> [  0% 1/320] /usr/bin/c++ -D__TBB_BUILD -D__TBB_USE_ITT_NOTIFY 
> -I/usr/ports/devel/onetbb/work/oneTBB-2021.5.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/address_waiter.cpp.o -MF 
> src/tbb/CMakeFiles/tbb.dir/address_waiter.cpp.o.d -o 
> src/tbb/CMakeFiles/tbb.dir/address_waiter.cpp.o -c 
> /usr/ports/devel/onetbb/work/oneTBB-2021.5.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.5.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/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.5.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.5.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/ports/devel/onetbb/work/oneTBB-2021.5.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.5.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/ports/devel/onetbb/work/oneTBB-2021.5.0/src/tbb/arena.cpp
> In file included from 
> /usr/ports/devel/onetbb/work/oneTBB-2021.5.0/src/tbb/arena.cpp:17:
> In file included from 
> /usr/ports/devel/onetbb/work/oneTBB-2021.5.0/src/tbb/task_dispatcher.h:24:
> /usr/ports/devel/onetbb/work/oneTBB-2021.5.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' that 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.
> make: stopped in /usr/ports/devel/onetbb
> -- 
> -----
> Alex.