Quick answer: The binary was linked on a system with a newer glibc than the player’s, and glibc only promises that old binaries run on new systems, never the reverse. Find what you require with objdump -T ./MyGame | grep -o 'GLIBC_[0-9][0-9.]*' | sort -Vu | tail -1, then rebuild inside a container of the oldest distro you support, or cross-link with zig cc -target x86_64-linux-gnu.2.28. Players cannot fix this by upgrading glibc.
You built on an up-to-date desktop, tested there, uploaded, and the first player on an LTS distro or a Steam Deck gets a line about a GLIBC version before anything draws. Nothing in your code is wrong. The build machine was newer than the machine running the game, and on Linux that direction is not supported. The fix is entirely on the build side. This guide explains what the version in the message is, how to measure what each file in your build requires, which glibc the common targets have, where the requirement usually comes from when the engine itself is innocent, and four ways to bring it down.
- The exact error
- Why a newer build machine breaks older systems
- Measure what your build requires
- glibc versions of common targets
- Where the requirement comes from when the engine is fine
- Fix 1: build on the oldest system you support
- Fix 2: pin the glibc version with zig cc
- Fix 3: link the C++ runtime statically
- Fix 4: on Steam, choose a runtime with the glibc you need
- Why you cannot ship glibc with the game
- What to tell players
- How to confirm the fix
- Where Bugnet fits
- Related guides
- Frequently asked questions
The exact error
./MyGame: /lib/x86_64-linux-gnu/libc.so.6: version `GLIBC_2.34' not found (required by ./MyGame)
The number, the library and the last part all vary:
./MyGame: /lib/x86_64-linux-gnu/libm.so.6: version `GLIBC_2.29' not found (required by ./MyGame)
./MyGame: /usr/lib/libc.so.6: version `GLIBC_2.38' not found (required by /home/deck/MyGame/lib/libnative.so)
./MyGame: /usr/lib/x86_64-linux-gnu/libstdc++.so.6: version `GLIBCXX_3.4.30' not found (required by ./MyGame)
./MyGame: /usr/lib/x86_64-linux-gnu/libstdc++.so.6: version `CXXABI_1.3.13' not found (required by ./MyGame)
Read it in three parts. The path after the program name is the library the loader found on the player’s system (/lib/x86_64-linux-gnu on Debian and Ubuntu, /lib64 on Fedora, /usr/lib on Arch and SteamOS). The quoted name is a version tag that library does not define, because it is older than the tag. “required by” names the file that asked for it, which is the file you have to rebuild, and it is not always the main executable.
The loader prints this before main, so from Steam or a desktop icon the player sees nothing at all. The sibling error, where a library file is absent instead of too old, is covered in error while loading shared libraries.
Why a newer build machine breaks older systems
glibc versions its symbols. Every exported function carries the tag of the release that introduced its current behaviour. When you link, the linker records the tag of each symbol you used, and at startup the loader checks that the system’s libc.so.6 defines all of them. glibc keeps every old tag forever, so a binary built on an old system runs on a new one. A newer tag does not exist in an older library, so the reverse fails.
You do not need to call anything new to pick up a new tag:
- In glibc 2.34 the startup function
__libc_start_mainreceived the tagGLIBC_2.34, so every executable linked on glibc 2.34 or later requires at least 2.34. A ten-line C program is enough. That release also mergedlibpthreadandlibdlintolibc. - glibc 2.38 added
__isoc23_strtoland related tags that ordinary calls tostrtolandsscanfbind to under current compilers. - glibc 2.29 gave
exp,logandpownew tags inlibm, which is where the commonGLIBC_2.29message comes from.
The C++ runtime works the same way with its own tags. GLIBCXX_3.4.30 belongs to GCC 12, and GLIBCXX_3.4.29 and CXXABI_1.3.13 to GCC 11. That message means the player’s libstdc++.so.6 is older than your compiler.
Measure what your build requires
The highest glibc tag in a file is the minimum glibc it runs on:
objdump -T ./MyGame | grep -o 'GLIBC_[0-9][0-9.]*' | sort -Vu | tail -1
GLIBC_2.34
To see which symbols are responsible for that tag:
objdump -T ./MyGame | grep 'GLIBC_2.34'
0000000000000000 DF *UND* 0000000000000000 (GLIBC_2.34) __libc_start_main
Check every binary you ship, because one plug-in sets the floor for the whole game:
for f in MyGame lib/*.so*; do echo "$f $(objdump -T "$f" | grep -o 'GLIBC_[0-9][0-9.]*' | sort -Vu | tail -1)"; done
For the C++ runtime:
objdump -T ./MyGame | grep -oE '(GLIBCXX|CXXABI)_[0-9.]+' | sort -Vu | tail -2
On the player’s side, one command answers the question:
ldd --version | head -1
ldd (Ubuntu GLIBC 2.35-0ubuntu3.8) 2.35
If your number is higher than theirs, the game cannot start there.
glibc versions of common targets
| Target | glibc |
|---|---|
| RHEL, Rocky Linux and AlmaLinux 8 | 2.28 |
| Ubuntu 20.04 LTS | 2.31 |
| Debian 11 | 2.31 |
| RHEL, Rocky Linux and AlmaLinux 9 | 2.34 |
| Ubuntu 22.04 LTS | 2.35 |
| Debian 12 | 2.36 |
| Ubuntu 24.04 LTS | 2.39 |
| Debian 13 | 2.41 |
| Steam Linux Runtime 1.0 (scout) container, Debian 10 based | 2.28 |
| Steam Linux Runtime 3.0 (sniper) container, Debian 11 based | 2.31 |
| Steam Linux Runtime 4.0 container, Debian 13 based | 2.41 |
Two notes on Steam. SteamOS 3 on the Steam Deck is built on Arch Linux, not Debian, and its glibc moves with SteamOS releases (2.41 was reported on SteamOS 3.8). Check a device with ldd --version before assuming. And inside a Steam Linux Runtime container, low-level libraries such as glibc are taken from the host or the container, whichever is newer, so the container’s version is the floor a Steam player gets. Outside Steam there is no container and the distro’s own version applies. Rolling distros such as Arch and current Fedora carry the newest glibc there is, which is why a build made on one runs almost nowhere else.
Where the requirement comes from when the engine is fine
Engine vendors build their Linux players against old baselines on purpose. Godot’s official export templates come from a dedicated toolchain with an old glibc (2.28 in the project’s buildroot SDK), Unreal compiles with its own bundled clang toolchain and sysroot (Epic’s documentation lists glibc 2.28 or newer for current 5.x releases), and Unity builds players against its own sysroot. So when a game on a stock engine fails with this message, look at “required by” and suspect:
- Your native plug-in. A Unity native plug-in, a GDExtension built with godot-cpp, a Rust library, or a third-party
.soyou compiled on your desktop with the system compiler. - A custom engine build or custom export templates compiled on your own distro instead of in the engine’s build container.
- A PyInstaller build. The frozen game bundles the Python interpreter and extension modules from the build machine, and they need that machine’s glibc. PyInstaller does not bundle glibc itself.
- A prebuilt library from a vendor whose minimum is higher than yours.
- A CI image that moved. A floating label such as
ubuntu-latestchanges its glibc when it advances to the next LTS, and your minimum jumps without any change in your repository. Pin the image.
Fix 1: build on the oldest system you support
Pick the lowest glibc from the table that you intend to support and compile inside that distro. A container makes this a one-line change to the build:
docker run --rm -v "$PWD:/src" -w /src debian:11 \
bash -c 'apt-get update && apt-get install -y build-essential && make'
That yields binaries that need at most glibc 2.31. For Steam, Valve publishes SDK container images for each runtime with the runtime’s development libraries preinstalled, for example registry.gitlab.steamos.cloud/steamrt/sniper/sdk; they work with Docker and Podman. Run PyInstaller in the old container too, since the frozen game inherits the requirement of whatever Python it bundles (see exporting a Pygame game for Linux).
Fix 2: pin the glibc version with zig cc
Zig ships a C and C++ compiler front end that can link against the symbol versions of a glibc release you name, from any host. Append the version to the target:
zig cc -target x86_64-linux-gnu.2.28 -shared -fPIC -o libnative.so native.c
Rust projects get the same through cargo-zigbuild:
cargo zigbuild --release --target x86_64-unknown-linux-gnu.2.28
This suits small native plug-ins and Rust libraries well. One caveat for C++: zig c++ links LLVM’s libc++ instead of libstdc++, so use it for a whole C++ library with a C interface, not for objects that must link with GCC-built C++ code.
Fix 3: link the C++ runtime statically
For GLIBCXX and CXXABI messages, remove the dependency on the system’s libstdc++.so.6:
g++ -o MyGame *.o -static-libstdc++ -static-libgcc
Afterwards ldd no longer lists libstdc++.so.6. This is safe for an executable and for a plug-in that exposes a C interface, which covers Unity native plug-ins and GDExtensions. Avoid passing C++ standard library objects or exceptions between two modules that each contain their own copy. It does not lower the glibc requirement; combine it with Fix 1 or 2.
Fix 4: on Steam, choose a runtime with the glibc you need
If you cannot lower the requirement, raise the floor for Steam players. A game configured for Steam Linux Runtime 4.0 runs with glibc 2.41 or newer on every distro Steam supports, and one configured for 3.0 gets 2.31. Per Valve’s steam-runtime README, compile in that runtime’s SDK and select it under Installation > Linux Runtime in the Steamworks partner site. Copies sold on other stores still meet the player’s own glibc.
Why you cannot ship glibc with the game
Every other library can sit in a folder beside the binary. glibc cannot, for three reasons. The dynamic loader is part of glibc, and its path (/lib64/ld-linux-x86-64.so.2) is written into your executable, so the system’s loader always starts first, and it must match the libc.so.6 it loads; a newer libc.so.6 under an older loader does not work. Starting the game through a bundled loader is possible, but then the libraries that must come from the system, above all the graphics driver, are loaded against your glibc, and a driver built for a newer one fails in the way your game just did. And glibc loads further system modules at run time, for name lookup and locales, that expect the system’s version. Valve’s runtime documentation makes the same point: glibc and graphics drivers are the libraries that cannot be bundled.
What to tell players
- Run the game from a terminal and send the full error line together with the output of
ldd --version. - Do not try to upgrade glibc by hand or download a
libc.so.6from somewhere. Every program on the system depends on it, and replacing it can leave the system unable to boot. - The supported way to get a newer glibc is a newer release of your distribution.
- On Steam, if the game also has a Windows build, open Properties > Compatibility, tick “Force the use of a specific Steam Play compatibility tool” and choose a current Proton version. That runs the Windows build and sidesteps the Linux binary.
- Otherwise the fix has to come from the developer as a rebuilt game. Say when to expect it.
How to confirm the fix
Put the measurement into the build so the floor cannot creep up again:
want=GLIBC_2.31
max=$(objdump -T ./MyGame | grep -o 'GLIBC_[0-9][0-9.]*' | sort -Vu | tail -1)
[ "$(printf '%s\n' "$want" "$max" | sort -V | tail -1)" = "$want" ] \
|| { echo "requires $max, target is $want"; exit 1; }
Run it over every .so you ship as well. Then let the old system’s loader judge the real files: docker run --rm -v "$PWD:/game:ro" debian:11 ldd /game/MyGame prints the same “version not found” lines a player would see, and prints a normal library list when the build is good. Finish with a launch on the oldest real distro you claim to support.
Where Bugnet fits
The loader rejects the binary before a single instruction of the game runs, so there is no in-game report of this failure from Bugnet or any other SDK. When the offender is a plug-in loaded after startup, the picture is different: the game is running, the load fails, and the Unity and Godot SDKs file the resulting exception or logged error with the OS version and recent log lines, so the affected distro is in the report. For the startup case, list it on the project’s public tracker with the error text as the title, the workaround from the list above, and the date of the rebuilt version. Reports that players write through the in-game form after the fix carry their OS version, which tells you which distros your audience really uses before you choose the next baseline.
Related guides
- How to Fix “error while loading shared libraries: cannot open shared object file” for Your Linux Game
- How to Get Crash Logs From a Player on Steam Deck (Proton Logs and File Paths)
- How to Export a Pygame Game for Linux
- Why Does My Godot Game Crash on Steam Deck but run fine on your PC?
- How to Fix “Failed to execute script due to unhandled exception” in a PyInstaller Pygame Build
Frequently asked questions
What does “version GLIBC_2.34 not found” mean?
The program was built on a Linux system with glibc 2.34 or newer and is being run on a system with an older glibc. Binaries built against a newer glibc do not start on an older one. The fix is to rebuild the program against an older glibc.
How do I check which glibc version my binary needs?
Run objdump -T on the binary, extract the GLIBC_ version tags with grep -o, sort them with sort -Vu and take the last one. That highest tag is the minimum glibc the file runs on. Check every shared library you ship, not only the executable.
Can a player fix the GLIBC error by updating glibc?
Not safely. glibc is the base library of the whole system and replacing it by hand can break every program, including the ones needed to boot. The supported route is upgrading the distribution, or on Steam running the Windows build through Proton until the developer ships a rebuilt game.
Why can I not bundle glibc with my game like other libraries?
The dynamic loader is part of glibc and its system path is fixed in the executable, so the system loader starts first and must match the libc it loads. System libraries such as graphics drivers also need the system glibc. Mixing versions fails.
What does GLIBCXX_3.4.30 not found mean?
It is the same problem in the C++ runtime. The binary was compiled with GCC 12 or newer and the system’s libstdc++ is older. Rebuild with an older compiler, or link the C++ runtime statically with the options -static-libstdc++ and -static-libgcc.
The glibc your build machine has becomes the minimum your players need. Build in a container of the oldest distro you support and check the number with objdump on every release.