0.9.0: cmake fails because it wants to use bubdled libraries
envgap__libjxl__libjxl-3069
01 / FAILURE SIGNATURE
As reported upstream
CMake Error: File /home/tkloczko/rpmbuild/BUILD/libjxl-0.9.0/third_party/libjpeg-turbo/jconfig.h.in does not exist.
Not a benchmark task.
- The project already builds and runs before the fix, so there is nothing to repair.
02 / ENVIRONMENT RECIPE
- Base commit
88671ac539ebfcdbfea35eef7e28ebad11a12724- Manifest
CMakeLists.txt- Reproduce
Awaiting issue-specific recipe- Run under trace
Awaiting a meaningful runtime command
03 / ORIGINAL ISSUE TEXT
libjxl/libjxl #3069 · read the original issue
**Describe the bug** Looks like just released 0.9.0 no longer wants to use system libraries and wants to use ONLY bundled libraries. **To Reproduce** Build 0.9.0 out of autogenerated from git tag tar ball which has no included git subrepos source code in third_party/ **Expected behavior** Up to now it was possible to build libjxl against system installed libraries. Looks like new version dropped that behaviour. All used libraries have proper pkgconfig interface which allows detect and use system installed libraries. **Screenshots** <details> <summary>build output</summary> ```console + cd libjxl-0.9.0 + rm -rf /home/tkloczko/rpmbuild/BUILD/libjxl-0.9.0/SPECPARTS + /usr/bin/mkdir -p /home/tkloczko/rpmbuild/BUILD/libjxl-0.9.0/SPECPARTS + /usr/bin/chmod -Rf a+rX,u+w,g-w,o-w . + RPM_EC=0 ++ jobs -p + exit 0 Executing(%build): /bin/sh -e /var/tmp/rpm-tmp.FdDGVM + umask 022 + cd /home/tkloczko/rpmbuild/BUILD + ASMFLAGS='-O2 -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -fno-omit-frame-pointer -mno-omit-leaf-frame-pointer -m64 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -fdata-sections -ffunction-sections -flto=auto -flto-partition=none' + CFLAGS='-O2 -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -fno-omit-frame-pointer -mno-omit-leaf-frame-pointer -m64 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -fdata-sections -ffunction-sections -flto=auto -flto-partition=none' + CXXFLAGS='-O2 -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -fno-omit-frame-pointer -mno-omit-leaf-frame-pointer -m64 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -fdata-sections -ffunction-sections -flto=auto -flto-partition=none -fno-rtti -fno-exceptions' + FFLAGS='-O2 -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -fno-omit-frame-pointer -mno-omit-leaf-frame-pointer -m64 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -fdata-sections -ffunction-sections -flto=auto -flto-partition=none -I/usr/lib64/gfortran/modules' + FCFLAGS='-O2 -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -fno-omit-frame-pointer -mno-omit-leaf-frame-pointer -m64 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -fdata-sections -ffunction-sections -flto=auto -flto-partition=none -I/usr/lib64/gfortran/modules' + LDFLAGS='-Wl,--gc-sections -Wl,--as-needed -flto=auto -flto-partition=none -fuse-linker-plugin -Wl,-z,now -specs=/usr/lib/rpm/redhat/redhat-hardened-ld -Wl,--build-id=sha1' + RUSTFLAGS='-C codegen-units=1 -C debuginfo=2 -C opt-level=2 -C link-arg=-fdata-sections -C link-arg=-ffunction-sections -C link-arg=-Wl,--as-needed -C link-arg=-Wl,-z,now -C link-arg=-Wl,-z,relro --cap-lints=warn' + VALAFLAGS=-g + CC=/usr/bin/gcc + CXX=/usr/bin/g++ + FC=/usr/bin/gfortran + AR=/usr/bin/gcc-ar + NM=/usr/bin/gcc-nm + RANLIB=/usr/bin/gcc-ranlib + export ASMFLAGS CFLAGS CXXFLAGS FFLAGS FCFLAGS LDFLAGS VALAFLAGS CC CXX FC AR NM RANLIB RUSTFLAGS VALAFLAGS + cd libjxl-0.9.0 + ASMFLAGS='-O2 -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -fno-omit-frame-pointer -mno-omit-leaf-frame-pointer -m64 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -fdata-sections -ffunction-sections -flto=auto -flto-partition=none' + CFLAGS='-O2 -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -fno-omit-frame-pointer -mno-omit-leaf-frame-pointer -m64 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -fdata-sections -ffunction-sections -flto=auto -flto-partition=none' + CXXFLAGS='-O2 -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -fno-omit-frame-pointer -mno-omit-leaf-frame-pointer -m64 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -fdata-sections -ffunction-sections -flto=auto -flto-partition=none -fno-rtti -fno-exceptions' + FFLAGS='-O2 -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -fno-omit-frame-pointer -mno-omit-leaf-frame-pointer -m64 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -fdata-sections -ffunction-sections -flto=auto -flto-partition=none -I/usr/lib64/gfortran/modules' + FCFLAGS='-O2 -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -fno-omit-frame-pointer -mno-omit-leaf-frame-pointer -m64 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -fdata-sections -ffunction-sections -flto=auto -flto-partition=none -I/usr/lib64/gfortran/modules' + LDFLAGS='-Wl,--gc-sections -Wl,--as-needed -flto=auto -flto-partition=none -fuse-linker-plugin -Wl,-z,now -specs=/usr/lib/rpm/redhat/redhat-hardened-ld -Wl,--build-id=sha1' + RUSTFLAGS='-C codegen-units=1 -C debuginfo=2 -C opt-level=2 -C link-arg=-fdata-sections -C link-arg=-ffunction-sections -C link-arg=-Wl,--as-needed -C link-arg=-Wl,-z,now -C link-arg=-Wl,-z,relro --cap-lints=warn' + VALAFLAGS=-g + CC=/usr/bin/gcc + CXX=/usr/bin/g++ + FC=/usr/bin/gfortran + AR=/usr/bin/gcc-ar + NM=/usr/bin/gcc-nm + RANLIB=/usr/bin/gcc-ranlib + export ASMFLAGS CFLAGS CXXFLAGS FFLAGS FCFLAGS LDFLAGS VALAFLAGS CC CXX FC AR NM RANLIB RUSTFLAGS VALAFLAGS + /usr/bin/cmake -B x86_64-redhat-linux-gnu -D BUILD_SHARED_LIBS=ON -D CMAKE_AR=/usr/bin/gcc-ar -D CMAKE_BUILD_TYPE=RelWithDebInfo -D CMAKE_C_FLAGS_RELEASE=-DNDEBUG -D CMAKE_CXX_FLAGS_RELEASE=-DNDEBUG -D CMAKE_Fortran_FLAGS_RELEASE=-DNDEBUG -D CMAKE_INSTALL_PREFIX=/usr -D CMAKE_NM=/usr/bin/gcc-nm -D CMAKE_RANLIB=/usr/bin/gcc-ranlib -D CMAKE_VERBOSE_MAKEFILE=ON -D INCLUDE_INSTALL_DIR=/usr/include -D LIB_INSTALL_DIR=/usr/lib64 -D LIB_SUFFIX=64 -D SHARE_INSTALL_PREFIX=/usr/share -D SYSCONF_INSTALL_DIR=/etc -S . -D BUILD_SHARED_LIBS=ON -D BUILD_TESTING=ON -D BUNDLE_GFLAGS_DEFAULT=OFF -D BUNDLE_LIBPNG_DEFAULT=OFF -D INSTALL_GTEST=OFF -D JPEGXL_BUNDLE_LIBPNG=OFF -D JPEGXL_BUNDLE_SKCMS=ON -D JPEGXL_ENABLE_BENCHMARK=OFF -D JPEGXL_ENABLE_BOXES=ON -D JPEGXL_ENABLE_COVERAGE=OFF -D JPEGXL_ENABLE_DEVTOOLS=ON -D JPEGXL_ENABLE_DOXYGEN=ON -D JPEGXL_ENABLE_EXAMPLES=ON -D JPEGXL_ENABLE_JNI=ON -D JPEGXL_ENABLE_JPEGLI=ON -D JPEGXL_ENABLE_JPEGLI_LIBJPEG=ON -D JPEGXL_ENABLE_MANPAGES=ON -D JPEGXL_ENABLE_OPENEXR=ON -D JPEGXL_ENABLE_PLUGINS=OFF -D JPEGXL_ENABLE_PROFILER=OFF -D JPEGXL_ENABLE_SIZELESS_VECTORS=OFF -D JPEGXL_ENABLE_SJPEG=OFF -D JPEGXL_ENABLE_SKCMS=OFF -D JPEGXL_ENABLE_TCMALLOC=ON -D JPEGXL_ENABLE_TOOLS=ON -D JPEGXL_ENABLE_TRANSCODE_JPEG=ON -D JPEGXL_ENABLE_VIEWERS=OFF -D JPEGXL_FORCE_SYSTEM_BROTLI=ON -D JPEGXL_FORCE_SYSTEM_GTEST=ON -D JPEGXL_FORCE_SYSTEM_HWY=ON -D JPEGXL_FORCE_SYSTEM_LCMS2=ON -D JPEGXL_WARNINGS_AS_ERRORS=OFF -- The C compiler identification is GNU 13.2.1 -- The CXX compiler identification is GNU 13.2.1 -- Detecting C compiler ABI info -- Detecting C compiler ABI info - done -- Check for working C compiler: /usr/bin/gcc - skipped -- Detecting C compile features -- Detecting C compile features - done -- Detecting CXX compiler ABI info -- Detecting CXX compiler ABI info - done -- Check for working CXX compiler: /usr/bin/g++ - skipped -- Detecting CXX compile features -- Detecting CXX compile features - done -- CMAKE_SYSTEM_PROCESSOR is x86_64 -- Performing Test CXX_FUZZERS_SUPPORTED -- Performing Test CXX_FUZZERS_SUPPORTED - Failed -- Performing Test CXX_MACRO_PREFIX_MAP -- Performing Test CXX_MACRO_PREFIX_MAP - Success -- Performing Test CXX_NO_RTTI_SUPPORTED -- Performing Test CXX_NO_RTTI_SUPPORTED - Success -- Found PkgConfig: /usr/bin/pkg-config (found version "2.1.0") -- Performing Test JXL_HWY_DISABLED_TARGETS_FORCED -- Performing Test JXL_HWY_DISABLED_TARGETS_FORCED - Failed -- Compiled IDs C:GNU, C++:GNU -- Disabled AVX512 (set JPEGXL_ENABLE_AVX512 to enable it) -- Disabled AVX512_SPR (set JPEGXL_ENABLE_AVX512_SPR to enable it) -- Disabled AVX512_ZEN4 (set JPEGXL_ENABLE_AVX512_ZEN4 to enable it) -- Performing Test CMAKE_HAVE_LIBC_PTHREAD -- Performing Test CMAKE_HAVE_LIBC_PTHREAD - Success -- Found Threads: TRUE -- Performing Test ATOMICS_LOCK_FREE_INSTRUCTIONS -- Performing Test ATOMICS_LOCK_FREE_INSTRUCTIONS - Success -- Found GTest: /usr/lib64/cmake/GTest/GTestConfig.cmake (found version "1.14.0") -- Found HWY: /usr/lib64/libhwy.so (found suitable version "1.0.7", minimum required is "1.0.7") -- Checking for module 'libbrotlicommon' -- Found libbrotlicommon, version 1.1.0 -- Checking for module 'libbrotlienc' -- Found libbrotlienc, version 1.1.0 -- Checking for module 'libbrotlidec' -- Found libbrotlidec, version 1.1.0 -- Found Brotli: /usr/include -- Found LCMS2: /usr/lib64/liblcms2.so (found suitable version "2.15", minimum required is "2.12") -- Found PNG: /usr/lib64/libpng.so (found version "1.6.40") -- Performing Test COMPILER_HAS_HIDDEN_VISIBILITY -- Performing Test COMPILER_HAS_HIDDEN_VISIBILITY - Success -- Performing Test COMPILER_HAS_HIDDEN_INLINE_VISIBILITY -- Performing Test COMPILER_HAS_HIDDEN_INLINE_VISIBILITY - Success -- Performing Test COMPILER_HAS_DEPRECATED_ATTR -- Performing Test COMPILER_HAS_DEPRECATED_ATTR - Success -- Performing Test LINKER_SUPPORT_EXCLUDE_LIBS -- Performing Test LINKER_SUPPORT_EXCLUDE_LIBS - Success -- Checking for module 'libtcmalloc_minimal' -- Found libtcmalloc_minimal, version 2.13 -- Found GIF: /usr/lib64/libgif.so (found suitable version "5.2.1", minimum required is "5.1") -- Found JPEG: /usr/lib64/libjpeg.so (found version "62") -- Checking for module 'OpenEXR' -- Found OpenEXR, version 3.2.1 CMake Error: File /home/tkloczko/rpmbuild/BUILD/libjxl-0.9.0/third_party/libjpeg-turbo/jconfig.h.in does not exist. CMake Error at lib/jpegli.cmake:26 (configure_file): configure_file Problem configuring file Call Stack (most recent call first): lib/CMakeLists.txt:163 (include) CMake Error: File /home/tkloczko/rpmbuild/BUILD/libjxl-0.9.0/third_party/libjpeg-turbo/jpeglib.h does not exist. CMake Error at lib/jpegli.cmake:28 (configure_file): configure_file Problem configuring file Call Stack (most recent call first): lib/CMakeLists.txt:163 (include) CMake Error: File /home/tkloczko/rpmbuild/BUILD/libjxl-0.9.0/third_party/libjpeg-turbo/jmorecfg.h does not exist. CMake Error at lib/jpegli.cmake:30 (configure_file): configure_file Problem configuring file Call Stack (most recent call first): lib/CMakeLists.txt:163 (include) -- Found Doxygen: /usr/bin/doxygen (found version "1.9.8") found components: doxygen dot CMake Warning at CMakeLists.txt:364 (message): sphinx-build not found, skipping rtd documentation -- Found Python3: /usr/bin/python3.8 (found version "3.8.18") found components: Interpreter -- Building with JPEGXL_VERSION=(unknown) -- Building tools: cjxl;djxl;jxlinfo;cjpegli;djpegli;butteraugli_main;decode_and_encode;display_to_hlg;exr_to_pq;pq_to_hlg;render_hlg;local_tone_map;tone_map;texture_to_cube;generate_lut_template;ssimulacra_main;ssimulacra2;xyb_range;jxl_from_tree;djxl_fuzzer_corpus;jpegli_dec_fuzzer_corpus -- Configuring incomplete, errors occurred! ``` </details> **Environment** - OS: Linux x86/64 - Compiler version: gcc 13.x - CPU type: x86_64 - cjxl/djxl version string: 0.9.0
04 / LABELS
Labels from the report text only; not yet run
No supported category has been assigned.
Label rules and the text that matched
[]