Opened 19 months ago

Last modified 19 months ago

#67244 new defect

svt-av1 fails on Tiger: error: '_SC_NPROCESSORS_ONLN' undeclared (first use in this function)

Reported by: barracuda156 Owned by:
Priority: Normal Milestone:
Component: ports Version: 2.8.1
Keywords: tiger Cc:
Port: svt-av1

Description

:info:build make[2]: Leaving directory `/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_multimedia_svt-av1/svt-av1/work/build'
:info:build /usr/bin/make  -f Source/Lib/Encoder/Globals/CMakeFiles/ENCODER_GLOBALS.dir/build.make Source/Lib/Encoder/Globals/CMakeFiles/ENCODER_GLOBALS.dir/build
:info:build make[2]: Entering directory `/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_multimedia_svt-av1/svt-av1/work/build'
:info:build [ 76%] Building C object Source/Lib/Encoder/Globals/CMakeFiles/ENCODER_GLOBALS.dir/EbEncHandle.c.o
:info:build cd /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_multimedia_svt-av1/svt-av1/work/build/Source/Lib/Encoder/Globals && /opt/local/bin/gcc-mp-7 -DEB_BUILDING_SHARED_LIBS -DEB_DLL -DEN_AVX512_SUPPORT=0 -DEXCLUDE_HASH=0 -DHAVE_BUILTIN_EXPECT=1 -DHAVE_VALGRIND_H=0 -DREPRODUCIBLE_BUILDS=0 -DSAFECLIB_STR_NULL_SLACK=1 -D_FORTIFY_SOURCE=2 -I/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_multimedia_svt-av1/svt-av1/work/SVT-AV1-1.4.1/. -I/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_multimedia_svt-av1/svt-av1/work/SVT-AV1-1.4.1/Source/API -I/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_multimedia_svt-av1/svt-av1/work/SVT-AV1-1.4.1/Source/Lib/Common/Codec -I/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_multimedia_svt-av1/svt-av1/work/SVT-AV1-1.4.1/Source/Lib/Common/C_DEFAULT -I/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_multimedia_svt-av1/svt-av1/work/SVT-AV1-1.4.1/Source/Lib/Encoder/C_DEFAULT -I/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_multimedia_svt-av1/svt-av1/work/SVT-AV1-1.4.1/Source/Lib/Encoder/Codec -I/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_multimedia_svt-av1/svt-av1/work/SVT-AV1-1.4.1/third_party/fastfeat -I/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_multimedia_svt-av1/svt-av1/work/SVT-AV1-1.4.1/Source/Lib/Encoder/Globals/../../../API -I/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_multimedia_svt-av1/svt-av1/work/build/Source/Lib/Common/Codec -Wall -Wextra -Wformat -Wformat-security -pipe -Os -DNDEBUG -I/opt/local/include -fstack-protector-strong -arch ppc -mmacosx-version-min=10.4 -fPIC -fvisibility=hidden -std=gnu99 -MD -MT Source/Lib/Encoder/Globals/CMakeFiles/ENCODER_GLOBALS.dir/EbEncHandle.c.o -MF CMakeFiles/ENCODER_GLOBALS.dir/EbEncHandle.c.o.d -o CMakeFiles/ENCODER_GLOBALS.dir/EbEncHandle.c.o -c /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_multimedia_svt-av1/svt-av1/work/SVT-AV1-1.4.1/Source/Lib/Encoder/Globals/EbEncHandle.c
:info:build /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_multimedia_svt-av1/svt-av1/work/SVT-AV1-1.4.1/Source/Lib/Encoder/Globals/EbEncHandle.c: In function 'get_num_processors':
:info:build /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_multimedia_svt-av1/svt-av1/work/SVT-AV1-1.4.1/Source/Lib/Encoder/Globals/EbEncHandle.c:162:20: error: '_SC_NPROCESSORS_ONLN' undeclared (first use in this function)
:info:build      return sysconf(_SC_NPROCESSORS_ONLN);
:info:build                     ^~~~~~~~~~~~~~~~~~~~
:info:build /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_multimedia_svt-av1/svt-av1/work/SVT-AV1-1.4.1/Source/Lib/Encoder/Globals/EbEncHandle.c:162:20: note: each undeclared identifier is reported only once for each function it appears in
:info:build /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_multimedia_svt-av1/svt-av1/work/SVT-AV1-1.4.1/Source/Lib/Encoder/Globals/EbEncHandle.c:164:1: warning: control reaches end of non-void function [-Wreturn-type]
:info:build

Change History (2)

comment:1 Changed 19 months ago by ryandesign (Ryan Carsten Schmidt)

comment:2 in reply to:  1 Changed 19 months ago by barracuda156

Replying to ryandesign:

legacysupport should help with this (https://github.com/macports/macports-legacy-support/pull/8)

The port already uses it though:

PortGroup               legacysupport 1.1

# _posix_memalign
legacysupport.newest_darwin_requires_legacy 9
Note: See TracTickets for help on using tickets.