Cannot run steam: LD_PRELOAD cannot be preloaded

Hey,
I am new to Manjaro, but I was gaming on Ubuntu before. I often, but not always cannot start applications like Cities:Skylines or Civilisation due to the following error:

ERROR: ld.so: object '/home/lukas/.local/share/Steam/ubuntu12_32/gameoverlayrenderer.so' from LD_PRELOAD cannot be preloaded (wrong ELF class: ELFCLASS32): ignored.
ERROR: ld.so: object '/home/lukas/.local/share/Steam/ubuntu12_32/gameoverlayrenderer.so' from LD_PRELOAD cannot be preloaded (wrong ELF class: ELFCLASS32): ignored.

After some googling and finding that this is a known error with no clear answer, I came to this place here. :slight_smile:

Anybody who knows how to fix it?

All software is updated. The kernel is 6.1.26-1-MANJARO. The GPU is NVIDIA GeForce GTX 1650.

Thanks for any help.

Looks like you are trying to run a 32-bit game, while Manjaro is 64-bit. You normally should have the required 32-bit libraries installed, but it’s possible that you’re missing one — Manjaro is not Ubuntu.

See if this thread below offers you a solution… :arrow_down:

I am aware, but you can ignore them as they are not errors. Any game works fine for me with the same error message.

See:

you can safely ignore it. It is not really any error: Steam includes both 64- and 32-bit versions of some libraries and only one version will load successfully. This “error” is displayed even when Steam (and the in-game overlay) is working perfectly.

https://wiki.archlinux.org/title/Steam/Troubleshooting#Wrong_ELF_class


You need to find other some error messages in Steam log and research why games are not launching.
If you can not, can you share us a full output of log.

Hey there,
Sorry for the late response and thank you for your answers!

I haven’t managed to fix this unfortunately, but I have new information.
The first: the error is somehow fixed by rebooting, but just one or two times.

If I restart the computer, I can play Cities:Skylines without the error. If I close the game and play one more time later, it wont start due to this error. Sometimes it also works 2 times, but not more.
In the end, reboot always fixes it temporary. Weirdly.

Otherwise, I have no idea, I tried some links from @Aragorn’s link.
Running

LD_PRELOAD=/usr/lib/libc.so.6:/usr/lib32/libc.so.6 steam

in the terminal throws huge chunks of information, basically consisting of the same error.

ERROR: ld.so: object '/usr/lib32/libc.so.6' from LD_PRELOAD cannot be preloaded (wrong ELF class: ELFCLASS32): ignored.

ERROR: ld.so: object '/usr/lib32/libc.so.6' from LD_PRELOAD cannot be preloaded (wrong ELF class: ELFCLASS32): ignored.
steam.sh[106126]: Running Steam on manjarolinux 22.1.3 64-bit
ERROR: ld.so: object '/usr/lib32/libc.so.6' from LD_PRELOAD cannot be preloaded (wrong ELF class: ELFCLASS32): ignored.
steam.sh[106126]: STEAM_RUNTIME is enabled automatically
ERROR: ld.so: object '/usr/lib32/libc.so.6' from LD_PRELOAD cannot be preloaded (wrong ELF class: ELFCLASS32): ignored.

setup.sh[106200]: Steam runtime environment up-to-date!

ERROR: ld.so: object '/usr/lib32/libc.so.6' from LD_PRELOAD cannot be preloaded (wrong ELF class: ELFCLASS32): ignored.
steam.sh[106126]: Steam client's requirements are satisfied
ERROR: ld.so: object '/usr/lib/libc.so.6' from LD_PRELOAD cannot be preloaded (wrong ELF class: ELFCLASS64): ignored.
[2023-05-29 20:31:02] Startup - updater built Apr 28 2023 18:32:42
[2023-05-29 20:31:02] Startup - Steam Client launched with: '/home/lukas/.local/share/Steam/ubuntu12_32/steam'
Installing breakpad exception handler for appid(steam)/version(1682708537)/tid(106254)
Looks like steam didn't shutdown cleanly, scheduling immediate update check
[2023-05-29 20:31:02] Loading cached metrics from disk (/home/lukas/.local/share/Steam/package/steam_client_metrics.bin)
[2023-05-29 20:31:02] Using the following download hosts for Public, Realm steamglobal
[2023-05-29 20:31:02] 1. https://client-update.akamai.steamstatic.com, /, Realm 'steamglobal', weight was 1000, source = 'update_hosts_cached.vdf'
[2023-05-29 20:31:02] 2. https://cdn.cloudflare.steamstatic.com, /client/, Realm 'steamglobal', weight was 1, source = 'update_hosts_cached.vdf'
[2023-05-29 20:31:02] 3. http://media.steampowered.com, /client/, Realm 'steamglobal', weight was 1, source = 'baked in'
Installing breakpad exception handler for appid(steam)/version(1682708537)/tid(106255)
[2023-05-29 20:31:02] Checking for update on startup
[2023-05-29 20:31:02] Checking for available updates...
[2023-05-29 20:31:02] Downloading manifest: https://client-update.akamai.steamstatic.com/steam_client_ubuntu12
[2023-05-29 20:31:02] Manifest download: send request
Installing breakpad exception handler for appid(steam)/version(1682708537)/tid(106256)
[2023-05-29 20:31:02] Manifest download: waiting for download to finish
[2023-05-29 20:31:02] Manifest download: finished
[2023-05-29 20:31:02] Download skipped: /steam_client_ubuntu12 version 1682708537, installed version 1682708537, existing pending version 0
[2023-05-29 20:31:02] Nothing to do
[2023-05-29 20:31:02] Verifying installation...
[2023-05-29 20:31:02] Performing checksum verification of executable files
[2023-05-29 20:31:03] Verification complete
Loaded SDL version 3.0.0-1117-g727c7d4e2
XRRGetOutputInfo Workaround: initialized with override: 0 real: 0xf2d68db0
XRRGetCrtcInfo Workaround: initialized with override: 0 real: 0xf2d67500
ERROR: ld.so: object '/usr/lib32/libc.so.6' from LD_PRELOAD cannot be preloaded (wrong ELF class: ELFCLASS32): ignored.
ERROR: ld.so: object '/usr/lib32/libc.so.6' from LD_PRELOAD cannot be preloaded (wrong ELF class: ELFCLASS32): ignored.
GetWin32Stats: display was not open yet, good
ComputeStartupMode: found registry default startup mode: 0
ERROR: ld.so: object '/usr/lib32/libc.so.6' from LD_PRELOAD cannot be preloaded (wrong ELF class: ELFCLASS32): ignored.
steamwebhelper.sh[106258]: Runtime for steamwebhelper: defaulting to /home/lukas/.local/share/Steam/ubuntu12_64/steam-runtime-heavy
ERROR: ld.so: object '/usr/lib32/libc.so.6' from LD_PRELOAD cannot be preloaded (wrong ELF class: ELFCLASS32): ignored.
steamwebhelper.sh[106258]: glibc >= 2.34, partially disabling sandbox until CEF supports clone3()
Installing breakpad exception handler for appid(steam)/version(1682708537)/tid(106268)
Fontconfig warning: line 5: unknown element "description"
Fontconfig warning: "/etc/fonts/conf.d/10-hinting-slight.conf", line 4: unknown element "description"
Fontconfig warning: "/etc/fonts/conf.d/10-scale-bitmap-fonts.conf", line 4: unknown element "description"
Fontconfig error: "/etc/fonts/conf.d/10-scale-bitmap-fonts.conf", line 72: non-double matrix element
Fontconfig error: "/etc/fonts/conf.d/10-scale-bitmap-fonts.conf", line 72: non-double matrix element
Fontconfig warning: "/etc/fonts/conf.d/10-scale-bitmap-fonts.conf", line 80: saw unknown, expected number
Fontconfig warning: "/etc/fonts/conf.d/10-sub-pixel-rgb.conf", line 4: unknown element "description"
Fontconfig warning: "/etc/fonts/conf.d/10-yes-antialias.conf", line 4: unknown element "description"
Fontconfig warning: "/etc/fonts/conf.d/11-lcdfilter-default.conf", line 4: unknown element "description"
Fontconfig warning: "/etc/fonts/conf.d/20-unhint-small-vera.conf", line 4: unknown element "description"
Fontconfig warning: "/etc/fonts/conf.d/30-metric-aliases.conf", line 4: unknown element "description"
Fontconfig warning: "/etc/fonts/conf.d/40-nonlatin.conf", line 4: unknown element "description"
Fontconfig warning: "/etc/fonts/conf.d/45-generic.conf", line 4: unknown element "description"
Fontconfig warning: "/etc/fonts/conf.d/45-latin.conf", line 4: unknown element "description"
Fontconfig warning: "/etc/fonts/conf.d/48-spacing.conf", line 4: unknown element "description"
Fontconfig warning: "/etc/fonts/conf.d/49-sansserif.conf", line 4: unknown element "description"
Fontconfig warning: "/etc/fonts/conf.d/50-user.conf", line 4: unknown element "description"
Fontconfig warning: "/etc/fonts/conf.d/51-local.conf", line 4: unknown element "description"
Fontconfig warning: "/etc/fonts/conf.d/60-generic.conf", line 4: unknown element "description"
Fontconfig warning: "/etc/fonts/conf.d/60-latin.conf", line 4: unknown element "description"
Fontconfig warning: "/etc/fonts/conf.d/65-nonlatin.conf", line 4: unknown element "description"
Installing breakpad exception handler for appid(steam)/version(1682708537)/tid(106299)
Installing breakpad exception handler for appid(steam)/version(1682708537)/tid(106300)
Installing breakpad exception handler for appid(steam)/version(1682708537)/tid(106301)
Installing breakpad exception handler for appid(steam)/version(1682708537)/tid(106302)
Installing breakpad exception handler for appid(steam)/version(1682708537)/tid(106303)
Installing breakpad exception handler for appid(steam)/version(1682708537)/tid(106304)
Installing breakpad exception handler for appid(steam)/version(1682708537)/tid(106305)
CAppInfoCacheReadFromDiskThread took 13 milliseconds to initialize
Installing breakpad exception handler for appid(steam)/version(1682708537)/tid(106306)
Installing breakpad exception handler for appid(steam)/version(1682708537)/tid(106307)
Installing breakpad exception handler for appid(steam)/version(1682708537)/tid(106308)
Installing breakpad exception handler for appid(steam)/version(1682708537)/tid(106309)
Installing breakpad exception handler for appid(steam)/version(1682708537)/tid(106314)
Installing breakpad exception handler for appid(steam)/version(1682708537)/tid(106315)
Installing breakpad exception handler for appid(steam)/version(1682708537)/tid(106316)
ERROR: ld.so: object '/usr/lib32/libc.so.6' from LD_PRELOAD cannot be preloaded (wrong ELF class: ELFCLASS32): ignored.
ERROR: ld.so: object '/usr/lib32/libc.so.6' from LD_PRELOAD cannot be preloaded (wrong ELF class: ELFCLASS32): ignored.
Installing breakpad exception handler for appid(steam)/version(1682708537)/tid(106318)
Installing breakpad exception handler for appid(steam)/version(1682708537)/tid(106321)
Installing breakpad exception handler for appid(steam)/version(1682708537)/tid(106342)
Installing breakpad exception handler for appid(steam)/version(1682708537)/tid(106343)
Installing breakpad exception handler for appid(steam)/version(1682708537)/tid(106344)
ERROR: ld.so: object '/usr/lib32/libc.so.6' from LD_PRELOAD cannot be preloaded (wrong ELF class: ELFCLASS32): ignored.
ERROR: ld.so: object '/usr/lib/libc.so.6' from LD_PRELOAD cannot be preloaded (wrong ELF class: ELFCLASS64): ignored.
Installing breakpad exception handler for appid(steam)/version(1682708537)/tid(106348)
ERROR: ld.so: object '/usr/lib32/libc.so.6' from LD_PRELOAD cannot be preloaded (wrong ELF class: ELFCLASS32): ignored.
ERROR: ld.so: object '/usr/lib32/libc.so.6' from LD_PRELOAD cannot be preloaded (wrong ELF class: ELFCLASS32): ignored.
ERROR: ld.so: object '/usr/lib32/libc.so.6' from LD_PRELOAD cannot be preloaded (wrong ELF class: ELFCLASS32): ignored.
ERROR: ld.so: object '/usr/lib/libc.so.6' from LD_PRELOAD cannot be preloaded (wrong ELF class: ELFCLASS64): ignored.
ERROR: ld.so: object '/usr/lib32/libc.so.6' from LD_PRELOAD cannot be preloaded (wrong ELF class: ELFCLASS32): ignored.
ERROR: ld.so: object '/usr/lib32/libc.so.6' from LD_PRELOAD cannot be preloaded (wrong ELF class: ELFCLASS32): ignored.
ERROR: ld.so: object '/usr/lib32/libc.so.6' from LD_PRELOAD cannot be preloaded (wrong ELF class: ELFCLASS32): ignored.
steamwebhelper.sh[106368]: Runtime for steamwebhelper: defaulting to /home/lukas/.local/share/Steam/ubuntu12_64/steam-runtime-heavy
ERROR: ld.so: object '/usr/lib32/libc.so.6' from LD_PRELOAD cannot be preloaded (wrong ELF class: ELFCLASS32): ignored.
steamwebhelper.sh[106368]: glibc >= 2.34, partially disabling sandbox until CEF supports clone3()
ERROR: ld.so: object '/usr/lib32/libc.so.6' from LD_PRELOAD cannot be preloaded (wrong ELF class: ELFCLASS32): ignored.
ERROR: ld.so: object '/usr/lib32/libc.so.6' from LD_PRELOAD cannot be preloaded (wrong ELF class: ELFCLASS32): ignored.
ERROR: ld.so: object '/usr/lib32/libc.so.6' from LD_PRELOAD cannot be preloaded (wrong ELF class: ELFCLASS32): ignored.
steamwebhelper.sh[106415]: Runtime for steamwebhelper: defaulting to /home/lukas/.local/share/Steam/ubuntu12_64/steam-runtime-heavy
ERROR: ld.so: object '/usr/lib32/libc.so.6' from LD_PRELOAD cannot be preloaded (wrong ELF class: ELFCLASS32): ignored.
steamwebhelper.sh[106415]: glibc >= 2.34, partially disabling sandbox until CEF supports clone3()
Installing breakpad exception handler for appid(steam)/version(1682708537)/tid(106435)
src/steamUI/steamuisharedjscontroller.cpp (421) : Failed creating offscreen shared JS context
src/steamUI/steamuisharedjscontroller.cpp (421) : Failed creating offscreen shared JS context
Installing breakpad exception handler for appid(steam)/version(1682708537)/tid(106254)
ERROR: ld.so: object '/usr/lib/libc.so.6' from LD_PRELOAD cannot be preloaded (wrong ELF class: ELFCLASS64): ignored.
assert_20230529203125_28.dmp[106458]: Uploading dump (out-of-process)
/tmp/dumps/assert_20230529203125_28.dmp
Failed to init SteamVR because it isn't installed
ERROR: ld.so: object '/usr/lib32/libc.so.6' from LD_PRELOAD cannot be preloaded (wrong ELF class: ELFCLASS32): ignored.
ERROR: ld.so: object '/usr/lib32/libc.so.6' from LD_PRELOAD cannot be preloaded (wrong ELF class: ELFCLASS32): ignored.
ERROR: ld.so: object '/usr/lib32/libc.so.6' from LD_PRELOAD cannot be preloaded (wrong ELF class: ELFCLASS32): ignored.
ERROR: ld.so: object '/usr/lib32/libc.so.6' from LD_PRELOAD cannot be preloaded (wrong ELF class: ELFCLASS32): ignored.

The error message appeared hundreds of times in a row, so I cut those doubles out. Otherwise I can only see a a font warning, but shouldnt be it.
Interestingly, that command opens steam but the library is empty then (everything is just empty).

/usr/lib32/libc.so is existing.

This command

sudo ldconfig -v | grep ':' 

interestingly puts out:

ldconfig: Path `/usr/lib64' given more than once
(from <builtin>:0 and <builtin>:0)
ldconfig: Can't stat /usr/libx32: No such file or directory
/usr/lib/libfakeroot: (from /etc/ld.so.conf.d/fakeroot.conf:1)
/usr/lib32: (from /etc/ld.so.conf.d/lib32-glibc.conf:1)
/usr/lib: (from <builtin>:0)

lib32-glibc-2.37-2 is installed

What sort of logs can there be to analyse?

I have the same output:

ldconfig: Path `/usr/lib64' given more than once
(from <builtin>:0 and <builtin>:0)
ldconfig: Can't stat /usr/libx32: No such file or directory
/usr/lib/libfakeroot: (from /etc/ld.so.conf.d/fakeroot.conf:1)
/usr/lib32: (from /etc/ld.so.conf.d/lib32-glibc.conf:1)
/usr/lib: (from <builtin>:0)

But any native Games work fine for me, you can ignore this same output.


Can you check $ ls -al /usr/lib32 | grep libc.so and $ ls -al /usr/lib | grep libc.so ?

~ ls -al /usr/lib32 | grep libc.so 
-rw-r--r-- 1 root root       252  3. Feb 19:27 libc.so
-rwxr-xr-x 1 root root   2239292  3. Feb 19:27 libc.so.6
~ ls -al /usr/lib | grep libc.so
-rw-r--r-- 1 root root       255  3. Feb 19:27 libc.so
-rwxr-xr-x 1 root root   1953112  3. Feb 19:27 libc.so.6

That looks good.
I have no idea why your games can not launch.
My guess is, Steam is something wrong.

Have you installed these games from Ubuntu steam?

In fact, I have installed steam by using the command:

trizen -S steam

There is nothing in it which is connected to my former Ubuntu

Interestingly, I have already used the command steam --reset (also I have reinstalled earlier), but it doesn’t seem to work.

I also noticed recently, that sometimes, the game runs if I keep clicking on Start and clicking away the error message. Sometimes the second time, sometimes the tenth time. Its all extremely random-looking behaviour

Thanks for the support by the way

Was there something wrong with Steam in Manjaro repositories?

It likely installed steam from multilib as trizen is one of the pacman frontend versions of aur helpers.

Thats correct, it has pacman in behind.
Does that mean I did something wrong in the installation process?
And if so, can I fix it in a good way? :slight_smile:

Hi there!

DId you manage to fix thix problem?

I have the same issue.

I never found a wholesome solution working on all computers, but on my main computer, these launch options work:
LD_PRELOAD=$HOME/.local/share/Steam/ubuntu12_32/gameoverlayrenderer.so:$HOME/.local/share/Steam/ubuntu12_64/gameoverlayrenderer.so %command%

Thx for your response!

You mean I should launch Steam itself with this options? Like that:
`LD_PRELOAD=$HOME/.local/share/Steam/ubuntu12_32/gameoverlayrenderer.so:$HOME/.local/share/Steam/ubuntu12_64/gameoverlayrenderer.so steam

No. Each game game launch options, exactly as written (%command% is a special steam variable that means whatever game is launched).

Though the root reason for the ‘issue’ here is still unsolved.

1 Like

Oh, thanks for the explanation!
BTW It doesn’t work for me .

Hey folks, I don’t use Manjaro (Nixos here) but I found this thread while looking for exactly the same issue.
It seems that – can’t include links, oh well… search nixos discourse for the LD error message – might be relevant for people having the same issue.

The tl;dr; is that you might need to enable “Force the use of specific … compatibility tool” and select “Steam Linux Runtime” from the list.

At least I was having exactly the same issue with Civilization 6, and doing so seems to have fixed it.

This is the first search result for Brave, so here is what worked for me…

Launch steam with this command: steam-native
( You might need to download it first, and the package might be called steam-native-runtime )

And I also needed to NOT set any compatibility settings. So the box for “Force the use of a specific Steam Play compatibility tool” needs to be empty, for the game that I wanted to play.

Using Steam (Native) is not recommended. It uses native system libraries instead of the ones that ship with Steam and even if it works right now those system libraries may have breaking changes in some future update.

See - Steam/Troubleshooting - ArchWiki