Skip to content

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

Closed

Description

@maflcko

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++"

Activity

  1. hebasto commented on Nov 12, 2025

    @hebasto
    Member

    Native compilers are managed by the build_CC and build_CXX variables, no?

  2. maflcko commented on Nov 12, 2025

    @maflcko
    MemberAuthor

    thx, i guess some docs about those settings could help. Otherwise, users will have to read the source code.

  3. added a commit that references this issue on Mar 11, 2026
    ce6f182
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions