[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 11:08:36 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
Resolution: | Keywords: sonoma
Port: libjxl |
------------------------+--------------------
Comment (by ballapete):
Performing `port -vds build libjxl +tests build.jobs=1` the build process
fails at 60 %:
{{{
[ 60%] Linking CXX executable tests/codec_test
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/codec_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/codec_test.dir/extras/codec_test.cc.o -o
tests/codec_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=codec_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/codec_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=codec_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/codec_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[28400]: Library not loaded: @rpath/libjxl_threads.0.9.dylib
Referenced from: <1A3C8BB5-082D-3029-9312-3C1729FE19BE>
/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_graphics_libjxl/libjxl/work/build/lib/tests/codec_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/codec_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/codec_test] Error 1
make[2]: *** Deleting file `lib/tests/codec_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/codec_test.dir/all] Error 2
make[1]: 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: *** [all] Error 2
make: Leaving directory
`/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_graphics_libjxl/libjxl/work/build'
Command failed: cd
"/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_graphics_libjxl/libjxl/work/build"
&& /usr/bin/make -j1 -w all VERBOSE=ON
}}}
Actually the directory with `codec_test` is empty:
{{{
pete 197 /\ ls -l
/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_graphics_libjxl/libjxl/work/build/lib/tests
total 0
}}}
There seems to be a path to the built before dylibs is missing…
--
Ticket URL: <https://trac.macports.org/ticket/69053#comment:2>
MacPorts <https://www.macports.org/>
Ports system for macOS
More information about the macports-tickets
mailing list