geos icon indicating copy to clipboard operation
geos copied to clipboard

Building with cmake 4.0 fails

Open jayvdb opened this issue 8 months ago • 6 comments

cmake 4.0 breaks compatibility with 3.5 https://cmake.org/cmake/help/latest/release/4.0.html#deprecated-and-removed-features , and the result is:

error: failed to run custom build command for `geos-src v0.2.3 (/Users/jayvdb/rust/geos/sys/geos-src)`

Caused by:
  process didn't exit successfully: `/Users/jayvdb/rust/geos/target/debug/build/geos-src-4dc15ff90bdb47f4/build-script-build` (exit status: 101)
  --- stdout
  cargo:rerun-if-changed=build.rs
  CMAKE_TOOLCHAIN_FILE_aarch64-apple-darwin = None
  CMAKE_TOOLCHAIN_FILE_aarch64_apple_darwin = None
  HOST_CMAKE_TOOLCHAIN_FILE = None
  CMAKE_TOOLCHAIN_FILE = None
  CMAKE_GENERATOR_aarch64-apple-darwin = None
  CMAKE_GENERATOR_aarch64_apple_darwin = None
  HOST_CMAKE_GENERATOR = None
  CMAKE_GENERATOR = None
  CMAKE_PREFIX_PATH_aarch64-apple-darwin = None
  CMAKE_PREFIX_PATH_aarch64_apple_darwin = None
  HOST_CMAKE_PREFIX_PATH = None
  CMAKE_PREFIX_PATH = None
  CMAKE_aarch64-apple-darwin = None
  CMAKE_aarch64_apple_darwin = None
  HOST_CMAKE = None
  CMAKE = None
  running: cd "/Users/jayvdb/rust/geos/target/debug/build/geos-src-43862717ccb6f96a/out/build" && CMAKE_PREFIX_PATH="" "cmake" "/Users/jayvdb/rust/geos/sys/geos-src/source" "-DCMAKE_OSX_ARCHITECTURES=arm64" "-DBUILD_BENCHMARKS=OFF" "-DBUILD_TESTING=OFF" "-DGEOS_ENABLE_TESTS=OFF" "-DBUILD_DOCUMENTATION=OFF" "-DCMAKE_INSTALL_LIBDIR=lib" "-DBUILD_SHARED_LIBS=OFF" "-DGEOS_BUILD_STATIC=ON" "-DGEOS_BUILD_SHARED=OFF" "-DCMAKE_INSTALL_PREFIX=/Users/jayvdb/rust/geos/target/debug/build/geos-src-43862717ccb6f96a/out" "-DCMAKE_C_FLAGS= -ffunction-sections -fdata-sections -fPIC --target=arm64-apple-darwin -mmacosx-version-min=15.4" "-DCMAKE_C_COMPILER=/usr/bin/cc" "-DCMAKE_CXX_FLAGS= -ffunction-sections -fdata-sections -fPIC --target=arm64-apple-darwin -mmacosx-version-min=15.4" "-DCMAKE_CXX_COMPILER=/usr/bin/c++" "-DCMAKE_ASM_FLAGS= -ffunction-sections -fdata-sections -fPIC --target=arm64-apple-darwin -mmacosx-version-min=15.4" "-DCMAKE_ASM_COMPILER=/usr/bin/cc" "-DCMAKE_BUILD_TYPE=Release"
  -- The C compiler identification is AppleClang 17.0.0.17000013
  -- The CXX compiler identification is AppleClang 17.0.0.17000013
  -- 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
  -- GEOS: Version 3.12.1
  -- GEOS: C API Version 1.18.1
  -- GEOS: JTS port 1.18.0
  -- GEOS: Build type: Release
  -- Configuring incomplete, errors occurred!

  --- stderr
  CMake Error at cmake/Ccache.cmake:10 (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.
  Call Stack (most recent call first):
    CMakeLists.txt:130 (include)



  thread 'main' panicked at /Users/jayvdb/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/cmake-0.1.50/src/lib.rs:1098:5:

  command did not execute successfully, got: exit status: 1

  build script failed, must exit now
  note: run with `RUST_BACKTRACE=1` environment variable to display a backtrace

jayvdb avatar Apr 01 '25 20:04 jayvdb