Closed 0xB10C closed 5 days ago
x86_64-linux
With a normal v26.0 build working, I've been trying to build the cmake-staging branch from depends. I managed to get cmake to a point where it detects the depends Boost with -DBOOST_INCLUDEDIR=${depends}/include/
in https://github.com/0xB10C/bitcoind-gunix/commit/c4cb9f4e115b0e020f49aa1b3a283d20b3d187b9. However, having less luck with libevent
. How do I tell cmake where to find the depends?
-- Checking for module 'libevent>=2.1.8'
-- No package 'libevent' found
CMake Error at /nix/store/pd8xc32hmc9sn70cc25x67ly90lby26j-cmake-3.25.3/share/cmake-3.25/Modules/FindPkgConfig.cmake:607 (message):
A required package was not found
Call Stack (most recent call first):
/nix/store/pd8xc32hmc9sn70cc25x67ly90lby26j-cmake-3.25.3/share/cmake-3.25/Modules/FindPkgConfig.cmake:829 (_pkg_check_modules_internal)
cmake/module/CrossPkgConfig.cmake:43 (pkg_check_modules)
cmake/module/AddLibeventIfNeeded.cmake:45 (cross_pkg_check_modules)
CMakeLists.txt:274 (add_libevent_if_needed)
-- Configuring incomplete, errors occurred!
See also "/build/bitcoin-5e65a38896525cdb84f25e0968cc230e147cfc9b/build/CMakeFiles/CMakeOutput.log".
error: builder for '/nix/store/clh5fd5lg5j2pb76kqy5fwk5fhbwpr34-bitcoind.drv' failed with exit code 1;
https://github.com/0xB10C/bitcoind-gunix/actions/runs/8331185657/job/22797482552#step:6:285
I'm not familiar with Nix, unfortunately.
@0xB10C
Can you post here boost and libevent installation directory structures?
CMake Error at /nix/store/pd8xc32hmc9sn70cc25x67ly90lby26j-cmake-3.25.3/share/cmake-3.25/Modules/FindPkgConfig.cmake:607 (message): A required package was not found Call Stack (most recent call first): /nix/store/pd8xc32hmc9sn70cc25x67ly90lby26j-cmake-3.25.3/share/cmake-3.25/Modules/FindPkgConfig.cmake:829 (_pkg_check_modules_internal) cmake/module/CrossPkgConfig.cmake:43 (pkg_check_modules) cmake/module/AddLibeventIfNeeded.cmake:45 (cross_pkg_check_modules) CMakeLists.txt:274 (add_libevent_if_needed)
~This shows that the pkg-config
package is required.~
CMake Error at /nix/store/pd8xc32hmc9sn70cc25x67ly90lby26j-cmake-3.25.3/share/cmake-3.25/Modules/FindPkgConfig.cmake:607 (message): A required package was not found Call Stack (most recent call first): /nix/store/pd8xc32hmc9sn70cc25x67ly90lby26j-cmake-3.25.3/share/cmake-3.25/Modules/FindPkgConfig.cmake:829 (_pkg_check_modules_internal) cmake/module/CrossPkgConfig.cmake:43 (pkg_check_modules) cmake/module/AddLibeventIfNeeded.cmake:45 (cross_pkg_check_modules) CMakeLists.txt:274 (add_libevent_if_needed)
This shows that the
pkg-config
package is required.
I'm not that this complains pkg-config is missing. Dropping pkg-config from the build environment produces the following which is closer to what I'm expecting if pkg-config would actually be missing.
CMake Error at /nix/store/qacx56cg97hmwgh3gqz9a7qgdw82zmdp-cmake-3.27.7/share/cmake-3.27/Modules/FindPackageHandleStandardArgs.cmake:230 (message):
Could NOT find PkgConfig (missing: PKG_CONFIG_EXECUTABLE)
Call Stack (most recent call first):
/nix/store/qacx56cg97hmwgh3gqz9a7qgdw82zmdp-cmake-3.27.7/share/cmake-3.27/Modules/FindPackageHandleStandardArgs.cmake:600 (_FPHSA_FAILURE_MESSAGE)
/nix/store/qacx56cg97hmwgh3gqz9a7qgdw82zmdp-cmake-3.27.7/share/cmake-3.27/Modules/FindPkgConfig.cmake:99 (find_package_handle_standard_args)
cmake/module/CrossPkgConfig.cmake:5 (find_package)
cmake/module/AddLibeventIfNeeded.cmake:44 (include)
CMakeLists.txt:274 (add_libevent_if_needed)
edit: it also says this in the line above (not copied here)
-- Found PkgConfig: /nix/store/3ck7yhjzm3h5m3984ni6mj6nbq4saya0-pkg-config-wrapper-0.29.2/bin/pkg-config (found version "0.29.2")
Can you post here boost and libevent installation directory structures?
boost and libevent are build from depends and are symlinked into depends/x86_64-pc-linux-gnu/
. tree -L 2
of this directory is:
Cmake only finds boost with -DBOOST_INCLUDEDIR=depends/x86_64-pc-linux-gnu/include/
so I was wondering if libevent needs something similar or if there's a more general way to tell cmake where to look for the depends dir.
CMake tries to find the libevent
package by pointing the pkg-config
at depends/x86_64-pc-linux-gnu/lib/pkgconfig/libevent.pc
(the current Autotools-based system does the same).
That is achieved by setting the PKG_CONFIG_PATH
environment variable to /absolute_path_to/depends/x86_64-pc-linux-gnu/lib/pkgconfig
.
It can be verified manually like that:
$ env PKG_CONFIG_PATH=/home/hebasto/git/bitcoin/depends/x86_64-pc-linux-gnu/lib/pkgconfig pkg-config --libs libevent
-L/home/hebasto/git/bitcoin/depends/x86_64-pc-linux-gnu/lib -levent
(not sure if it's possible in Nix build environment though)
Thanks @hebasto! The pointer with PKG_CONFIG_PATH
was helpful. PKG_CONFIG_PATH
is set in toolchain.cmake
(the autotools equivalent to config.site
). Previously, I was setting the CONFIG_SITE
env variable. Now, I need to set the CMAKE_TOOLCHAIN_FILE
env variable (in my case to depends/x86_64-pc-linux-gnu/share/toolchain.cmake
).
The documentation on this in https://github.com/hebasto/bitcoin/blob/master/depends/README.md#usage need to be updated as part of the cmake-migration. I'm sure you're aware, I just wasn't :).
Configuring works now, however as of https://github.com/0xB10C/bitcoind-gunix/commit/64b6de699ebdb7f93d4552f5bc8d63815f259e4c:
I'll look into this.
Configure summary
=================
Executables:
bitcoind ............................ ON
bitcoin-cli ......................... ON
bitcoin-tx .......................... ON
bitcoin-util ........................ ON
bitcoin-wallet ...................... ON
Wallet support:
SQLite, descriptor wallets .......... OFF
Berkeley DB, legacy wallets ......... ON
Optional packages:
GUI ................................. OFF
external signer ..................... ON
NAT-PMP ............................. OFF
UPnP ................................ OFF
ZeroMQ .............................. ON
USDT tracing ........................ OFF
Tests:
test_bitcoin ........................ OFF
test_bitcoin-qt ..................... OFF
bench_bitcoin ....................... OFF
fuzz binary ......................... OFF
Cross compiling ....................... TRUE, for Linux, x86_64
Preprocessor defined macros ...........
C compiler ............................ /nix/store/km2phngnvjywx3853lfh2bqwyyfz703p-gcc-wrapper-10.5.0/bin/gcc
CFLAGS ................................
C++ compiler .......................... /nix/store/km2phngnvjywx3853lfh2bqwyyfz703p-gcc-wrapper-10.5.0/bin/g++
CXXFLAGS ..............................
Common compile options ................ -fno-extended-identifiers -fstack-reuse=none -Wstack-protector -fstack-protector-all -fcf-protection=full -fstack-clash-protection -Wall -Wextra -Wformat -Wformat-security -Wvla -Wredundant-decls -Wdate-time -Wduplicated-branches -Wduplicated-cond -Wlogical-op -Woverloaded-virtual -Wsuggest-override -Wimplicit-fallthrough -Wunreachable-code -Wno-unused-parameter
Common link options ................... -fno-extended-identifiers -fstack-reuse=none -fstack-protector-all -fcf-protection=full -fstack-clash-protection -Wl,-z,relro -Wl,-z,now -Wl,-z,separate-code
Linker flags for executables ..........
Linker flags for shared libraries .....
Build type (configuration):
- CMAKE_BUILD_TYPE ................... Release
- Preprocessor defined macros ........
- CFLAGS ............................. -O2
- CXXFLAGS ........................... -O2
- LDFLAGS for executables ............
- LDFLAGS for shared libraries .......
Attempt to harden executables ......... ON
Treat compiler warnings as errors ..... OFF
Use ccache for compiling .............. OFF
This compiles and produces a bitcoind binary (without gui, wallet, ...) at the moment.
@0xB10C
- sqlite wallet dependencies aren't found
Could you please apply the patch as follows:
--- a/cmake/optional.cmake
+++ b/cmake/optional.cmake
@@ -150,7 +150,11 @@ if(ENABLE_WALLET)
# Use of the `unofficial::` namespace is a vcpkg package manager convention.
find_package(unofficial-sqlite3 CONFIG)
else()
+ message("=== FIND SQLITE BEGINS ===")
+ set(CMAKE_FIND_DEBUG_MODE TRUE)
find_package(SQLite3 3.7.17)
+ set(CMAKE_FIND_DEBUG_MODE FALSE)
+ message("=== FIND SQLITE ENDS ===")
endif()
if(TARGET unofficial::sqlite3::sqlite3 OR TARGET SQLite::SQLite3)
set(WITH_SQLITE ON)
and provide an excerpt from the build log between marks?
That's a very helpful trick - thanks for showing me.
=== FIND SQLITE BEGINS ===
CMake Debug Log at /nix/store/qacx56cg97hmwgh3gqz9a7qgdw82zmdp-cmake-3.27.7/share/cmake-3.27/Modules/FindSQLite3.cmake:36 (find_path):
find_path called with the following settings:
VAR: SQLite3_INCLUDE_DIR
NAMES: "sqlite3.h"
Documentation: Path to a file.
Framework
Only Search Frameworks: 0
Search Frameworks Last: 1
Search Frameworks First: 0
AppBundle
Only Search AppBundle: 0
Search AppBundle Last: 0
Search AppBundle First: 0
CMAKE_FIND_USE_CMAKE_PATH: 1
CMAKE_FIND_USE_CMAKE_ENVIRONMENT_PATH: 0
CMAKE_FIND_USE_SYSTEM_ENVIRONMENT_PATH: 1
CMAKE_FIND_USE_CMAKE_SYSTEM_PATH: 1
CMAKE_FIND_USE_INSTALL_PREFIX: 1
find_path considered the following locations:
/build/bitcoin-5e65a38896525cdb84f25e0968cc230e147cfc9b/depends/x86_64-pc-linux-gnu/nix/store/3ck7yhjzm3h5m3984ni6mj6nbq4saya0-pkg-config-wrapper-0.29.2/bin/sqlite3.h
/build/bitcoin-5e65a38896525cdb84f25e0968cc230e147cfc9b/depends/x86_64-pc-linux-gnu/nix/store/h3ayxf5dk1gdf3s5716fh1ys815qxxag-patchelf-0.15.0/bin/sqlite3.h
/build/bitcoin-5e65a38896525cdb84f25e0968cc230e147cfc9b/depends/x86_64-pc-linux-gnu/nix/store/km2phngnvjywx3853lfh2bqwyyfz703p-gcc-wrapper-10.5.0/bin/sqlite3.h
/build/bitcoin-5e65a38896525cdb84f25e0968cc230e147cfc9b/depends/x86_64-pc-linux-gnu/nix/store/1a9b0d0xyl620mcy8wgh2l42nmarlqbb-gcc-10.5.0/bin/sqlite3.h
/build/bitcoin-5e65a38896525cdb84f25e0968cc230e147cfc9b/depends/x86_64-pc-linux-gnu/nix/store/vksrk76p5cfbjxb0n95vdkxy7fl2cbcm-glibc-2.38-27-bin/bin/sqlite3.h
/build/bitcoin-5e65a38896525cdb84f25e0968cc230e147cfc9b/depends/x86_64-pc-linux-gnu/nix/store/m38gwq0w8w7qyjn9s00balyp7cv3m5p9-coreutils-9.3/bin/sqlite3.h
/build/bitcoin-5e65a38896525cdb84f25e0968cc230e147cfc9b/depends/x86_64-pc-linux-gnu/nix/store/kxgw6wbakp4041y4005iyl9bdi0ri7py-binutils-wrapper-2.40/bin/sqlite3.h
/build/bitcoin-5e65a38896525cdb84f25e0968cc230e147cfc9b/depends/x86_64-pc-linux-gnu/nix/store/idiaraknw071d20nlqp49s18gbvw4wa0-binutils-2.40/bin/sqlite3.h
/build/bitcoin-5e65a38896525cdb84f25e0968cc230e147cfc9b/depends/x86_64-pc-linux-gnu/nix/store/qacx56cg97hmwgh3gqz9a7qgdw82zmdp-cmake-3.27.7/bin/sqlite3.h
/build/bitcoin-5e65a38896525cdb84f25e0968cc230e147cfc9b/depends/x86_64-pc-linux-gnu/nix/store/qwcm1l919ay3kdj41vn3g6df1spd0v2w-hexdump-util-linux-2.39.2/bin/sqlite3.h
/build/bitcoin-5e65a38896525cdb84f25e0968cc230e147cfc9b/depends/x86_64-pc-linux-gnu/nix/store/a46vw4yj5avynw7i24h3j7iski7y4f6b-which-2.21/bin/sqlite3.h
/build/bitcoin-5e65a38896525cdb84f25e0968cc230e147cfc9b/depends/x86_64-pc-linux-gnu/nix/store/01znf87kiw5xx1dj0f7djrnrbg84ij28-findutils-4.9.0/bin/sqlite3.h
/build/bitcoin-5e65a38896525cdb84f25e0968cc230e147cfc9b/depends/x86_64-pc-linux-gnu/nix/store/vq4vmndw555m7ld2bi6pq8kr348qvb6a-diffutils-3.10/bin/sqlite3.h
/build/bitcoin-5e65a38896525cdb84f25e0968cc230e147cfc9b/depends/x86_64-pc-linux-gnu/nix/store/rwa7qyds01qzxvq7zq3kgnkrzzpw4s66-gnused-4.9/bin/sqlite3.h
/build/bitcoin-5e65a38896525cdb84f25e0968cc230e147cfc9b/depends/x86_64-pc-linux-gnu/nix/store/n062zcsmfl9gfp6vfkcg0asb8jjwmy5i-gnugrep-3.11/bin/sqlite3.h
/build/bitcoin-5e65a38896525cdb84f25e0968cc230e147cfc9b/depends/x86_64-pc-linux-gnu/nix/store/4v7m4yx07b3anmbznfhihjc8xiizyna9-gawk-5.2.2/bin/sqlite3.h
/build/bitcoin-5e65a38896525cdb84f25e0968cc230e147cfc9b/depends/x86_64-pc-linux-gnu/nix/store/mi3pm67ps7c7k11aqki9182ygzg8j503-gnutar-1.35/bin/sqlite3.h
/build/bitcoin-5e65a38896525cdb84f25e0968cc230e147cfc9b/depends/x86_64-pc-linux-gnu/nix/store/5c0ancqnpi0cf1h49mv13w68a950s9z0-gzip-1.13/bin/sqlite3.h
/build/bitcoin-5e65a38896525cdb84f25e0968cc230e147cfc9b/depends/x86_64-pc-linux-gnu/nix/store/q5cv7r1sh3s4niyq7vm6h1j74394naxs-bzip2-1.0.8-bin/bin/sqlite3.h
/build/bitcoin-5e65a38896525cdb84f25e0968cc230e147cfc9b/depends/x86_64-pc-linux-gnu/nix/store/bh7sbl99ygfvw9w96936nrhw46jmcmqq-gnumake-4.4.1/bin/sqlite3.h
/build/bitcoin-5e65a38896525cdb84f25e0968cc230e147cfc9b/depends/x86_64-pc-linux-gnu/nix/store/7dpxg7ki7g8ynkdwcqf493p2x8divb4i-bash-5.2-p15/bin/sqlite3.h
/build/bitcoin-5e65a38896525cdb84f25e0968cc230e147cfc9b/depends/x86_64-pc-linux-gnu/nix/store/mbh9gx43gsc5av019vsdkazbyiic3f0f-patch-2.7.6/bin/sqlite3.h
/build/bitcoin-5e65a38896525cdb84f25e0968cc230e147cfc9b/depends/x86_64-pc-linux-gnu/nix/store/3q6fnwcm677l1q60vkhcf9m1gxhv83jm-xz-5.4.4-bin/bin/sqlite3.h
/build/bitcoin-5e65a38896525cdb84f25e0968cc230e147cfc9b/depends/x86_64-pc-linux-gnu/nix/store/a5s2dmba16pw8l52f496gw0b7nli7mbn-file-5.45/bin/sqlite3.h
/build/bitcoin-5e65a38896525cdb84f25e0968cc230e147cfc9b/depends/x86_64-pc-linux-gnu/nix/store/qacx56cg97hmwgh3gqz9a7qgdw82zmdp-cmake-3.27.7/include/sqlite3.h
/build/bitcoin-5e65a38896525cdb84f25e0968cc230e147cfc9b/depends/x86_64-pc-linux-gnu/nix/store/qacx56cg97hmwgh3gqz9a7qgdw82zmdp-cmake-3.27.7/sqlite3.h
/build/bitcoin-5e65a38896525cdb84f25e0968cc230e147cfc9b/depends/x86_64-pc-linux-gnu/nix/store/mmi4l25pxrz3g2330r5vx17y3gnc9497-bitcoind/include/sqlite3.h
/build/bitcoin-5e65a38896525cdb84f25e0968cc230e147cfc9b/depends/x86_64-pc-linux-gnu/nix/store/mmi4l25pxrz3g2330r5vx17y3gnc9497-bitcoind/sqlite3.h
/build/bitcoin-5e65a38896525cdb84f25e0968cc230e147cfc9b/depends/x86_64-pc-linux-gnu/nix/store/7yidkgqrcw7hg0n0qik1wwa0hycvwjb9-glibc-2.38-27-dev/include/sqlite3.h
The item was not found.
Call Stack (most recent call first):
cmake/optional.cmake:155 (find_package)
CMakeLists.txt:374 (include)
CMake Debug Log at /nix/store/qacx56cg97hmwgh3gqz9a7qgdw82zmdp-cmake-3.27.7/share/cmake-3.27/Modules/FindSQLite3.cmake:40 (find_library):
find_library(SQLite3_LIBRARY) removed original suffix
/build/bitcoin-5e65a38896525cdb84f25e0968cc230e147cfc9b/depends/x86_64-pc-linux-gnu/nix/store/3ck7yhjzm3h5m3984ni6mj6nbq4saya0-pkg-config-wrapper-0.29.2/bin/
from PATH_SUFFIXES while adding architecture paths for suffix '64'
Call Stack (most recent call first):
cmake/optional.cmake:155 (find_package)
CMakeLists.txt:374 (include)
CMake Debug Log at /nix/store/qacx56cg97hmwgh3gqz9a7qgdw82zmdp-cmake-3.27.7/share/cmake-3.27/Modules/FindSQLite3.cmake:40 (find_library):
find_library(SQLite3_LIBRARY) removed original suffix
/build/bitcoin-5e65a38896525cdb84f25e0968cc230e147cfc9b/depends/x86_64-pc-linux-gnu/nix/store/h3ayxf5dk1gdf3s5716fh1ys815qxxag-patchelf-0.15.0/bin/
from PATH_SUFFIXES while adding architecture paths for suffix '64'
Call Stack (most recent call first):
cmake/optional.cmake:155 (find_package)
CMakeLists.txt:374 (include)
CMake Debug Log at /nix/store/qacx56cg97hmwgh3gqz9a7qgdw82zmdp-cmake-3.27.7/share/cmake-3.27/Modules/FindSQLite3.cmake:40 (find_library):
find_library(SQLite3_LIBRARY) removed original suffix
/build/bitcoin-5e65a38896525cdb84f25e0968cc230e147cfc9b/depends/x86_64-pc-linux-gnu/nix/store/km2phngnvjywx3853lfh2bqwyyfz703p-gcc-wrapper-10.5.0/bin/
from PATH_SUFFIXES while adding architecture paths for suffix '64'
Call Stack (most recent call first):
cmake/optional.cmake:155 (find_package)
CMakeLists.txt:374 (include)
CMake Debug Log at /nix/store/qacx56cg97hmwgh3gqz9a7qgdw82zmdp-cmake-3.27.7/share/cmake-3.27/Modules/FindSQLite3.cmake:40 (find_library):
find_library(SQLite3_LIBRARY) removed original suffix
/build/bitcoin-5e65a38896525cdb84f25e0968cc230e147cfc9b/depends/x86_64-pc-linux-gnu/nix/store/1a9b0d0xyl620mcy8wgh2l42nmarlqbb-gcc-10.5.0/bin/
from PATH_SUFFIXES while adding architecture paths for suffix '64'
Call Stack (most recent call first):
cmake/optional.cmake:155 (find_package)
CMakeLists.txt:374 (include)
CMake Debug Log at /nix/store/qacx56cg97hmwgh3gqz9a7qgdw82zmdp-cmake-3.27.7/share/cmake-3.27/Modules/FindSQLite3.cmake:40 (find_library):
find_library(SQLite3_LIBRARY) removed original suffix
/build/bitcoin-5e65a38896525cdb84f25e0968cc230e147cfc9b/depends/x86_64-pc-linux-gnu/nix/store/vksrk76p5cfbjxb0n95vdkxy7fl2cbcm-glibc-2.38-27-bin/bin/
from PATH_SUFFIXES while adding architecture paths for suffix '64'
Call Stack (most recent call first):
cmake/optional.cmake:155 (find_package)
CMakeLists.txt:374 (include)
CMake Debug Log at /nix/store/qacx56cg97hmwgh3gqz9a7qgdw82zmdp-cmake-3.27.7/share/cmake-3.27/Modules/FindSQLite3.cmake:40 (find_library):
find_library(SQLite3_LIBRARY) removed original suffix
/build/bitcoin-5e65a38896525cdb84f25e0968cc230e147cfc9b/depends/x86_64-pc-linux-gnu/nix/store/m38gwq0w8w7qyjn9s00balyp7cv3m5p9-coreutils-9.3/bin/
from PATH_SUFFIXES while adding architecture paths for suffix '64'
Call Stack (most recent call first):
cmake/optional.cmake:155 (find_package)
CMakeLists.txt:374 (include)
CMake Debug Log at /nix/store/qacx56cg97hmwgh3gqz9a7qgdw82zmdp-cmake-3.27.7/share/cmake-3.27/Modules/FindSQLite3.cmake:40 (find_library):
find_library(SQLite3_LIBRARY) removed original suffix
/build/bitcoin-5e65a38896525cdb84f25e0968cc230e147cfc9b/depends/x86_64-pc-linux-gnu/nix/store/kxgw6wbakp4041y4005iyl9bdi0ri7py-binutils-wrapper-2.40/bin/
from PATH_SUFFIXES while adding architecture paths for suffix '64'
Call Stack (most recent call first):
cmake/optional.cmake:155 (find_package)
CMakeLists.txt:374 (include)
CMake Debug Log at /nix/store/qacx56cg97hmwgh3gqz9a7qgdw82zmdp-cmake-3.27.7/share/cmake-3.27/Modules/FindSQLite3.cmake:40 (find_library):
find_library(SQLite3_LIBRARY) removed original suffix
/build/bitcoin-5e65a38896525cdb84f25e0968cc230e147cfc9b/depends/x86_64-pc-linux-gnu/nix/store/idiaraknw071d20nlqp49s18gbvw4wa0-binutils-2.40/bin/
from PATH_SUFFIXES while adding architecture paths for suffix '64'
Call Stack (most recent call first):
cmake/optional.cmake:155 (find_package)
CMakeLists.txt:374 (include)
CMake Debug Log at /nix/store/qacx56cg97hmwgh3gqz9a7qgdw82zmdp-cmake-3.27.7/share/cmake-3.27/Modules/FindSQLite3.cmake:40 (find_library):
find_library(SQLite3_LIBRARY) removed original suffix
/build/bitcoin-5e65a38896525cdb84f25e0968cc230e147cfc9b/depends/x86_64-pc-linux-gnu/nix/store/qacx56cg97hmwgh3gqz9a7qgdw82zmdp-cmake-3.27.7/bin/
from PATH_SUFFIXES while adding architecture paths for suffix '64'
Call Stack (most recent call first):
cmake/optional.cmake:155 (find_package)
CMakeLists.txt:374 (include)
CMake Debug Log at /nix/store/qacx56cg97hmwgh3gqz9a7qgdw82zmdp-cmake-3.27.7/share/cmake-3.27/Modules/FindSQLite3.cmake:40 (find_library):
find_library(SQLite3_LIBRARY) removed original suffix
/build/bitcoin-5e65a38896525cdb84f25e0968cc230e147cfc9b/depends/x86_64-pc-linux-gnu/nix/store/qwcm1l919ay3kdj41vn3g6df1spd0v2w-hexdump-util-linux-2.39.2/bin/
from PATH_SUFFIXES while adding architecture paths for suffix '64'
Call Stack (most recent call first):
cmake/optional.cmake:155 (find_package)
CMakeLists.txt:374 (include)
CMake Debug Log at /nix/store/qacx56cg97hmwgh3gqz9a7qgdw82zmdp-cmake-3.27.7/share/cmake-3.27/Modules/FindSQLite3.cmake:40 (find_library):
find_library(SQLite3_LIBRARY) removed original suffix
/build/bitcoin-5e65a38896525cdb84f25e0968cc230e147cfc9b/depends/x86_64-pc-linux-gnu/nix/store/a46vw4yj5avynw7i24h3j7iski7y4f6b-which-2.21/bin/
from PATH_SUFFIXES while adding architecture paths for suffix '64'
Call Stack (most recent call first):
cmake/optional.cmake:155 (find_package)
CMakeLists.txt:374 (include)
CMake Debug Log at /nix/store/qacx56cg97hmwgh3gqz9a7qgdw82zmdp-cmake-3.27.7/share/cmake-3.27/Modules/FindSQLite3.cmake:40 (find_library):
find_library(SQLite3_LIBRARY) removed original suffix
/build/bitcoin-5e65a38896525cdb84f25e0968cc230e147cfc9b/depends/x86_64-pc-linux-gnu/nix/store/01znf87kiw5xx1dj0f7djrnrbg84ij28-findutils-4.9.0/bin/
from PATH_SUFFIXES while adding architecture paths for suffix '64'
Call Stack (most recent call first):
cmake/optional.cmake:155 (find_package)
CMakeLists.txt:374 (include)
CMake Debug Log at /nix/store/qacx56cg97hmwgh3gqz9a7qgdw82zmdp-cmake-3.27.7/share/cmake-3.27/Modules/FindSQLite3.cmake:40 (find_library):
find_library(SQLite3_LIBRARY) removed original suffix
/build/bitcoin-5e65a38896525cdb84f25e0968cc230e147cfc9b/depends/x86_64-pc-linux-gnu/nix/store/vq4vmndw555m7ld2bi6pq8kr348qvb6a-diffutils-3.10/bin/
from PATH_SUFFIXES while adding architecture paths for suffix '64'
Call Stack (most recent call first):
cmake/optional.cmake:155 (find_package)
CMakeLists.txt:374 (include)
CMake Debug Log at /nix/store/qacx56cg97hmwgh3gqz9a7qgdw82zmdp-cmake-3.27.7/share/cmake-3.27/Modules/FindSQLite3.cmake:40 (find_library):
find_library(SQLite3_LIBRARY) removed original suffix
/build/bitcoin-5e65a38896525cdb84f25e0968cc230e147cfc9b/depends/x86_64-pc-linux-gnu/nix/store/rwa7qyds01qzxvq7zq3kgnkrzzpw4s66-gnused-4.9/bin/
from PATH_SUFFIXES while adding architecture paths for suffix '64'
Call Stack (most recent call first):
cmake/optional.cmake:155 (find_package)
CMakeLists.txt:374 (include)
CMake Debug Log at /nix/store/qacx56cg97hmwgh3gqz9a7qgdw82zmdp-cmake-3.27.7/share/cmake-3.27/Modules/FindSQLite3.cmake:40 (find_library):
find_library(SQLite3_LIBRARY) removed original suffix
/build/bitcoin-5e65a38896525cdb84f25e0968cc230e147cfc9b/depends/x86_64-pc-linux-gnu/nix/store/n062zcsmfl9gfp6vfkcg0asb8jjwmy5i-gnugrep-3.11/bin/
from PATH_SUFFIXES while adding architecture paths for suffix '64'
Call Stack (most recent call first):
cmake/optional.cmake:155 (find_package)
CMakeLists.txt:374 (include)
CMake Debug Log at /nix/store/qacx56cg97hmwgh3gqz9a7qgdw82zmdp-cmake-3.27.7/share/cmake-3.27/Modules/FindSQLite3.cmake:40 (find_library):
find_library(SQLite3_LIBRARY) removed original suffix
/build/bitcoin-5e65a38896525cdb84f25e0968cc230e147cfc9b/depends/x86_64-pc-linux-gnu/nix/store/4v7m4yx07b3anmbznfhihjc8xiizyna9-gawk-5.2.2/bin/
from PATH_SUFFIXES while adding architecture paths for suffix '64'
Call Stack (most recent call first):
cmake/optional.cmake:155 (find_package)
CMakeLists.txt:374 (include)
CMake Debug Log at /nix/store/qacx56cg97hmwgh3gqz9a7qgdw82zmdp-cmake-3.27.7/share/cmake-3.27/Modules/FindSQLite3.cmake:40 (find_library):
find_library(SQLite3_LIBRARY) removed original suffix
/build/bitcoin-5e65a38896525cdb84f25e0968cc230e147cfc9b/depends/x86_64-pc-linux-gnu/nix/store/mi3pm67ps7c7k11aqki9182ygzg8j503-gnutar-1.35/bin/
from PATH_SUFFIXES while adding architecture paths for suffix '64'
Call Stack (most recent call first):
cmake/optional.cmake:155 (find_package)
CMakeLists.txt:374 (include)
CMake Debug Log at /nix/store/qacx56cg97hmwgh3gqz9a7qgdw82zmdp-cmake-3.27.7/share/cmake-3.27/Modules/FindSQLite3.cmake:40 (find_library):
find_library(SQLite3_LIBRARY) removed original suffix
/build/bitcoin-5e65a38896525cdb84f25e0968cc230e147cfc9b/depends/x86_64-pc-linux-gnu/nix/store/5c0ancqnpi0cf1h49mv13w68a950s9z0-gzip-1.13/bin/
from PATH_SUFFIXES while adding architecture paths for suffix '64'
Call Stack (most recent call first):
cmake/optional.cmake:155 (find_package)
CMakeLists.txt:374 (include)
CMake Debug Log at /nix/store/qacx56cg97hmwgh3gqz9a7qgdw82zmdp-cmake-3.27.7/share/cmake-3.27/Modules/FindSQLite3.cmake:40 (find_library):
find_library(SQLite3_LIBRARY) removed original suffix
/build/bitcoin-5e65a38896525cdb84f25e0968cc230e147cfc9b/depends/x86_64-pc-linux-gnu/nix/store/q5cv7r1sh3s4niyq7vm6h1j74394naxs-bzip2-1.0.8-bin/bin/
from PATH_SUFFIXES while adding architecture paths for suffix '64'
Call Stack (most recent call first):
cmake/optional.cmake:155 (find_package)
CMakeLists.txt:374 (include)
CMake Debug Log at /nix/store/qacx56cg97hmwgh3gqz9a7qgdw82zmdp-cmake-3.27.7/share/cmake-3.27/Modules/FindSQLite3.cmake:40 (find_library):
find_library(SQLite3_LIBRARY) removed original suffix
/build/bitcoin-5e65a38896525cdb84f25e0968cc230e147cfc9b/depends/x86_64-pc-linux-gnu/nix/store/bh7sbl99ygfvw9w96936nrhw46jmcmqq-gnumake-4.4.1/bin/
from PATH_SUFFIXES while adding architecture paths for suffix '64'
Call Stack (most recent call first):
cmake/optional.cmake:155 (find_package)
CMakeLists.txt:374 (include)
CMake Debug Log at /nix/store/qacx56cg97hmwgh3gqz9a7qgdw82zmdp-cmake-3.27.7/share/cmake-3.27/Modules/FindSQLite3.cmake:40 (find_library):
find_library(SQLite3_LIBRARY) removed original suffix
/build/bitcoin-5e65a38896525cdb84f25e0968cc230e147cfc9b/depends/x86_64-pc-linux-gnu/nix/store/7dpxg7ki7g8ynkdwcqf493p2x8divb4i-bash-5.2-p15/bin/
from PATH_SUFFIXES while adding architecture paths for suffix '64'
Call Stack (most recent call first):
cmake/optional.cmake:155 (find_package)
CMakeLists.txt:374 (include)
CMake Debug Log at /nix/store/qacx56cg97hmwgh3gqz9a7qgdw82zmdp-cmake-3.27.7/share/cmake-3.27/Modules/FindSQLite3.cmake:40 (find_library):
find_library(SQLite3_LIBRARY) removed original suffix
/build/bitcoin-5e65a38896525cdb84f25e0968cc230e147cfc9b/depends/x86_64-pc-linux-gnu/nix/store/mbh9gx43gsc5av019vsdkazbyiic3f0f-patch-2.7.6/bin/
from PATH_SUFFIXES while adding architecture paths for suffix '64'
Call Stack (most recent call first):
cmake/optional.cmake:155 (find_package)
CMakeLists.txt:374 (include)
CMake Debug Log at /nix/store/qacx56cg97hmwgh3gqz9a7qgdw82zmdp-cmake-3.27.7/share/cmake-3.27/Modules/FindSQLite3.cmake:40 (find_library):
find_library(SQLite3_LIBRARY) removed original suffix
/build/bitcoin-5e65a38896525cdb84f25e0968cc230e147cfc9b/depends/x86_64-pc-linux-gnu/nix/store/3q6fnwcm677l1q60vkhcf9m1gxhv83jm-xz-5.4.4-bin/bin/
from PATH_SUFFIXES while adding architecture paths for suffix '64'
Call Stack (most recent call first):
cmake/optional.cmake:155 (find_package)
CMakeLists.txt:374 (include)
CMake Debug Log at /nix/store/qacx56cg97hmwgh3gqz9a7qgdw82zmdp-cmake-3.27.7/share/cmake-3.27/Modules/FindSQLite3.cmake:40 (find_library):
find_library(SQLite3_LIBRARY) removed original suffix
/build/bitcoin-5e65a38896525cdb84f25e0968cc230e147cfc9b/depends/x86_64-pc-linux-gnu/nix/store/a5s2dmba16pw8l52f496gw0b7nli7mbn-file-5.45/bin/
from PATH_SUFFIXES while adding architecture paths for suffix '64'
Call Stack (most recent call first):
cmake/optional.cmake:155 (find_package)
CMakeLists.txt:374 (include)
CMake Debug Log at /nix/store/qacx56cg97hmwgh3gqz9a7qgdw82zmdp-cmake-3.27.7/share/cmake-3.27/Modules/FindSQLite3.cmake:40 (find_library):
find_library(SQLite3_LIBRARY) removed original suffix
/build/bitcoin-5e65a38896525cdb84f25e0968cc230e147cfc9b/depends/x86_64-pc-linux-gnu/nix/store/qacx56cg97hmwgh3gqz9a7qgdw82zmdp-cmake-3.27.7/lib/
from PATH_SUFFIXES while adding architecture paths for suffix '64'
Call Stack (most recent call first):
cmake/optional.cmake:155 (find_package)
CMakeLists.txt:374 (include)
CMake Debug Log at /nix/store/qacx56cg97hmwgh3gqz9a7qgdw82zmdp-cmake-3.27.7/share/cmake-3.27/Modules/FindSQLite3.cmake:40 (find_library):
find_library(SQLite3_LIBRARY) removed original suffix
/build/bitcoin-5e65a38896525cdb84f25e0968cc230e147cfc9b/depends/x86_64-pc-linux-gnu/nix/store/qacx56cg97hmwgh3gqz9a7qgdw82zmdp-cmake-3.27.7/
from PATH_SUFFIXES while adding architecture paths for suffix '64'
Call Stack (most recent call first):
cmake/optional.cmake:155 (find_package)
CMakeLists.txt:374 (include)
CMake Debug Log at /nix/store/qacx56cg97hmwgh3gqz9a7qgdw82zmdp-cmake-3.27.7/share/cmake-3.27/Modules/FindSQLite3.cmake:40 (find_library):
find_library(SQLite3_LIBRARY) removed original suffix
/build/bitcoin-5e65a38896525cdb84f25e0968cc230e147cfc9b/depends/x86_64-pc-linux-gnu/nix/store/mmi4l25pxrz3g2330r5vx17y3gnc9497-bitcoind/lib/
from PATH_SUFFIXES while adding architecture paths for suffix '64'
Call Stack (most recent call first):
cmake/optional.cmake:155 (find_package)
CMakeLists.txt:374 (include)
CMake Debug Log at /nix/store/qacx56cg97hmwgh3gqz9a7qgdw82zmdp-cmake-3.27.7/share/cmake-3.27/Modules/FindSQLite3.cmake:40 (find_library):
find_library(SQLite3_LIBRARY) removed original suffix
/build/bitcoin-5e65a38896525cdb84f25e0968cc230e147cfc9b/depends/x86_64-pc-linux-gnu/nix/store/mmi4l25pxrz3g2330r5vx17y3gnc9497-bitcoind/
from PATH_SUFFIXES while adding architecture paths for suffix '64'
Call Stack (most recent call first):
cmake/optional.cmake:155 (find_package)
CMakeLists.txt:374 (include)
CMake Debug Log at /nix/store/qacx56cg97hmwgh3gqz9a7qgdw82zmdp-cmake-3.27.7/share/cmake-3.27/Modules/FindSQLite3.cmake:40 (find_library):
find_library(SQLite3_LIBRARY) removed original suffix
/build/bitcoin-5e65a38896525cdb84f25e0968cc230e147cfc9b/depends/x86_64-pc-linux-gnu/nix/store/j6mwswpa6zqhdm1lm2lv9iix3arn774g-glibc-2.38-27/lib/
from PATH_SUFFIXES while adding architecture paths for suffix '64'
Call Stack (most recent call first):
cmake/optional.cmake:155 (find_package)
CMakeLists.txt:374 (include)
CMake Debug Log at /nix/store/qacx56cg97hmwgh3gqz9a7qgdw82zmdp-cmake-3.27.7/share/cmake-3.27/Modules/FindSQLite3.cmake:40 (find_library):
find_library called with the following settings:
VAR: SQLite3_LIBRARY
NAMES: "sqlite3"
"sqlite"
Documentation: Path to a library.
Framework
Only Search Frameworks: 0
Search Frameworks Last: 1
Search Frameworks First: 0
AppBundle
Only Search AppBundle: 0
Search AppBundle Last: 0
Search AppBundle First: 0
CMAKE_FIND_USE_CMAKE_PATH: 1
CMAKE_FIND_USE_CMAKE_ENVIRONMENT_PATH: 0
CMAKE_FIND_USE_SYSTEM_ENVIRONMENT_PATH: 1
CMAKE_FIND_USE_CMAKE_SYSTEM_PATH: 1
CMAKE_FIND_USE_INSTALL_PREFIX: 1
find_library considered the following locations:
The item was not found.
Call Stack (most recent call first):
cmake/optional.cmake:155 (find_package)
CMakeLists.txt:374 (include)
-- Could NOT find SQLite3 (missing: SQLite3_INCLUDE_DIR SQLite3_LIBRARY) (Required is at least version "3.7.17")
CMake Debug Log at cmake/optional.cmake:155 (find_package):
find_package considered the following paths for FindSQLite3.cmake:
/build/bitcoin-5e65a38896525cdb84f25e0968cc230e147cfc9b/cmake/module/FindSQLite3.cmake
The file was found at
/nix/store/qacx56cg97hmwgh3gqz9a7qgdw82zmdp-cmake-3.27.7/share/cmake-3.27/Modules/FindSQLite3.cmake
The module is considered not found due to SQLite3_FOUND being FALSE.
Call Stack (most recent call first):
CMakeLists.txt:374 (include)
=== FIND SQLITE ENDS ===
The find_path
locations it considers for sqlite are weird. For example, it finds bdb in /build/bitcoin-5e65a38896525cdb84f25e0968cc230e147cfc9b/depends/x86_64-pc-linux-gnu/lib/libdb_cxx-4.8.a
which is where I'd assume it would be.
-- Found BerkeleyDB: /build/bitcoin-5e65a38896525cdb84f25e0968cc230e147cfc9b/depends/x86_64-pc-linux-gnu/lib/libdb_cxx-4.8.a (found suitable version "4.8.30", minimum required is "4.8")
Could you please try to configure CMake with -DCMAKE_FIND_USE_INSTALL_PREFIX=OFF
?
That doesn't seem to help:
=== FIND SQLITE BEGINS ===
CMake Debug Log at /nix/store/qacx56cg97hmwgh3gqz9a7qgdw82zmdp-cmake-3.27.7/share/cmake-3.27/Modules/FindSQLite3.cmake:36 (find_path):
find_path called with the following settings:
VAR: SQLite3_INCLUDE_DIR
NAMES: "sqlite3.h"
Documentation: Path to a file.
Framework
Only Search Frameworks: 0
Search Frameworks Last: 1
Search Frameworks First: 0
AppBundle
Only Search AppBundle: 0
Search AppBundle Last: 0
Search AppBundle First: 0
CMAKE_FIND_USE_CMAKE_PATH: 1
CMAKE_FIND_USE_CMAKE_ENVIRONMENT_PATH: 0
CMAKE_FIND_USE_SYSTEM_ENVIRONMENT_PATH: 1
CMAKE_FIND_USE_CMAKE_SYSTEM_PATH: 1
CMAKE_FIND_USE_INSTALL_PREFIX: 0
find_path considered the following locations:
/build/bitcoin-5e65a38896525cdb84f25e0968cc230e147cfc9b/depends/x86_64-pc-linux-gnu/nix/store/3ck7yhjzm3h5m3984ni6mj6nbq4saya0-pkg-config-wrapper-0.29.2/bin/sqlite3.h
/build/bitcoin-5e65a38896525cdb84f25e0968cc230e147cfc9b/depends/x86_64-pc-linux-gnu/nix/store/h3ayxf5dk1gdf3s5716fh1ys815qxxag-patchelf-0.15.0/bin/sqlite3.h
/build/bitcoin-5e65a38896525cdb84f25e0968cc230e147cfc9b/depends/x86_64-pc-linux-gnu/nix/store/km2phngnvjywx3853lfh2bqwyyfz703p-gcc-wrapper-10.5.0/bin/sqlite3.h
/build/bitcoin-5e65a38896525cdb84f25e0968cc230e147cfc9b/depends/x86_64-pc-linux-gnu/nix/store/1a9b0d0xyl620mcy8wgh2l42nmarlqbb-gcc-10.5.0/bin/sqlite3.h
/build/bitcoin-5e65a38896525cdb84f25e0968cc230e147cfc9b/depends/x86_64-pc-linux-gnu/nix/store/vksrk76p5cfbjxb0n95vdkxy7fl2cbcm-glibc-2.38-27-bin/bin/sqlite3.h
/build/bitcoin-5e65a38896525cdb84f25e0968cc230e147cfc9b/depends/x86_64-pc-linux-gnu/nix/store/m38gwq0w8w7qyjn9s00balyp7cv3m5p9-coreutils-9.3/bin/sqlite3.h
/build/bitcoin-5e65a38896525cdb84f25e0968cc230e147cfc9b/depends/x86_64-pc-linux-gnu/nix/store/kxgw6wbakp4041y4005iyl9bdi0ri7py-binutils-wrapper-2.40/bin/sqlite3.h
/build/bitcoin-5e65a38896525cdb84f25e0968cc230e147cfc9b/depends/x86_64-pc-linux-gnu/nix/store/idiaraknw071d20nlqp49s18gbvw4wa0-binutils-2.40/bin/sqlite3.h
/build/bitcoin-5e65a38896525cdb84f25e0968cc230e147cfc9b/depends/x86_64-pc-linux-gnu/nix/store/qacx56cg97hmwgh3gqz9a7qgdw82zmdp-cmake-3.27.7/bin/sqlite3.h
/build/bitcoin-5e65a38896525cdb84f25e0968cc230e147cfc9b/depends/x86_64-pc-linux-gnu/nix/store/qwcm1l919ay3kdj41vn3g6df1spd0v2w-hexdump-util-linux-2.39.2/bin/sqlite3.h
/build/bitcoin-5e65a38896525cdb84f25e0968cc230e147cfc9b/depends/x86_64-pc-linux-gnu/nix/store/a46vw4yj5avynw7i24h3j7iski7y4f6b-which-2.21/bin/sqlite3.h
/build/bitcoin-5e65a38896525cdb84f25e0968cc230e147cfc9b/depends/x86_64-pc-linux-gnu/nix/store/01znf87kiw5xx1dj0f7djrnrbg84ij28-findutils-4.9.0/bin/sqlite3.h
/build/bitcoin-5e65a38896525cdb84f25e0968cc230e147cfc9b/depends/x86_64-pc-linux-gnu/nix/store/vq4vmndw555m7ld2bi6pq8kr348qvb6a-diffutils-3.10/bin/sqlite3.h
/build/bitcoin-5e65a38896525cdb84f25e0968cc230e147cfc9b/depends/x86_64-pc-linux-gnu/nix/store/rwa7qyds01qzxvq7zq3kgnkrzzpw4s66-gnused-4.9/bin/sqlite3.h
/build/bitcoin-5e65a38896525cdb84f25e0968cc230e147cfc9b/depends/x86_64-pc-linux-gnu/nix/store/n062zcsmfl9gfp6vfkcg0asb8jjwmy5i-gnugrep-3.11/bin/sqlite3.h
/build/bitcoin-5e65a38896525cdb84f25e0968cc230e147cfc9b/depends/x86_64-pc-linux-gnu/nix/store/4v7m4yx07b3anmbznfhihjc8xiizyna9-gawk-5.2.2/bin/sqlite3.h
/build/bitcoin-5e65a38896525cdb84f25e0968cc230e147cfc9b/depends/x86_64-pc-linux-gnu/nix/store/mi3pm67ps7c7k11aqki9182ygzg8j503-gnutar-1.35/bin/sqlite3.h
/build/bitcoin-5e65a38896525cdb84f25e0968cc230e147cfc9b/depends/x86_64-pc-linux-gnu/nix/store/5c0ancqnpi0cf1h49mv13w68a950s9z0-gzip-1.13/bin/sqlite3.h
/build/bitcoin-5e65a38896525cdb84f25e0968cc230e147cfc9b/depends/x86_64-pc-linux-gnu/nix/store/q5cv7r1sh3s4niyq7vm6h1j74394naxs-bzip2-1.0.8-bin/bin/sqlite3.h
/build/bitcoin-5e65a38896525cdb84f25e0968cc230e147cfc9b/depends/x86_64-pc-linux-gnu/nix/store/bh7sbl99ygfvw9w96936nrhw46jmcmqq-gnumake-4.4.1/bin/sqlite3.h
/build/bitcoin-5e65a38896525cdb84f25e0968cc230e147cfc9b/depends/x86_64-pc-linux-gnu/nix/store/7dpxg7ki7g8ynkdwcqf493p2x8divb4i-bash-5.2-p15/bin/sqlite3.h
/build/bitcoin-5e65a38896525cdb84f25e0968cc230e147cfc9b/depends/x86_64-pc-linux-gnu/nix/store/mbh9gx43gsc5av019vsdkazbyiic3f0f-patch-2.7.6/bin/sqlite3.h
/build/bitcoin-5e65a38896525cdb84f25e0968cc230e147cfc9b/depends/x86_64-pc-linux-gnu/nix/store/3q6fnwcm677l1q60vkhcf9m1gxhv83jm-xz-5.4.4-bin/bin/sqlite3.h
/build/bitcoin-5e65a38896525cdb84f25e0968cc230e147cfc9b/depends/x86_64-pc-linux-gnu/nix/store/a5s2dmba16pw8l52f496gw0b7nli7mbn-file-5.45/bin/sqlite3.h
/build/bitcoin-5e65a38896525cdb84f25e0968cc230e147cfc9b/depends/x86_64-pc-linux-gnu/nix/store/qacx56cg97hmwgh3gqz9a7qgdw82zmdp-cmake-3.27.7/include/sqlite3.h
/build/bitcoin-5e65a38896525cdb84f25e0968cc230e147cfc9b/depends/x86_64-pc-linux-gnu/nix/store/qacx56cg97hmwgh3gqz9a7qgdw82zmdp-cmake-3.27.7/sqlite3.h
/build/bitcoin-5e65a38896525cdb84f25e0968cc230e147cfc9b/depends/x86_64-pc-linux-gnu/nix/store/7yidkgqrcw7hg0n0qik1wwa0hycvwjb9-glibc-2.38-27-dev/include/sqlite3.h
The item was not found.
Call Stack (most recent call first):
cmake/optional.cmake:155 (find_package)
CMakeLists.txt:374 (include)
CMake Debug Log at /nix/store/qacx56cg97hmwgh3gqz9a7qgdw82zmdp-cmake-3.27.7/share/cmake-3.27/Modules/FindSQLite3.cmake:40 (find_library):
find_library(SQLite3_LIBRARY) removed original suffix
/build/bitcoin-5e65a38896525cdb84f25e0968cc230e147cfc9b/depends/x86_64-pc-linux-gnu/nix/store/3ck7yhjzm3h5m3984ni6mj6nbq4saya0-pkg-config-wrapper-0.29.2/bin/
from PATH_SUFFIXES while adding architecture paths for suffix '64'
Call Stack (most recent call first):
cmake/optional.cmake:155 (find_package)
CMakeLists.txt:374 (include)
CMake Debug Log at /nix/store/qacx56cg97hmwgh3gqz9a7qgdw82zmdp-cmake-3.27.7/share/cmake-3.27/Modules/FindSQLite3.cmake:40 (find_library):
find_library(SQLite3_LIBRARY) removed original suffix
/build/bitcoin-5e65a38896525cdb84f25e0968cc230e147cfc9b/depends/x86_64-pc-linux-gnu/nix/store/h3ayxf5dk1gdf3s5716fh1ys815qxxag-patchelf-0.15.0/bin/
from PATH_SUFFIXES while adding architecture paths for suffix '64'
Call Stack (most recent call first):
cmake/optional.cmake:155 (find_package)
CMakeLists.txt:374 (include)
CMake Debug Log at /nix/store/qacx56cg97hmwgh3gqz9a7qgdw82zmdp-cmake-3.27.7/share/cmake-3.27/Modules/FindSQLite3.cmake:40 (find_library):
find_library(SQLite3_LIBRARY) removed original suffix
/build/bitcoin-5e65a38896525cdb84f25e0968cc230e147cfc9b/depends/x86_64-pc-linux-gnu/nix/store/km2phngnvjywx3853lfh2bqwyyfz703p-gcc-wrapper-10.5.0/bin/
from PATH_SUFFIXES while adding architecture paths for suffix '64'
Call Stack (most recent call first):
cmake/optional.cmake:155 (find_package)
CMakeLists.txt:374 (include)
CMake Debug Log at /nix/store/qacx56cg97hmwgh3gqz9a7qgdw82zmdp-cmake-3.27.7/share/cmake-3.27/Modules/FindSQLite3.cmake:40 (find_library):
find_library(SQLite3_LIBRARY) removed original suffix
/build/bitcoin-5e65a38896525cdb84f25e0968cc230e147cfc9b/depends/x86_64-pc-linux-gnu/nix/store/1a9b0d0xyl620mcy8wgh2l42nmarlqbb-gcc-10.5.0/bin/
from PATH_SUFFIXES while adding architecture paths for suffix '64'
Call Stack (most recent call first):
cmake/optional.cmake:155 (find_package)
CMakeLists.txt:374 (include)
CMake Debug Log at /nix/store/qacx56cg97hmwgh3gqz9a7qgdw82zmdp-cmake-3.27.7/share/cmake-3.27/Modules/FindSQLite3.cmake:40 (find_library):
find_library(SQLite3_LIBRARY) removed original suffix
/build/bitcoin-5e65a38896525cdb84f25e0968cc230e147cfc9b/depends/x86_64-pc-linux-gnu/nix/store/vksrk76p5cfbjxb0n95vdkxy7fl2cbcm-glibc-2.38-27-bin/bin/
from PATH_SUFFIXES while adding architecture paths for suffix '64'
Call Stack (most recent call first):
cmake/optional.cmake:155 (find_package)
CMakeLists.txt:374 (include)
CMake Debug Log at /nix/store/qacx56cg97hmwgh3gqz9a7qgdw82zmdp-cmake-3.27.7/share/cmake-3.27/Modules/FindSQLite3.cmake:40 (find_library):
find_library(SQLite3_LIBRARY) removed original suffix
/build/bitcoin-5e65a38896525cdb84f25e0968cc230e147cfc9b/depends/x86_64-pc-linux-gnu/nix/store/m38gwq0w8w7qyjn9s00balyp7cv3m5p9-coreutils-9.3/bin/
from PATH_SUFFIXES while adding architecture paths for suffix '64'
Call Stack (most recent call first):
cmake/optional.cmake:155 (find_package)
CMakeLists.txt:374 (include)
CMake Debug Log at /nix/store/qacx56cg97hmwgh3gqz9a7qgdw82zmdp-cmake-3.27.7/share/cmake-3.27/Modules/FindSQLite3.cmake:40 (find_library):
find_library(SQLite3_LIBRARY) removed original suffix
/build/bitcoin-5e65a38896525cdb84f25e0968cc230e147cfc9b/depends/x86_64-pc-linux-gnu/nix/store/kxgw6wbakp4041y4005iyl9bdi0ri7py-binutils-wrapper-2.40/bin/
from PATH_SUFFIXES while adding architecture paths for suffix '64'
Call Stack (most recent call first):
cmake/optional.cmake:155 (find_package)
CMakeLists.txt:374 (include)
CMake Debug Log at /nix/store/qacx56cg97hmwgh3gqz9a7qgdw82zmdp-cmake-3.27.7/share/cmake-3.27/Modules/FindSQLite3.cmake:40 (find_library):
find_library(SQLite3_LIBRARY) removed original suffix
/build/bitcoin-5e65a38896525cdb84f25e0968cc230e147cfc9b/depends/x86_64-pc-linux-gnu/nix/store/idiaraknw071d20nlqp49s18gbvw4wa0-binutils-2.40/bin/
from PATH_SUFFIXES while adding architecture paths for suffix '64'
Call Stack (most recent call first):
cmake/optional.cmake:155 (find_package)
CMakeLists.txt:374 (include)
CMake Debug Log at /nix/store/qacx56cg97hmwgh3gqz9a7qgdw82zmdp-cmake-3.27.7/share/cmake-3.27/Modules/FindSQLite3.cmake:40 (find_library):
find_library(SQLite3_LIBRARY) removed original suffix
/build/bitcoin-5e65a38896525cdb84f25e0968cc230e147cfc9b/depends/x86_64-pc-linux-gnu/nix/store/qacx56cg97hmwgh3gqz9a7qgdw82zmdp-cmake-3.27.7/bin/
from PATH_SUFFIXES while adding architecture paths for suffix '64'
Call Stack (most recent call first):
cmake/optional.cmake:155 (find_package)
CMakeLists.txt:374 (include)
CMake Debug Log at /nix/store/qacx56cg97hmwgh3gqz9a7qgdw82zmdp-cmake-3.27.7/share/cmake-3.27/Modules/FindSQLite3.cmake:40 (find_library):
find_library(SQLite3_LIBRARY) removed original suffix
/build/bitcoin-5e65a38896525cdb84f25e0968cc230e147cfc9b/depends/x86_64-pc-linux-gnu/nix/store/qwcm1l919ay3kdj41vn3g6df1spd0v2w-hexdump-util-linux-2.39.2/bin/
from PATH_SUFFIXES while adding architecture paths for suffix '64'
Call Stack (most recent call first):
cmake/optional.cmake:155 (find_package)
CMakeLists.txt:374 (include)
CMake Debug Log at /nix/store/qacx56cg97hmwgh3gqz9a7qgdw82zmdp-cmake-3.27.7/share/cmake-3.27/Modules/FindSQLite3.cmake:40 (find_library):
find_library(SQLite3_LIBRARY) removed original suffix
/build/bitcoin-5e65a38896525cdb84f25e0968cc230e147cfc9b/depends/x86_64-pc-linux-gnu/nix/store/a46vw4yj5avynw7i24h3j7iski7y4f6b-which-2.21/bin/
from PATH_SUFFIXES while adding architecture paths for suffix '64'
Call Stack (most recent call first):
cmake/optional.cmake:155 (find_package)
CMakeLists.txt:374 (include)
CMake Debug Log at /nix/store/qacx56cg97hmwgh3gqz9a7qgdw82zmdp-cmake-3.27.7/share/cmake-3.27/Modules/FindSQLite3.cmake:40 (find_library):
find_library(SQLite3_LIBRARY) removed original suffix
/build/bitcoin-5e65a38896525cdb84f25e0968cc230e147cfc9b/depends/x86_64-pc-linux-gnu/nix/store/01znf87kiw5xx1dj0f7djrnrbg84ij28-findutils-4.9.0/bin/
from PATH_SUFFIXES while adding architecture paths for suffix '64'
Call Stack (most recent call first):
cmake/optional.cmake:155 (find_package)
CMakeLists.txt:374 (include)
CMake Debug Log at /nix/store/qacx56cg97hmwgh3gqz9a7qgdw82zmdp-cmake-3.27.7/share/cmake-3.27/Modules/FindSQLite3.cmake:40 (find_library):
find_library(SQLite3_LIBRARY) removed original suffix
/build/bitcoin-5e65a38896525cdb84f25e0968cc230e147cfc9b/depends/x86_64-pc-linux-gnu/nix/store/vq4vmndw555m7ld2bi6pq8kr348qvb6a-diffutils-3.10/bin/
from PATH_SUFFIXES while adding architecture paths for suffix '64'
Call Stack (most recent call first):
cmake/optional.cmake:155 (find_package)
CMakeLists.txt:374 (include)
CMake Debug Log at /nix/store/qacx56cg97hmwgh3gqz9a7qgdw82zmdp-cmake-3.27.7/share/cmake-3.27/Modules/FindSQLite3.cmake:40 (find_library):
find_library(SQLite3_LIBRARY) removed original suffix
/build/bitcoin-5e65a38896525cdb84f25e0968cc230e147cfc9b/depends/x86_64-pc-linux-gnu/nix/store/rwa7qyds01qzxvq7zq3kgnkrzzpw4s66-gnused-4.9/bin/
from PATH_SUFFIXES while adding architecture paths for suffix '64'
Call Stack (most recent call first):
cmake/optional.cmake:155 (find_package)
CMakeLists.txt:374 (include)
CMake Debug Log at /nix/store/qacx56cg97hmwgh3gqz9a7qgdw82zmdp-cmake-3.27.7/share/cmake-3.27/Modules/FindSQLite3.cmake:40 (find_library):
find_library(SQLite3_LIBRARY) removed original suffix
/build/bitcoin-5e65a38896525cdb84f25e0968cc230e147cfc9b/depends/x86_64-pc-linux-gnu/nix/store/n062zcsmfl9gfp6vfkcg0asb8jjwmy5i-gnugrep-3.11/bin/
from PATH_SUFFIXES while adding architecture paths for suffix '64'
Call Stack (most recent call first):
cmake/optional.cmake:155 (find_package)
CMakeLists.txt:374 (include)
CMake Debug Log at /nix/store/qacx56cg97hmwgh3gqz9a7qgdw82zmdp-cmake-3.27.7/share/cmake-3.27/Modules/FindSQLite3.cmake:40 (find_library):
find_library(SQLite3_LIBRARY) removed original suffix
/build/bitcoin-5e65a38896525cdb84f25e0968cc230e147cfc9b/depends/x86_64-pc-linux-gnu/nix/store/4v7m4yx07b3anmbznfhihjc8xiizyna9-gawk-5.2.2/bin/
from PATH_SUFFIXES while adding architecture paths for suffix '64'
Call Stack (most recent call first):
cmake/optional.cmake:155 (find_package)
CMakeLists.txt:374 (include)
CMake Debug Log at /nix/store/qacx56cg97hmwgh3gqz9a7qgdw82zmdp-cmake-3.27.7/share/cmake-3.27/Modules/FindSQLite3.cmake:40 (find_library):
find_library(SQLite3_LIBRARY) removed original suffix
/build/bitcoin-5e65a38896525cdb84f25e0968cc230e147cfc9b/depends/x86_64-pc-linux-gnu/nix/store/mi3pm67ps7c7k11aqki9182ygzg8j503-gnutar-1.35/bin/
from PATH_SUFFIXES while adding architecture paths for suffix '64'
Call Stack (most recent call first):
cmake/optional.cmake:155 (find_package)
CMakeLists.txt:374 (include)
CMake Debug Log at /nix/store/qacx56cg97hmwgh3gqz9a7qgdw82zmdp-cmake-3.27.7/share/cmake-3.27/Modules/FindSQLite3.cmake:40 (find_library):
find_library(SQLite3_LIBRARY) removed original suffix
/build/bitcoin-5e65a38896525cdb84f25e0968cc230e147cfc9b/depends/x86_64-pc-linux-gnu/nix/store/5c0ancqnpi0cf1h49mv13w68a950s9z0-gzip-1.13/bin/
from PATH_SUFFIXES while adding architecture paths for suffix '64'
Call Stack (most recent call first):
cmake/optional.cmake:155 (find_package)
CMakeLists.txt:374 (include)
CMake Debug Log at /nix/store/qacx56cg97hmwgh3gqz9a7qgdw82zmdp-cmake-3.27.7/share/cmake-3.27/Modules/FindSQLite3.cmake:40 (find_library):
find_library(SQLite3_LIBRARY) removed original suffix
/build/bitcoin-5e65a38896525cdb84f25e0968cc230e147cfc9b/depends/x86_64-pc-linux-gnu/nix/store/q5cv7r1sh3s4niyq7vm6h1j74394naxs-bzip2-1.0.8-bin/bin/
from PATH_SUFFIXES while adding architecture paths for suffix '64'
Call Stack (most recent call first):
cmake/optional.cmake:155 (find_package)
CMakeLists.txt:374 (include)
CMake Debug Log at /nix/store/qacx56cg97hmwgh3gqz9a7qgdw82zmdp-cmake-3.27.7/share/cmake-3.27/Modules/FindSQLite3.cmake:40 (find_library):
find_library(SQLite3_LIBRARY) removed original suffix
/build/bitcoin-5e65a38896525cdb84f25e0968cc230e147cfc9b/depends/x86_64-pc-linux-gnu/nix/store/bh7sbl99ygfvw9w96936nrhw46jmcmqq-gnumake-4.4.1/bin/
from PATH_SUFFIXES while adding architecture paths for suffix '64'
Call Stack (most recent call first):
cmake/optional.cmake:155 (find_package)
CMakeLists.txt:374 (include)
CMake Debug Log at /nix/store/qacx56cg97hmwgh3gqz9a7qgdw82zmdp-cmake-3.27.7/share/cmake-3.27/Modules/FindSQLite3.cmake:40 (find_library):
find_library(SQLite3_LIBRARY) removed original suffix
/build/bitcoin-5e65a38896525cdb84f25e0968cc230e147cfc9b/depends/x86_64-pc-linux-gnu/nix/store/7dpxg7ki7g8ynkdwcqf493p2x8divb4i-bash-5.2-p15/bin/
from PATH_SUFFIXES while adding architecture paths for suffix '64'
Call Stack (most recent call first):
cmake/optional.cmake:155 (find_package)
CMakeLists.txt:374 (include)
CMake Debug Log at /nix/store/qacx56cg97hmwgh3gqz9a7qgdw82zmdp-cmake-3.27.7/share/cmake-3.27/Modules/FindSQLite3.cmake:40 (find_library):
find_library(SQLite3_LIBRARY) removed original suffix
/build/bitcoin-5e65a38896525cdb84f25e0968cc230e147cfc9b/depends/x86_64-pc-linux-gnu/nix/store/mbh9gx43gsc5av019vsdkazbyiic3f0f-patch-2.7.6/bin/
from PATH_SUFFIXES while adding architecture paths for suffix '64'
Call Stack (most recent call first):
cmake/optional.cmake:155 (find_package)
CMakeLists.txt:374 (include)
CMake Debug Log at /nix/store/qacx56cg97hmwgh3gqz9a7qgdw82zmdp-cmake-3.27.7/share/cmake-3.27/Modules/FindSQLite3.cmake:40 (find_library):
find_library(SQLite3_LIBRARY) removed original suffix
/build/bitcoin-5e65a38896525cdb84f25e0968cc230e147cfc9b/depends/x86_64-pc-linux-gnu/nix/store/3q6fnwcm677l1q60vkhcf9m1gxhv83jm-xz-5.4.4-bin/bin/
from PATH_SUFFIXES while adding architecture paths for suffix '64'
Call Stack (most recent call first):
cmake/optional.cmake:155 (find_package)
CMakeLists.txt:374 (include)
CMake Debug Log at /nix/store/qacx56cg97hmwgh3gqz9a7qgdw82zmdp-cmake-3.27.7/share/cmake-3.27/Modules/FindSQLite3.cmake:40 (find_library):
find_library(SQLite3_LIBRARY) removed original suffix
/build/bitcoin-5e65a38896525cdb84f25e0968cc230e147cfc9b/depends/x86_64-pc-linux-gnu/nix/store/a5s2dmba16pw8l52f496gw0b7nli7mbn-file-5.45/bin/
from PATH_SUFFIXES while adding architecture paths for suffix '64'
Call Stack (most recent call first):
cmake/optional.cmake:155 (find_package)
CMakeLists.txt:374 (include)
CMake Debug Log at /nix/store/qacx56cg97hmwgh3gqz9a7qgdw82zmdp-cmake-3.27.7/share/cmake-3.27/Modules/FindSQLite3.cmake:40 (find_library):
find_library(SQLite3_LIBRARY) removed original suffix
/build/bitcoin-5e65a38896525cdb84f25e0968cc230e147cfc9b/depends/x86_64-pc-linux-gnu/nix/store/qacx56cg97hmwgh3gqz9a7qgdw82zmdp-cmake-3.27.7/lib/
from PATH_SUFFIXES while adding architecture paths for suffix '64'
Call Stack (most recent call first):
cmake/optional.cmake:155 (find_package)
CMakeLists.txt:374 (include)
CMake Debug Log at /nix/store/qacx56cg97hmwgh3gqz9a7qgdw82zmdp-cmake-3.27.7/share/cmake-3.27/Modules/FindSQLite3.cmake:40 (find_library):
find_library(SQLite3_LIBRARY) removed original suffix
/build/bitcoin-5e65a38896525cdb84f25e0968cc230e147cfc9b/depends/x86_64-pc-linux-gnu/nix/store/qacx56cg97hmwgh3gqz9a7qgdw82zmdp-cmake-3.27.7/
from PATH_SUFFIXES while adding architecture paths for suffix '64'
Call Stack (most recent call first):
cmake/optional.cmake:155 (find_package)
CMakeLists.txt:374 (include)
CMake Debug Log at /nix/store/qacx56cg97hmwgh3gqz9a7qgdw82zmdp-cmake-3.27.7/share/cmake-3.27/Modules/FindSQLite3.cmake:40 (find_library):
find_library(SQLite3_LIBRARY) removed original suffix
/build/bitcoin-5e65a38896525cdb84f25e0968cc230e147cfc9b/depends/x86_64-pc-linux-gnu/nix/store/j6mwswpa6zqhdm1lm2lv9iix3arn774g-glibc-2.38-27/lib/
from PATH_SUFFIXES while adding architecture paths for suffix '64'
Call Stack (most recent call first):
cmake/optional.cmake:155 (find_package)
CMakeLists.txt:374 (include)
CMake Debug Log at /nix/store/qacx56cg97hmwgh3gqz9a7qgdw82zmdp-cmake-3.27.7/share/cmake-3.27/Modules/FindSQLite3.cmake:40 (find_library):
find_library called with the following settings:
VAR: SQLite3_LIBRARY
NAMES: "sqlite3"
"sqlite"
Documentation: Path to a library.
Framework
Only Search Frameworks: 0
Search Frameworks Last: 1
Search Frameworks First: 0
AppBundle
Only Search AppBundle: 0
Search AppBundle Last: 0
Search AppBundle First: 0
CMAKE_FIND_USE_CMAKE_PATH: 1
CMAKE_FIND_USE_CMAKE_ENVIRONMENT_PATH: 0
CMAKE_FIND_USE_SYSTEM_ENVIRONMENT_PATH: 1
CMAKE_FIND_USE_CMAKE_SYSTEM_PATH: 1
CMAKE_FIND_USE_INSTALL_PREFIX: 0
find_library considered the following locations:
The item was not found.
Call Stack (most recent call first):
cmake/optional.cmake:155 (find_package)
CMakeLists.txt:374 (include)
-- Could NOT find SQLite3 (missing: SQLite3_INCLUDE_DIR SQLite3_LIBRARY) (Required is at least version "3.7.17")
CMake Debug Log at cmake/optional.cmake:155 (find_package):
find_package considered the following paths for FindSQLite3.cmake:
/build/bitcoin-5e65a38896525cdb84f25e0968cc230e147cfc9b/cmake/module/FindSQLite3.cmake
The file was found at
/nix/store/qacx56cg97hmwgh3gqz9a7qgdw82zmdp-cmake-3.27.7/share/cmake-3.27/Modules/FindSQLite3.cmake
The module is considered not found due to SQLite3_FOUND being FALSE.
Call Stack (most recent call first):
CMakeLists.txt:374 (include)
=== FIND SQLITE ENDS ===
-- Found BerkeleyDB: /build/bitcoin-5e65a38896525cdb84f25e0968cc230e147cfc9b/depends/x86_64-pc-linux-gnu/lib/libdb_cxx-4.8.a (found suitable version "4.8.30", minimum required is "4.8")
However, I can set -DSQLite3_INCLUDE_DIR=/absolute/path/to/depends/include/ -DSQLite3_LIBRARY=/absolute/path/to/depends/lib/
and it finds and builds with sqlite. Though, that's a hack and defeats the purpose of having cmake in the first place.
Just in case, what are values of all CMAKE_*
environment variables?
To be clear, cmake looks for sqlite.h in e.g. /build/bitcoin-5e65a38896525cdb84f25e0968cc230e147cfc9b/depends/x86_64-pc-linux-gnu/nix/store/qacx56cg97hmwgh3gqz9a7qgdw82zmdp-cmake-3.27.7/include/sqlite3.h
/build/bitcoin-5e65a38896525cdb84f25e0968cc230e147cfc9b/depends/x86_64-pc-linux-gnu
is the correct absolute depends path. /nix/store/qacx56cg97hmwgh3gqz9a7qgdw82zmdp-cmake-3.27.7/
is the Nix path to the cmake installation. Similarly, it's also looking in the gnutar
, gzip
, ... installation directories. This seems wrong.
Just in case, what are values of all
CMAKE_*
environment variables?
Besides CMAKE_TOOLCHAIN_FILE
, which I set, there's
CMAKE_PREFIX_PATH="/nix/store/3ck7yhjzm3h5m3984ni6mj6nbq4saya0-pkg-config-wrapper-0.29.2:/nix/store/h3ayxf5dk1gdf3s5716fh1ys815qxxag-patchelf-0.15.0:/nix/store/v5qyd49a256y44pz75qnsp9741mg336k-update-autotools-gnu-config-scripts-hook:/nix/store/km2phngnvjywx3853lfh2bqwyyfz703p-gcc-wrapper-10.5.0:/nix/store/kxgw6wbakp4041y4005iyl9bdi0ri7py-binutils-wrapper-2.40:/nix/store/qacx56cg97hmwgh3gqz9a7qgdw82zmdp-cmake-3.27.7:/nix/store/qwcm1l919ay3kdj41vn3g6df1spd0v2w-hexdump-util-linux-2.39.2:/nix/store/a46vw4yj5avynw7i24h3j7iski7y4f6b-which-2.21"
This looks very much like the problem!
Setting CMAKE_PREFIX_PATH
seems to be a nixos thing: https://nixos.org/manual/nixpkgs/stable/#cmake
What about configuring with -DCMAKE_FIND_USE_CMAKE_ENVIRONMENT_PATH=OFF
?
What about configuring with
-DCMAKE_FIND_USE_CMAKE_ENVIRONMENT_PATH=OFF
?
Similar to https://github.com/hebasto/bitcoin/issues/121#issuecomment-2015185149 - does not find sqlite. I've also tried -DCMAKE_FIND_USE_SYSTEM_ENVIRONMENT_PATH=OFF
, but that does not seem to work at all.
What about configuring with
-DCMAKE_FIND_USE_CMAKE_ENVIRONMENT_PATH=OFF
?Similar to #121 (comment) - does not find sqlite. I've also tried
-DCMAKE_FIND_USE_SYSTEM_ENVIRONMENT_PATH=OFF
, but that does not seem to work at all.
Ah, I've just noticed CMAKE_FIND_USE_CMAKE_ENVIRONMENT_PATH: 0
in https://github.com/hebasto/bitcoin/issues/121#issuecomment-2015185149.
Sorry for false guessing :)
Another option to try is -DCMAKE_FIND_USE_CMAKE_PATH=OFF
.
What about configuring with
-DCMAKE_FIND_USE_CMAKE_ENVIRONMENT_PATH=OFF
?Similar to #121 (comment) - does not find sqlite. I've also tried
-DCMAKE_FIND_USE_SYSTEM_ENVIRONMENT_PATH=OFF
, but that does not seem to work at all.Ah, I've just noticed
CMAKE_FIND_USE_CMAKE_ENVIRONMENT_PATH: 0
in #121 (comment).Sorry for false guessing :)
Another option to try is
-DCMAKE_FIND_USE_CMAKE_PATH=OFF
.
Did not work, but -DCMAKE_PREFIX_PATH=/
does!!
Configure summary
=================
Executables:
bitcoind ............................ ON
bitcoin-cli ......................... ON
bitcoin-tx .......................... ON
bitcoin-util ........................ ON
bitcoin-wallet ...................... ON
Wallet support:
SQLite, descriptor wallets .......... ON
Berkeley DB, legacy wallets ......... ON
Optional packages:
GUI ................................. Qt5
QR code (GUI) ....................... ON
external signer ..................... ON
NAT-PMP ............................. ON
UPnP ................................ ON
ZeroMQ .............................. ON
USDT tracing ........................ ON
Tests:
test_bitcoin ........................ OFF
test_bitcoin-qt ..................... OFF
bench_bitcoin ....................... OFF
fuzz binary ......................... OFF
Cross compiling ....................... TRUE, for Linux, x86_64
Preprocessor defined macros ...........
C compiler ............................ /nix/store/km2phngnvjywx3853lfh2bqwyyfz703p-gcc-wrapper-10.5.0/bin/gcc
CFLAGS ................................
C++ compiler .......................... /nix/store/km2phngnvjywx3853lfh2bqwyyfz703p-gcc-wrapper-10.5.0/bin/g++
CXXFLAGS ..............................
Common compile options ................ -fno-extended-identifiers -fstack-reuse=none -Wstack-protector -fstack-protector-all -fcf-protection=full -fstack-clash-protection -Wall -Wextra -Wformat -Wformat-security -Wvla -Wredundant-decls -Wdate-time -Wduplicated-branches -Wduplicated-cond -Wlogical-op -Woverloaded-virtual -Wsuggest-override -Wimplicit-fallthrough -Wunreachable-code -Wno-unused-parameter
Common link options ................... -fno-extended-identifiers -fstack-reuse=none -fstack-protector-all -fcf-protection=full -fstack-clash-protection -Wl,-z,relro -Wl,-z,now -Wl,-z,separate-code
Linker flags for executables ..........
Linker flags for shared libraries .....
Build type (configuration):
- CMAKE_BUILD_TYPE ................... Release
- Preprocessor defined macros ........
- CFLAGS ............................. -O2
- CXXFLAGS ........................... -O2
- LDFLAGS for executables ............
- LDFLAGS for shared libraries .......
Attempt to harden executables ......... ON
Treat compiler warnings as errors ..... OFF
Use ccache for compiling .............. OFF
Thank you! I'll report back if I run into any other issues.
I've looked into compatibility between the cmake-staging branch and Nix/NixOS packaging. I'm using this issue as an tracking issue, let me know if I should move it somewhere else.
Specifically, looking at the following:
cmake
build of the Nixbitcoin
(with GUI) andbitcoind
(without GUI) packages based on https://github.com/NixOS/nixpkgs/blob/nixos-23.11/pkgs/applications/blockchains/bitcoin/default.nix. This uses Nix depends.cmake
build of a full depends build (as we do in GUIX). I've been hacking on this in https://github.com/0xB10C/bitcoind-gunix/issues/1. The latest I've been able to build is 25.0, but haven't spent too much time on it.I'm only testing
x86_64-linux
at the moment.1. nixpkgs on
x86_64-linux
Building 5e65a38896525cdb84f25e0968cc230e147cfc9b with the following patch to the
bitcoin/default.nix
file seems to mostly work. It fails during the installation of the bash completions, likely because the relative bash completions path isn't compatible with Nix. I can investigate what's needed here. Note that the nixpkgs version has it's own install of the bash completions. If we can skip these in the install phase, that might be an option.Full build.log
2. depends build on x86_64-linux
Will update once I have a v26.0 build working and get to cmake. See https://github.com/0xB10C/bitcoind-gunix/issues/1#issuecomment-2001959293.