Skip to content

Steam Linux Runtime not working on my system (Exherbo) #230

Closed

Description

@tgurr

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

  1. TTimo commented on Feb 22, 2020

    @TTimo
    Collaborator

    Thanks. I think the relevant bits in the log are:

    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)
    

    Please provide the output of Help > System Information (especially the "Steam Linux Runtime Information" sections).

  2. tgurr commented on Feb 22, 2020

    @tgurr
    Author
    @TTimo thank you very much, attached you find the requested output of Help > System Information.

    Computerinformationen:
        Hersteller: Unknown
        Modell: Unknown
        Formfaktor: Desktop
        Keine Touch-Eingabe erkannt
    
    Prozessor:
        CPU-Hersteller: AuthenticAMD
        CPU-Marke: AMD Ryzen 9 3900X 12-Core Processor            
        CPU-Familie: 0x17
        CPU-Modell: 0x71
        CPU-Stepping: 0x0
        CPU-Typ: 0x0
        Geschwindigkeit: 3800 MHz
        24 logische Prozessoren
        12 technische Prozessoren
        HyperThreading:  Unterstützt
        FCMOV:  Unterstützt
        SSE2:  Unterstützt
        SSE3:  Unterstützt
        SSSE3:  Unterstützt
        SSE4a:  Unterstützt
        SSE41:  Unterstützt
        SSE42:  Unterstützt
        AES: Unterstützt
        AVX: Unterstützt
        AVX2: Nicht unterstützt
        AVX512F: Nicht unterstützt
        AVX512PF: Nicht unterstützt
        AVX512ER: Nicht unterstützt
        AVX512CD: Nicht unterstützt
        AVX512VNNI: Nicht unterstützt
        SHA: Nicht unterstützt
        CMPXCHG16B: Unterstützt
        LAHF/SAHF: Unterstützt
        PrefetchW: Nicht unterstützt
    
    Betriebssystem:
        Unknown (64 Bit)
        Kernel-Name: Linux
        Kernel-Version: 5.5.1
        X-Server-Vendor: The X.Org Foundation
        X-Server-Release: 12007000
        X-Fenstermanager: KWin
        Steam-Runtime-Version: steam-runtime_0.20200204.0
    
    Grafikkarte:
        Treiber: NVIDIA Corporation GeForce RTX 2060 SUPER/PCIe/SSE2
        Treiberversion: 4.6.0 NVIDIA 440.59
        OpenGL-Version: 4.6
        Desktopfarbtiefe: 24 Bit per Pixel
        Monitor-Aktualisierungsrate: 74 Hz
        Anbieterkennung: 0x10de
        Gerätekennung: 0x1f06
        Revision nicht gefunden
        Anzahl der Monitore: 1
        Anzahl der logischen Grafikkarten: 1
        Prim. Anzeigeauflösung: 1920 x 1080
        Desktopauflösung: 1920 x 1080
        Prim. Anzeigegröße: 23.54" x 13.23" (26.97" diag)
     59.8cm x 33.6cm (68.5cm diag)
        Primärer Bus: PCI Express 16x
        Primärer VRAM: 8192 MB
        Unterstützte MSAA-Modi: 2x 4x 8x 16x 
    
    Soundkarte:
        Audiogerät: Nvidia Generic
    
    Speicher:
        RAM: 32133 MB
    
    VR-Hardware:
        VR-Headset: Keines gefunden
    
    Weitere Daten:
        UI-Sprache: Deutsch (Deutsch)
        SPRACHE: de_DE.utf8
        Verfügbarer Festplattenspeicher insgesamt: 153883 MB
        Größter freier Festplattenspeicherblock: 123981 MB
    
    Steam Linux Runtime Information:
    {
      "can-write-uinput" : true,
      "steam-installation" : {
        "path" : "/home/tgurr/.local/share/Steam",
        "data_path" : "/home/tgurr/.local/share/Steam",
        "issues" : [
        ]
      },
      "runtime" : {
        "path" : "/home/tgurr/.local/share/Steam/ubuntu12_32/steam-runtime",
        "version" : "0.20200204.0",
        "issues" : [
        ],
        "pinned_libs_32" : {
          "list" : [
            "  9568960      4 drwxr-xr-x   2 tgurr    tgurr        4096 Feb 12 05:04 pinned_libs_32"
          ]
        },
        "pinned_libs_64" : {
          "list" : [
            "  9568961      4 drwxr-xr-x   2 tgurr    tgurr        4096 Feb 12 05:04 pinned_libs_64",
            "  9568962      4 lrwxrwxrwx   1 tgurr    tgurr          98 Feb 12 05:04 pinned_libs_64/libcurl.so.4 -> /home/tgurr/.local/share/Steam/ubuntu12_32/steam-runtime/usr/lib/x86_64-linux-gnu/libcurl.so.4.2.0",
            "  9568964      0 -rw-r--r--   1 tgurr    tgurr           0 Feb 12 05:04 pinned_libs_64/has_pins",
            "  9568965      4 lrwxrwxrwx   1 tgurr    tgurr         101 Feb 12 05:04 pinned_libs_64/libGLU.so.1 -> /home/tgurr/.local/share/Steam/ubuntu12_32/steam-runtime/usr/lib/x86_64-linux-gnu/libGLU.so.1.3.08004",
            "  9568966      4 -rw-r--r--   1 tgurr    tgurr          86 Feb 12 05:04 pinned_libs_64/system_libGLU.so.1",
            "  9568967      0 lrwxrwxrwx   1 tgurr    tgurr          12 Feb 12 05:04 pinned_libs_64/libcurl.so.3 -> libcurl.so.4",
            "  9568963      4 -rw-r--r--   1 tgurr    tgurr          88 Feb 12 05:04 pinned_libs_64/system_libcurl.so.4"
          ]
        }
      },
      "os-release" : {
        "id" : "exherbo",
        "name" : "Exherbo",
        "pretty_name" : "Exherbo Linux"
      },
      "architectures" : {
        "i386-linux-gnu" : {
          "can-run" : true,
          "library-issues-summary" : [
          ],
          "graphics-details" : {
            "x11/vulkan" : {
              "messages" : "ERROR: [Loader Message] Code 0 : /home/tgurr/.local/share/Steam/ubuntu12_64/steamoverlayvulkanlayer.so: wrong ELF class: ELFCLASS64\n",
              "renderer" : "GeForce RTX 2060 SUPER",
              "version" : "1.1.119 (device 10de:1f06) (driver 440.236.0)"
            },
            "glx/gl" : {
              "renderer" : "GeForce RTX 2060 SUPER/PCIe/SSE2",
              "version" : "4.6.0 NVIDIA 440.59",
              "library-vendor" : "glvnd"
            },
            "egl_x11/gl" : {
              "renderer" : "GeForce RTX 2060 SUPER/PCIe/SSE2",
              "version" : "4.6.0 NVIDIA 440.59",
              "library-vendor" : "glvnd"
            },
            "egl_x11/glesv2" : {
              "renderer" : "GeForce RTX 2060 SUPER/PCIe/SSE2",
              "version" : "OpenGL ES 3.2 NVIDIA 440.59",
              "library-vendor" : "glvnd"
            }
          },
          "dri_drivers" : [
          ],
          "va-api_drivers" : [
            {
              "library_path" : "/home/tgurr/.local/share/Steam/ubuntu12_32/steam-runtime/usr/lib/i386-linux-gnu/dri/dummy_drv_video.so"
            }
          ]
        },
        "x86_64-linux-gnu" : {
          "can-run" : true,
          "library-issues-summary" : [
          ],
          "graphics-details" : {
            "x11/vulkan" : {
              "messages" : "ERROR: [Loader Message] Code 0 : /home/tgurr/.local/share/Steam/ubuntu12_32/steamoverlayvulkanlayer.so: wrong ELF class: ELFCLASS32\n",
              "renderer" : "GeForce RTX 2060 SUPER",
              "version" : "1.1.119 (device 10de:1f06) (driver 440.236.0)"
            },
            "glx/gl" : {
              "renderer" : "GeForce RTX 2060 SUPER/PCIe/SSE2",
              "version" : "4.6.0 NVIDIA 440.59",
              "library-vendor" : "glvnd"
            },
            "egl_x11/gl" : {
              "renderer" : "GeForce RTX 2060 SUPER/PCIe/SSE2",
              "version" : "4.6.0 NVIDIA 440.59",
              "library-vendor" : "glvnd"
            },
            "egl_x11/glesv2" : {
              "renderer" : "GeForce RTX 2060 SUPER/PCIe/SSE2",
              "version" : "OpenGL ES 3.2 NVIDIA 440.59",
              "library-vendor" : "glvnd"
            }
          },
          "dri_drivers" : [
            {
              "library_path" : "/usr/x86_64-pc-linux-gnu/lib/dri/swrast_dri.so"
            }
          ],
          "va-api_drivers" : [
            {
              "library_path" : "/home/tgurr/.local/share/Steam/ubuntu12_32/steam-runtime/usr/lib/x86_64-linux-gnu/dri/dummy_drv_video.so"
            }
          ]
        }
      },
      "locale-issues" : [
        "c-utf8-missing",
        "i18n-supported-missing"
      ],
      "locales" : {
        "<default>" : {
          "resulting-name" : "de_DE.utf8",
          "charset" : "UTF-8",
          "is_utf8" : true
        },
        "C" : {
          "resulting-name" : "C",
          "charset" : "ANSI_X3.4-1968",
          "is_utf8" : false
        },
        "C.UTF-8" : {
          "error-domain" : "srt-locale-error-quark",
          "error-code" : 0,
          "error" : "No such file or directory"
        },
        "en_US.UTF-8" : {
          "resulting-name" : "en_US.UTF-8",
          "charset" : "UTF-8",
          "is_utf8" : true
        }
      },
      "egl" : {
        "icds" : [
          {
            "json_path" : "/usr/share/glvnd/egl_vendor.d/10_nvidia.json",
            "library_path" : "libEGL_nvidia.so.0"
          },
          {
            "json_path" : "/usr/share/glvnd/egl_vendor.d/50_mesa.json",
            "library_path" : "libEGL_mesa.so.0"
          }
        ]
      },
      "vulkan" : {
        "icds" : [
          {
            "json_path" : "/usr/share/vulkan/icd.d/nvidia_icd.json",
            "library_path" : "libGLX_nvidia.so.0",
            "api_version" : "1.1.119"
          }
        ]
      }
    }
    
    CClientJobGatherRuntimeInformation: container read output failed
    

  3. changed the title [-]Steam Linux Runtime not working on my system[/-] [+]Steam Linux Runtime not working on my system (Exherbo)[/+] on Feb 25, 2020
  4. TTimo commented on Feb 25, 2020

    @TTimo
    Collaborator

    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-info

  5. tgurr commented on Feb 25, 2020

    @tgurr
    Author

    $ /mnt/games/Steam/steamapps/common/SteamLinuxRuntime/run-in-scout -- /usr/bin/steam-runtime-system-info

    `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
    x86_64-linux-gnu-capsule-capture-libs: code 2: open "/etc/ld.so.cache": No such file or directory
    pressure-vessel-wrap: Child process exited with code 1
    

    Libraries on Exherbo reside at /usr/<gnu-triplet>/lib so the x86_64-pc-linux-gnu libgiognutls.so can 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 ld

    -rw-r--r--  1 root    root     165181 24. Feb 18:13 ld-i686-pc-linux-gnu.cache
    -rw-r--r--  1 root    root        139 24. Feb 18:13 ld-i686-pc-linux-gnu.path
    -rw-r--r--  1 root    root        100 24. Feb 18:13 ld.so.conf
    -rw-r--r--  1 root    root     151560 25. Feb 19:04 ld-x86_64-pc-linux-gnu.cache
    -rw-r--r--  1 root    root        145 24. Feb 18:13 ld-x86_64-pc-linux-gnu.path
    
  6. smcv commented on Feb 25, 2020

    @smcv
    Contributor

    our ld caches are also named depending on the installed archs

    This is why pressure-vessel is failing to set up the container. It needs to read your ld.so.cache to 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 single ld.so.cache that combines all the libraries for all the architectures, and that's what the capsule-capture-libs tool currently assumes.

    Libraries on Exherbo reside at /usr/<gnu-triplet>/lib

    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 always i686? I wouldn't want to be trying all the possible permutations of i586-mac-linux-gnu, x86_64-unknown-linux-gnu and so on!

    `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

    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.

  7. smcv commented on Feb 25, 2020

    @smcv
    Contributor
    bwrap: execvp readlink: No such file or directory
    bwrap: execvp readlink: No such file or directory
    

    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.2 and /lib/ld-linux.so.2 need to be symbolic links to the 64- and 32-bit ld.so, respectively. I think pressure-vessel also assumes their real paths are in either /lib* or /usr/lib*.

  8. tgurr commented on Feb 26, 2020

    @tgurr
    Author

    our ld caches are also named depending on the installed archs

    This is why pressure-vessel is failing to set up the container. It needs to read your ld.so.cache to 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 single ld.so.cache that combines all the libraries for all the architectures, and that's what the capsule-capture-libs tool currently assumes.

    Libraries on Exherbo reside at /usr/<gnu-triplet>/lib

    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.

    That would be great, thanks in advance for trying to get this to work.

    I hope the tuples always contain -pc-, and the 32-bit flavour is always i686? I wouldn't want to be trying all the possible permutations of i586-mac-linux-gnu, x86_64-unknown-linux-gnu and so on!

    More or less, currently we have:

    aarch64-unknown-linux-gnueabi
    aarch64-unknown-linux-musleabi
    armv4-unknown-linux-gnueabi
    armv4-unknown-linux-gnueabihf
    armv4-unknown-linux-musleabi
    armv4-unknown-linux-musleabihf
    armv5-unknown-linux-gnueabi
    armv5-unknown-linux-gnueabihf
    armv5-unknown-linux-musleabi
    armv5-unknown-linux-musleabihf
    armv6-unknown-linux-gnueabi
    armv6-unknown-linux-gnueabihf
    armv6-unknown-linux-musleabi
    armv6-unknown-linux-musleabihf
    armv7-unknown-linux-gnueabi
    armv7-unknown-linux-gnueabihf
    armv7-unknown-linux-musleabi
    armv7-unknown-linux-musleabihf
    i686-pc-linux-gnu
    i686-pc-linux-musl
    i686-unknown-windows-gnu
    ia64-unknown-linux-gnu
    powerpc64-unknown-linux-gnu
    x86_64-pc-linux-gnu
    x86_64-pc-linux-musl
    

    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-gnu and i686-pc-linux-gnu on systems trying to run Steam, else it won't work either anyways.

    `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

    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.

    Thanks for explanation, very welcome!

  9. tgurr commented on Feb 26, 2020

    @tgurr
    Author
    bwrap: execvp readlink: No such file or directory
    bwrap: execvp readlink: No such file or directory
    

    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.2 and /lib/ld-linux.so.2 need to be symbolic links to the 64- and 32-bit ld.so, respectively. I think pressure-vessel also assumes their real paths are in either /lib* or /usr/lib*.

    Generally the answer is yes, but please read the following explanation since there's a catch with our multiarch approach as :

    # ls -la / | grep lib
    lrwxrwxrwx   1 root root    12 18. Nov 09:15 lib -> usr/host/lib
    lrwxrwxrwx   1 root root    27 18. Nov 09:15 lib64 -> usr/x86_64-pc-linux-gnu/lib
    
    # ls -la /usr/
    insgesamt 40
    drwxr-xr-x   8 root root  4096 25. Feb 13:40 .
    drwxr-xr-x  18 root root  4096 18. Nov 09:15 ..
    drwxr-xr-x   3 root root  4096  3. Dez 18:44 adm
    lrwxrwxrwx   1 root root     8 18. Nov 09:15 bin -> host/bin
    lrwxrwxrwx   1 root root    19 18. Nov 09:15 host -> x86_64-pc-linux-gnu
    drwxr-xr-x   6 root root  4096 19. Dez 2017  i686-pc-linux-gnu
    lrwxrwxrwx   1 root root    12 18. Nov 09:15 include -> host/include
    lrwxrwxrwx   1 root root     8 18. Nov 09:15 lib -> host/lib
    lrwxrwxrwx   1 root root    23 18. Nov 09:15 lib64 -> x86_64-pc-linux-gnu/lib
    lrwxrwxrwx   1 root root    12 18. Nov 09:15 libexec -> host/libexec
    drwxr-xr-x  10 root root  4096  7. Nov 2018  local
    lrwxrwxrwx   1 root root     9 18. Nov 09:15 sbin -> host/sbin
    drwxr-xr-x 402 root root 12288 20. Feb 09:16 share
    drwxr-xr-x   8 root root  4096  4. Feb 13:21 src
    drwxr-xr-x  11 root root  4096 18. Dez 16:26 x86_64-pc-linux-gnu
    

    /lib64/ld-linux-x86-64.so.2

    # file /lib64/ld-linux-x86-64.so.2
    /lib64/ld-linux-x86-64.so.2: symbolic link to ld-2.31.so
    

    /lib/ld-linux.so.2

    # file /lib/ld-linux.so.2
    /lib/ld-linux.so.2: cannot open `/lib/ld-linux.so.2' (No such file or directory)
    

    That results in Steam not being able to run and complaining about not being able to find e.g. libc.so.6 on 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/lib

    so that we und up with with a working:

    /lib/ld-linux.so.2

    # file /lib/ld-linux.so.2
    /lib/ld-linux.so.2: symbolic link to /usr/i686-pc-linux-gnu/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.

  10. smcv commented on Feb 26, 2020

    @smcv
    Contributor

    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 lib for 64-bit libraries and lib32 for 32-bit, but makes an exception to that rule by having /lib/ld-linux.so.2 as 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 use lib64 for anything, but for interoperability, both must make an exception to that rule to ensure that /lib64/ld-linux-x86-64.so.2 is a symlink to the x86_64 dynamic linker.

    If Exherbo does not provide /lib/ld-linux.so.2 on 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 on Exherbo however is only supported on x86_64-pc-linux-gnu

    Steam currently requires support for both IA32 and x86_64 GNU/Linux ABIs (the i686-pc-linux-gnu and x86_64-pc-linux-gnu tuples, 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/bash and 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.

    I can only say this particular problem (and dirty solution) seems to only affect Steam as other 32bit programs work fine without that hack.

    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).

  11. tgurr commented on Feb 26, 2020

    @tgurr
    Author

    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)

    # file /lib/ld-linux.so.2
    /lib/ld-linux.so.2: symbolic link to /usr/i686-pc-linux-gnu/lib/ld-linux.so.2
    

    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:

    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.

  12. smcv commented on Feb 26, 2020

    @smcv
    Contributor

    I wasn't aware of other distributions also running into this

    No, because they thought about this already, and already had the right symlink to be interoperable :-)

    bwrap: execvp readlink: No such file or directory

    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:

    G_MESSAGES_DEBUG=all /mnt/games/Steam/steamapps/common/SteamLinuxRuntime/run-in-scout -- /usr/bin/steam-runtime-system-info
    

    (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.

  13. nyanloutre commented on Oct 15, 2020

    @nyanloutre

    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

  14. tgurr commented on Oct 18, 2020

    @tgurr
    Author

    @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.cache but ld-x86_64-pc-linux-gnu.cache (and ld-i686-pc-linux-gnu.cache):

    https://gist.github.com/tgurr/c9dc6a1ed7c423f4cbc6e9d120847d99

    I worked around this issue via

    # cd /etc
    # ln -s ld-x86_64-pc-linux-gnu.cache ld.so.cache
    

    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.

  15. 19 remaining items

  16. smcv commented on Jan 13, 2021

    @smcv
    Contributor

    Making the suggested changes to the soldier runtime make steam-runtime-system-info fail with: bwrap: Can't mkdir /usr/x86_64-pc-linux-gnu/lib/gconv: Read-only file system

    What if you create x86_64-pc-linux-gnu/lib/gconv and i686-pc-linux-gnu/lib/gconv as 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.)

  17. smcv commented on Jan 13, 2021

    @smcv
    Contributor

    A quick look at pv_runtime_get_ld_so in the pressure-vessel code shows that there is an attempt to set the PATH there, but temp_bwrap->envp is actually never used as only temp_bwrap->argv gets passed to pv_capture_output

    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_soldier is 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.

  18. smcv commented on Jan 15, 2021

    @smcv
    Contributor

    to the best of my knowledge, making Vulkan applications prefer a particular GPU on Linux is not a solved problem in general

    This is not solved, but the next version of pressure-vessel might help.

    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.

  19. mawww commented on Jan 17, 2021

    @mawww

    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.

  20. smcv commented on Jan 19, 2021

    @smcv
    Contributor

    @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 chrpath unnecessary.

  21. mawww commented on Jan 20, 2021

    @mawww

    @smcv I will try to give that a go soon, hopefully this evening when I get back home.

  22. mawww commented on Jan 21, 2021

    @mawww

    creating lib/gconv subdirectories seem to fix the 32bit prefix:
    empty-dirs.txt

  23. smcv commented on Jan 21, 2021

    @smcv
    Contributor

    OK, great. That seems to have fixed your undefined symbol issues on 32-bit. So, @mawww, to confirm, is this what you changed?

    $ cd SteamLinuxRuntime_soldier/var/soldier/files
    $ rm x86_64-pc-linux-gnu/lib
    $ rm i686-pc-linux-gnu/lib
    $ mkdir x86_64-pc-linux-gnu/lib
    $ mkdir i686-pc-linux-gnu/lib
    $ ln -s /lib64/ld-linux-x86-64.so.2 x86_64-pc-linux-gnu/lib/ld-linux-x86-64.so.2
    $ ln -s /lib/ld-linux.so.2 i686-pc-linux-gnu/lib/ld-linux-x86-64.so.2
    $ mkdir x86_64-pc-linux-gnu/lib/gconv
    $ mkdir i686-pc-linux-gnu/lib/gconv
    

    resulting in a tree that looks like this? (obviously inode number, owner, date will be different...)

    $ cd SteamLinuxRuntime_soldier/var/soldier/files
    $ find *-pc-linux-gnu -ls
     32371829      0 drwxr-xr-x   1 smcv     smcv            6 Jan 21 11:50 i686-pc-linux-gnu
     34446140      0 drwxr-xr-x   1 smcv     smcv           50 Jan 21 11:50 i686-pc-linux-gnu/lib
     34446144      4 lrwxrwxrwx   1 smcv     smcv           18 Jan 21 11:50 i686-pc-linux-gnu/lib/ld-linux-x86-64.so.2 -> /lib/ld-linux.so.2
     34446148      0 drwxr-xr-x   1 smcv     smcv            0 Jan 21 11:50 i686-pc-linux-gnu/lib/gconv
     32382564      0 drwxr-xr-x   1 smcv     smcv            6 Jan 21 11:50 x86_64-pc-linux-gnu
     34446138      0 drwxr-xr-x   1 smcv     smcv           50 Jan 21 11:50 x86_64-pc-linux-gnu/lib
     34446142      4 lrwxrwxrwx   1 smcv     smcv           27 Jan 21 11:50 x86_64-pc-linux-gnu/lib/ld-linux-x86-64.so.2 -> /lib64/ld-linux-x86-64.so.2
     34446146      0 drwxr-xr-x   1 smcv     smcv            0 Jan 21 11:50 x86_64-pc-linux-gnu/lib/gconv
    

    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:

    • On the host system, Exherbo has a non-standard path for ld.so. It sounds as though someone has made it create /lib/ld-linux.so.2 and /lib64/ld-linux-x86-64.so.2 symlinks 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.)
    • On the host system, Exherbo uses a non-standard location for the ld.so cache. We've taught libcapsule and pressure-vessel to look in Exherbo's location in addition to the standard one. (Fixed since 0.20210114.0; the workaround of creating /etc/ld.so.cache on the host is no longer necessary.)
    • Inside the container, Exherbo ld.so expects to find the ld.so cache in the same Exherbo-specific location. pressure-vessel now creates a symlink so Exherbo ld.so will end up loading the runtime's ld.so cache. (Fixed since 0.20210114.0.)
    • Inside the container, executables borrowed from Exherbo (in particular ldconfig and locale) 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.)
    • Inside the container, pressure-vessel needs to have /usr/bin in PATH, but the PATH inherited 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/bin to PATH on the host is no longer necessary.)
    • Inside the container, RPATHs in Exherbo libraries caused programs to load the wrong libraries. (To be fixed in a future release, by switching to the setup described in this comment.)

    ... 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.

  24. mawww commented on Jan 21, 2021

    @mawww

    Here is what I did:

    $ cd SteamLinuxRuntime_soldier/var/soldier/files
    $ mv x86_64-pc-linux-gnu/lib x86_64-pc-linux-gnu/lib.bak
    $ mv i686-pc-linux-gnu/lib i686-pc-linux-gnu/lib.bak
    $ mkdir -p x86_64-pc-linux-gnu/lib/gconv
    $ mkdir -p i686-pc-linux-gnu/lib/gconv
    

    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 !

  25. smcv commented on Jan 22, 2021

    @smcv
    Contributor

    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:1234 where abcd is the PCI vendor ID of your preferred GPU and 1234 is 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_only and/or __NV_PRIME_RENDER_OFFLOAD_PROVIDER might help.

    it looks like the directory trick does indeed fix the RPATH issue (its quite a mystery to me how that work)

    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.

  26. smcv commented on Jan 27, 2021

    @smcv
    Contributor

    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.

  27. tgurr commented on Jan 27, 2021

    @tgurr
    Author

    I've just tested Stardew Valley with the latest beta opt-in update with both Steam Linux Runtime and also Proton 5.13-5 and both work for me.
    I've also tested Shadow Warrior 2 with Proton-6.0-GE-1 which 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!

  28. smcv commented on Feb 2, 2021

    @smcv
    Contributor

    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.

    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?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions