Repository navigation
Description
I hope this is the right place to report such an issue, since the Steam Linux Runtime has been around I tried it every once in a while, always with the same result, it doesn't work at all on my system no matter which game I try to launch with it.
Below is the output of steam when launching a game with the Steam Linux Runtime enabled as compatibility tool in the game properties, in this case I tried Stardew Valley:
GameAction [AppID 413150, ActionID 4] : LaunchApp changed task to ProcessingInstallScript with ""
GameAction [AppID 413150, ActionID 4] : LaunchApp changed task to SynchronizingCloud with ""
GameAction [AppID 413150, ActionID 4] : LaunchApp changed task to SiteLicenseSeatCheckout with ""
GameAction [AppID 413150, ActionID 4] : LaunchApp changed task to CreatingProcess with ""
GameAction [AppID 413150, ActionID 4] : LaunchApp waiting for user response to CreatingProcess ""
GameAction [AppID 413150, ActionID 4] : LaunchApp continues with user response "CreatingProcess"
Game update: AppID 413150 "", ProcID 44862, IP 0.0.0.0:0
Starting app 413150
>>> Adding process 44862 for game ID 413150
GameAction [AppID 413150, ActionID 4] : LaunchApp changed task to WaitingGameWindow with ""
ERROR: ld.so: object '/home/user/.local/share/Steam/ubuntu12_32/gameoverlayrenderer.so' from LD_PRELOAD cannot be preloaded (wrong ELF class: ELFCLASS32): ignored.
GameAction [AppID 413150, ActionID 4] : LaunchApp changed task to Completed with ""
ERROR: ld.so: object '/home/user/.local/share/Steam/ubuntu12_32/gameoverlayrenderer.so' from LD_PRELOAD cannot be preloaded (wrong ELF class: ELFCLASS32): ignored.
ERROR: ld.so: object '/home/user/.local/share/Steam/ubuntu12_32/gameoverlayrenderer.so' from LD_PRELOAD cannot be preloaded (wrong ELF class: ELFCLASS32): ignored.
ERROR: ld.so: object '/home/user/.local/share/Steam/ubuntu12_32/gameoverlayrenderer.so' from LD_PRELOAD cannot be preloaded (wrong ELF class: ELFCLASS32): ignored.
ERROR: ld.so: object '/home/user/.local/share/Steam/ubuntu12_32/gameoverlayrenderer.so' from LD_PRELOAD cannot be preloaded (wrong ELF class: ELFCLASS32): ignored.
ERROR: ld.so: object '/home/user/.local/share/Steam/ubuntu12_32/gameoverlayrenderer.so' from LD_PRELOAD cannot be preloaded (wrong ELF class: ELFCLASS32): ignored.
ERROR: ld.so: object '/home/user/.local/share/Steam/ubuntu12_32/gameoverlayrenderer.so' from LD_PRELOAD cannot be preloaded (wrong ELF class: ELFCLASS32): ignored.
>>> Adding process 44863 for game ID 413150
`g_io_module_load': /usr/lib/gio/modules/libgiognutls.so: undefined symbol: g_io_module_load
Failed to load module: /usr/lib/gio/modules/libgiognutls.so
bwrap: execvp readlink: No such file or directory
bwrap: execvp readlink: No such file or directory
pressure-vessel-wrap: None of the supported CPU architectures are common to the host system and the container (tried: x86_64-linux-gnu, i386-linux-gnu)
>>> Adding process 44864 for game ID 413150
>>> Adding process 44865 for game ID 413150
>>> Adding process 44866 for game ID 413150
>>> Adding process 44867 for game ID 413150
Game removed: AppID 413150 "", ProcID 44862
Uploaded AppInterfaceStats to Steam
Exiting app 413150
No cached sticky mapping in ActivateActionSet.Opted-in Controller Mask for AppId 0: 0
Opted-in Controller Mask for AppId 0: 0
Opted-in Controller Mask for AppId 0: 0
[413150]Non-Steam Controller Configs Enabled: 1
ExecuteSteamURL: "steam://open/downloads"
ExecuteSteamURL: "steam://open/downloads"
Opted-in Controller Mask for AppId 0: 0
Opted-in Controller Mask for AppId 0: 0
Opted-in Controller Mask for AppId 0: 0
[413150]Non-Steam Controller Configs Enabled: 1
Running the native Linux version as well als multiple other native games works without any issue, however I fear once the Steam Linux Runtime becomes more popular or even mandatory and games being optimized to run against it I won't be able to run some games anymore.
I have no clue where to start investigating, please let me know what additonal information I can provide to help.
Activity
TTimo commentedon Feb 22, 2020
Thanks. I think the relevant bits in the log are:
Please provide the output of Help > System Information (especially the "Steam Linux Runtime Information" sections).
tgurr commentedon Feb 22, 2020
@TTimo thank you very much, attached you find the requested output of Help > System Information.
[-]Steam Linux Runtime not working on my system[/-][+]Steam Linux Runtime not working on my system (Exherbo)[/+]TTimo commentedon Feb 25, 2020
Thank you. Can you capture the output of running the following (you might have to adapt to the install paths on your distribution):
~/.local/share/Steam/SteamApps/common/SteamLinuxRuntime/run-in-scout -- /usr/bin/steam-runtime-system-infotgurr commentedon Feb 25, 2020
$ /mnt/games/Steam/steamapps/common/SteamLinuxRuntime/run-in-scout -- /usr/bin/steam-runtime-system-infoLibraries on Exherbo reside at
/usr/<gnu-triplet>/libso the x86_64-pc-linux-gnulibgiognutls.socan be found at/usr/x86_64-pc-linux-gnu/lib/gio/modules/libgiognutls.so.And our ld caches are also named depending on the installed archs, e.g.:
$ ls -la /etc/ | grep ldsmcv commentedon Feb 25, 2020
This is why pressure-vessel is failing to set up the container. It needs to read your
ld.so.cacheto find out what libraries are available, so that it can import your host-side graphics drivers and their dependencies. Normally (Debian, Fedora, Arch, etc.) there is a singleld.so.cachethat combines all the libraries for all the architectures, and that's what thecapsule-capture-libstool currently assumes.This is like Debian multiarch, but in a different order, and with
-pc-in the middle. pressure-vessel already knows about Debian multiarch, Fedora-style biarch and Arch-style biarch; it doesn't support Exherbo multiarch, but adding that wouldn't be a big change.I hope the tuples always contain
-pc-, and the 32-bit flavour is alwaysi686? I wouldn't want to be trying all the possible permutations ofi586-mac-linux-gnu,x86_64-unknown-linux-gnuand so on!You can safely ignore this. We don't want to use that module anyway (we specifically turn it off), but GLib doesn't currently have a way to avoid trying to dlopen it at all, and always logs to stderr if it can't.
smcv commentedon Feb 25, 2020
Wait, that doesn't seem right either. Does Exherbo provide the standard location for
ld.so?The portable Linux ABI is that
/lib64/ld-linux-x86-64.so.2and/lib/ld-linux.so.2need to be symbolic links to the 64- and 32-bitld.so, respectively. I think pressure-vessel also assumes their real paths are in either/lib*or/usr/lib*.tgurr commentedon Feb 26, 2020
That would be great, thanks in advance for trying to get this to work.
More or less, currently we have:
Steam on Exherbo however is only supported on x86_64-pc-linux-gnu (which we check and die upon installing steam on a packaging basis https://git.exherbo.org/games.git/tree/packages/distribution/steam/steam-1.0.0.61.exheres-0?id=98010f2ceb8d24e8f5c3a1d4c89e4782f1f538bb#n69), so the assumption is that there's at least
x86_64-pc-linux-gnuandi686-pc-linux-gnuon systems trying to run Steam, else it won't work either anyways.Thanks for explanation, very welcome!
tgurr commentedon Feb 26, 2020
Generally the answer is yes, but please read the following explanation since there's a catch with our multiarch approach as :
/lib64/ld-linux-x86-64.so.2
/lib/ld-linux.so.2
That results in Steam not being able to run and complaining about not being able to find e.g.
libc.so.6on launch. I didn't report this to the steam bugtracker yet since I'm not the inventor of our multiarch approach and my knowledge in this fundamental work is limited. So to solve this we have to do this dirty hack and create a symlink.# ln -s /usr/i686-pc-linux-gnu/lib/ld-linux.so.2 /usr/x86_64-pc-linux-gnu/libso that we und up with with a working:
/lib/ld-linux.so.2
While dirty this didn't create any issues in the past and was the only way I came up with to get Steam running. I can only say this particular problem (and dirty solution) seems to only affect Steam as other 32bit programs work fine without that hack.
smcv commentedon Feb 26, 2020
The dynamic linker is hard-coded into every executable (and every library, although I don't think it's used in practice there). It is not possible to produce executables on one system (like Valve's, or a Steam game developer's) and run them on another (like yours) unless those systems agree on the absolute path of the dynamic linker. The interoperable path for IA32 GNU/Linux (i[3456]-*-linux-gnu) is
/lib/ld-linux.so.2, and Steam can only be run on machines where that path exists and points to a suitable IA32 GNU/Linux dynamic linker.For example, Arch Linux normally uses
libfor 64-bit libraries andlib32for 32-bit, but makes an exception to that rule by having/lib/ld-linux.so.2as a symbolic link to the IA32 dynamic linker (in their case I think the symlink points to/usr/lib32/ld-linux.so.2). Similarly, Debian and Arch Linux don't normally uselib64for anything, but for interoperability, both must make an exception to that rule to ensure that/lib64/ld-linux-x86-64.so.2is a symlink to the x86_64 dynamic linker.If Exherbo does not provide
/lib/ld-linux.so.2on machines capable of running IA32 GNU/Linux binaries, then that's an interoperability bug which should be reported to the distribution developers. In Exherbo's multiarch scheme, it should probably be a symlink to/usr/i686-pc-linux-gnu/lib/ld-linux.so.2.Steam currently requires support for both IA32 and x86_64 GNU/Linux ABIs (the
i686-pc-linux-gnuandx86_64-pc-linux-gnutuples, in Exherbo terms). Other ABIs (including non-GNU libc such as musl, and non-x86 processors) are not supported.The main Steam client program is currently only built for IA32, with some required components (the web engine) built for x86_64 and used out-of-process, so it does genuinely need both. If the Steam client gets rebuilt as x86_64 at some point in the future, then it will become possible to run it on a pure x86_64 system, but older games like Half-Life will continue to require the IA32 ABI and
/lib/ld-linux.so.2.In principle, pressure-vessel can be built for either IA32 or x86_64, and can run containers that are either pure IA32, pure x86_64, or one of those as primary architecture (for example used in
/bin/bashand other executables) and the other as secondary. We currently only ship the x86_64 version of pressure-vessel, together with a container that has x86_64 as the primary architecture and IA32 as a secondary architecture.32-bit programs built on Exherbo, or third-party 32-bit binaries?
If Exherbo hard-codes a different ELF interpreter into 32-bit programs built on Exherbo, then those programs will work fine on Exherbo systems, but would not be suitable for copying to other systems (the same problem you're having with Steam, but in reverse).
tgurr commentedon Feb 26, 2020
Thanks for your overwhelmingly detailed explanation, I'll try to see if I can convince people to ship the symlink in question per default on Exherbo as well. I wasn't aware of other distributions also running into this and going forward with such a dirty hack symlinking 32bit stuff into their 64bit libdir as well.
Anyhow just to make things clear as I may have caused some misunderstandings, I do have that symlink (manually created)
around to have Steam working and every details I've posted here in regard to the initial problem have been with the symlink around as well. Is there any other information I can provide to help or are you set for now in regard to your comment to make pressure-vessel aware of our multiarch layout:
smcv commentedon Feb 26, 2020
No, because they thought about this already, and already had the right symlink to be interoperable :-)
I don't know why this is happening, and I think it's probably the key thing that is stopping pressure-vessel from working for you. It might help if you try:
(output will be long!) and send the result as a gist, so that I have some more details of what pressure-vessel is thinking.
Dealing with a directory hierarchy this unusual is not going to be a particularly high priority right now, particularly if the OS developers haven't designed it to be compatible with generic Linux binaries. If there are small changes we can make to teach the code about Exherbo then we can try to put them in, but I'm not in a position to spend a lot of time debugging Exherbo-specific issues at this stage.
nyanloutre commentedon Oct 15, 2020
Hello,
On NixOS, Proton is broken since version 5.13 which is now using the bubblewrap steam-runtime.
This is because of an issue similar to this one: NixOS/nixpkgs#100655
tgurr commentedon Oct 18, 2020
@smcv I'm really sorry I didn't respond earlier, had this on my TODO since Februrary but the whole Covid situation keeps me very busy these days. Since the new Proton version is out this issue became quite more pressuring since it doesn't work on Exherbo anymore. I'm still very interested to get this into a working state.
I'm attaching the requested information, again sorry for the huge delay.
So the first try runs immediately into an error because on Exherbo we don't have
/etc/ld.so.cachebutld-x86_64-pc-linux-gnu.cache(andld-i686-pc-linux-gnu.cache):https://gist.github.com/tgurr/c9dc6a1ed7c423f4cbc6e9d120847d99
I worked around this issue via
but that doesn't seem to be enough, here's the output I get now:
Scout runtime: https://gist.github.com/tgurr/a0f2e477c1f79f4e9ebc69698ace591a
Soldier runtime: https://gist.github.com/tgurr/c982041d666351c4c2900b6ac2170650
Any help is greatly appreciated.
19 remaining items
smcv commentedon Jan 13, 2021
What if you create
x86_64-pc-linux-gnu/lib/gconvandi686-pc-linux-gnu/lib/gconvas empty directories, too? And, in general, if you see a failure to create some other directory inside these Exherbo-specific directories, try creating that too? (This is not a long term solution, just a way to reduce round-trips while you try this out.)smcv commentedon Jan 13, 2021
Ah, good catch. This part should be fixed in the 2021-01-14 beta of Steam Linux Runtime - soldier.
Switching to the beta branch of
SteamLinuxRuntime_soldieris the same as switching to the beta branch of a game: please follow the same procedure as https://support.steampowered.com/kb_article.php?ref=9847-WHXC-7326, but in the properties of "Steam Linux Runtime - soldier" rather than CS:GO.You can check the version numbers of various components by looking at
SteamLinuxRuntime_soldier/VERSIONS.txt. This particular fix was in pressure-vessel, and for the fixed version you want pressure-vessel 0.20210114.0 or later.smcv commentedon Jan 15, 2021
pressure-vessel 0.20210114.0 (available in yesterday's beta) fixes a bug that affected handling of the Mesa device selection Vulkan layer, which might help to get games running on your preferred GPU.
mawww commentedon Jan 17, 2021
Did a quick check today with latest runtime beta, PATH tweak is not necessary anymore, but removing the intel vulkan icd file from my host is still required.
smcv commentedon Jan 19, 2021
@mawww, would you be able to try out what I said in #230 (comment)? I believe the RPATH trouble is the last thing that needs fixing, other than selection of the wrong GPU (which is a more general issue with multi-GPU machines and is not necessarily Exherbo-specific).
I don't have the resources to spend more time on Exherbo-specific issues than I am already doing, so I'm reliant on Exherbo users to test this sort of thing if we want to make non-long-term-sustainable workarounds like
chrpathunnecessary.mawww commentedon Jan 20, 2021
@smcv I will try to give that a go soon, hopefully this evening when I get back home.
mawww commentedon Jan 21, 2021
creating
lib/gconvsubdirectories seem to fix the 32bit prefix:empty-dirs.txt
smcv commentedon Jan 21, 2021
OK, great. That seems to have fixed your
undefined symbolissues on 32-bit. So, @mawww, to confirm, is this what you changed?resulting in a tree that looks like this? (obviously inode number, owner, date will be different...)
If that works, then we can do the equivalent of that in the next release of the official runtime, and be one step closer to having all this work "out of the box" on Exherbo.
If I understand correctly, we now have fixes for all the Exherbo-specific issues:
/lib/ld-linux.so.2and/lib64/ld-linux-x86-64.so.2symlinks so that binaries from other distributions can work? (If this is not done by default, someone will have to get this done in Exherbo - this is not something we can do from inside Steam.)/etc/ld.so.cacheon the host is no longer necessary.)ldconfigandlocale) need to see the Exherbo-specific runtime linker. We create a symlink. (Fixed since mid 2020, but the setup described in this comment will improve how this is done.)/usr/bininPATH, but thePATHinherited from an Exherbo host system wasn't like this and we didn't override it. (Fixed since 0.20210114.0; the workaround of adding/usr/bintoPATHon the host is no longer necessary.)... and the remaining problem that @mawww is encountering is that on multi-GPU systems, games don't run on the GPU you expected them to. This is not Exherbo-specific, and I think we can treat it as a separate issue.
mawww commentedon Jan 21, 2021
Here is what I did:
I did not create any symlink for the runtime linkers.
Regarding the ld.so non-standard path, AFAIK there is no general problem with running binaries compiled on non-exherbo systems, I am not sure if that handled using the mentionned symlinks or in another way.
The rest looks correct, it looks like the directory trick does indeed fix the RPATH issue (its quite a mystery to me how that work), it does look like we are close to out-of-the-box support for Exherbo.
Thank you very much for you help !
smcv commentedon Jan 22, 2021
Thanks for re-testing. The next beta releases of soldier and scout should fix this last Exherbo-specific issue, leaving only the issues with not always selecting the GPU you expect on multi-GPU systems (which is not Exherbo-specific, we see that on other multi-GPU systems).
You should be able to work around the multi-GPU issues by setting environment variables to force the right GPU to be selected, or by removing the JSON files that describe the ICD you don't want to use.
I'm not completely clear on which environment variables are the best ones to use to force the right GPU choice. For AMD + Intel, some possibilities are:
MESA_VK_DEVICE_SELECT=abcd:1234whereabcdis the PCI vendor ID of your preferred GPU and1234is the product ID (this will only work in versions >= 0.20210114.0 of pressure-vessel, because we fixed a bug in previous versions that was breaking the Mesa device selection layer)DRI_PRIME=1(again this will only work in versions >= 0.20210114.0 of pressure-vessel)VK_ICD_FILENAMES(the big hammer - tell Vulkan and pressure-vessel to only load the ICDs you want and ignore the rest)The NVIDIA proprietary driver's setup is different.
__NV_PRIME_RENDER_OFFLOAD=1,__VK_LAYER_NV_optimus=NVIDIA_onlyand/or__NV_PRIME_RENDER_OFFLOAD_PROVIDERmight help.The RPATH says "before LD_LIBRARY_PATH, look in /usr/i686-pc-linux-gnu/lib". Previously, inside the container, all of /usr/i686-pc-linux-gnu/lib was an alias for all of /usr/lib/i386-linux-gnu, which is from the Steam Runtime; so it's missing any newer libraries that came from your Exherbo system, and looking there as the highest priority is bad.
Now, /usr/i686-pc-linux-gnu/lib is almost empty, so your dynamic linker looks for libraries there, doesn't find them, and continues by looking in the directories specified by LD_LIBRARY_PATH next - in our case that's /overrides/lib/i386-linux-gnu, which contains symlinks to newer libraries from your Exherbo system that need to override the older Steam Runtime libraries in /usr/lib/i386-linux-gnu. If we don't find the library via LD_LIBRARY_PATH, it's finally time to look in /usr/lib/i386-linux-gnu (for libraries that aren't present on your Exherbo system, or aren't used by the graphics drivers).
All this complexity is so that we can use your graphics drivers from the host system. Otherwise, we wouldn't be able to run on GPUs newer than the OS that the Steam Runtime is based on (scout: Ubuntu 12.04, soldier: Debian 10), and NVIDIA GPUs that need a proprietary driver wouldn't work either.
smcv commentedon Jan 27, 2021
pressure-vessel >= 0.20210126.0, as shipped in today's client betas (scout 0.20210126.2 and soldier 0.20210126.1), should hopefully run successfully on Exherbo without any special workarounds.
If you have multiple GPUs (like @mawww does), you might find that games do not run on the one you expect. This is a separate issue (or perhaps several separate issues) and is probably not Exherbo-specific. It should be possible to work around this by setting environment variables, as described in my previous comment.
We are aware that multi-GPU is not right yet, and we do not need new reports of this, unless you understand the subtleties of Vulkan and DXVK and can point us to some specific thing that we're doing wrong or failing to take into account.
tgurr commentedon Jan 27, 2021
I've just tested Stardew Valley with the latest beta opt-in update with both
Steam Linux Runtimeand alsoProton 5.13-5and both work for me.I've also tested Shadow Warrior 2 with
Proton-6.0-GE-1which also makes use of pressure-vessel and it also works for me.So what can I say, find me speechless right now, it's plain awesome to be able to use the latest developments/technology Steam/Valve offers again on Exherbo and even more so in such a timely manner. I was really afraid we could get left behind and the old still working things might start to break sooner or later. I wish to send many digital covid-free hugs to anyone involved working on this, give feedback and get this into the state it is right now. I always followed the disussions and tried things myself but @mawww was usually faster and able to provide more technical details than I could have.
So you all have my personal thanks on this @smcv & @mawww and everyone else involved, you're awesome guys!
smcv commentedon Feb 2, 2021
This beta was promoted to the default (non-beta) channel yesterday, so all users of Steam Linux Runtime (not just beta participants) should be receiving a version that can work on Exherbo. @kisak-valve, I think we can close this issue now?