How to upgrade to libstdcx++ latest version

I have any issues with libstdcx++
I’m compiling kernel with a toolchain based on clang 15 and i can’t build in arch distros after a toolchain update
But it’s working in ubuntu jammy

welcome at the forum :purple_square:

And a hard question for your first post :wink:

pacman -Qo /usr/lib/libstdc++.so.6.0.29
/usr/lib/libstdc++.so.6.0.29 is owned by gcc-libs 11.2.0-4

there is:
https://aur.archlinux.org/packages/gcc-libs-git
in AUR … but:
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=101941

1 Like

What issues?

Which update?

This is very pre-release (14 hasn’t even been released yet), so you’ll have to check it’s not just an issue with that toolchain.

1 Like

No it’s not an issue with toolchain I’m using
Also clang 15 is released
And clang15 is working with ubuntu jammy
But i don’t like ubuntu that’s why using endeavour

Which toolchain are you using?

Where? LLVM is currently at version 13.0.1.

Jammy currently has the pre-release clang 14.0.0rc4, http://changelogs.ubuntu.com/changelogs/pool/universe/l/llvm-toolchain-14/llvm-toolchain-14_14.0.0~+rc4-1ubuntu1/changelog

Also, don’t forget about the two questions I asked in my previous reply:

2 Likes

It’s not an issue with the toolchain
I’ll send full log here while compiling kernel

Ah lovely, another project that thinks a random commit from a source tree is obviously going to give them better performance because it’s “newer” than the latest release. Picking a random development commit clearly doesn’t have any potential for introducing weird issues at all.

I’m not convinced.

You could try LLVM from the repo, or llvm-git from the AUR to confirm.

2 Likes


Here is the log

ld.lld: /usr/lib/libstdc++.so.6: version `GLIBCXX_3.4.30’ not found (required by ld.lld)

There’s no link included there.

I assume that’s the ld from the Atom-X toolchain trying to access a specific GCC library version. It looks like GLIBCXX_3.4.30 means GCC 12, which means your Atom-X toolchain is compiled against a newer toolchain than that on your system. This in turn means it is in fact an issue with the toolchain you’re trying to use.

Given LLVM 15 doesn’t exist, and GCC 12 is pre-release, you really should consider using released compilers rather than potentially buggy pre-release compilers that can introduce hidden issues in the binaries they compile.

2 Likes