-
Notifications
You must be signed in to change notification settings - Fork 42
Open
Description
Describe the bug
It says that build can't be done because of removed compatibility with old versions of cmake. It expects that cmake version should be no less than 3.5.
Error happened at third_party/sjpeg/CMakeLists.txt:15, that contains:
cmake_minimum_required(VERSION 2.8.7)
To Reproduce
Steps to reproduce the behavior:
-
Cloning repository
git clone https://github.com/google/jpegli.git -
Instal requirements:
dnf install ninja-build
pip install cmake -
Executing
./deps.sh -
Executing
./ci.sh release
Expected behavior
I expect that build was successful and binaries were compiled. Also I expect to be able to do sudo make install.
Build log
+ cmd_release
+ CMAKE_BUILD_TYPE=Release
+ strip_dead_code
+ [[ '' == wasm* ]]
+ CMAKE_CXX_FLAGS+=' -ffunction-sections -fdata-sections'
+ CMAKE_C_FLAGS+=' -ffunction-sections -fdata-sections'
+ [[ Linux == \D\a\r\w\i\n ]]
+ CMAKE_EXE_LINKER_FLAGS+=' -Wl,--gc-sections -Wl,--no-export-dynamic'
+ CMAKE_SHARED_LINKER_FLAGS+=' -Wl,--gc-sections -Wl,--no-export-dynamic'
+ cmake_configure
+ export_env
+ [[ '' == *mingw32 ]]
++ clang -print-prog-name=llvm-symbolizer
+ LLVM_SYMBOLIZER=/usr/lib64/llvm20/bin/llvm-symbolizer
+ [[ -n /usr/lib64/llvm20/bin/llvm-symbolizer ]]
+ export ASAN_SYMBOLIZER_PATH=/usr/lib64/llvm20/bin/llvm-symbolizer
+ ASAN_SYMBOLIZER_PATH=/usr/lib64/llvm20/bin/llvm-symbolizer
+ export MSAN_SYMBOLIZER_PATH=/usr/lib64/llvm20/bin/llvm-symbolizer
+ MSAN_SYMBOLIZER_PATH=/usr/lib64/llvm20/bin/llvm-symbolizer
+ export UBSAN_SYMBOLIZER_PATH=/usr/lib64/llvm20/bin/llvm-symbolizer
+ UBSAN_SYMBOLIZER_PATH=/usr/lib64/llvm20/bin/llvm-symbolizer
+ [[ 0 == 1 ]]
+ args=('-B/home/mfg637/projects/jpegli/build' '-H/home/mfg637/projects/jpegli' '-DCMAKE_BUILD_TYPE=Release' '-G' 'Ninja' '-DCMAKE_CXX_FLAGS= -ffunction-sections -fdata-sections' '-DCMAKE_C_FLAGS= -ffunction-sections -fdata-sections' '-DCMAKE_EXE_LINKER_FLAGS= -Wl,--gc-sections -Wl,--no-export-dynamic' '-DCMAKE_MODULE_LINKER_FLAGS=' '-DCMAKE_SHARED_LINKER_FLAGS= -Wl,--gc-sections -Wl,--no-export-dynamic' '-DJPEGXL_VERSION=' '-DSANITIZER=none' '-DJPEGXL_ENABLE_VIEWERS=ON' '-DJPEGXL_ENABLE_PLUGINS=ON' '-DJPEGXL_ENABLE_DEVTOOLS=ON' '-DJPEGXL_FUZZER_LINK_FLAGS=-fsanitize=fuzzer')
+ local args
+ [[ '' != *mingw32 ]]
+ args+=(-DJPEGXL_WARNINGS_AS_ERRORS=ON)
+ [[ -n '' ]]
+ [[ -n '' ]]
+ [[ -n '' ]]
+ [[ -n '' ]]
+ [[ -n '' ]]
+ [[ -n '' ]]
+ [[ -n '' ]]
+ [[ '' == wasm* ]]
+ cmake -B/home/mfg637/projects/jpegli/build -H/home/mfg637/projects/jpegli -DCMAKE_BUILD_TYPE=Release -G Ninja '-DCMAKE_CXX_FLAGS= -ffunction-sections -fdata-sections' '-DCMAKE_C_FLAGS= -ffunction-sections -fdata-sections' '-DCMAKE_EXE_LINKER_FLAGS= -Wl,--gc-sections -Wl,--no-export-dynamic' -DCMAKE_MODULE_LINKER_FLAGS= '-DCMAKE_SHARED_LINKER_FLAGS= -Wl,--gc-sections -Wl,--no-export-dynamic' -DJPEGXL_VERSION= -DSANITIZER=none -DJPEGXL_ENABLE_VIEWERS=ON -DJPEGXL_ENABLE_PLUGINS=ON -DJPEGXL_ENABLE_DEVTOOLS=ON -DJPEGXL_FUZZER_LINK_FLAGS=-fsanitize=fuzzer -DJPEGXL_WARNINGS_AS_ERRORS=ON
-- The C compiler identification is Clang 20.1.3
-- The CXX compiler identification is Clang 20.1.3
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Check for working C compiler: /usr/bin/clang - 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/clang++ - skipped
-- Detecting CXX compile features
-- Detecting CXX compile features - done
-- CMAKE_SYSTEM_PROCESSOR is x86_64
-- tcmalloc version -- tcmalloc 2.8.0 disabled due to https://github.com/gperftools/gperftools/issues/1204
-- Compiled IDs C:Clang, C++:Clang
-- 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)
-- CXX_STANDARD is 17
CMake Deprecation Warning at third_party/googletest/CMakeLists.txt:4 (cmake_minimum_required):
Compatibility with CMake < 3.10 will be removed from a future version of
CMake.
Update the VERSION argument <min> value. Or, use the <min>...<max> syntax
to tell CMake that the project requires at least <min> but has been updated
to work with policies introduced by <max> or earlier.
CMake Deprecation Warning at third_party/googletest/googlemock/CMakeLists.txt:39 (cmake_minimum_required):
Compatibility with CMake < 3.10 will be removed from a future version of
CMake.
Update the VERSION argument <min> value. Or, use the <min>...<max> syntax
to tell CMake that the project requires at least <min> but has been updated
to work with policies introduced by <max> or earlier.
CMake Deprecation Warning at third_party/googletest/googletest/CMakeLists.txt:49 (cmake_minimum_required):
Compatibility with CMake < 3.10 will be removed from a future version of
CMake.
Update the VERSION argument <min> value. Or, use the <min>...<max> syntax
to tell CMake that the project requires at least <min> but has been updated
to work with policies introduced by <max> or earlier.
-- Found Python: /home/mfg637/.pyenv/shims/python3.13 (found version "3.13.3") found components: Interpreter
CMake Deprecation Warning at third_party/highway/CMakeLists.txt:28 (cmake_policy):
The OLD behavior for policy CMP0111 will be removed from a future version
of CMake.
The cmake-policies(7) manual explains that the OLD behaviors of all
policies are deprecated and that a policy should be set to OLD only under
specific short-term circumstances. Projects should be ported to the NEW
behavior and not rely on setting a policy to OLD.
-- Found ZLIB: /usr/lib64/libz.so (found version "1.3.1")
CMake Error at third_party/sjpeg/CMakeLists.txt:15 (cmake_minimum_required):
Compatibility with CMake < 3.5 has been removed from CMake.
Update the VERSION argument <min> value. Or, use the <min>...<max> syntax
to tell CMake that the project requires at least <min> but has been updated
to work with policies introduced by <max> or earlier.
Or, add -DCMAKE_POLICY_VERSION_MINIMUM=3.5 to try configuring anyway.
-- Configuring incomplete, errors occurred!
+ retcode=1
Environment
- OS: Fedora Linux 42 (Linux 6.14.4-300.fc42)
- Compiler version:
cmake version 4.0.0
clang version 20.1.3 (Fedora 20.1.3-1.fc42)
gcc (GCC) 15.1.1 20250425 (Red Hat 15.1.1-1) - CPU type: x86_64
- version: git main (bc19ca2)
Additional context
-
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels