Guix: build riscv64 master / v30rc1 fails #33426

issue janb84 openend this issue on September 18, 2025
  1. janb84 commented at 11:22 am on September 18, 2025: contributor

    Is there an existing issue for this?

    • I have searched the existing issues

    Current behaviour

    While building a guix-build of v30rc1 or main for riscv64-linux-gnu architecture fails with :

    0[100%] Linking CXX executable ../../bin/test_bitcoin
    1riscv64-linux-gnu-ld: CMakeFiles test_bitcoin.dir/main.cpp.o: in function "boost::fpe::disable(unsigned int)':
    2bitcoin depends/riscv64-linux-gnu/include/boost/test/impl/execution_monitor.ipp:1538: warning: fedisableexcept is not implemented and will always fail 
    3riscv64-linux-gnu-ld: CMakeFiles/test_bitcoin.dir/main.cpp.o: in function 'boost::fpe: :enablefunsigned int)':
    4/bitcoin/depends/riscv64-linux-gnu/include/boost/test/impl/execution_monitor.ipp:1502: warning: feenableexcept is not implemented and will always fail
    5[100%] Built target test_bitcoin make: 
    6*** [Makefile: 146: alll] Error 2
    

    building tag version 29.0 / 29.1 / 29.2rc1 works , other architectures also build as expected.

    Building on aarch64 nixos 25.05 / M1 max

    Expected behaviour

    Successful build

    Steps to reproduce

    0git clone https://github.com/bitcoin/bitcoin.git -b v30.0rc1 --depth 1
    1cd bitcoin
    2env HOST='riscv64-linux-gnu' ./contrib/guix/guix-build
    

    Relevant log output

    0[100%] Linking CXX executable ../../bin/test_bitcoin
    1riscv64-linux-gnu-ld: CMakeFiles test_bitcoin.dir/main.cpp.o: in function "boost::fpe::disable(unsigned int)':
    2bitcoin depends/riscv64-linux-gnu/include/boost/test/impl/execution_monitor.ipp:1538: warning: fedisableexcept is not implemented and will always fail 
    3riscv64-linux-gnu-ld: CMakeFiles/test_bitcoin.dir/main.cpp.o: in function 'boost::fpe: :enablefunsigned int)':
    4/bitcoin/depends/riscv64-linux-gnu/include/boost/test/impl/execution_monitor.ipp:1502: warning: feenableexcept is not implemented and will always fail
    5[100%] Built target test_bitcoin make: 
    6*** [Makefile: 146: alll] Error 2
    

    How did you obtain Bitcoin Core

    Compiled from source

    What version of Bitcoin Core are you using?

    v30.0rc1

    Operating system and version

    Nixos 25.05

    Machine specifications

    apple m1 max

  2. fanquake commented at 11:33 am on September 18, 2025: member
    Can you provide more info? These warnings have existed for years (i.e are in the 29.x branch that builds for you), and build warnings shouldn’t cause guix build failures.
  3. janb84 commented at 11:41 am on September 18, 2025: contributor

    going to hunt down some more information.

    The difference between 29.x and master / v30.0.rc1 on line 146 of the make file is IPC:

    line 146:

    0if(ENABLE_IPC AND WITH_EXTERNAL_LIBMULTIPROCESS)
    1  find_package(Libmultiprocess REQUIRED COMPONENTS Lib)
    2  find_package(LibmultiprocessNative REQUIRED COMPONENTS Bin
    3    NAMES Libmultiprocess
    4  )
    5endif()
    
  4. hebasto commented at 12:19 pm on September 18, 2025: member

    @janb84

    Could you please check your build log for the actual error message, which may appear many lines earlier?

  5. janb84 commented at 12:27 pm on September 18, 2025: contributor

    Added console log, and build logs

    CMakeError.log CMakeOutput.log console.log

  6. hebasto commented at 12:35 pm on September 18, 2025: member

    Added console log, and build logs

    console.log

    Does it include stderr output as well?

  7. janb84 commented at 12:37 pm on September 18, 2025: contributor

    Added console log, and build logs console.log

    Does it include stderr output as well?

    Unfortunately not, just piped the output to a file. Working on it :)

  8. janb84 commented at 1:27 pm on September 18, 2025: contributor

    Going to close this issue, it was a memory exhaustion problem.

    Seems like V30 needs just a little more memory to build than V29.x

    0collect2: fatal error: ld terminated with signal 9 [Killed]
    1compilation terminated.
    2make[2]: *** [src/qt/CMakeFiles/bitcoin-gui.dir/build.make:201: bin/bitcoin-gui] Error 1
    3make[2]: *** Deleting file 'bin/bitcoin-gui'
    4make[1]: *** [CMakeFiles/Makefile2:1991: src/qt/CMakeFiles/bitcoin-gui.dir/all] Error 2
    5make[1]: *** Waiting for unfinished jobs....
    

    Thanks for the help. Allocated just a bit more memory for the VM and it builds.

  9. janb84 closed this on Sep 18, 2025


github-metadata-mirror

This is a metadata mirror of the GitHub repository bitcoin/bitcoin. This site is not affiliated with GitHub. Content is generated from a GitHub metadata backup.
generated: 2025-09-26 15:13 UTC

This site is hosted by @0xB10C
More mirrored repositories can be found on mirror.b10c.me