Skip to content

Please update to newer Binutils, Linux UAPI headers, and patchelf in the managed Linux GCC toolchain #988

Done

Description

@UsmanTariq2

So im trying out mcpp for a Linux project using gcc / g++

The first issue i encountered, was that the default compiler in the toolchain when i did mcpp new hello_world and mcpp build was g++ 16.1 , instead of whatever the latest upstream gcc version is ,which is 16.2

The same problem accross the entire Linux toolchain. I wanted to use the latest toolchains for my project, since it will be utilizing latest c++26 features - yk, the latest stuff.

I’m trying mcpp 2026.11.20.1 on Fedora 45 x86_64. A fresh hello_world project builds and runs successfully with import std; using managed GCC 16.2.0. The compiler and glibc are already on current stable upstream release series. Several supporting packages are still pinned to older versions.

Component | Version selected by xlings | Current upstream release -- | -- | -- GNU Binutils | 2.42.1, packaged from upstream 2.42 | 2.47 Linux userspace API headers | 5.11.1 | 7.3.5 kernel release patchelf | 0.18.0 | 0.19.3

I think having the latest packages is a must. Like some of theses are pretty outdated for e.g the Linux headers. Overall , i'd say that Linux toolchain is a pretty major set of packages and not having them up to date does not look good for new users or people trying it out.

Secondly, i think that the default toolchain should default to the latest. Like i had to do manually [email protected] when i selected gcc@16.
In versioning, one must select the highest variant if no specific minor version is given, which would be 16.2. gcc@16 reuses installed GCC 16.1.0 when the index offers 16.2.0. Perhaps this is a seperate issue, but the versioning update based stuff seems broken in this case.

Fedora 45 KDE

Activity

  1. UsmanTariq2 commented on Nov 22, 2026

    @UsmanTariq2
    Author
    image

    I dont see the latest linux headers in the 7.1.xx.7.2.xx .7.3.xx

  2. UsmanTariq2 commented on Nov 22, 2026

    @UsmanTariq2
    Author

    Also in : https://index.xlings.org/packages/gcc

    Please add the latest variant of gcc/g++ 14, which is something like 14.4.1 etc ( for linux ) . This older gcc compiler is still needed for many development workflows. Its not also just about having the latest and greatest stuff as my previous post may have left an impression of.

  3. Sunrisepeak commented on Nov 24, 2026

    @Sunrisepeak
    Member

    @UsmanTariq2 I have added 7.3.x to index repo , mcpp support config by local path or submit to xim-pkgindex repo, you can try:

    mcpp.toml

    [target.x86_64-linux-gnu.layers]
    kernel-abi = "xim:[email protected]"     # an ecosystem payload, always with its version
    # kernel-abi = { path = "third_party/uapi" }  # or a header directory (no mcpp.toml in it)
    
    image

    about gcc 14, mcpp focus on C++ Modules, however it dont support, so it supported by { path = … } — custom toolchain

  4. self-assigned this
    on Nov 24, 2026
  5. added
    enhancement
    on Nov 24, 2026
  6. UsmanTariq2 commented on Nov 24, 2026

    @UsmanTariq2
    Author

    Great. Thanks alot

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

enhancement

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions