Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Build error clang-10 #92

Open
rosso- opened this issue Feb 23, 2022 · 2 comments
Open

Build error clang-10 #92

rosso- opened this issue Feb 23, 2022 · 2 comments

Comments

@rosso-
Copy link

rosso- commented Feb 23, 2022

# /usr/bin/c++ --version
FreeBSD clang version 10.0.1 ([email protected]:llvm/llvm-project.git llvmorg-10.0.1-0-gef32c611aa2)
Target: x86_64-unknown-freebsd12.2
Thread model: posix
InstalledDir: /usr/bin
root@workstationA:/usr/ports/net-im/tg_owt # make
===>  License BSD3CLAUSE accepted by the user
===>   tg_owt-0.0.20220209 depends on file: /usr/local/sbin/pkg - found
===> Fetching all distfiles required by tg_owt-0.0.20220209 for building
===>  Extracting for tg_owt-0.0.20220209
=> SHA256 Checksum OK for desktop-app-tg_owt-0.0.20220209-4cba1ac_GH0.tar.gz.
=> SHA256 Checksum OK for HenryHu-libyuv-ad89006_GH0.tar.gz.
===>  Patching for tg_owt-0.0.20220209
===>   tg_owt-0.0.20220209 depends on package: v4l_compat>0 - found
===>   tg_owt-0.0.20220209 depends on executable: yasm - found
===>   tg_owt-0.0.20220209 depends on file: /usr/local/bin/cmake - found
===>   tg_owt-0.0.20220209 depends on executable: ninja - found
===>   tg_owt-0.0.20220209 depends on package: pkgconf>=1.3.0_1 - found
===>   tg_owt-0.0.20220209 depends on file: /usr/local/libdata/pkgconfig/x11.pc - found
===>   tg_owt-0.0.20220209 depends on file: /usr/local/libdata/pkgconfig/xcomposite.pc - found
===>   tg_owt-0.0.20220209 depends on file: /usr/local/libdata/pkgconfig/xdamage.pc - found
===>   tg_owt-0.0.20220209 depends on file: /usr/local/libdata/pkgconfig/xrender.pc - found
===>   tg_owt-0.0.20220209 depends on file: /usr/local/libdata/pkgconfig/xrandr.pc - found
===>   tg_owt-0.0.20220209 depends on file: /usr/local/libdata/pkgconfig/xtst.pc - found
===>   tg_owt-0.0.20220209 depends on shared library: libavformat.so - found (/usr/local/lib/libavformat.so)
===>   tg_owt-0.0.20220209 depends on shared library: libepoxy.so - found (/usr/local/lib/libepoxy.so)
===>   tg_owt-0.0.20220209 depends on shared library: libevent.so - found (/usr/local/lib/libevent.so)
===>   tg_owt-0.0.20220209 depends on shared library: libjpeg.so - found (/usr/local/lib/libjpeg.so)
===>   tg_owt-0.0.20220209 depends on shared library: libopus.so - found (/usr/local/lib/libopus.so)
===>   tg_owt-0.0.20220209 depends on shared library: libpipewire-0.3.so - found (/usr/local/lib/libpipewire-0.3.so)
===>   tg_owt-0.0.20220209 depends on shared library: libusrsctp.so - found (/usr/local/lib/libusrsctp.so)
===>   tg_owt-0.0.20220209 depends on shared library: libgbm.so - found (/usr/local/lib/libgbm.so)
===>  Configuring for tg_owt-0.0.20220209
===>  Performing out-of-source build
/bin/mkdir -p /usr/ports/net-im/tg_owt/work/.build
-- The C compiler identification is Clang 10.0.1
-- The CXX compiler identification is Clang 10.0.1
-- The ASM compiler identification is Clang with GNU-like command-line
-- Found assembler: /usr/bin/cc
-- 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
-- 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 __x86_64
-- Looking for __x86_64 - found
-- Looking for __x86_64__
-- Looking for __x86_64__ - found
-- Looking for __amd64
-- Looking for __amd64 - found
-- Looking for _M_X64
-- Looking for _M_X64 - not found
-- Processor architecture is 64-bit x86.
-- Found OpenSSL: /usr/lib/libcrypto.so (found version "1.1.1h")  
-- Found JPEG: /usr/local/lib/libjpeg.so (found version "80") 
-- Found PkgConfig: /usr/local/bin/pkgconf (found version "1.8.0") 
-- Checking for one of the modules 'libpipewire-0.3;libpipewire-0.2'
-- Checking for module 'glib-2.0'
--   Found glib-2.0, version 2.70.4
-- Checking for module 'gobject-2.0'
--   Found gobject-2.0, version 2.70.4
-- Checking for module 'gio-2.0'
--   Found gio-2.0, version 2.70.4
-- Checking for module 'gio-unix-2.0'
--   Found gio-unix-2.0, version 2.70.4
-- Checking for module 'gbm'
--   Found gbm, version 21.3.6
-- Checking for module 'libdrm'
--   Found libdrm, version 2.4.109
-- Checking for module 'epoxy'
--   Found epoxy, version 1.5.9
-- Checking for module 'libavcodec'
--   Found libavcodec, version 58.134.100
-- Checking for module 'libavformat'
--   Found libavformat, version 58.76.100
-- Checking for module 'libavutil'
--   Found libavutil, version 56.70.100
-- Checking for module 'libswscale'
--   Found libswscale, version 5.9.100
-- Checking for module 'libswresample'
--   Found libswresample, version 3.9.100
-- Checking for module 'opus'
--   Found opus, version 1.3.1
-- Looking for pthread.h
-- Looking for pthread.h - found
-- Found Threads: TRUE  
-- Checking for module 'openh264'
--   Found openh264, version 2.1.1
-- Checking for module 'usrsctp'
--   Found usrsctp, version 0.9.5.0
-- Checking for module 'vpx>=1.10.0'
--   Found vpx, version 1.11.0
-- Found X11: /usr/local/include  found components: Xcomposite Xdamage Xext Xfixes Xrender Xrandr Xtst 
-- Looking for XOpenDisplay in /usr/local/lib/libX11.so;/usr/local/lib/libXext.so
-- Looking for XOpenDisplay in /usr/local/lib/libX11.so;/usr/local/lib/libXext.so - found
-- Looking for gethostbyname
-- Looking for gethostbyname - found
-- Looking for connect
-- Looking for connect - found
-- Looking for remove
-- Looking for remove - found
-- Looking for shmat
-- Looking for shmat - found
-- Looking for IceConnectionNumber in ICE
-- Looking for IceConnectionNumber in ICE - found
-- Configuring done
-- Generating done
CMake Warning:
  Manually-specified variables were not used by the project:

    CMAKE_MODULE_LINKER_FLAGS
    CMAKE_SHARED_LINKER_FLAGS
    CMAKE_VERBOSE_MAKEFILE


-- Build files have been written to: /usr/ports/net-im/tg_owt/work/.build
===>  Building for tg_owt-0.0.20220209
[  0% 4/1315] /usr/bin/c++ -DABSL_ALLOCATOR_NOTHROW=1 -DHAVE_NETINET_IN_H -DHAVE_SCTP -I/usr/ports/net-im/tg_owt/work/tg_owt-4cba1ac/src -O2 -pipe -fstack-protector-strong -fno-strict-aliasing  -DNDEBUG -O2 -pipe -fstack-protector-strong -fno-strict-aliasing  -DNDEBUG -Wno-deprecated-declarations -Wno-attributes -Wno-narrowing -Wno-return-type -std=gnu++2a -MD -MT CMakeFiles/librnnoise.dir/src/third_party/rnnoise/src/rnn_vad_weights.cc.o -MF CMakeFiles/librnnoise.dir/src/third_party/rnnoise/src/rnn_vad_weights.cc.o.d -o CMakeFiles/librnnoise.dir/src/third_party/rnnoise/src/rnn_vad_weights.cc.o -c /usr/ports/net-im/tg_owt/work/tg_owt-4cba1ac/src/third_party/rnnoise/src/rnn_vad_weights.cc
[  0% 5/1315] /usr/bin/cc -DABSL_ALLOCATOR_NOTHROW=1 -DHAVE_NETINET_IN_H -DHAVE_SCTP -I/usr/ports/net-im/tg_owt/work/tg_owt-4cba1ac/src/third_party/libsrtp/include -I/usr/ports/net-im/tg_owt/work/tg_owt-4cba1ac/src/third_party/libsrtp/crypto/include -O2 -pipe  -fstack-protector-strong -fno-strict-aliasing -O2 -pipe  -fstack-protector-strong -fno-strict-aliasing -Wno-deprecated-declarations -Wno-attributes -Wno-narrowing -Wno-return-type -MD -MT CMakeFiles/libsrtp.dir/src/third_party/libsrtp/crypto/cipher/aes_gcm_ossl.c.o -MF CMakeFiles/libsrtp.dir/src/third_party/libsrtp/crypto/cipher/aes_gcm_ossl.c.o.d -o CMakeFiles/libsrtp.dir/src/third_party/libsrtp/crypto/cipher/aes_gcm_ossl.c.o -c /usr/ports/net-im/tg_owt/work/tg_owt-4cba1ac/src/third_party/libsrtp/crypto/cipher/aes_gcm_ossl.c
.
.
.
<skipped>
.
.
.
[  3% 53/1315] /usr/bin/c++ -DABSL_ALLOCATOR_NOTHROW=1 -DBWE_TEST_LOGGING_COMPILE_TIME_ENABLE=0 -DHAVE_NETINET_IN_H -DHAVE_SCTP -DHAVE_WEBRTC_VIDEO -DNO_MAIN_THREAD_WRAPPING -DRTC_DISABLE_TRACE_EVENTS -DRTC_ENABLE_VP9 -DWEBRTC_APM_DEBUG_DUMP=0 -DWEBRTC_DUMMY_AUDIO_BUILD -DWEBRTC_ENABLE_PROTOBUF=0 -DWEBRTC_FREEBSD -DWEBRTC_HAVE_USRSCTP -DWEBRTC_INCLUDE_INTERNAL_AUDIO_DEVICE -DWEBRTC_LIBRARY_IMPL -DWEBRTC_NON_STATIC_TRACE_EVENT_HANDLERS=1 -DWEBRTC_OPUS_SUPPORT_120MS_PTIME=1 -DWEBRTC_OPUS_VARIABLE_COMPLEXITY=0 -DWEBRTC_POSIX -DWEBRTC_USE_BUILTIN_ISAC_FLOAT -DWEBRTC_USE_H264 -DWEBRTC_USE_PIPEWIRE -DWEBRTC_USE_X11 -I/usr/ports/net-im/tg_owt/work/tg_owt-4cba1ac/src -I/usr/ports/net-im/tg_owt/work/tg_owt-4cba1ac/src/third_party/libyuv/include -O2 -pipe -fstack-protector-strong -fno-strict-aliasing  -DNDEBUG -O2 -pipe -fstack-protector-strong -fno-strict-aliasing  -DNDEBUG -Wno-deprecated-declarations -Wno-attributes -Wno-narrowing -Wno-return-type -mavx2 -mfma -std=gnu++2a -MD -MT CMakeFiles/tg_owt_avx2.dir/src/modules/audio_processing/aec3/adaptive_fir_filter_avx2.cc.o -MF CMakeFiles/tg_owt_avx2.dir/src/modules/audio_processing/aec3/adaptive_fir_filter_avx2.cc.o.d -o CMakeFiles/tg_owt_avx2.dir/src/modules/audio_processing/aec3/adaptive_fir_filter_avx2.cc.o -c /usr/ports/net-im/tg_owt/work/tg_owt-4cba1ac/src/modules/audio_processing/aec3/adaptive_fir_filter_avx2.cc
FAILED: CMakeFiles/tg_owt_avx2.dir/src/modules/audio_processing/aec3/adaptive_fir_filter_avx2.cc.o 
/usr/bin/c++ -DABSL_ALLOCATOR_NOTHROW=1 -DBWE_TEST_LOGGING_COMPILE_TIME_ENABLE=0 -DHAVE_NETINET_IN_H -DHAVE_SCTP -DHAVE_WEBRTC_VIDEO -DNO_MAIN_THREAD_WRAPPING -DRTC_DISABLE_TRACE_EVENTS -DRTC_ENABLE_VP9 -DWEBRTC_APM_DEBUG_DUMP=0 -DWEBRTC_DUMMY_AUDIO_BUILD -DWEBRTC_ENABLE_PROTOBUF=0 -DWEBRTC_FREEBSD -DWEBRTC_HAVE_USRSCTP -DWEBRTC_INCLUDE_INTERNAL_AUDIO_DEVICE -DWEBRTC_LIBRARY_IMPL -DWEBRTC_NON_STATIC_TRACE_EVENT_HANDLERS=1 -DWEBRTC_OPUS_SUPPORT_120MS_PTIME=1 -DWEBRTC_OPUS_VARIABLE_COMPLEXITY=0 -DWEBRTC_POSIX -DWEBRTC_USE_BUILTIN_ISAC_FLOAT -DWEBRTC_USE_H264 -DWEBRTC_USE_PIPEWIRE -DWEBRTC_USE_X11 -I/usr/ports/net-im/tg_owt/work/tg_owt-4cba1ac/src -I/usr/ports/net-im/tg_owt/work/tg_owt-4cba1ac/src/third_party/libyuv/include -O2 -pipe -fstack-protector-strong -fno-strict-aliasing  -DNDEBUG -O2 -pipe -fstack-protector-strong -fno-strict-aliasing  -DNDEBUG -Wno-deprecated-declarations -Wno-attributes -Wno-narrowing -Wno-return-type -mavx2 -mfma -std=gnu++2a -MD -MT CMakeFiles/tg_owt_avx2.dir/src/modules/audio_processing/aec3/adaptive_fir_filter_avx2.cc.o -MF CMakeFiles/tg_owt_avx2.dir/src/modules/audio_processing/aec3/adaptive_fir_filter_avx2.cc.o.d -o CMakeFiles/tg_owt_avx2.dir/src/modules/audio_processing/aec3/adaptive_fir_filter_avx2.cc.o -c /usr/ports/net-im/tg_owt/work/tg_owt-4cba1ac/src/modules/audio_processing/aec3/adaptive_fir_filter_avx2.cc
In file included from /usr/ports/net-im/tg_owt/work/tg_owt-4cba1ac/src/modules/audio_processing/aec3/adaptive_fir_filter_avx2.cc:11:
In file included from /usr/ports/net-im/tg_owt/work/tg_owt-4cba1ac/src/modules/audio_processing/aec3/adaptive_fir_filter.h:19:
In file included from /usr/ports/net-im/tg_owt/work/tg_owt-4cba1ac/src/api/array_view.h:19:
/usr/ports/net-im/tg_owt/work/tg_owt-4cba1ac/src/rtc_base/checks.h:57:10: fatal error: 'absl/meta/type_traits.h' file not found
#include "absl/meta/type_traits.h"
         ^~~~~~~~~~~~~~~~~~~~~~~~~
1 error generated.
[  3% 53/1315] /usr/bin/c++ -DABSL_ALLOCATOR_NOTHROW=1 -DBWE_TEST_LOGGING_COMPILE_TIME_ENABLE=0 -DHAVE_NETINET_IN_H -DHAVE_SCTP -DHAVE_WEBRTC_VIDEO -DNO_MAIN_THREAD_WRAPPING -DRTC_DISABLE_TRACE_EVENTS -DRTC_ENABLE_VP9 -DWEBRTC_APM_DEBUG_DUMP=0 -DWEBRTC_DUMMY_AUDIO_BUILD -DWEBRTC_ENABLE_PROTOBUF=0 -DWEBRTC_FREEBSD -DWEBRTC_HAVE_USRSCTP -DWEBRTC_INCLUDE_INTERNAL_AUDIO_DEVICE -DWEBRTC_LIBRARY_IMPL -DWEBRTC_NON_STATIC_TRACE_EVENT_HANDLERS=1 -DWEBRTC_OPUS_SUPPORT_120MS_PTIME=1 -DWEBRTC_OPUS_VARIABLE_COMPLEXITY=0 -DWEBRTC_POSIX -DWEBRTC_USE_BUILTIN_ISAC_FLOAT -DWEBRTC_USE_H264 -DWEBRTC_USE_PIPEWIRE -DWEBRTC_USE_X11 -I/usr/ports/net-im/tg_owt/work/tg_owt-4cba1ac/src -I/usr/ports/net-im/tg_owt/work/tg_owt-4cba1ac/src/third_party/libyuv/include -O2 -pipe -fstack-protector-strong -fno-strict-aliasing  -DNDEBUG -O2 -pipe -fstack-protector-strong -fno-strict-aliasing  -DNDEBUG -Wno-deprecated-declarations -Wno-attributes -Wno-narrowing -Wno-return-type -mavx2 -mfma -std=gnu++2a -MD -MT CMakeFiles/tg_owt_avx2.dir/src/modules/audio_processing/aec3/adaptive_fir_filter_erl_avx2.cc.o -MF CMakeFiles/tg_owt_avx2.dir/src/modules/audio_processing/aec3/adaptive_fir_filter_erl_avx2.cc.o.d -o CMakeFiles/tg_owt_avx2.dir/src/modules/audio_processing/aec3/adaptive_fir_filter_erl_avx2.cc.o -c /usr/ports/net-im/tg_owt/work/tg_owt-4cba1ac/src/modules/audio_processing/aec3/adaptive_fir_filter_erl_avx2.cc
FAILED: CMakeFiles/tg_owt_avx2.dir/src/modules/audio_processing/aec3/adaptive_fir_filter_erl_avx2.cc.o 
/usr/bin/c++ -DABSL_ALLOCATOR_NOTHROW=1 -DBWE_TEST_LOGGING_COMPILE_TIME_ENABLE=0 -DHAVE_NETINET_IN_H -DHAVE_SCTP -DHAVE_WEBRTC_VIDEO -DNO_MAIN_THREAD_WRAPPING -DRTC_DISABLE_TRACE_EVENTS -DRTC_ENABLE_VP9 -DWEBRTC_APM_DEBUG_DUMP=0 -DWEBRTC_DUMMY_AUDIO_BUILD -DWEBRTC_ENABLE_PROTOBUF=0 -DWEBRTC_FREEBSD -DWEBRTC_HAVE_USRSCTP -DWEBRTC_INCLUDE_INTERNAL_AUDIO_DEVICE -DWEBRTC_LIBRARY_IMPL -DWEBRTC_NON_STATIC_TRACE_EVENT_HANDLERS=1 -DWEBRTC_OPUS_SUPPORT_120MS_PTIME=1 -DWEBRTC_OPUS_VARIABLE_COMPLEXITY=0 -DWEBRTC_POSIX -DWEBRTC_USE_BUILTIN_ISAC_FLOAT -DWEBRTC_USE_H264 -DWEBRTC_USE_PIPEWIRE -DWEBRTC_USE_X11 -I/usr/ports/net-im/tg_owt/work/tg_owt-4cba1ac/src -I/usr/ports/net-im/tg_owt/work/tg_owt-4cba1ac/src/third_party/libyuv/include -O2 -pipe -fstack-protector-strong -fno-strict-aliasing  -DNDEBUG -O2 -pipe -fstack-protector-strong -fno-strict-aliasing  -DNDEBUG -Wno-deprecated-declarations -Wno-attributes -Wno-narrowing -Wno-return-type -mavx2 -mfma -std=gnu++2a -MD -MT CMakeFiles/tg_owt_avx2.dir/src/modules/audio_processing/aec3/adaptive_fir_filter_erl_avx2.cc.o -MF CMakeFiles/tg_owt_avx2.dir/src/modules/audio_processing/aec3/adaptive_fir_filter_erl_avx2.cc.o.d -o CMakeFiles/tg_owt_avx2.dir/src/modules/audio_processing/aec3/adaptive_fir_filter_erl_avx2.cc.o -c /usr/ports/net-im/tg_owt/work/tg_owt-4cba1ac/src/modules/audio_processing/aec3/adaptive_fir_filter_erl_avx2.cc
In file included from /usr/ports/net-im/tg_owt/work/tg_owt-4cba1ac/src/modules/audio_processing/aec3/adaptive_fir_filter_erl_avx2.cc:11:
In file included from /usr/ports/net-im/tg_owt/work/tg_owt-4cba1ac/src/modules/audio_processing/aec3/adaptive_fir_filter_erl.h:19:
In file included from /usr/ports/net-im/tg_owt/work/tg_owt-4cba1ac/src/api/array_view.h:19:
/usr/ports/net-im/tg_owt/work/tg_owt-4cba1ac/src/rtc_base/checks.h:57:10: fatal error: 'absl/meta/type_traits.h' file not found
#include "absl/meta/type_traits.h"
         ^~~~~~~~~~~~~~~~~~~~~~~~~
1 error generated.
[  3% 53/1315] /usr/bin/c++ -DABSL_ALLOCATOR_NOTHROW=1 -DBWE_TEST_LOGGING_COMPILE_TIME_ENABLE=0 -DHAVE_NETINET_IN_H -DHAVE_SCTP -DHAVE_WEBRTC_VIDEO -DNO_MAIN_THREAD_WRAPPING -DRTC_DISABLE_TRACE_EVENTS -DRTC_ENABLE_VP9 -DWEBRTC_APM_DEBUG_DUMP=0 -DWEBRTC_DUMMY_AUDIO_BUILD -DWEBRTC_ENABLE_PROTOBUF=0 -DWEBRTC_FREEBSD -DWEBRTC_HAVE_USRSCTP -DWEBRTC_INCLUDE_INTERNAL_AUDIO_DEVICE -DWEBRTC_LIBRARY_IMPL -DWEBRTC_NON_STATIC_TRACE_EVENT_HANDLERS=1 -DWEBRTC_OPUS_SUPPORT_120MS_PTIME=1 -DWEBRTC_OPUS_VARIABLE_COMPLEXITY=0 -DWEBRTC_POSIX -DWEBRTC_USE_BUILTIN_ISAC_FLOAT -DWEBRTC_USE_H264 -DWEBRTC_USE_PIPEWIRE -DWEBRTC_USE_X11 -I/usr/ports/net-im/tg_owt/work/tg_owt-4cba1ac/src -I/usr/ports/net-im/tg_owt/work/tg_owt-4cba1ac/src/third_party/libyuv/include -O2 -pipe -fstack-protector-strong -fno-strict-aliasing  -DNDEBUG -O2 -pipe -fstack-protector-strong -fno-strict-aliasing  -DNDEBUG -Wno-deprecated-declarations -Wno-attributes -Wno-narrowing -Wno-return-type -mavx2 -mfma -std=gnu++2a -MD -MT CMakeFiles/tg_owt_avx2.dir/src/modules/audio_processing/aec3/fft_data_avx2.cc.o -MF CMakeFiles/tg_owt_avx2.dir/src/modules/audio_processing/aec3/fft_data_avx2.cc.o.d -o CMakeFiles/tg_owt_avx2.dir/src/modules/audio_processing/aec3/fft_data_avx2.cc.o -c /usr/ports/net-im/tg_owt/work/tg_owt-4cba1ac/src/modules/audio_processing/aec3/fft_data_avx2.cc
FAILED: CMakeFiles/tg_owt_avx2.dir/src/modules/audio_processing/aec3/fft_data_avx2.cc.o 
/usr/bin/c++ -DABSL_ALLOCATOR_NOTHROW=1 -DBWE_TEST_LOGGING_COMPILE_TIME_ENABLE=0 -DHAVE_NETINET_IN_H -DHAVE_SCTP -DHAVE_WEBRTC_VIDEO -DNO_MAIN_THREAD_WRAPPING -DRTC_DISABLE_TRACE_EVENTS -DRTC_ENABLE_VP9 -DWEBRTC_APM_DEBUG_DUMP=0 -DWEBRTC_DUMMY_AUDIO_BUILD -DWEBRTC_ENABLE_PROTOBUF=0 -DWEBRTC_FREEBSD -DWEBRTC_HAVE_USRSCTP -DWEBRTC_INCLUDE_INTERNAL_AUDIO_DEVICE -DWEBRTC_LIBRARY_IMPL -DWEBRTC_NON_STATIC_TRACE_EVENT_HANDLERS=1 -DWEBRTC_OPUS_SUPPORT_120MS_PTIME=1 -DWEBRTC_OPUS_VARIABLE_COMPLEXITY=0 -DWEBRTC_POSIX -DWEBRTC_USE_BUILTIN_ISAC_FLOAT -DWEBRTC_USE_H264 -DWEBRTC_USE_PIPEWIRE -DWEBRTC_USE_X11 -I/usr/ports/net-im/tg_owt/work/tg_owt-4cba1ac/src -I/usr/ports/net-im/tg_owt/work/tg_owt-4cba1ac/src/third_party/libyuv/include -O2 -pipe -fstack-protector-strong -fno-strict-aliasing  -DNDEBUG -O2 -pipe -fstack-protector-strong -fno-strict-aliasing  -DNDEBUG -Wno-deprecated-declarations -Wno-attributes -Wno-narrowing -Wno-return-type -mavx2 -mfma -std=gnu++2a -MD -MT CMakeFiles/tg_owt_avx2.dir/src/modules/audio_processing/aec3/fft_data_avx2.cc.o -MF CMakeFiles/tg_owt_avx2.dir/src/modules/audio_processing/aec3/fft_data_avx2.cc.o.d -o CMakeFiles/tg_owt_avx2.dir/src/modules/audio_processing/aec3/fft_data_avx2.cc.o -c /usr/ports/net-im/tg_owt/work/tg_owt-4cba1ac/src/modules/audio_processing/aec3/fft_data_avx2.cc
In file included from /usr/ports/net-im/tg_owt/work/tg_owt-4cba1ac/src/modules/audio_processing/aec3/fft_data_avx2.cc:11:
In file included from /usr/ports/net-im/tg_owt/work/tg_owt-4cba1ac/src/modules/audio_processing/aec3/fft_data.h:23:
In file included from /usr/ports/net-im/tg_owt/work/tg_owt-4cba1ac/src/api/array_view.h:19:
/usr/ports/net-im/tg_owt/work/tg_owt-4cba1ac/src/rtc_base/checks.h:57:10: fatal error: 'absl/meta/type_traits.h' file not found
#include "absl/meta/type_traits.h"
         ^~~~~~~~~~~~~~~~~~~~~~~~~
1 error generated.
[  4% 53/1315] /usr/bin/c++ -DABSL_ALLOCATOR_NOTHROW=1 -DHAVE_JPEG -DHAVE_NETINET_IN_H -DHAVE_SCTP -DLIBYUV_DISABLE_NEON -I/usr/ports/net-im/tg_owt/work/tg_owt-4cba1ac/src/third_party/libyuv/include -isystem /usr/local/include -O2 -pipe -fstack-protector-strong -fno-strict-aliasing  -DNDEBUG -O2 -pipe -fstack-protector-strong -fno-strict-aliasing  -DNDEBUG -Wno-deprecated-declarations -Wno-attributes -Wno-narrowing -Wno-return-type -std=gnu++2a -MD -MT CMakeFiles/libyuv.dir/src/third_party/libyuv/source/row_common.cc.o -MF CMakeFiles/libyuv.dir/src/third_party/libyuv/source/row_common.cc.o.d -o CMakeFiles/libyuv.dir/src/third_party/libyuv/source/row_common.cc.o -c /usr/ports/net-im/tg_owt/work/tg_owt-4cba1ac/src/third_party/libyuv/source/row_common.cc
ninja: build stopped: subcommand failed.
===> Compilation failed unexpectedly.
Try to set MAKE_JOBS_UNSAFE=yes and rebuild before reporting the failure to
the maintainer.
*** Error code 1
@digital-freak
Copy link

Hi!
From the https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=262716

diff --git a/cmake/external.cmake b/cmake/external.cmake
index 22cdeb94..2c4a8cf1 100644
--- a/cmake/external.cmake
+++ b/cmake/external.cmake
@@ -120,6 +120,9 @@ function(link_libabsl target_name)
                 absl::type_traits
                 absl::variant
             )
+            find_package(PkgConfig REQUIRED)
+            pkg_check_modules(ABSL REQUIRED QUIET absl_flags)
+            target_include_directories(${target_name} PRIVATE ${ABSL_INCLUDE_DIRS})
         endif()
     endif()
     if (NOT absl_FOUND)

Works fine with this patch.

@ilya-fedin
Copy link
Contributor

Please report this to https://github.com/abseil/abseil-cpp then

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants