I cannot install qbittorrent or deluged on my Raspberrry Pi 3. I’m cross-compiling. Boost complains that it cannot find python3.
Could NOT find Python3 (missing: Python3_EXECUTABLE Interpreter) (found
version "3.12.9")
If I just install boost and/or python3, this error does not appear.
- build platform
x86_64-linux
- host platform
aarch64-linux
- tested with
nixos-24.11
andnixos-unstable
environment.systemPackages = with pkgs; [
# qbittorrent # gives the error
# deluge # gives the error
libtorrent-rasterbar # gives the error
# boost # this works
# python3 # this works
];
Full log:
nix log /nix/store/ya637rnm0c99r1vpk0194jkkrj7kvb4b-libtorrent-rasterbar-aarch64-unknown-linux-gnu-2.0.11.drv
Running phase: unpackPhase
@nix { "action": "setPhase", "phase": "unpackPhase" }
unpacking source archive /nix/store/q0lm00mv0bws3y09qkc059ps9hm9qw9f-source
source root is source
Running phase: patchPhase
@nix { "action": "setPhase", "phase": "patchPhase" }
applying patch /nix/store/fr6rv93vkasq429d03bp9kw60d805vlr-distutils.patch
patching file bindings/python/CMakeLists.txt
substituteStream() in derivation libtorrent-rasterbar-aarch64-unknown-linux-gnu-2.0.11: WARNING: '--replace' is deprecated, use --replace-{fail,warn,quiet}. (file 'cmake/Modules/GeneratePkgConfig/target-compile-settings.cmake.in')
Running phase: updateAutotoolsGnuConfigScriptsPhase
@nix { "action": "setPhase", "phase": "updateAutotoolsGnuConfigScriptsPhase" }
Running phase: updateAutotoolsGnuConfigScriptsPhase
@nix { "action": "setPhase", "phase": "updateAutotoolsGnuConfigScriptsPhase" }
Running phase: configurePhase
@nix { "action": "setPhase", "phase": "configurePhase" }
fixing cmake files...
cmake flags: -DCMAKE_FIND_USE_SYSTEM_PACKAGE_REGISTRY=OFF -DCMAKE_FIND_USE_PACKAGE_REGISTRY=OFF -DCMAKE_EXPORT_NO_PACKAGE_REGISTRY=ON -DCMAKE_BUILD_TYPE=Release -DBUILD_TESTING=OFF -DCMAKE_INSTALL_LOCALEDIR=/nix/store/g6qm1d4bll1yd8q05d6s6nqm9m3049qn-libtorrent-rasterbar-aarch64-unknown-linux-gnu-2.0.11/share/locale>
-- The C compiler identification is GNU 14.2.1
-- The CXX compiler identification is GNU 14.2.1
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Check for working C compiler: /nix/store/wz5a4z8z4dq2vlv6clszqixcdb0v9dl3-aarch64-unknown-linux-gnu-gcc-wrapper-14-20241116/bin/aarch64-unknown-linux-gnu-gcc - 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: /nix/store/wz5a4z8z4dq2vlv6clszqixcdb0v9dl3-aarch64-unknown-linux-gnu-gcc-wrapper-14-20241116/bin/aarch64-unknown-linux-gnu-g++ - skipped
-- Detecting CXX compile features
-- Detecting CXX compile features - done
-- Performing Test CMAKE_HAVE_LIBC_PTHREAD
-- Performing Test CMAKE_HAVE_LIBC_PTHREAD - Success
-- Found Threads: TRUE
-- Performing Test HAVE_CXX_ATOMICS_WITHOUT_LIB
-- Performing Test HAVE_CXX_ATOMICS_WITHOUT_LIB - Success
-- Performing Test HAVE_CXX_ATOMICS8_WITHOUT_LIB
-- Performing Test HAVE_CXX_ATOMICS8_WITHOUT_LIB - Success
-- Performing Test HAVE_CXX_ATOMICS64_WITHOUT_LIB
-- Performing Test HAVE_CXX_ATOMICS64_WITHOUT_LIB - Success
-- Found OpenSSL: /nix/store/dl48472i2cp1vjm46smj407frhagy8kl-openssl-aarch64-unknown-linux-gnu-3.4.1/lib/libcrypto.so (found version "3.4.1")
CMake Warning (dev) at cmake/Modules/LibtorrentMacros.cmake:43 (find_package):
Policy CMP0167 is not set: The FindBoost module is removed. Run "cmake
--help-policy CMP0167" for policy details. Use the cmake_policy command to
set the policy and suppress this warning.
Call Stack (most recent call first):
CMakeLists.txt:811 (find_public_dependency)
This warning is for project developers. Use -Wno-dev to suppress it.
-- Found Boost: /nix/store/ya9wdch2wx8pwg280zr5agqjd8mkn1d2-boost-aarch64-unknown-linux-gnu-1.87.0-dev/lib/cmake/Boost-1.87.0/BoostConfig.cmake (found version "1.87.0")
CMake Error at /nix/store/01dapiw4pjrc9s0166dcyg9xkw0rv01z-cmake-3.31.5/share/cmake-3.31/Modules/FindPackageHandleStandardArgs.cmake:233 (message):
Could NOT find Python3 (missing: Python3_EXECUTABLE Interpreter) (found
version "3.12.9")
Call Stack (most recent call first):
/nix/store/01dapiw4pjrc9s0166dcyg9xkw0rv01z-cmake-3.31.5/share/cmake-3.31/Modules/FindPackageHandleStandardArgs.cmake:603 (_FPHSA_FAILURE_MESSAGE)
/nix/store/01dapiw4pjrc9s0166dcyg9xkw0rv01z-cmake-3.31.5/share/cmake-3.31/Modules/FindPython/Support.cmake:4002 (find_package_handle_standard_args)
/nix/store/01dapiw4pjrc9s0166dcyg9xkw0rv01z-cmake-3.31.5/share/cmake-3.31/Modules/FindPython3.cmake:602 (include)
bindings/python/CMakeLists.txt:32 (find_package)
-- Configuring incomplete, errors occurred!
Please advise!