← All tasks
cpplibjxl/libjxl #3830Not a task: already works

[Request] Please provide better error messages in the cmake-system as to what is missing

envgap__libjxl__libjxl-3830

01 / FAILURE SIGNATURE

As reported upstream

Ok - I get this error:
Not a benchmark task.
  • The project already builds and runs before the fix, so there is nothing to repair.

02 / ENVIRONMENT RECIPE

Base commit
15a4272e0bd733d41be198b1372efd09e81264ac
Manifest
third_party/CMakeLists.txt
Reproduce
Awaiting issue-specific recipe
Run under trace
Awaiting a meaningful runtime command

03 / ORIGINAL ISSUE TEXT

libjxl/libjxl #3830 · read the original issue
I just downloaded the latest libjxl release from here.



Now I run cmake:



    cmake -DCMAKE_INSTALL_PREFIX=/usr .



And I get this result:



    -- The C compiler identification is GNU 15.0.0

    -- The CXX compiler identification is GNU 15.0.0

    -- Detecting C compiler ABI info

    -- Detecting C compiler ABI info - done

    -- Check for working C compiler: /usr/bin/cc - 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/c++ - 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 "0.29.2")

    -- Performing Test JXL_HWY_DISABLED_TARGETS_FORCED

    -- Performing Test JXL_HWY_DISABLED_TARGETS_FORCED - Failed

    -- libjpeg-turbo submodule is absent; not enabling jpegli

    -- 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/lib/cmake/GTest/GTestConfig.cmake (found version "1.14.0")

    -- Found HWY: /usr/lib/libhwy.so (found suitable version "1.2.0", 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





Ok - I get this error:



    CMake Error at third_party/CMakeLists.txt:100 (message):

      Please run /depot/jjj/libjxl-0.11.0/deps.sh to fetch the build

      dependencies.





    -- Configuring incomplete, errors occurred!



So what is the problem?



There are two problems.



The smaller one is the assumption that I want to call deps.sh. I don't.

I want to manage ALL dependencies on my system on my own. But

this is the smaller problem.



The larger problem is ... the above does not tell me what is missing.



It claims it is all fine:



    -- Found GTest: /usr/lib/cmake/GTest/GTestConfig.cmake (found version "1.14.0")

    -- Found HWY: /usr/lib/libhwy.so (found suitable version "1.2.0", 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



But, evidently, something must be wrong, yet cmake swallows that information.



Could the cmake-system be adapted to show WHAT exactly is missing? I compile everything

from source via ruby, so it is trivial to add missing dependency, but in order for this to work

I need to know what the problem is. Right now I am not told what error exists.



Perhaps it is in regards to brotli, but even then I think the cmake system should notify the

user about this issue.



Either way thank you for reading and perhaps considering the above.
Continue on GitHub ↗

04 / LABELS

Labels from the report text only; not yet run

No supported category has been assigned.

Label rules and the text that matched
[]