Skip to content

Problem with libstdc++.so.6 bundled with steam-runtime 2014-04-15 #13

Closed

Description

@jsa1983

After a graphics drivers and llvm update (mesa git 2014.04.26, compiled with llvm 3.5; llvm 3.5 svn 207303) I have experienced the following problem:

libGL error: dlopen /usr/lib/i386-linux-gnu/dri/radeonsi_dri.so failed (/home/jose/.local/share/Steam/ubuntu12_32/steam-runtime/i386/usr/lib/i386-linux-gnu/libstdc++.so.6: version GLIBCXX_3.4.18' not found (required by /usr/lib/i386-linux-gnu/libLLVM-3.5.0.so.1)) libGL error: dlopen ${ORIGIN}/dri/radeonsi_dri.so failed (${ORIGIN}/dri/radeonsi_dri.so: no se puede abrir el archivo del objeto compartido: No existe el archivo o el directorio) libGL error: dlopen /usr/lib/dri/radeonsi_dri.so failed (/usr/lib/dri/radeonsi_dri.so: no se puede abrir el archivo del objeto compartido: No existe el archivo o el directorio) libGL error: unable to load driver: radeonsi_dri.so libGL error: driver pointer missing libGL error: failed to load driver: radeonsi libGL error: dlopen /usr/lib/i386-linux-gnu/dri/swrast_dri.so failed (/home/jose/.local/share/Steam/ubuntu12_32/steam-runtime/i386/usr/lib/i386-linux-gnu/libstdc++.so.6: versionGLIBCXX_3.4.18' not found (required by /usr/lib/i386-linux-gnu/libLLVM-3.5.0.so.1))
libGL error: dlopen ${ORIGIN}/dri/swrast_dri.so failed (${ORIGIN}/dri/swrast_dri.so: no se puede abrir el archivo del objeto compartido: No existe el archivo o el directorio)
libGL error: dlopen /usr/lib/dri/swrast_dri.so failed (/usr/lib/dri/swrast_dri.so: no se puede abrir el archivo del objeto compartido: No existe el archivo o el directorio)
libGL error: unable to load driver: swrast_dri.so
libGL error: failed to load driver: swrast
ExecCommandLine: "/home/jose/.local/share/Steam/ubuntu12_32/steam"
System startup time: 8,15 seconds
libGL error: dlopen /usr/lib/i386-linux-gnu/dri/radeonsi_dri.so failed (/home/jose/.local/share/Steam/ubuntu12_32/steam-runtime/i386/usr/lib/i386-linux-gnu/libstdc++.so.6: version GLIBCXX_3.4.18' not found (required by /usr/lib/i386-linux-gnu/libLLVM-3.5.0.so.1)) libGL error: dlopen ${ORIGIN}/dri/radeonsi_dri.so failed (${ORIGIN}/dri/radeonsi_dri.so: no se puede abrir el archivo del objeto compartido: No existe el archivo o el directorio) libGL error: dlopen /usr/lib/dri/radeonsi_dri.so failed (/usr/lib/dri/radeonsi_dri.so: no se puede abrir el archivo del objeto compartido: No existe el archivo o el directorio) libGL error: unable to load driver: radeonsi_dri.so libGL error: driver pointer missing libGL error: failed to load driver: radeonsi libGL error: dlopen /usr/lib/i386-linux-gnu/dri/swrast_dri.so failed (/home/jose/.local/share/Steam/ubuntu12_32/steam-runtime/i386/usr/lib/i386-linux-gnu/libstdc++.so.6: versionGLIBCXX_3.4.18' not found (required by /usr/lib/i386-linux-gnu/libLLVM-3.5.0.so.1))
libGL error: dlopen ${ORIGIN}/dri/swrast_dri.so failed (${ORIGIN}/dri/swrast_dri.so: no se puede abrir el archivo del objeto compartido: No existe el archivo o el directorio)
libGL error: dlopen /usr/lib/dri/swrast_dri.so failed (/usr/lib/dri/swrast_dri.so: no se puede abrir el archivo del objeto compartido: No existe el archivo o el directorio)
libGL error: unable to load driver: swrast_dri.so
libGL error: failed to load driver: swrast
Running Steam on ubuntu 14.04 64-bit

However the command strings /home/jose/.local/share/Steam/ubuntu12_32/steam-runtime/i386/usr/lib/i386-linux-gnu/libstdc++.so.6 | grep GLIB did show version 3.4.18.

Removing the libstdc++.so.6 libstdc++.so.6.0.16 files solved the issue and now steam starts with direct GPU acceleration.

Activity

  1. jsa1983 commented on Apr 26, 2014

    @jsa1983
    Author

    By the way, the system's lib is 4.8.2-19ubuntu1 (libstdc++.so.6.0.19), using Ubuntu 14.04 as indicated in the log.

  2. jsa1983 commented on Apr 26, 2014

    @jsa1983
    Author

    Sorry, my bad... the bundled library only provides the following versions, among which is not 3.4.18:

    GLIBCXX_3.4
    GLIBCXX_3.4.1
    GLIBCXX_3.4.2
    GLIBCXX_3.4.3
    GLIBCXX_3.4.4
    GLIBCXX_3.4.5
    GLIBCXX_3.4.6
    GLIBCXX_3.4.7
    GLIBCXX_3.4.8
    GLIBCXX_3.4.9
    GLIBCXX_3.4.10
    GLIBCXX_3.4.11
    GLIBCXX_3.4.12
    GLIBCXX_3.4.13
    GLIBCXX_3.4.14
    GLIBCXX_3.4.15
    GLIBCXX_3.4.16

    So it seems the bundled lib must be updated.

  3. jsa1983 commented on May 4, 2014

    @jsa1983
    Author

    Now it's the same with libgcc_s.so.1 as stated in bug #3280

    Running Steam on ubuntu 14.04 64-bit
    STEAM_RUNTIME is enabled automatically
    Installing breakpad exception handler for appid(steam)/version(1398287272_client)
    libGL error: dlopen /usr/lib/i386-linux-gnu/dri/radeonsi_dri.so failed (/home/jose/.local/share/Steam/ubuntu12_32/steam-runtime/i386/lib/i386-linux-gnu/libgcc_s.so.1: version GCC_4.7.0' not found (required by /usr/lib/i386-linux-gnu/dri/radeonsi_dri.so)) libGL error: dlopen ${ORIGIN}/dri/radeonsi_dri.so failed (${ORIGIN}/dri/radeonsi_dri.so: no se puede abrir el archivo del objeto compartido: No existe el archivo o el directorio) libGL error: dlopen /usr/lib/dri/radeonsi_dri.so failed (/usr/lib/dri/radeonsi_dri.so: no se puede abrir el archivo del objeto compartido: No existe el archivo o el directorio) libGL error: unable to load driver: radeonsi_dri.so libGL error: driver pointer missing libGL error: failed to load driver: radeonsi libGL error: dlopen /usr/lib/i386-linux-gnu/dri/swrast_dri.so failed (/home/jose/.local/share/Steam/ubuntu12_32/steam-runtime/i386/lib/i386-linux-gnu/libgcc_s.so.1: versionGCC_4.7.0' not found (required by /usr/lib/i386-linux-gnu/dri/swrast_dri.so))
    libGL error: dlopen ${ORIGIN}/dri/swrast_dri.so failed (${ORIGIN}/dri/swrast_dri.so: no se puede abrir el archivo del objeto compartido: No existe el archivo o el directorio)
    libGL error: dlopen /usr/lib/dri/swrast_dri.so failed (/usr/lib/dri/swrast_dri.so: no se puede abrir el archivo del objeto compartido: No existe el archivo o el directorio)
    libGL error: unable to load driver: swrast_dri.so
    libGL error: failed to load driver: swrast
    Installing breakpad exception handler for appid(steam)/version(1398287272_client)
    Installing breakpad exception handler for appid(steam)/version(1398287272_client)
    Fontconfig error: "/etc/fonts/conf.d/10-scale-bitmap-fonts.conf", line 70: non-double matrix element
    Fontconfig error: "/etc/fonts/conf.d/10-scale-bitmap-fonts.conf", line 70: non-double matrix element
    Fontconfig warning: "/etc/fonts/conf.d/10-scale-bitmap-fonts.conf", line 78: saw unknown, expected number
    [0504/205725:WARNING:proxy_service.cc(958)] PAC support disabled because there is no system implementation
    libGL error: dlopen /usr/lib/i386-linux-gnu/dri/radeonsi_dri.so failed (/home/jose/.local/share/Steam/ubuntu12_32/steam-runtime/i386/lib/i386-linux-gnu/libgcc_s.so.1: version GCC_4.7.0' not found (required by /usr/lib/i386-linux-gnu/dri/radeonsi_dri.so)) libGL error: dlopen ${ORIGIN}/dri/radeonsi_dri.so failed (${ORIGIN}/dri/radeonsi_dri.so: no se puede abrir el archivo del objeto compartido: No existe el archivo o el directorio) libGL error: dlopen /usr/lib/dri/radeonsi_dri.so failed (/usr/lib/dri/radeonsi_dri.so: no se puede abrir el archivo del objeto compartido: No existe el archivo o el directorio) libGL error: unable to load driver: radeonsi_dri.so libGL error: driver pointer missing libGL error: failed to load driver: radeonsi libGL error: dlopen /usr/lib/i386-linux-gnu/dri/swrast_dri.so failed (/home/jose/.local/share/Steam/ubuntu12_32/steam-runtime/i386/lib/i386-linux-gnu/libgcc_s.so.1: versionGCC_4.7.0' not found (required by /usr/lib/i386-linux-gnu/dri/swrast_dri.so))
    libGL error: dlopen ${ORIGIN}/dri/swrast_dri.so failed (${ORIGIN}/dri/swrast_dri.so: no se puede abrir el archivo del objeto compartido: No existe el archivo o el directorio)
    libGL error: dlopen /usr/lib/dri/swrast_dri.so failed (/usr/lib/dri/swrast_dri.so: no se puede abrir el archivo del objeto compartido: No existe el archivo o el directorio)
    libGL error: unable to load driver: swrast_dri.so
    libGL error: failed to load driver: swrast
    Error: OpenGL GLX context is not using direct rendering, which may cause performance problems.

    For more information visit https://support.steampowered.com/kb_article.php?ref=9938-EYZB-7457.

  4. tomtomme commented on May 12, 2014

    @tomtomme

    deleting libgcc_s.so.1 of steam-runtime helped in my case #3291

  5. AsureDawn commented on May 26, 2014

    @AsureDawn

    I couldn't get the console output because this issue was causing the xserver to crash for me.
    After mv libstdc++.so.6{,.bak} && mv libgcc_s.so.1{,.bak} everything works fine now.
    Well, there's this weird (infinitely repeating) bell sound when the "Connecting Steam Account" window is focused and the "Steam Guard" window is in the background...is it supposed to be modal? Probably a separate issue.

    Almost forgot: on ArchLinux, (multilib-)testing and mesa-git enabled.

  6. scottlu commented on May 27, 2014

    @scottlu

    Thanks for the bug report; we are aware of it and are working out the best
    way to fix it.

    On Mon, May 26, 2014 at 2:08 PM, Benjamin Blanco
    [email protected]:

    I couldn't get the console output because this issue was causing the
    xserver to crash for me.
    After mv libstdc++.so.6{,.bak} && mv libgcc_s.so.1{,.bak} everything
    works fine now.
    Well, there's this weird (infinitely repeating) bell sound when the
    "Connecting Steam Account" window is focused and the "Steam Guard" window
    is in the background...is it supposed to be modal? Probably a separate
    issue.

    —
    Reply to this email directly or view it on GitHubhttps://github.com//issues/13#issuecomment-44218167
    .

  7. sylware commented on May 30, 2014

    @sylware

    It's a bit of a mess, the library preloader must be able to figure the right libgcc and libstd++ from the same major version but with different dependencies!

  8. NotMrFlibble commented on Jun 19, 2014

    @NotMrFlibble

    Putting these libraries in their own directory in the Steam runtime and using them only if needed (a simple test binary, linked against libGL, is probably enough to determine this), along with requiring that these are only distributed via Steam runtime (which will require a lot of game updates!), perhaps?

    These are system libraries; it's just plain wrong for games to be distributing them.

  9. sylware commented on Jun 19, 2014

    @sylware

    On Thu, Jun 19, 2014 at 09:44:25AM -0700, NotMrFlibble wrote:

    Putting these libraries in their own directory in the Steam
    runtime and using them only if needed (a simple test binary,
    linked against libGL, is probably enough to determine this),
    along with requiring that these are only distributed via Steam
    runtime (which will require a lot of game updates!), perhaps?

    These are system libraries; it's just plain wrong for games
    to be distributing them.

    Wrong. They are a lot of gnu/linux systems out there which decide
    what is "their" system (I don't have c++ on some systems for
    instance, which is a good thing since this language/runtime is
    more toxic and damaging than plain C, but this is not the topic
    here).

    It should depend on a minimum set of system libs, the elf loader,
    and those linked to the hardware, like GL libs, pulseaudio/alsa
    libs. Valve is narrowing down those requirements even so they
    could not care at all, since they could base steam on the system
    libs from GNU/Linux debian7 (steamOS) and send all the others to
    Hell...

    Is that what you want?

    Sylvain

  10. scottlu commented on Jun 21, 2014

    @scottlu

    Here are the things we are looking at right now...

    • A new steam-runtime SDK release with support for gcc-4.8 and clang-3.4. This new SDK is contained in a chroot environment (used for the app's build environment, not when the app is run). This results in a stable, constant build environment independent of the host system version, ensures apps aren't pulling in dependencies from the underlying system, and makes it easy to customize and update.
    • We're investigating making gcc-4.8's libstdc++ the default in the steam-runtime going forward. The investigation involves testing all current Linux games in the Steam library on Ubuntu 12.04 through 14.04 to see what compatibility issues may result. We are close to starting this test.
    • We are also investigating a way to mark which steam-runtime version an app was built with, so that Steam can make runtime environment decisions when the app is launched, as necessary. This isn't very different from what other OS's do to know what runtime expectations an app has. For example if necessary Steam can ensure a given app has the libstdc++ and libgcc it expects.

    Thanks,
    Scott

  11. NotMrFlibble commented on Jun 21, 2014

    @NotMrFlibble

    I found that Witcher 2 with Mesa 10.2 built against llvm 3.4.1 and using radeonsi would fail with a register-related error; but building Mesa against an llvm 3.5 snapshot (Debian unstable) ends up with it requiring libc6 2.19 etc. However, so that the game runs fine, that's what I've done.

    llibgl1-mesa-dri Depends: libc6 (>= 2.17), … , libgcc1 (>= 1:4.7), libllvm3.5, libstdc++6 (>= 4.6)
    llibllvm3.5 Depends: libc6 (>= 2.15), …, libgcc1 (>= 1:4.1.1), libstdc++6 (>= 4.8), …

    So if the Steam runtime decides that a libstdc++ older than 4.8 can be used, it's going to break things here.

    My understanding is that it's always safe to use newer libc6, libstdc++6 and libgcc1 (for libc.so.6, libstdc++.so.6 and libgcc_s.so.1, respectively) – and if not, it's a library bug.

  12. sylware commented on Jun 22, 2014

    @sylware

    On Sat, Jun 21, 2014 at 11:44:46AM -0700, Scott Ludwig wrote:

    • We're investigating making gcc-4.8's libstdc++ the default in
      the steam-runtime going forward. The investigation involves
      testing all current Linux games in the Steam library on Ubuntu
      12.04 through 14.04 to see what compatibility issues may
      result. We are close to starting this test.

    The runtime should rely only on the ELF loader. Everything else
    should be bundled except the libs which contains system/hardware
    specific "ultra stable over time" interfaces like GL and alsa.
    The runtime should be able to "cherry pick" all its dependencies.
    That would help making the steam-runtime run on most GNU/Linux
    distros. Additionnaly, carefull of compilers and their
    run-times: Do not assume you have specific compilers with their
    run-times on all distros with the "right" version... with
    clang/gcc/tinycc/open64/glibc/musl/eglibc/dietlibc... bundle those
    you use in the steam run-time... only rely on the ELF loader, and the
    really necessary system libs (compilers runtimes should not be
    part of this really necessary system set of libs).
    That should make the steam runtime work on nearly all GNU/Linux
    distros and be able to troubleshoot in a fine way all system
    dependency issues.

    Oh! I forgot... plz! 64 bits native builds! ;). Namely steam
    should be able to differenciate 32bits/64bits like the OS
    (windows/marcOS/linux(steamOS)) for games. Hardware
    manufacturers seem to go multi-arch support. For instance (see
    AMD), power hungry speed cores using x86_64 and power efficient
    but quite slower ARM cores may exist in the not too distant
    futur.

    best regards,

    Sylvain

  13. sylware commented on Jun 23, 2014

    @sylware

    I stand corrected by myself:
    It may be a very good idea to bundle the ELF loader in the steam runtime and rely only on the library paths in /etc/ld.so.conf and /etc/ld.so.conf.d/ in order to locate x11/GL(wayland?) and alsalib.
    ELF is supposed to be a strict and stable binary interface, even better than GL and alsalib.

  14. 62 remaining items

  15. evhfiftyone50 commented on Sep 15, 2016

    @evhfiftyone50

    @tfhavingfun Could you please elaborate where you put the code into steam.sh? The way I have tried it still resulted in the same error. But then again I am quite new to this and probably messed something up.
    Thanks!

  16. pavlos256 commented on Sep 15, 2016

    @pavlos256

    @evhfiftyone50 What I did was create a tiny shell script and start steam with it:

    #!/bin/bash
    env LD_PRELOAD='/usr/$LIB/libstdc++.so.6 /usr/$LIB/libgcc_s.so.1 /usr/$LIB/libxcb.so.1 /usr/$LIB/libgpg-error.so' /usr/bin/steam %U
  17. tfhavingfun commented on Sep 17, 2016

    @tfhavingfun

    @evhfiftyone50 I don't recommend editing steam.sh directly. Instead just create a shell script as suggested by @pavlos256 and use a custom desktop file for Steam within which you can then refer to the shell script. That way you can just click the Steam icon (be it on your Desktop or Dash/Dock) to start it as you would normally do. Here is a video I made demonstrating how to do that: https://www.youtube.com/watch?v=gdM1S39mjgY

  18. HarlemSquirrel commented on Sep 24, 2016

    @HarlemSquirrel

    I made a desktop file I made by copying the original desktop file and modifying Name and EXEC to use the line from @pavlos256

    cp /usr/share/applications/steam.desktop ~/.local/share/applications/steam-preload-libs.desktop.desktop
    
    Name=Steam (preload libs)
    Exec=env LD_PRELOAD='/usr/$LIB/libstdc++.so.6 /usr/$LIB/libgcc_s.so.1 /usr/$LIB/libxcb.so.1 /usr/$LIB/libgpg-error.so' /usr/bin/steam %U
    

    I also made it executable and refreshed my GNOME desktop so I could find it and click on it.

    chmod +x /home/hs/.local/share/applications/steam-preload-libs.desktop.desktop
    
  19. zygimantus commented on Nov 2, 2016

    @zygimantus

    In ArchLinux the solution for me was: rm ~/.local/share/Steam/ubuntu12_32/steam-runtime/i386/usr/lib/i386-linux-gnu/lib*

  20. Swyter commented on Nov 2, 2016

    @Swyter

    Arch Linux now has a steam-native-runtime meta-package in the Community/Multilib repository with all the needed Steam dependencies. So this shouldn't be a problem any longer.

    https://wiki.archlinux.org/index.php/Steam/Troubleshooting#Native_runtime

    Just install that and launch steam-native instead of steam.

    Boom! You are done, no more deletions.

  21. sylware commented on Nov 3, 2016

    @sylware

    Just updated my custom gnu/linux distro.

    32 bits libs are a massive pain to build/setup, since you must use a multi-lib gcc.
    It's not reasonable to try to split cleanly 32 bits and 64 bits infrastructures.

    I do really think, it's time to provide a clean 64 bits client on gnu/linux.
    (big picture?)

    I can try to help (I'm humble), even though I'm an open source fan and c++
    hater (for very good reasons). I'm currently available.

  22. LotosikRa commented on Dec 30, 2016

    @LotosikRa

    @Swyter How to install this kind of package?

  23. mikefaille commented on Dec 30, 2016

    @mikefaille

    @LotosikRa In which Linux Distro ?

  24. LotosikRa commented on Dec 30, 2016

    @LotosikRa

    @mikefaille Ubuntu 16.10

  25. mikefaille commented on Dec 30, 2016

    @mikefaille

    @LotosikRa You don't need this on Ubuntu. You already have "steam native" libs where native platform = Ubuntu/Debian. Just install steam from "Ubuntu Software".

  26. LotosikRa commented on Dec 30, 2016

    @LotosikRa

    @mikefaille Did You mean that Ubuntu's steam package have all what I need? What does

    Just install steam apt://steam

    mean?

  27. mikefaille commented on Dec 30, 2016

    @mikefaille

    @LotosikRa
    My bad, just check my edited post. #13 (comment)

  28. mmstick commented on Dec 30, 2016

    @mmstick

    You'll still have the same problem with the steam runtime because Ubuntu is not actually an officially supported platform, even though it is claimed to be officially supported. You will need to apply the same fixes as other distributions to get working drivers in Steam games for Ubuntu 16.10. The same solution for Arch Linux applies to Ubuntu -- deleting the conflicting libs. I'm not aware of any PPAs providing a native runtime for Ubuntu.

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions