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

issue maflcko opened 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:

    # ( cd depends && make CC=clang CXX=clang++  -j $(nproc) )
    
    Configuring native_capnp...
    -- The CXX compiler identification is GNU 7.5.0
    -- Detecting CXX compiler ABI info
    -- Detecting CXX compiler ABI info - failed
    -- Check for working CXX compiler: /usr/bin/g++
    -- Check for working CXX compiler: /usr/bin/g++ - broken
    CMake Error at /usr/share/cmake/Modules/CMakeTestCXXCompiler.cmake:60 (message):
      The C++ compiler
    
        "/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.

  5. fanquake closed this on Mar 11, 2026

  6. pull[bot] referenced this in commit ce6f182091 on Mar 11, 2026

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: 2026-04-21 21:12 UTC

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