You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Linux 下 llvm 工具链链接阶段传入 --no-default-config,丢失 clang++.cfg 中的 --sysroot,导致 cannot open Scrt1.o/crti.o/crtn.o #195
mcpp new hello,在 src/main.cpp 中使用 import std; 和 std::println
在 mcpp.toml 中将工具链设为 llvm:
[toolchain]
linux = "llvm@22.1.8"
执行 mcpp run
实际结果
编译阶段成功,链接阶段失败:
ld.lld: error: cannot open Scrt1.o: No such file or directory
ld.lld: error: cannot open crti.o: No such file or directory
ld.lld: error: cannot open crtn.o: No such file or directory
clang++: error: linker command failed with exit code 1
Activity
Sunrisepeak commentedon Jul 7, 2026
相关修复已经合入 使用下面命令更新到 最新 0.0.83 版本 验证一下
如果还是有问题 可以 reopen 继续反馈
feat(toolchain): hermetic link model — CRT/loader from one resolver, …