Description
Observation
A package that depends on mcpplibs.openkal-musl on a Linux host, with no C++ ABI supplier in the graph and no cxx_runtime setting, fails in the std module precompile with a raw compiler error instead of a planning diagnostic:
[package]
name = "musldep"
version = "0.1.0"
[dependencies.mcpplibs]
openkal-musl = "0.28.0" Target x86_64-unknown-linux-gnu
kernel-abi openkal (openkal-linux@0.25.0, graph)
c-abi musl (openkal-musl@0.28.0, graph)
c++-abi —
error: std module precompile failed (rc=1):
- default toolchain (gcc 16.1.0):
bits/os_defines.h:39:10: fatal error: features.h: No such file or directory --toolchain llvm@23.1.3:std.cppm:16:10: fatal error: '__config' file not found(the command carries--no-default-config -nostdlibincand no C++ library include directory)
Reproduced with 2026.11.5.1 and the 2026.11.7.1 candidate (#889). The index member tests/examples/openkal-musl builds because it states [build] cxx_runtime = "host-coupled".
Expected
The graph replaces the C library but supplies no C++ ABI, so the host's C++ library (built against glibc) no longer has a C library to sit on. Planning knows this before any compiler runs. It either refuses with the two remedies (cxx_runtime = "host-coupled", or a dependency that supplies the C++ ABI such as openkal-llvm-runtime), or compiles the std module with a C++ library that matches the graph's C library. A compiler error from inside the standard library headers is the wrong place to learn it.
Activity
speak-agent commentedon Nov 27, 2026
Fixed in mcpp 2026.11.27.1 (#1023). A graph C library without a C++ ABI, with a unit that imports the standard library module, is refused at planning (
layer-requirement), and the message names both remedies (SPEC-002 §3.11).