Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Steam installation - libGL errors
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Gamers & Players
View previous topic :: View next topic  
Author Message
Bladesy
Tux's lil' helper
Tux's lil' helper


Joined: 04 Apr 2015
Posts: 113

PostPosted: Wed Feb 17, 2016 11:55 pm    Post subject: Steam installation - libGL errors Reply with quote

Hello all, I've completed a recent, fresh install of gentoo, and I've been attempting to install steam.
I think I should also preface this post with the fact that I'm pretty much still a beginner with linux - so these errors may (hopefully) end up being a simple fix.
I've followed all the steps on the wiki, but when I run the steam script, I get the following output:
Code:
bladesy@sheath ~/Downloads/steam $ ./steam
/home/bladesy/Downloads/steam/steam.sh: line 161: VERSION_ID: unbound variable
Couldn't find dpkg, please update steamdeps for your distribution.
/home/bladesy/Downloads/steam/steam.sh: line 161: VERSION_ID: unbound variable
Running Steam on gentoo  64-bit
/home/bladesy/Downloads/steam/steam.sh: line 161: VERSION_ID: unbound variable
STEAM_RUNTIME is enabled automatically
Installing breakpad exception handler for appid(steam)/version(0)
libGL error: unable to load driver: swrast_dri.so
libGL error: failed to load driver: swrast

Contents of the steam directory:
Code:
bladesy@sheath ~/Downloads/steam $ ls
bootstraplinux_ubuntu12_32.tar.xz  COPYING  lib      Makefile  steam.6        steam.desktop                steam.list
bootstrap.tar.xz                   debian   linux32  README    steamdeps      steam_install_agreement.txt  steam.sh
check_version.sh                   icons    logs     steam     steamdeps.txt  steam-key.asc                ubuntu12_32

(The reason I post this is because I remember reading something about steam.desktop being missing from the ~/Desktop directory, but I never experimented or anything.)
The one thing that worries me is the multilib warning in the wiki, as I read a forum post for someone with a similar problem, stating that this may be caused by an absence of 32bit libraries.
I should note that I have an nvidia GPU, and I am using the proprietary drivers (nvidia-drivers) on a UEFI 64bit install.
Thanks for reading, I'm open to any suggestions I could try out.
Back to top
View user's profile Send private message
Chiitoo
Administrator
Administrator


Joined: 28 Feb 2010
Posts: 2571
Location: Here and Away Again

PostPosted: Thu Feb 18, 2016 4:15 am    Post subject: ><)))°€ Reply with quote

Teegrins, Bladesy!

You'll probably get it running by doing something like this:

Code:
LD_LIBRARY_PATH="$LD_LIBRARY_PATH:/usr/lib32/opengl/nvidia/lib" ./steam

If you're using the (currently) latest nvidia-drivers, you may want to add this for at least source-based games to run:

Code:
__GLVND_DISALLOW_PATCHING=1

See also threads [Workaround] Latest SOURCE games and Latest Nvidia drivers and Native Steam client and source game engine.
_________________
Kindest of regardses.
Back to top
View user's profile Send private message
Bladesy
Tux's lil' helper
Tux's lil' helper


Joined: 04 Apr 2015
Posts: 113

PostPosted: Thu Feb 18, 2016 1:33 pm    Post subject: Reply with quote

Thanks for replying, specifying the LD_LIBRARY_PATH makes steam start trying to update - but it then fails after the download completes, giving this output after all the download-related messages:
Code:
[2016-02-18 13:25:32] Download Complete.
[2016-02-18 13:25:32] uninstalled manifest found in /home/bladesy/Downloads/steam/package/steam_client_ubuntu12 (1).
[2016-02-18 13:25:32] Extracting package...
[2016-02-18 13:25:38] Installing update...
[2016-02-18 13:25:38] BCommitUpdatedFiles: failed to create directory ./steam/cached
[2016-02-18 13:25:38] BCommitUpdatedFiles: failed to process ./steam
[2016-02-18 13:25:38] Failed to apply update, reverting...
[2016-02-18 13:25:48] Shutdown

The error message that pops up says:
Code:
Fatal Error: Failed to load steamui.so

If I try to run it a second time, nothing is downloaded again, and so I get this output:
Code:
bladesy@sheath ~/Downloads/steam $ LD_LIBRARY_PATH="$LD_LIBRARY_PATH:/usr/lib32/opengl/nvidia/lib" ./steam
/home/bladesy/Downloads/steam/steam.sh: line 161: VERSION_ID: unbound variable
Couldn't find dpkg, please update steamdeps for your distribution.
/home/bladesy/Downloads/steam/steam.sh: line 161: VERSION_ID: unbound variable
Running Steam on gentoo  64-bit
/home/bladesy/Downloads/steam/steam.sh: line 161: VERSION_ID: unbound variable
STEAM_RUNTIME is enabled automatically
Installing breakpad exception handler for appid(steam)/version(0)
Installing breakpad exception handler for appid(steam)/version(1.0)
Installing breakpad exception handler for appid(steam)/version(1.0)
Installing breakpad exception handler for appid(steam)/version(1.0)
Installing breakpad exception handler for appid(steam)/version(1.0)
Installing breakpad exception handler for appid(steam)/version(1.0)
Installing breakpad exception handler for appid(steam)/version(1.0)
Installing breakpad exception handler for appid(steam)/version(1.0)
Installing breakpad exception handler for appid(steam)/version(1.0)
Installing breakpad exception handler for appid(steam)/version(1.0)
Installing breakpad exception handler for appid(steam)/version(1.0)
Installing breakpad exception handler for appid(steam)/version(1.0)
Installing breakpad exception handler for appid(steam)/version(1.0)
Installing breakpad exception handler for appid(steam)/version(1.0)
Installing breakpad exception handler for appid(steam)/version(1.0)
Installing breakpad exception handler for appid(steam)/version(1.0)
Installing breakpad exception handler for appid(steam)/version(1.0)
Installing breakpad exception handler for appid(steam)/version(1.0)
Installing breakpad exception handler for appid(steam)/version(1.0)
Installing breakpad exception handler for appid(steam)/version(1.0)
Installing breakpad exception handler for appid(steam)/version(1.0)
Installing breakpad exception handler for appid(steam)/version(1.0)
Installing breakpad exception handler for appid(steam)/version(1.0)
Installing breakpad exception handler for appid(steam)/version(1.0)
Installing breakpad exception handler for appid(steam)/version(1.0)
Installing breakpad exception handler for appid(steam)/version(1.0)
Installing breakpad exception handler for appid(steam)/version(1.0)
Installing breakpad exception handler for appid(steam)/version(1.0)
Installing breakpad exception handler for appid(steam)/version(1.0)
Installing breakpad exception handler for appid(steam)/version(1.0)
Installing breakpad exception handler for appid(steam)/version(1.0)
Installing breakpad exception handler for appid(steam)/version(1.0)
Installing breakpad exception handler for appid(steam)/version(1.0)
Installing breakpad exception handler for appid(steam)/version(1.0)
Installing breakpad exception handler for appid(steam)/version(1.0)
Installing breakpad exception handler for appid(steam)/version(1.0)
Installing breakpad exception handler for appid(steam)/version(1.0)
Installing breakpad exception handler for appid(steam)/version(1.0)
Installing breakpad exception handler for appid(steam)/version(1.0)
Installing breakpad exception handler for appid(steam)/version(1.0)
Installing breakpad exception handler for appid(steam)/version(1.0)
Installing breakpad exception handler for appid(steam)/version(1.0)
Installing breakpad exception handler for appid(steam)/version(1.0)
Installing breakpad exception handler for appid(steam)/version(1.0)
Installing breakpad exception handler for appid(steam)/version(1.0)
Installing breakpad exception handler for appid(steam)/version(1.0)
Installing breakpad exception handler for appid(steam)/version(1.0)
Installing breakpad exception handler for appid(steam)/version(1.0)
Installing breakpad exception handler for appid(steam)/version(1.0)
Installing breakpad exception handler for appid(steam)/version(1.0)
Installing breakpad exception handler for appid(steam)/version(1.0)
Installing breakpad exception handler for appid(steam)/version(1.0)
[2016-02-18 13:28:20] Startup - updater built Nov 17 2015 12:33:46
Looks like steam didn't shutdown cleanly, scheduling immediate update check
[2016-02-18 13:28:20] Checking for update on startup
[2016-02-18 13:28:20] Checking for available updates...
[2016-02-18 13:28:21] Download complete.
[2016-02-18 13:28:21] uninstalled manifest found in /home/bladesy/Downloads/steam/package/steam_client_ubuntu12 (1).
[2016-02-18 13:28:21] Found pending update
[2016-02-18 13:28:21] Installing update...
[2016-02-18 13:28:21] Extracting package...
[2016-02-18 13:28:27] Installing update...
[2016-02-18 13:28:27] BCommitUpdatedFiles: failed to create directory ./steam/cached
[2016-02-18 13:28:27] BCommitUpdatedFiles: failed to process ./steam
[2016-02-18 13:28:27] Failed to apply update, reverting...
[2016-02-18 13:28:27] Verifying installation...
[2016-02-18 13:28:27] Performing checksum verification of executable files
[2016-02-18 13:28:27] Unable to read and verify install manifest /home/bladesy/Downloads/steam/package/steam_client_ubuntu12.installed
[2016-02-18 13:28:27] Verification complete
[2016-02-18 13:28:27] Downloading update...
[2016-02-18 13:28:27] Checking for available updates...
[2016-02-18 13:28:28] Download complete.
[2016-02-18 13:28:28] Extracting package...
[2016-02-18 13:28:34] Installing update...
[2016-02-18 13:28:35] BCommitUpdatedFiles: failed to create directory ./steam/cached
[2016-02-18 13:28:35] BCommitUpdatedFiles: failed to process ./steam
[2016-02-18 13:28:35] Failed to apply update, reverting...
[2016-02-18 13:30:17] Shutdown

All the failed directory messages are making me think it might be a permissions related error, but I'm honestly not sure.
Also, where abouts should I place __GLVND_DISALLOW_PATCHING=1?
Thanks again for helping me.
Back to top
View user's profile Send private message
Chiitoo
Administrator
Administrator


Joined: 28 Feb 2010
Posts: 2571
Location: Here and Away Again

PostPosted: Thu Feb 18, 2016 3:37 pm    Post subject: Reply with quote

Similar to LD_LIBRARY_PATH, the __GLVND_DISALLOW_PATCHING is an environment variable, so something like this for example:

Code:
__GLVND_DISALLOW_PATCHING=1 LD_LIBRARY_PATH="$LD_LIBRARY_PATH:/usr/lib32/opengl/nvidia/lib" ./steam

Some prefer using the command export:

Code:
export __GLVND_DISALLOW_PATCHING=1

This would set the variable for the shell it's run in, so commands would not be needed to be prefixed with it to have its effect(s). It will only have the effect in that shell, however, and it will be lost when the shell is closed. For a more permanent solution, one could put the export-command into a user's ~/.bashrc-file for example.

It looks like setting __GL_THREADED_OPTIMIZATIONS=0 should work as an alternative workaround.

This will probably be fixed in nvidia-drivers at some point, if we were to go by this comment at devtalk.nvidia.com. Kind of funny that as soon as I read the release notes on the 361.28 version, I was pretty much certain that there would be issues. ^^

But that's only something that should affect some games from the looks of it, and with nvidia-drivers-361.28.


This particular issue at hand looks like permission issues to me, too, though I can't say I've seen those exact messages before.

How did you install Steam? Looking at the paths, I'd guess not the ebuild route; I myself have only used the manual method. It's one of the rare exceptions that I rather not use Portage for, though the ebuilds probably are quite convenient!

How do the permissions in the root directory of Steam look? I believe ./steam/cached would be under that as well (something like /home/bladesy/Downloads/steam/steam/cached).
_________________
Kindest of regardses.
Back to top
View user's profile Send private message
Bladesy
Tux's lil' helper
Tux's lil' helper


Joined: 04 Apr 2015
Posts: 113

PostPosted: Thu Feb 18, 2016 4:31 pm    Post subject: Reply with quote

I used the manual method for installing steam, but I used portage beforehand to get all the dependencies - which reminds me that I ended up masking previous versions of nvidia-drivers that was pulled in.
Also, I can't find a steam directory within the steam directory, or a cached directory in either steam directory.
I'm not exactly sure how to read permissions, but with ls -al, my username seems to be attached to all files:
Code:

bladesy@sheath ~/Downloads/steam $ ls -al
total 5520
drwx------ 20 bladesy bladesy    4096 Feb 18 16:19 .
drwxr-xr-x  3 bladesy bladesy    4096 Feb 17 21:45 ..
drwxr-xr-x  4 bladesy bladesy    4096 Feb 18 13:25 bin
-rwxr-xr-x  1 bladesy bladesy   11384 Nov 11  2014 bin_steamdeps.py
-rwxr-xr-x  1 bladesy bladesy    5390 Nov 17 22:54 bin_steam.sh
-rw-------  1 bladesy bladesy 2676956 Nov 17 21:36 bootstraplinux_ubuntu12_32.tar.xz
-rw-------  1 bladesy bladesy 2676956 Feb 18 16:18 bootstrap.tar.xz
-rwx------  1 bladesy bladesy     623 Nov 26  2013 check_version.sh
drwxr-xr-x  3 bladesy bladesy    4096 Feb 18 16:19 controller_base
lrwxrwxrwx  1 bladesy bladesy      27 Nov 26  2013 COPYING -> steam_install_agreement.txt
-rw-r--r--  1 bladesy bladesy       0 Feb 18 13:24 .crash
drwx------  3 bladesy bladesy    4096 Nov 17 21:36 debian
drwxr-xr-x  2 bladesy bladesy   16384 Feb 18 16:19 friends
drwxr-xr-x  3 bladesy bladesy   57344 Feb 18 16:19 graphics
drwxr-xr-x  2 bladesy bladesy    4096 Feb 18 16:19 html5app
drwx------  7 bladesy bladesy    4096 Nov 26  2013 icons
drwx------  3 bladesy bladesy    4096 Nov 26  2013 lib
drwx------  2 bladesy bladesy    4096 Feb 18 16:19 linux32
drwxr-xr-x  2 bladesy bladesy    4096 Feb 18 16:19 linux64
drwxr-xr-x  2 bladesy bladesy    4096 Feb 17 00:32 logs
-rwx------  1 bladesy bladesy    5826 May  5  2015 Makefile
drwxr-xr-x  3 bladesy bladesy    4096 Feb 18 13:25 package
drwxr-xr-x  3 bladesy bladesy   20480 Feb 18 16:19 public
-rw-------  1 bladesy bladesy     325 Nov 26  2013 README
drwxr-xr-x  3 bladesy bladesy    4096 Feb 18 13:25 remoteui
drwxr-xr-x  6 bladesy bladesy   20480 Feb 18 16:19 resource
drwxr-xr-x  2 bladesy bladesy    4096 Feb 18 16:19 servers
drwxr-xr-x  2 bladesy bladesy    4096 Feb 18 16:19 skins
-rwxr-xr-x  1 bladesy bladesy    5390 Nov 17 20:07 steam
-rw-------  1 bladesy bladesy     438 Nov 26  2013 steam.6
-rwxr-xr-x  1 bladesy bladesy   11384 Feb 11  2014 steamdeps
-rw-------  1 bladesy bladesy     826 Nov 26  2013 steamdeps.txt
-rw-------  1 bladesy bladesy    2191 Nov 26  2013 steam.desktop
-rw-------  1 bladesy bladesy    8822 Nov 26  2013 steam_install_agreement.txt
-rw-------  1 bladesy bladesy    2641 Nov 26  2013 steam-key.asc
-rw-------  1 bladesy bladesy     148 Feb 11  2014 steam.list
-rwx------  1 bladesy bladesy   22532 Nov 17 20:07 steam.sh
drwx------  3 bladesy bladesy    4096 Nov 17 21:36 ubuntu12_32

This is what seems to be the install directory:
Code:
 
bladesy@sheath ~/.local/share/Steam $ ls -al
total 2676
drwx------ 5 bladesy bladesy    4096 Feb 17 00:34 .
drwx------ 6 bladesy bladesy    4096 Feb 17 21:45 ..
-rw------- 1 bladesy bladesy 2676956 Feb 17 00:34 bootstrap.tar.xz
drwx------ 2 bladesy bladesy    4096 Nov 17 21:36 linux32
drwxr-xr-x 2 bladesy bladesy    4096 Feb 17 00:34 logs
-rw------- 1 bladesy bladesy     826 Nov 26  2013 steamdeps.txt
-rw------- 1 bladesy bladesy    8822 Nov 26  2013 steam_install_agreement.txt
-rwx------ 1 bladesy bladesy   22532 Nov 17 20:07 steam.sh
drwx------ 3 bladesy bladesy    4096 Nov 17 21:36 ubuntu12_32
Back to top
View user's profile Send private message
BobWya
Apprentice
Apprentice


Joined: 12 Aug 2012
Posts: 228
Location: Cambridge,UK

PostPosted: Thu Feb 18, 2016 6:55 pm    Post subject: Reply with quote

Are you guys using the legacy non-GLVND version of the =x11-drivers/nvidia-drivers-361.28-r2 ?? Enabled with USE flag +compat ... I can't test this because the 361.28 breaks my resume from sleep cycle... So I've reverted back to 361.18.

If anyone here wants to "weigh in" on my campaign to fix Gentoo's =app-eselect/eselect-opengl-1.3.1-r4 ... Then please add your (rude) comments to: app-eselect/eselect-opengl with media-libs/mesa with x11-drivers/nvidia-drivers-361 - GLX not working(?) ...
I got a bit disheartened - so I've just written my own - out of tree / unofficial version - which is currently in my Layman overlay bobwya .
For your reference it's the current(-ly broken) Gentoo implementation that forces you pass the linker:
Code:
LD_LIBRARY_PATH="$LD_LIBRARY_PATH:/usr/lib32/opengl/nvidia/lib"

path before you run Steam :wink:

Please can you guys start actually referencing package versions - the thread is not very helpful for anyone else running into similar problems as yourselves!!

Bob
_________________
system: G751JT (ASUS-NotebookSKU); processor: Intel(R) Core(TM) i7-4710HQ CPU @ 2.50GHz; memory: 32GiB System Memory; display: GM204M [GeForce GTX 970M]; disk: 2048GB Samsung SSD 850;BD-CMB UJ172 S;1024GB Samsung SSD 850
Back to top
View user's profile Send private message
Bladesy
Tux's lil' helper
Tux's lil' helper


Joined: 04 Apr 2015
Posts: 113

PostPosted: Thu Feb 18, 2016 7:35 pm    Post subject: Reply with quote

I'm actually not completely sure on the version of nvidia-drivers that I'm using - it should be x11-drivers/nvidia-drivers-358.16-r1:0/358::gentoo, but apparently x11-drivers/nvidia-drivers-340.93-r1:0/340::gentoo is installed also, if what I gather from the output below is correct:
Code:
 
bladesy@sheath ~/.local/share/Steam $ sudo emerge --update --newuse --deep @world
Calculating dependencies... done!
[ebuild     U  ] x11-drivers/nvidia-drivers-358.16-r1 [340.93-r1] USE="gtk3%* kms%* -gtk2%"

!!! Multiple package instances within a single package slot have been pulled
!!! into the dependency graph, resulting in a slot conflict:

x11-drivers/nvidia-drivers:0

  (x11-drivers/nvidia-drivers-358.16-r1:0/358::gentoo, ebuild scheduled for merge) pulled in by
    (no parents that aren't satisfied by other packages in this slot)

  (x11-drivers/nvidia-drivers-340.93-r1:0/340::gentoo, installed) pulled in by
    ~x11-drivers/nvidia-drivers-340.93 required by (media-video/nvidia-settings-340.58:0/0::gentoo, installed)
    ^                           ^^^^^^                                                                                                                               


It may be possible to solve this problem by using package.mask to
prevent one of those packages from being selected. However, it is also
possible that conflicting dependencies exist such that they are
impossible to satisfy simultaneously.  If such a conflict exists in
the dependencies of two different packages, then those packages can
not be installed simultaneously. You may want to try a larger value of
the --backtrack option, such as --backtrack=30, in order to see if
that will solve this conflict automatically.

For more information, see MASKED PACKAGES section in the emerge man
page or refer to the Gentoo Handbook.


!!! The following installed packages are masked:
- x11-drivers/nvidia-drivers-340.93-r1::gentoo (masked by: package.mask)
For more information, see the MASKED PACKAGES section in the emerge
man page or refer to the Gentoo Handbook.

It says that I have masked the previous version, but it's still installed anyway - could this maybe have anything to do with steam not working?
Back to top
View user's profile Send private message
BobWya
Apprentice
Apprentice


Joined: 12 Aug 2012
Posts: 228
Location: Cambridge,UK

PostPosted: Thu Feb 18, 2016 7:57 pm    Post subject: Reply with quote

Bladesy wrote:
I'm actually not completely sure on the version of nvidia-drivers that I'm using - it should be x11-drivers/nvidia-drivers-358.16-r1:0/358::gentoo, but apparently x11-drivers/nvidia-drivers-340.93-r1:0/340::gentoo is installed also, if what I gather from the output below is correct:
Code:

blah ... blah

It says that I have masked the previous version, but it's still installed anyway - could this maybe have anything to do with steam not working?


As root (yup some folks need to be reminded :roll: ):
Code:
echo "x11-drivers/nvidia-drivers tools" >> /etc/portage/package.use # Add this manually if /etc/portage/package.use is directory or if you like things tidy :-)
emerge --depclean nvidia-settings
emerge --unmerge nvidia-settings
emerge nvidia-drivers


The nvidia-settings package refuses to die - basically because some (extremely) obscure in-tree ebuilds - that probably haven't been updated for decades - depend on it :roll:

I would fix that issue first 8)
_________________
system: G751JT (ASUS-NotebookSKU); processor: Intel(R) Core(TM) i7-4710HQ CPU @ 2.50GHz; memory: 32GiB System Memory; display: GM204M [GeForce GTX 970M]; disk: 2048GB Samsung SSD 850;BD-CMB UJ172 S;1024GB Samsung SSD 850
Back to top
View user's profile Send private message
Naib
Watchman
Watchman


Joined: 21 May 2004
Posts: 6051
Location: Removed by Neddy

PostPosted: Thu Feb 18, 2016 7:58 pm    Post subject: Reply with quote

Chiitoo wrote:


It looks like setting __GL_THREADED_OPTIMIZATIONS=0 should work as an alternative workaround.

Not always possible. CounterStrike:GlobalOffensive actually sets that in the csgo.sh script so if you set it in your env, the game sets it back to "1". Option would be to edit csgo.sh but since there was a big update last night BAM to that edit :) hence the other env variable was offered

also gl_threaded_optimisation has been in the nvdrivers for at least 6months so what changed in the recent patchset that got you concerned?
_________________
Quote:
Removed by Chiitoo


Last edited by Naib on Thu Feb 18, 2016 8:01 pm; edited 1 time in total
Back to top
View user's profile Send private message
BobWya
Apprentice
Apprentice


Joined: 12 Aug 2012
Posts: 228
Location: Cambridge,UK

PostPosted: Thu Feb 18, 2016 8:00 pm    Post subject: Reply with quote

Btw equery (or eix) are your friends - NO for real!! :P

Code:
equery uses x11-drivers/nvidia-drivers
[ Legend : U - final flag setting for installation]
[        : I - package is installed with flag     ]
[ Colors : set, unset                             ]
 * Found these USE flags for x11-drivers/nvidia-drivers-361.18-r3:
 U I
 + + X          : Install the X.org driver, OpenGL libraries, XvMC libraries, and VDPAU libraries
 + + acpi       : Add support for Advanced Configuration and Power Interface
 + + driver     : Install the kernel driver module
 + + gtk2       : Install nvidia-settings with support for GTK+ 2
 - - gtk3       : Install nvidia-settings with support for GTK+ 3
 + + kms        : Enable support for kernel mode setting (KMS)
 + + multilib   : On 64bit systems, if you want to be able to compile 32bit and 64bit binaries
 - - pax_kernel : PaX patches from the PaX project
 + + tools      : Install additional tools such as nvidia-settings
 + + uvm        : Install the Unified Memory kernel module (nvidia-uvm) for sharing memory between CPU and GPU in CUDA programs

_________________
system: G751JT (ASUS-NotebookSKU); processor: Intel(R) Core(TM) i7-4710HQ CPU @ 2.50GHz; memory: 32GiB System Memory; display: GM204M [GeForce GTX 970M]; disk: 2048GB Samsung SSD 850;BD-CMB UJ172 S;1024GB Samsung SSD 850
Back to top
View user's profile Send private message
Bladesy
Tux's lil' helper
Tux's lil' helper


Joined: 04 Apr 2015
Posts: 113

PostPosted: Thu Feb 18, 2016 8:24 pm    Post subject: Reply with quote

I've sorted out the package conflict, so I should be using nvidia-drivers 358.16 - but now steam just freezes when I run it.
Running steam:
Code:
bladesy@sheath ~/Downloads/steam $ LD_LIBRARY_PATH="$LD_LIBRARY_PATH:/usr/lib32/opengl/nvidia/lib" ./steam
/home/bladesy/.local/share/Steam/steam.sh: line 161: VERSION_ID: unbound variable
Couldn't find dpkg, please update steamdeps for your distribution.
/home/bladesy/.local/share/Steam/steam.sh: line 161: VERSION_ID: unbound variable
Running Steam on gentoo  64-bit
/home/bladesy/.local/share/Steam/steam.sh: line 161: VERSION_ID: unbound variable
STEAM_RUNTIME is enabled automatically
Installing breakpad exception handler for appid(steam)/version(0)

Running steam.sh:
Code:
 bladesy@sheath ~/.local/share/Steam $ LD_LIBRARY_PATH="$LD_LIBRARY_PATH:/usr/lib32/opengl/nvidia/lib" ./steam.sh
./steam.sh: line 161: VERSION_ID: unbound variable
./steam.sh: line 161: VERSION_ID: unbound variable
Running Steam on gentoo  64-bit
./steam.sh: line 161: VERSION_ID: unbound variable
STEAM_RUNTIME is enabled automatically
ILocalize::AddFile() failed to load file "public/steambootstrapper_english.txt".
[2016-02-18 20:21:23] Startup - updater built Nov 17 2015 12:33:46
Installing breakpad exception handler for appid(steam)/version(0)
SteamUpdateUI: An X Error occurred
X Error of failed request:  BadValue (integer parameter out of range for operation)

The errors are slightly different, but both still just keep on running to no avail.
Really not sure where the problem is at all.
Back to top
View user's profile Send private message
Naib
Watchman
Watchman


Joined: 21 May 2004
Posts: 6051
Location: Removed by Neddy

PostPosted: Thu Feb 18, 2016 8:29 pm    Post subject: Reply with quote

Steam is a 32bit application.

You need multilib support
_________________
Quote:
Removed by Chiitoo
Back to top
View user's profile Send private message
Bladesy
Tux's lil' helper
Tux's lil' helper


Joined: 04 Apr 2015
Posts: 113

PostPosted: Thu Feb 18, 2016 8:31 pm    Post subject: Reply with quote

I had a feeling it would come down to this, mostly because I've no idea how multilib works on gentoo - I assumed that as long as my profile wasn't a no-multilib profile, I would be fine.
How exactly is multilib support enabled?
Back to top
View user's profile Send private message
Bladesy
Tux's lil' helper
Tux's lil' helper


Joined: 04 Apr 2015
Posts: 113

PostPosted: Fri Feb 19, 2016 4:18 pm    Post subject: Reply with quote

I wonder if this is solely a problem with the OpenGL libraries I have installed, because I'm getting similar messages that result in fatal errors when I try to launch Unreal Tournament 4 - which I don't think needs 32-bit libraries.
Back to top
View user's profile Send private message
BobWya
Apprentice
Apprentice


Joined: 12 Aug 2012
Posts: 228
Location: Cambridge,UK

PostPosted: Fri Feb 19, 2016 6:30 pm    Post subject: Reply with quote

Bladesy wrote:
I had a feeling it would come down to this, mostly because I've no idea how multilib works on gentoo - I assumed that as long as my profile wasn't a no-multilib profile, I would be fine.
How exactly is multilib support enabled?


Hi Bladesy

The theory: Project:Multilib/Concepts
The use of: emul-linux* packages is now depreciated.

tl;dr version:
To enable multilib globally
Add
Code:
## Use multilib for all packages ##
ABI_X86="32 64"

to your /etc/portage/make.conf file
(which is what I use)

To enable multilib selectively
For each package requiring a 32-bit version, add:
Code:
category/package abi_x86_32

to your /etc/portage/package.use file (or add that USE flag - to an existing entry)
(may be more "manual" work - as you'll have to track down packages that need to provide 32-bit versions for Wine / native Steam compatibility)

There'll be more building but no (extra) package fetching / net traffic!!

Bob
_________________
system: G751JT (ASUS-NotebookSKU); processor: Intel(R) Core(TM) i7-4710HQ CPU @ 2.50GHz; memory: 32GiB System Memory; display: GM204M [GeForce GTX 970M]; disk: 2048GB Samsung SSD 850;BD-CMB UJ172 S;1024GB Samsung SSD 850
Back to top
View user's profile Send private message
Bladesy
Tux's lil' helper
Tux's lil' helper


Joined: 04 Apr 2015
Posts: 113

PostPosted: Fri Feb 19, 2016 8:07 pm    Post subject: Reply with quote

Thanks Bob, it seems the fact I hadn't enabled multilib was the problem - it took a while to recompile everything, but when I went to the steam directory and ran it while specifying the LD_LIBRARY_PATH, steam ends up working perfectly.
The gentoo wiki then says to copy that steam executable file to /usr/local/bin to allow steam to be launched like a normal program, but suddenly it doesn't work - even when I specify the LD_LIBRARY_PATH:
Code:
bladesy@sheath ~/Downloads/steam $ LD_LIBRARY_PATH="$LD_LIBRARY_PATH:/usr/lib32/opengl/nvidia/lib" steam
cp: cannot stat ‘/usr/lib/steam/bootstraplinux_ubuntu12_32.tar.xz’: No such file or directory
/home/bladesy/.local/share/Steam/steam.sh: line 161: VERSION_ID: unbound variable
/home/bladesy/.local/share/Steam/steam.sh: line 161: VERSION_ID: unbound variable
Running Steam on gentoo  64-bit
/home/bladesy/.local/share/Steam/steam.sh: line 161: VERSION_ID: unbound variable
STEAM_RUNTIME is enabled automatically
Installing breakpad exception handler for appid(steam)/version(1454620878)
Installing breakpad exception handler for appid(steam)/version(1454620878)
Installing breakpad exception handler for appid(steam)/version(1454620878)
Installing breakpad exception handler for appid(steam)/version(1454620878)
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
[0219/195549:ERROR:main_delegate.cc(777)] Could not load cef_extensions.pak
[0219/195549:ERROR:browser_main_loop.cc(203)] Running without the SUID sandbox! See https://code.google.com/p/chromium/wiki/LinuxSUIDSandboxDevelopment for more information on developing with the sandbox on.
Installing breakpad exception handler for appid(steamwebhelper)/version(20160204122139)
Installing breakpad exception handler for appid(steamwebhelper)/version(1454588499)
[0219/195549:ERROR:main_delegate.cc(777)] Could not load cef_extensions.pak
Installing breakpad exception handler for appid(steamwebhelper)/version(20160204122139)
Installing breakpad exception handler for appid(steamwebhelper)/version(1454620878)
Installing breakpad exception handler for appid(steamwebhelper)/version(1454620878)
Installing breakpad exception handler for appid(steam)/version(1454620878)
Installing breakpad exception handler for appid(steam)/version(1454620878)
Installing breakpad exception handler for appid(steam)/version(1454620878)
Installing breakpad exception handler for appid(steam)/version(1454620878)
Installing breakpad exception handler for appid(steam)/version(1454620878)
Installing breakpad exception handler for appid(steam)/version(1454620878)
Created shared memory when not owner SteamController_Shared_mem
Installing breakpad exception handler for appid(steam)/version(1454620878)
Installing breakpad exception handler for appid(steam)/version(1454620878)
assert_20160219195548_1.dmp[30714]: Uploading dump (out-of-process)
/tmp/dumps/assert_20160219195548_1.dmp
/home/bladesy/.local/share/Steam/steam.sh: line 756: 30678 Segmentation fault      $STEAM_DEBUGGER "$STEAMROOT/$STEAMEXEPATH" "$@"
assert_20160219195548_1.dmp[30714]: Finished uploading minidump (out-of-process): success = yes
assert_20160219195548_1.dmp[30714]: response: CrashID=bp-dc6eab52-253b-49f2-8d6d-c79b62160219
assert_20160219195548_1.dmp[30714]: file ''/tmp/dumps/assert_20160219195548_1.dmp'', upload yes: ''CrashID=bp-dc6eab52-253b-49f2-8d6d-c79b62160219''

Does this mean that maybe the installed steam is lacking something that the downloaded steam has?
Or maybe the installed steam hasn't been installed correctly?
Back to top
View user's profile Send private message
BobWya
Apprentice
Apprentice


Joined: 12 Aug 2012
Posts: 228
Location: Cambridge,UK

PostPosted: Fri Feb 19, 2016 9:18 pm    Post subject: Reply with quote

Bladesy wrote:

...
Does this mean that maybe the installed steam is lacking something that the downloaded steam has?
Or maybe the installed steam hasn't been installed correctly?


Why re-invent the wheel? 8) Personally I don't want headaches - if I want my games to "just run" then I just add the steam-overlay Overlay with layman. Works fine for me (hah, hah - famous last words)!! Now, if only someone would help with my reverse parking of an eighteen wheeler truck in Calais... 8)

Sure you can install Steam manually - but I think you're probably seeing that'll be a bit of a headache for you... :?

Bob
_________________
system: G751JT (ASUS-NotebookSKU); processor: Intel(R) Core(TM) i7-4710HQ CPU @ 2.50GHz; memory: 32GiB System Memory; display: GM204M [GeForce GTX 970M]; disk: 2048GB Samsung SSD 850;BD-CMB UJ172 S;1024GB Samsung SSD 850
Back to top
View user's profile Send private message
Bladesy
Tux's lil' helper
Tux's lil' helper


Joined: 04 Apr 2015
Posts: 113

PostPosted: Fri Feb 19, 2016 11:11 pm    Post subject: Reply with quote

I've got steam installed from the overlay, but I'm getting a segmentation fault:
Code:
bladesy@sheath ~ $ steam
/home/bladesy/.local/share/Steam/steam.sh: line 161: VERSION_ID: unbound variable
/home/bladesy/.local/share/Steam/steam.sh: line 161: VERSION_ID: unbound variable
Running Steam on gentoo  64-bit
/home/bladesy/.local/share/Steam/steam.sh: line 161: VERSION_ID: unbound variable
STEAM_RUNTIME is enabled automatically
Installing breakpad exception handler for appid(steam)/version(1454620878)
Installing breakpad exception handler for appid(steam)/version(1454620878)
Installing breakpad exception handler for appid(steam)/version(1454620878)
Installing breakpad exception handler for appid(steam)/version(1454620878)
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
[0219/231021:ERROR:main_delegate.cc(777)] Could not load cef_extensions.pak
[0219/231021:ERROR:browser_main_loop.cc(203)] Running without the SUID sandbox! See https://code.google.com/p/chromium/wiki/LinuxSUIDSandboxDevelopment for more information on developing with the sandbox on.
Installing breakpad exception handler for appid(steamwebhelper)/version(20160204122139)
Installing breakpad exception handler for appid(steamwebhelper)/version(1454588499)
[0219/231021:ERROR:main_delegate.cc(777)] Could not load cef_extensions.pak
Installing breakpad exception handler for appid(steamwebhelper)/version(20160204122139)
Installing breakpad exception handler for appid(steamwebhelper)/version(1454620878)
Installing breakpad exception handler for appid(steamwebhelper)/version(1454620878)
Installing breakpad exception handler for appid(steam)/version(1454620878)
Installing breakpad exception handler for appid(steam)/version(1454620878)
Installing breakpad exception handler for appid(steam)/version(1454620878)
Installing breakpad exception handler for appid(steam)/version(1454620878)
Installing breakpad exception handler for appid(steam)/version(1454620878)
Installing breakpad exception handler for appid(steam)/version(1454620878)
Created shared memory when not owner SteamController_Shared_mem
Installing breakpad exception handler for appid(steam)/version(1454620878)
Installing breakpad exception handler for appid(steam)/version(1454620878)
assert_20160219231020_1.dmp[3827]: Uploading dump (out-of-process)
/tmp/dumps/assert_20160219231020_1.dmp
/home/bladesy/.local/share/Steam/steam.sh: line 756:  3791 Segmentation fault      $STEAM_DEBUGGER "$STEAMROOT/$STEAMEXEPATH" "$@"
assert_20160219231020_1.dmp[3827]: Finished uploading minidump (out-of-process): success = yes
assert_20160219231020_1.dmp[3827]: response: CrashID=bp-1c16578d-1213-4ce0-9dd6-811c82160219
assert_20160219231020_1.dmp[3827]: file ''/tmp/dumps/assert_20160219231020_1.dmp'', upload yes: ''CrashID=bp-1c16578d-1213-4ce0-9dd6-811c82160219''
Back to top
View user's profile Send private message
BobWya
Apprentice
Apprentice


Joined: 12 Aug 2012
Posts: 228
Location: Cambridge,UK

PostPosted: Fri Feb 19, 2016 11:55 pm    Post subject: Reply with quote

Bladesy wrote:
I've got steam installed from the overlay, but I'm getting a segmentation fault:
...
assert_20160219231020_1.dmp[3827]: Uploading dump (out-of-process)
/tmp/dumps/assert_20160219231020_1.dmp
/home/bladesy/.local/share/Steam/steam.sh: line 756: 3791 Segmentation fault $STEAM_DEBUGGER "$STEAMROOT/$STEAMEXEPATH" "$@"
assert_20160219231020_1.dmp[3827]: Finished uploading minidump (out-of-process): success = yes
assert_20160219231020_1.dmp[3827]: response: CrashID=bp-1c16578d-1213-4ce0-9dd6-811c82160219
assert_20160219231020_1.dmp[3827]: file ''/tmp/dumps/assert_20160219231020_1.dmp'', upload yes: ''CrashID=bp-1c16578d-1213-4ce0-9dd6-811c82160219''[/code]


Ok, so that's the interesting bit...

I ran my Steam launcher script to check the contents of the variables:
Code:
$STEAM_DEBUGGER "$STEAMROOT/$STEAMEXEPATH" "$@"


corresponds to:
Code:
STEAM_DEBUGGER=
STEAMROOT="${HOME}/.local/share/Steam
STEAMEXEPATH=ubuntu12_32/steam


The STEAMEXEPATH is relative to the STEAMROOT - so you get:
Code:
${HOME}/.local/share/Steam/ubuntu12_32/steam

No DEBUGGER is specified by default

This is meat & potatoes ... 8)
Code:
file ${HOME}/.local/share/Steam/ubuntu12_32/steam
/home/robert_gentoo/.local/share/Steam/ubuntu12_32/steam: ELF 32-bit LSB shared object, Intel 80386, version 1 (SYSV), dynamically linked, interpreter /lib/ld-linux.so.2, for GNU/Linux 3.2.32, BuildID[sha1]=967388e9fd4872b15d0db596cc6af57b6debce38, not stripped


So then we check what 32-bit system libraries Steam is linking against (that are not in steam-runtime):
Code:
ldd -r /home/robert_gentoo/.local/share/Steam/ubuntu12_32/steam
        linux-gate.so.1 (0xf76f7000)
        libX11.so.6 => /usr/lib32/libX11.so.6 (0xf753e000)
        librt.so.1 => /lib32/librt.so.1 (0xf7535000)
        libm.so.6 => /lib32/libm.so.6 (0xf74e9000)
        libdl.so.2 => /lib32/libdl.so.2 (0xf74e4000)
        libstdc++.so.6 => /usr/lib/gcc/x86_64-pc-linux-gnu/5.3.0/32/libstdc++.so.6 (0xf736b000)
        libpthread.so.0 => /lib32/libpthread.so.0 (0xf734f000)
        libc.so.6 => /lib32/libc.so.6 (0xf71a1000)
        libxcb.so.1 => /usr/lib32/libxcb.so.1 (0xf717a000)
        /lib/ld-linux.so.2 (0xf76f8000)
        libgcc_s.so.1 => /usr/lib/gcc/x86_64-pc-linux-gnu/5.3.0/32/libgcc_s.so.1 (0xf715f000)
        libXau.so.6 => /usr/lib32/libXau.so.6 (0xf7159000)
        libXdmcp.so.6 => /usr/lib32/libXdmcp.so.6 (0xf7152000)


So make sure you've got multilib versions of:
Code:
x11-libs/libX11
sys-libs/glibc
sys-devel/gcc
x11-libs/libxcb
x11-libs/libXau
x11-libs/libXdmcp


Perhaps you didn't ( 8O no really!! ) rebuild gcc as though it was a compiler upgrade (which is basically what you've done)...
Code:
[ebuild   R    ] x11-libs/libXau-1.0.8::gentoo  USE="-static-libs" ABI_X86="32 (64) (-x32)" 289 KiB
[ebuild   R   ~] x11-libs/libXdmcp-1.1.2-r1::gentoo  USE="-doc -static-libs" ABI_X86="32 (64) (-x32)" 324 KiB
[ebuild   R    ] x11-libs/libxcb-1.11.1:0/1.11.1::gentoo  USE="xkb -doc (-selinux) -static-libs {-test}" ABI_X86="32 (64) (-x32)" 508 KiB
[ebuild   R    ] x11-libs/libX11-1.6.3::gentoo  USE="ipv6 -doc -static-libs {-test}" ABI_X86="32 (64) (-x32)" 2,309 KiB
[ebuild   R   ~] sys-libs/glibc-2.22-r1:2.2::gentoo  USE="(multilib) -debug -gd (-hardened) -nscd -profile (-selinux) -suid -systemtap -vanilla" 20,578 KiB
[ebuild   R   ~] sys-devel/gcc-5.3.0:5::gentoo  USE="cxx doc fortran gcj go (multilib) nls nptl openmp sanitize (-altivec) (-awt) -cilk -debug (-fixed-point) -graphite (-hardened) -jit (-libssp) (-multislot) -nopie -nossp -objc -objc++ -objc-gc -regression-test -vanilla" 94,687 KiB

I also presume you have the multilib USE flag set for gcc?!! :wink:

Bob
_________________
system: G751JT (ASUS-NotebookSKU); processor: Intel(R) Core(TM) i7-4710HQ CPU @ 2.50GHz; memory: 32GiB System Memory; display: GM204M [GeForce GTX 970M]; disk: 2048GB Samsung SSD 850;BD-CMB UJ172 S;1024GB Samsung SSD 850
Back to top
View user's profile Send private message
Bladesy
Tux's lil' helper
Tux's lil' helper


Joined: 04 Apr 2015
Posts: 113

PostPosted: Sat Feb 20, 2016 12:12 am    Post subject: Reply with quote

I actually don't think I have multilib explicitly set as a use flag - but I've got steam working anyway.
I used the command steam --reset, which accounts for the fact that steam always works on the first try of an install, and then for some reason its just working.
Thanks for your help Bob, I'll add in multilib to make.conf just incase.
Back to top
View user's profile Send private message
BobWya
Apprentice
Apprentice


Joined: 12 Aug 2012
Posts: 228
Location: Cambridge,UK

PostPosted: Sat Feb 20, 2016 12:19 am    Post subject: Reply with quote

Bladesy wrote:
I actually don't think I have multilib explicitly set as a use flag - but I've got steam working anyway.
I used the command steam --reset, which accounts for the fact that steam always works on the first try of an install, and then for some reason its just working.
Thanks for your help Bob, I'll add in multilib to make.conf just incase.


Oh that's great - happy to help :lol:
_________________
system: G751JT (ASUS-NotebookSKU); processor: Intel(R) Core(TM) i7-4710HQ CPU @ 2.50GHz; memory: 32GiB System Memory; display: GM204M [GeForce GTX 970M]; disk: 2048GB Samsung SSD 850;BD-CMB UJ172 S;1024GB Samsung SSD 850
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Gamers & Players All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum