[MacPorts] #69053: libjxl @0.9.0 does not build on macOS Sonoma, 14.2.1, because of problems with dylibs?

MacPorts noreply at macports.org
Sat Jan 6 10:38:49 UTC 2024


#69053: libjxl @0.9.0 does not build on macOS Sonoma, 14.2.1, because of problems
with dylibs?
-----------------------+--------------------
 Reporter:  ballapete  |      Owner:  (none)
     Type:  defect     |     Status:  new
 Priority:  Normal     |  Milestone:
Component:  ports      |    Version:  2.8.1
 Keywords:  sonoma     |       Port:  libjxl
-----------------------+--------------------
 Quite early, at around 70 %, when test utilities were built, the avalanche
 of failures (bug report windows from macOS) goes off:

 {{{
 cd
 /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_graphics_libjxl/libjxl/work/build/lib
 && /opt/local/bin/cmake -E cmake_link_script
 CMakeFiles/jpegli_test.dir/link.txt --verbose=ON
 /usr/bin/clang++ -pipe -Os -stdlib=libc++
 -isysroot/Library/Developer/CommandLineTools/SDKs/MacOSX14.sdk -fno-rtti
 -DNDEBUG -arch x86_64 -isysroot
 /Library/Developer/CommandLineTools/SDKs/MacOSX14.sdk -mmacosx-version-
 min=14.0 -Wl,-search_paths_first -Wl,-headerpad_max_install_names
 -L/opt/local/lib -Wl,-headerpad_max_install_names
 -Wl,-syslibroot,/Library/Developer/CommandLineTools/SDKs/MacOSX14.sdk
 -fPIE -Xlinker -pie CMakeFiles/jpegli_test.dir/extras/jpegli_test.cc.o -o
 tests/jpegli_test  -Wl,-rpath,/opt/local/lib -lgmock libjxl_extras-
 internal.a libjxl_testlib-internal.a
 /opt/local/lib/libgtest_main.1.14.0.dylib
 /opt/local/lib/libgtest.1.14.0.dylib
 /opt/local/lib/giflib5/lib/libgif.dylib /opt/local/lib/libjpeg.dylib
 /opt/local/lib/libpng.dylib /opt/local/lib/libz.dylib /opt/local/lib
 /libOpenEXR-3_1.dylib /opt/local/lib/libOpenEXRUtil-3_1.dylib
 /opt/local/lib/libOpenEXRCore-3_1.dylib /opt/local/lib/libIex-3_1.dylib
 /opt/local/lib/libIlmThread-3_1.dylib /opt/local/lib/libImath-3_1.dylib
 libjxl_extras_nocodec-internal.a libjxl_threads.0.9.0.dylib libjxl-
 internal.a /opt/local/lib/libhwy.dylib /opt/local/lib/libbrotlidec.dylib
 /opt/local/lib/libbrotlicommon.dylib /opt/local/lib/libbrotlienc.dylib
 libjxl_cms.0.9.0.dylib
 cd
 /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_graphics_libjxl/libjxl/work/build/lib
 && /opt/local/bin/cmake -D TEST_TARGET=jpegli_test -D
 TEST_EXECUTABLE=/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_graphics_libjxl/libjxl/work/build/lib/tests/jpegli_test
 -D TEST_EXECUTOR= -D
 TEST_WORKING_DIR=/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_graphics_libjxl/libjxl/work/build/lib
 -D TEST_EXTRA_ARGS= -D TEST_PROPERTIES= -D TEST_PREFIX= -D TEST_SUFFIX= -D
 TEST_FILTER= -D NO_PRETTY_TYPES=FALSE -D NO_PRETTY_VALUES=FALSE -D
 TEST_LIST=jpegli_test_TESTS -D
 CTEST_FILE=/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_graphics_libjxl/libjxl/work/build/lib/jpegli_test[1]_tests.cmake
 -D TEST_DISCOVERY_TIMEOUT=240 -D TEST_XML_OUTPUT_DIR= -P
 /opt/local/share/cmake-3.24/Modules/GoogleTestAddTests.cmake
 dyld[57958]: Library not loaded: @rpath/libjxl_threads.0.9.dylib
   Referenced from: <2E7B5E53-E706-3EB6-A6FF-E0A918BAC6AF>
 /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_graphics_libjxl/libjxl/work/build/lib/tests/jpegli_test
   Reason: tried: '/opt/local/lib/libjxl_threads.0.9.dylib' (no such file),
 '/System/Volumes/Preboot/Cryptexes/OS/opt/local/lib/libjxl_threads.0.9.dylib'
 (no such file), '/opt/local/lib/libjxl_threads.0.9.dylib' (no such file),
 '/System/Volumes/Preboot/Cryptexes/OS/opt/local/lib/libjxl_threads.0.9.dylib'
 (no such file)
 CMake Error at
 /opt/local/share/cmake-3.24/Modules/GoogleTestAddTests.cmake:112
 (message):
   Error running test executable.

     Path:
 '/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_graphics_libjxl/libjxl/work/build/lib/tests/jpegli_test'
     Result: Subprocess aborted
     Output:


 Call Stack (most recent call first):
   /opt/local/share/cmake-3.24/Modules/GoogleTestAddTests.cmake:225
 (gtest_discover_tests_impl)


 make[2]: *** [lib/tests/jpegli_test] Error 1
 make[2]: *** Deleting file `lib/tests/jpegli_test'
 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]: *** [lib/CMakeFiles/jpegli_test.dir/all] Error 2
 make[1]: *** Waiting for unfinished jobs....
 [ 70%] Linking CXX executable benchmark_xl
 }}}

 Which looks as if building in a single thread might be adviced…

-- 
Ticket URL: <https://trac.macports.org/ticket/69053>
MacPorts <https://www.macports.org/>
Ports system for macOS


More information about the macports-tickets mailing list