ProtoCorgi

ProtoCorgi

View Stats:
[elf/linux] game does not start: too recent glibc used for linking (fix provided)
/mnt/128/home/user/.local/share/Steam/steamapps/common/ProtoCorgi/protocorgi_linux_x64.x86_64: /nyan/glibc/1/lib/libc.so.6: version `GLIBC_2.34' not found (required by /mnt/128/home/user/.local/share/Steam/steamapps/common/ProtoCorgi/protocorgi_linux_x64.x86_64)

You need to relink your game with the oldest set of glibc you can reasonably get your hands on. All elf/linux with an older set of glibc won't be able to load your game binaries, usually for no real good reasons.

The ultimate work around is to distribute pure ELF64 binaries which libdl everything from the system (even glibc symbols, and the executable does not have C main(), but the sysv ABI entry point is basically a main() anyway). As of glibc 2.33, it is still broken (due to elf static_tls flag, for errno and a few libc internal stuff).

I notice you used "-static-libstdc++ -static-libgcc" build options, namely c++/libgcc ABI issues are gone for good.

(not your fault, this is due to trash and/or incompetent glibc devs)

Dunno if you plan a vulkan rendering backend in the future.
< >
Showing 1-5 of 5 comments
ping, any chance to have such build?
We are working into our building setup for improve the compatibility in future linux builds, our plan is to use the same tools as the official godot builds:
https://github.com/godotengine/buildroot
Originally posted by Hearto-ハート심장心:
We are working into our building setup for improve the compatibility in future linux builds, our plan is to use the same tools as the official godot builds:
https://github.com/godotengine/buildroot

I had a few months ago a chat with the godot guys: they are aware of those issues and
are supposed to provide "build containers" with a very old set of glibc libs with their build system using -static-libgcc and -static-libstdc++ by default (all that should be referenced in their documentation).

Fingers crossed.
Same issue on Deck with the demo. No launch
Originally posted by ZM3:
Same issue on Deck with the demo. No launch

Yeah, that would force valve to update their deck arch elf/linux distros always to the latest gcc/glibc (and ALL elf/linux distributions out there, ALL the time). And this is not even related to 3D drivers (to say mostly non-pertinent to games... and if you dig a bit deeper... not really pertinent in the general case).

The developer open-source lock-in of gcc(c++) and glibc devs is "perfect": if you want to distribute binary-only elf programs to target a good spectrum of elf/linux distros, game devs MUST use a toolchain with a linking environment (c++ ABI/glibc libs) the oldest as possible, REALLY old (I saw a recent game compiled and linked on ubuntu 12.04). That said, fixes for 3D drivers are a mess not far behind since you often need a recent kernel.

So why devs don't do it, get ready for the hard truth: building and configuring properly an old gcc/glibc toolchain on a modern distro is extremely painful, many "normal" devs out there won't be able to do it properly in a reasonable amount of effort and time... or... they just don't know.

The analogy with windows is this one: you build your game on windows11? then it won't probably run on any previous windows(10/8/7) unless it was coded explicitly to do so. You build your game on gcc/glibc(2023/07), won't probably run on any gcc/glibc before 2023/07.

There is no reasonable workaround. Either game devs are very competent and are able to build and package their games binaries properly: build with an old gcc/glibc toolchain, and "differentiate"/configure/build their third-party libs to avoid conflicts with the host system ones. Or game devs use and are constrained by a game engine which cares about all that for them (unity/unreal/godot/etc)... in theory since even those engines can fail that.

EDIT --

If windows games are distributed with their c++ runtime dll and third party dlls, not using any services from windows beyond "core win64" (games which use their own text shapper, their GFX toolkit,etc), using the vulkan 3D api (or dx12 via vkd3d), wine (not proton) become such a "game engine" on elf/linux. You just need 2 small C compilers (not even a c++ compiler... that's actually really sexy): one ELF, one COFF to built it, IN THEORY (I have not tried, I just heard).
But, many games will use tons of beyond "core win64" components (.net which you may have to "install" in this wine runtime), and I do not mention the linux incompatible anti-cheats (kernel or not). It is possible to build your own "compatibility tool" (wine) for the steam client to start games into.
< >
Showing 1-5 of 5 comments
Per page: 1530 50