-
Notifications
You must be signed in to change notification settings - Fork 17
Closed
Labels
bugSomething isn't workingSomething isn't working
Description
When attempting to build the quickfix-ffi crate on Arch Linux using cargo check, I encountered a build failure with the following error:
cargo check
warning: unused manifest key: target.x86_64-pc-windows-gnu.linker
warning: unused manifest key: target.x86_64-pc-windows-gnu.rustflags
Compiling quickfix-ffi v0.1.6
error: failed to run custom build command for `quickfix-ffi v0.1.6`
Caused by:
process didn't exit successfully: `***/target/debug/build/quickfix-ffi-08f6c8d4e992209f/build-script-build` (exit status: 101)
--- stdout
cargo:rerun-if-changed=./CMakeLists.txt
cargo:rerun-if-changed=./libquickfix
cargo:rerun-if-changed=./quickfix-bind
CMAKE_TOOLCHAIN_FILE_x86_64-unknown-linux-gnu = None
CMAKE_TOOLCHAIN_FILE_x86_64_unknown_linux_gnu = None
HOST_CMAKE_TOOLCHAIN_FILE = None
CMAKE_TOOLCHAIN_FILE = None
CMAKE_GENERATOR_x86_64-unknown-linux-gnu = None
CMAKE_GENERATOR_x86_64_unknown_linux_gnu = None
HOST_CMAKE_GENERATOR = None
CMAKE_GENERATOR = None
CMAKE_PREFIX_PATH_x86_64-unknown-linux-gnu = None
CMAKE_PREFIX_PATH_x86_64_unknown_linux_gnu = None
HOST_CMAKE_PREFIX_PATH = None
CMAKE_PREFIX_PATH = None
CMAKE_x86_64-unknown-linux-gnu = None
CMAKE_x86_64_unknown_linux_gnu = None
HOST_CMAKE = None
CMAKE = None
running: cd "***target/debug/build/quickfix-ffi-acfbf5cc0a300cc2/out/build" && CMAKE_PREFIX_PATH="" "cmake" "***/target/debug/build/quickfix-ffi-acfbf5cc0a300cc2/out/libquickfix" "-DHAVE_SSL=OFF" "-DHAVE_MYSQL=OFF" "-DHAVE_POSTGRESQL=OFF" "-DHAVE_PYTHON=OFF" "-DHAVE_PYTHON3=OFF" "-DQUICKFIX_SHARED_LIBS=OFF" "-DQUICKFIX_EXAMPLES=OFF" "-DQUICKFIX_TESTS=OFF" "-DCMAKE_INSTALL_PREFIX=***/target/debug/build/quickfix-ffi-acfbf5cc0a300cc2/out" "-DCMAKE_C_FLAGS= -ffunction-sections -fdata-sections -fPIC -m64" "-DCMAKE_C_COMPILER=/usr/bin/cc" "-DCMAKE_CXX_FLAGS= -ffunction-sections -fdata-sections -fPIC -m64" "-DCMAKE_CXX_COMPILER=/usr/bin/c++" "-DCMAKE_ASM_FLAGS= -ffunction-sections -fdata-sections -fPIC -m64" "-DCMAKE_ASM_COMPILER=/usr/bin/cc" "-DCMAKE_BUILD_TYPE=RelWithDebInfo"
-- Configuring incomplete, errors occurred!
--- stderr
CMake Error at CMakeLists.txt:1 (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.
thread 'main' panicked at ***/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/cmake-0.1.54/src/lib.rs:1119: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
Environment
Operating System: Arch Linux
Rust Version: 1.86
CMake Version: 4.0.1
quickfix-ffi Version: 0.1.6
The issue seems to be regarding
cmake_minimum_required(VERSION 3.0 FATAL_ERROR)
in libquickfix/CmakeLists.txt
Metadata
Metadata
Assignees
Labels
bugSomething isn't workingSomething isn't working