Skip to content

mcpp run 不显示程序运行结果 - 2.39/lib64/libc.so.6: version `GLIBC_2.42' not found (required by /lib64/libtinfo.so.6) #127

Description

@jinglei-cpc

版本:mcpp 0.0.52

代码:
import std;

int main() {
std::println("Hello from hello!");
std::println("Built with import std + std::println on modular C++23.");
}

mcpp run 执行结果:
Resolving toolchain
Resolved gcc@16.1.0 → @mcpp/registry/data/xpkgs/xim-x-gcc/16.1.0/bin/g++
Inferred sources [src/**/*.{cppm,cpp,cc,c}]
Inferred target my_project (bin from src/main.cpp)
Compiling my_project v0.1.0 (.)
Finished release [optimized] in 0.00s
Running target/x86_64-linux-gnu/08848711309abfc2/bin/my_project

Activity

  1. Sunrisepeak commented on Jun 8, 2026

    @Sunrisepeak
    Member

    Running target/x86_64-linux-gnu/08848711309abfc2/bin/my_project 从这个log看 按理应该正常了, 后面具体显示的什么啊 报错还是什么?

    你可以按下面的操作 反馈一下信息给我, 我来分析分析

    • 1.什么linux系统?
    • 2.运行 mcpp new hello1 && cd hello1 && mcpp run --verbose 完整的 输出 和 截图 贴一下
    Image
  2. self-assigned this
    on Jun 8, 2026
  3. Sunrisepeak commented on Jun 19, 2026

    @Sunrisepeak
    Member

    @jinglei-cpc 最近有发现类似的情况, 核心不是 构建问题 而是 运行时的 glibc 依赖问题 类似下面

    xpkgs/xim-x-glibc/2.39/lib64/libc.so.6: version `GLIBC_2.42' not found (required by /lib64/libtinfo.so.6)
    

    不知道你是不是这个情况, 目前最新版本 0.0.56 已经修复这个 运行问题, 可以用下面命令进行更新后试一试

    xlings update mcpp -y
    

    或

    xlings install mcpp@0.0.56 -y
    xlings use mcpp 0.0.56
    

    如果还有遇到问题, 可以继续反馈


  4. added theissue type on Jun 19, 2026
  5. changed the title [-]mcpp run 不显示程序运行结果[/-] [+]mcpp run 不显示程序运行结果 - c/2.39/lib64/libc.so.6: version `GLIBC_2.42' not found (required by /lib64/libtinfo.so.6)[/+] on Jun 19, 2026
  6. changed the title [-]mcpp run 不显示程序运行结果 - c/2.39/lib64/libc.so.6: version `GLIBC_2.42' not found (required by /lib64/libtinfo.so.6)[/-] [+]mcpp run 不显示程序运行结果 - 2.39/lib64/libc.so.6: version `GLIBC_2.42' not found (required by /lib64/libtinfo.so.6)[/+] on Jun 19, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

bugSomething isn't working

Type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions