Opened 7 months ago

Last modified 3 months ago

#69807 assigned defect

libjxl fails on 10.4: fatal error: spawn.h: No such file or directory

Reported by: barracuda156 Owned by: jmroot (Joshua Root)
Priority: Normal Milestone:
Component: ports Version: 2.9.3
Keywords: tiger upstream Cc:
Port: libjxl

Description

[ 96%] Building CXX object tools/CMakeFiles/benchmark_xl.dir/benchmark/benchmark_utils.cc.o
cd /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_graphics_libjxl/libjxl/work/build/tools && /opt/local/bin/g++-mp-7 -DBENCHMARK_AVIF -DBENCHMARK_PNG -DBENCHMARK_WEBP -DFJXL_ENABLE_AVX512=0 -DHWY_DISABLED_TARGETS="(HWY_SSSE3|HWY_AVX3|HWY_AVX3_SPR|HWY_AVX3_ZEN4|HWY_SVE|HWY_SVE2|HWY_SVE_256|HWY_SVE2_128|HWY_RVV)" -DJXL_STATIC_DEFINE -D__DATE__=\"redacted\" -D__TIMESTAMP__=\"redacted\" -D__TIME__=\"redacted\" -I/opt/local/include/webp -I/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_graphics_libjxl/libjxl/work/libjxl-0.10.2 -I/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_graphics_libjxl/libjxl/work/build/lib/include -I/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_graphics_libjxl/libjxl/work/libjxl-0.10.2/lib/include -isystem /opt/local/include -pipe -Os -D_GLIBCXX_USE_CXX11_ABI=0 -fno-rtti -DNDEBUG -std=c++11 -arch ppc -mmacosx-version-min=10.4 -fPIE -funwind-tables -fno-omit-frame-pointer -Wno-builtin-macro-redefined -Wall -DHWY_SHARED_DEFINE -DAVIF_DLL -MD -MT tools/CMakeFiles/benchmark_xl.dir/benchmark/benchmark_utils.cc.o -MF CMakeFiles/benchmark_xl.dir/benchmark/benchmark_utils.cc.o.d -o CMakeFiles/benchmark_xl.dir/benchmark/benchmark_utils.cc.o -c /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_graphics_libjxl/libjxl/work/libjxl-0.10.2/tools/benchmark/benchmark_utils.cc
/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_graphics_libjxl/libjxl/work/libjxl-0.10.2/tools/benchmark/benchmark_utils.cc:16:10: fatal error: spawn.h: No such file or directory
 #include <spawn.h>
          ^~~~~~~~~
compilation terminated.

Change History (3)

comment:1 Changed 7 months ago by jmroot (Joshua Root)

Keywords: upstream added

comment:2 Changed 3 months ago by barracuda156

Any update on this? The port is still broken on 10.4:

[ 95%] Building CXX object tools/CMakeFiles/benchmark_xl.dir/benchmark/benchmark_file_io.cc.o
cd /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_graphics_libjxl/libjxl/work/build/tools && /opt/local/bin/g++-mp-7 -DBENCHMARK_AVIF -DBENCHMARK_PNG -DBENCHMARK_WEBP -DFJXL_ENABLE_AVX512=0 -DHWY_DISABLED_TARGETS="(HWY_SSSE3|HWY_AVX3|HWY_AVX3_SPR|HWY_AVX3_ZEN4|HWY_SVE|HWY_SVE2|HWY_SVE_256|HWY_SVE2_128|HWY_RVV)" -DJXL_STATIC_DEFINE -D__DATE__=\"redacted\" -D__TIMESTAMP__=\"redacted\" -D__TIME__=\"redacted\" -I/opt/local/include/webp -I/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_graphics_libjxl/libjxl/work/libjxl-0.10.3 -I/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_graphics_libjxl/libjxl/work/build/lib/include -I/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_graphics_libjxl/libjxl/work/libjxl-0.10.3/lib/include -isystem /opt/local/include -pipe -Os -D_GLIBCXX_USE_CXX11_ABI=0 -fno-rtti -DNDEBUG -std=c++11 -arch ppc -mmacosx-version-min=10.4 -fPIE -funwind-tables -fno-omit-frame-pointer -Wno-builtin-macro-redefined -Wall -DHWY_SHARED_DEFINE -DAVIF_DLL -MD -MT tools/CMakeFiles/benchmark_xl.dir/benchmark/benchmark_file_io.cc.o -MF CMakeFiles/benchmark_xl.dir/benchmark/benchmark_file_io.cc.o.d -o CMakeFiles/benchmark_xl.dir/benchmark/benchmark_file_io.cc.o -c /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_graphics_libjxl/libjxl/work/libjxl-0.10.3/tools/benchmark/benchmark_file_io.cc
[ 95%] Building CXX object tools/CMakeFiles/benchmark_xl.dir/benchmark/benchmark_stats.cc.o
cd /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_graphics_libjxl/libjxl/work/build/tools && /opt/local/bin/g++-mp-7 -DBENCHMARK_AVIF -DBENCHMARK_PNG -DBENCHMARK_WEBP -DFJXL_ENABLE_AVX512=0 -DHWY_DISABLED_TARGETS="(HWY_SSSE3|HWY_AVX3|HWY_AVX3_SPR|HWY_AVX3_ZEN4|HWY_SVE|HWY_SVE2|HWY_SVE_256|HWY_SVE2_128|HWY_RVV)" -DJXL_STATIC_DEFINE -D__DATE__=\"redacted\" -D__TIMESTAMP__=\"redacted\" -D__TIME__=\"redacted\" -I/opt/local/include/webp -I/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_graphics_libjxl/libjxl/work/libjxl-0.10.3 -I/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_graphics_libjxl/libjxl/work/build/lib/include -I/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_graphics_libjxl/libjxl/work/libjxl-0.10.3/lib/include -isystem /opt/local/include -pipe -Os -D_GLIBCXX_USE_CXX11_ABI=0 -fno-rtti -DNDEBUG -std=c++11 -arch ppc -mmacosx-version-min=10.4 -fPIE -funwind-tables -fno-omit-frame-pointer -Wno-builtin-macro-redefined -Wall -DHWY_SHARED_DEFINE -DAVIF_DLL -MD -MT tools/CMakeFiles/benchmark_xl.dir/benchmark/benchmark_stats.cc.o -MF CMakeFiles/benchmark_xl.dir/benchmark/benchmark_stats.cc.o.d -o CMakeFiles/benchmark_xl.dir/benchmark/benchmark_stats.cc.o -c /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_graphics_libjxl/libjxl/work/libjxl-0.10.3/tools/benchmark/benchmark_stats.cc
[ 96%] Building CXX object tools/CMakeFiles/benchmark_xl.dir/benchmark/benchmark_utils.cc.o
cd /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_graphics_libjxl/libjxl/work/build/tools && /opt/local/bin/g++-mp-7 -DBENCHMARK_AVIF -DBENCHMARK_PNG -DBENCHMARK_WEBP -DFJXL_ENABLE_AVX512=0 -DHWY_DISABLED_TARGETS="(HWY_SSSE3|HWY_AVX3|HWY_AVX3_SPR|HWY_AVX3_ZEN4|HWY_SVE|HWY_SVE2|HWY_SVE_256|HWY_SVE2_128|HWY_RVV)" -DJXL_STATIC_DEFINE -D__DATE__=\"redacted\" -D__TIMESTAMP__=\"redacted\" -D__TIME__=\"redacted\" -I/opt/local/include/webp -I/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_graphics_libjxl/libjxl/work/libjxl-0.10.3 -I/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_graphics_libjxl/libjxl/work/build/lib/include -I/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_graphics_libjxl/libjxl/work/libjxl-0.10.3/lib/include -isystem /opt/local/include -pipe -Os -D_GLIBCXX_USE_CXX11_ABI=0 -fno-rtti -DNDEBUG -std=c++11 -arch ppc -mmacosx-version-min=10.4 -fPIE -funwind-tables -fno-omit-frame-pointer -Wno-builtin-macro-redefined -Wall -DHWY_SHARED_DEFINE -DAVIF_DLL -MD -MT tools/CMakeFiles/benchmark_xl.dir/benchmark/benchmark_utils.cc.o -MF CMakeFiles/benchmark_xl.dir/benchmark/benchmark_utils.cc.o.d -o CMakeFiles/benchmark_xl.dir/benchmark/benchmark_utils.cc.o -c /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_graphics_libjxl/libjxl/work/libjxl-0.10.3/tools/benchmark/benchmark_utils.cc
/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_graphics_libjxl/libjxl/work/libjxl-0.10.3/tools/benchmark/benchmark_utils.cc:16:10: fatal error: spawn.h: No such file or directory
 #include <spawn.h>
          ^~~~~~~~~
compilation terminated.
make[2]: *** [tools/CMakeFiles/benchmark_xl.dir/benchmark/benchmark_utils.cc.o] Error 1
make[2]: Leaving directory `/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_graphics_libjxl/libjxl/work/build'
make[1]: *** [tools/CMakeFiles/benchmark_xl.dir/all] Error 2

comment:3 Changed 3 months ago by barracuda156

By the way it also uses a wrong environ in the same file:

extern char** environ;  // NOLINT

There is PR with the fix: https://github.com/libjxl/libjxl/pull/3527

Last edited 3 months ago by barracuda156 (previous) (diff)
Note: See TracTickets for help on using tickets.