Bug 262716 - net-im/tg_owt: Build error: src/rtc_base/checks.h:57:10: fatal error: 'absl/meta/type_traits.h' file not found
Summary: net-im/tg_owt: Build error: src/rtc_base/checks.h:57:10: fatal error: 'absl/m...
Status: Closed FIXED
Alias: None
Product: Ports & Packages
Classification: Unclassified
Component: Individual Port(s) (show other bugs)
Version: Latest
Hardware: amd64 Any
: --- Affects Only Me
Assignee: Gleb Smirnoff
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2022-03-22 06:47 UTC by iron.udjin
Modified: 2023-01-13 16:00 UTC (History)
4 users (show)

See Also:
bugzilla: maintainer-feedback? (glebius)


Attachments
make all message for /usr/ports/net-im/tg_owt (57.71 KB, text/plain)
2022-05-09 02:37 UTC, cat99.spam
no flags Details
this patch files fixes the problem (441 bytes, patch)
2022-06-28 12:22 UTC, gebhart
no flags Details | Diff
make all message output (63.49 KB, text/plain)
2022-12-31 05:28 UTC, cat99.spam
no flags Details

Note You need to log in before you can comment on or make changes to this bug.
Description iron.udjin 2022-03-22 06:47:12 UTC
OS: stable/13-n250049-9f600a260a73
port version: 0.0.20220225

[  3% 51/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/tmpfs/usr/ports/net-im/tg_owt/work/tg_owt-a264028/src -I/tmpfs/usr/ports/net-im/tg_owt/work/tg_owt-a264028/src/third_party/libyuv/include -O2 -pipe -O2 -pipe -march=native -mtune=native -fstack-protector-strong -fno-strict-aliasing  -DNDEBUG -O2 -pipe -O2 -pipe -march=native -mtune=native -fstack-protector-strong -fno-strict-aliasing  -DNDEBUG -Wno-deprecated-declarations -Wno-attributes -Wno-narrowing -Wno-return-type -mavx2 -mfma -std=gnu++20 -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 /tmpfs/usr/ports/net-im/tg_owt/work/tg_owt-a264028/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/tmpfs/usr/ports/net-im/tg_owt/work/tg_owt-a264028/src -I/tmpfs/usr/ports/net-im/tg_owt/work/tg_owt-a264028/src/third_party/libyuv/include -O2 -pipe -O2 -pipe -march=native -mtune=native -fstack-protector-strong -fno-strict-aliasing  -DNDEBUG -O2 -pipe -O2 -pipe -march=native -mtune=native -fstack-protector-strong -fno-strict-aliasing  -DNDEBUG -Wno-deprecated-declarations -Wno-attributes -Wno-narrowing -Wno-return-type -mavx2 -mfma -std=gnu++20 -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 /tmpfs/usr/ports/net-im/tg_owt/work/tg_owt-a264028/src/modules/audio_processing/aec3/adaptive_fir_filter_avx2.cc
In file included from /tmpfs/usr/ports/net-im/tg_owt/work/tg_owt-a264028/src/modules/audio_processing/aec3/adaptive_fir_filter_avx2.cc:11:
In file included from /tmpfs/usr/ports/net-im/tg_owt/work/tg_owt-a264028/src/modules/audio_processing/aec3/adaptive_fir_filter.h:19:
In file included from /tmpfs/usr/ports/net-im/tg_owt/work/tg_owt-a264028/src/api/array_view.h:19:
/tmpfs/usr/ports/net-im/tg_owt/work/tg_owt-a264028/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.
ninja: build stopped: subcommand failed.
*** Error code 1
Comment 1 cat99.spam 2022-05-09 02:37:45 UTC
Created attachment 233816 [details]
make all message for /usr/ports/net-im/tg_owt

I got the same problem. Do you think the following message useful? 

CMake Warning:
  Manually-specified variables were not used by the project:

    CMAKE_COLOR_MAKEFILE
    CMAKE_MODULE_LINKER_FLAGS
    CMAKE_SHARED_LINKER_FLAGS
    CMAKE_VERBOSE_MAKEFILE
Comment 2 cat99.spam 2022-05-09 03:04:58 UTC
OS: FreeBSD 13.0-RELEASE-p10 #1 releng/13.0-n244791-312522780e8
PORTVERSION=    0.0.20220425
Comment 3 cat99.spam 2022-05-20 01:02:44 UTC
Hi Gleb..

I just find an OpenBSD patch for the issue.

Please refer it , Thanks

https://ftp.fr.openbsd.org/pub/OpenBSD/distfiles/tg_owt-libabsl-use-includes-fb12b4bd.patch
Comment 4 Serge 2022-06-11 14:05:05 UTC
Thank You!
Comment 5 gebhart 2022-06-28 12:22:18 UTC
Created attachment 234982 [details]
this patch files fixes the problem

until the original source is fixed, this patch file should be added in net-im/tg_owt/files
Comment 6 cat99.spam 2022-06-28 21:00:24 UTC
OS: FreeBSD 13.1-RELEASE releng/13.1-n250148-fc952ac2212
PORTVERSION=    0.0.20220508

make all successfully!
Comment 7 gebhart 2022-06-30 13:26:31 UTC
Status should be changed to closed. The patch is in the ports.
Comment 8 cat99.spam 2022-12-31 05:28:09 UTC
Created attachment 239141 [details]
make all message output

OS: FreeBSD 13.1-RELEASE-p5 releng/13.1-n250174-753d65a19a55
PORTVERSION=    0.0.20221215

The same error happened again.

In file included from /usr/ports/net-im/tg_owt/work/tg_owt-1512ef6/src/modules/audio_processing/agc2/rnn_vad/vector_math_avx2.cc:11:
In file included from /usr/ports/net-im/tg_owt/work/tg_owt-1512ef6/src/modules/audio_processing/agc2/rnn_vad/vector_math.h:26:
In file included from /usr/ports/net-im/tg_owt/work/tg_owt-1512ef6/src/api/array_view.h:19:
/usr/ports/net-im/tg_owt/work/tg_owt-1512ef6/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% 57/1393] /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-1512ef6/src/third_party/libyuv/include -isystem /usr/local/include -O2 -pipe -march=skylake -fstack-protector-strong -fno-strict-aliasing -O2 -pipe -march=skylake -fstack-protector-strong -fno-strict-aliasing   -DNDEBUG -Wno-deprecated-declarations -Wno-attributes -Wno-narrowing -Wno-return-type -std=gnu++20 -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-1512ef6/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

Stop.
make: stopped in /usr/ports/net-im/tg_owt
Comment 9 gebhart 2023-01-13 16:00:59 UTC
I just had the same problem.
When I checked my ports tree, the above mentioned patch was missing
again in net-im/tg_owt/files for some unknown reason though it's in the official tree.
I added it again manually and the problem was gone.
Unfortunately the original vendor source is still not fixed, so that patch is needed.
It works with 12.4 and 13.1 , I just verified.