depends: native_capnp picks system gcc, not CC/CXX #33859

issue maflcko openend this issue on November 12, 2025
  1. maflcko commented at 10:37 am on November 12, 2025: member

    native_capnp seems to ignore the CC/CXX settings. This leads to compile failures on distros that come with an older GCC, such as RHEL-based Linux 8, or the latest OpenSuse Leap:

     0# ( cd depends && make CC=clang CXX=clang++  -j $(nproc) )
     1
     2Configuring native_capnp...
     3-- The CXX compiler identification is GNU 7.5.0
     4-- Detecting CXX compiler ABI info
     5-- Detecting CXX compiler ABI info - failed
     6-- Check for working CXX compiler: /usr/bin/g++
     7-- Check for working CXX compiler: /usr/bin/g++ - broken
     8CMake Error at /usr/share/cmake/Modules/CMakeTestCXXCompiler.cmake:60 (message):
     9  The C++ compiler
    10
    11    "/usr/bin/g++"
    
  2. maflcko added the label Build system on Nov 12, 2025
  3. hebasto commented at 10:53 am on November 12, 2025: member
    Native compilers are managed by the build_CC and build_CXX variables, no?
  4. maflcko commented at 11:09 am on November 12, 2025: member
    thx, i guess some docs about those settings could help. Otherwise, users will have to read the source code.

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-11-23 21:13 UTC

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