Skip to content

CMAKE compile error #2809

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
HawkinsTheWizard opened this issue May 26, 2025 · 1 comment
Closed

CMAKE compile error #2809

HawkinsTheWizard opened this issue May 26, 2025 · 1 comment
Labels

Comments

@HawkinsTheWizard
Copy link

CMAKE on archlinux

`==> Making package: gridcoinresearch 5.4.9.0-1 (Mon 26 May 2025 17:56:53)
==> Checking runtime dependencies...
==> Checking buildtime dependencies...
==> Retrieving sources...
-> Found gridcoinresearch-5.4.9.0.tar.gz
==> Validating source files with sha256sums...
gridcoinresearch-5.4.9.0.tar.gz ... Passed
==> Extracting sources...
-> Extracting gridcoinresearch-5.4.9.0.tar.gz with bsdtar
==> Removing existing $pkgdir/ directory...
==> Starting build()...
-- The C compiler identification is GNU 15.1.1
-- The CXX compiler identification is GNU 15.1.1
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Check for working C compiler: /usr/lib/ccache/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/lib/ccache/bin/c++ - skipped
-- Detecting CXX compile features
-- Detecting CXX compile features - done
-- Performing Test HAS_SSE41
-- Performing Test HAS_SSE41 - Success
-- Performing Test HAS_AVX2
-- Performing Test HAS_AVX2 - Success
-- Performing Test HAS_X86_SHANI
-- Performing Test HAS_X86_SHANI - Failed
-- Performing Test HAS_ARM_SHANI
-- Performing Test HAS_ARM_SHANI - Failed
-- Looking for strerror_r
-- Looking for strerror_r - found
-- Performing Test HAS_WERROR
-- Performing Test HAS_WERROR - Success
-- Performing Test STRERROR_R_CHAR_P
-- Performing Test STRERROR_R_CHAR_P - Failed
-- Found PkgConfig: /usr/bin/pkg-config (found version "2.4.3")
-- Found Git: /usr/bin/git (found version "2.49.0")
-- Performing Test ATOMICS_LOCK_FREE_INSTRUCTIONS
-- Performing Test ATOMICS_LOCK_FREE_INSTRUCTIONS - Success
-- Performing Test CMAKE_HAVE_LIBC_PTHREAD
-- Performing Test CMAKE_HAVE_LIBC_PTHREAD - Success
-- Found Threads: TRUE
-- Found Boost: /usr/lib/cmake/Boost-1.88.0/BoostConfig.cmake (found suitable version "1.88.0", minimum required is "1.63.0")
-- Found OpenSSL: /usr/lib/libcrypto.so (found version "3.5.0")
-- Found CURL: /usr/lib/libcurl.so (found version "8.13.0")
-- The ASM compiler identification is GNU
-- Found assembler: /usr/lib/ccache/bin/cc
-- Performing Test RT_BUILT_IN
-- Performing Test RT_BUILT_IN - Success
-- Looking for byteswap.h
-- Looking for byteswap.h - found
-- Looking for endian.h
-- Looking for endian.h - found
-- Looking for sys/endian.h
-- Looking for sys/endian.h - not found
-- Looking for sys/prctl.h
-- Looking for sys/prctl.h - found
-- Looking for fork
-- Looking for fork - found
-- Looking for pipe2
-- Looking for pipe2 - not found
-- Looking for setsid
-- Looking for setsid - found
-- Looking for le16toh
-- Looking for le16toh - found
-- Looking for le32toh
-- Looking for le32toh - found
-- Looking for le64toh
-- Looking for le64toh - found
-- Looking for htole16
-- Looking for htole16 - found
-- Looking for htole32
-- Looking for htole32 - found
-- Looking for htole64
-- Looking for htole64 - found
-- Looking for be16toh
-- Looking for be16toh - found
-- Looking for be32toh
-- Looking for be32toh - found
-- Looking for be64toh
-- Looking for be64toh - found
-- Looking for htobe16
-- Looking for htobe16 - found
-- Looking for htobe32
-- Looking for htobe32 - found
-- Looking for htobe64
-- Looking for htobe64 - found
-- Looking for bswap_16
-- Looking for bswap_16 - found
-- Looking for bswap_32
-- Looking for bswap_32 - found
-- Looking for bswap_64
-- Looking for bswap_64 - found
-- Looking for __builtin_clzl
-- Looking for __builtin_clzl - not found
-- Looking for __builtin_clzll
-- Looking for __builtin_clzll - not found
-- Looking for MSG_NOSIGNAL
-- Looking for MSG_NOSIGNAL - found
-- Looking for MSG_DONTWAIT
-- Looking for MSG_DONTWAIT - found
-- Looking for malloc_info
-- Looking for malloc_info - found
-- Looking for M_ARENA_MAX
-- Looking for M_ARENA_MAX - found
-- Looking for std::system
-- Looking for std::system - found
-- Looking for gmtime_r
-- Looking for gmtime_r - found
-- Looking for getrandom
-- Looking for getrandom - found
-- Looking for getentropy
-- Looking for getentropy - found
-- Looking for sysctl
-- Looking for sysctl - not found
-- Looking for O_CLOEXEC
-- Looking for O_CLOEXEC - found
-- Looking for getauxval
-- Looking for getauxval - found
CMake Deprecation Warning at src/leveldb/CMakeLists.txt:5 (cmake_minimum_required):
Compatibility with CMake < 3.10 will be removed from a future version of
CMake.

Update the VERSION argument value. Or, use the ... syntax
to tell CMake that the project requires at least but has been updated
to work with policies introduced by or earlier.

-- Looking for unistd.h
-- Looking for unistd.h - found
-- Looking for fdatasync
-- Looking for fdatasync - found
-- Looking for F_FULLFSYNC
-- Looking for F_FULLFSYNC - not found
-- Performing Test HAVE_CXX17_HAS_INCLUDE
-- Performing Test HAVE_CXX17_HAS_INCLUDE - Success
CMake Error at src/secp256k1/CMakeLists.txt:1 (cmake_minimum_required):
Compatibility with CMake < 3.5 has been removed from CMake.

Update the VERSION argument value. Or, use the ... syntax
to tell CMake that the project requires at least but has been updated
to work with policies introduced by or earlier.

Or, add -DCMAKE_POLICY_VERSION_MINIMUM=3.5 to try configuring anyway.

-- Configuring incomplete, errors occurred!
==> ERROR: A failure occurred in build().
Aborting...
`

@div72
Copy link
Member

div72 commented May 27, 2025

This is fixed on the development branch, you need to pull either #2799 or #2801 to master if you want to compile with CMake. (or you can use autoconf)

@div72 div72 closed this as completed May 27, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants