Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 584966 - gnustep-base/gnustep-make-2.6.7-r1: oolite fails with libGL error: failed to load driver: swrast
Summary: gnustep-base/gnustep-make-2.6.7-r1: oolite fails with libGL error: failed to ...
Status: UNCONFIRMED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Gnustep herd
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2016-06-03 22:12 UTC by Daniel Santos
Modified: 2017-03-05 18:54 UTC (History)
0 users

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Daniel Santos 2016-06-03 22:12:46 UTC
The following is the output when launching oolite:

$ oolite
libGL error: No matching fbConfigs or visuals found
libGL error: failed to load driver: swrast
X Error of failed request:  BadValue (integer parameter out of range for operation)
  Major opcode of failed request:  153 (GLX)
  Minor opcode of failed request:  3 (X_GLXCreateContext)
  Value in failed request:  0x0
  Serial number of failed request:  33
  Current serial number in output stream:  34
AL lib: (EE) alc_cleanup: 1 device not closed

Here is output with LIBGL_DEBUG set:

$ LIBGL_DEBUG=verbose oolite
libGL: screen 0 does not appear to be DRI2 capable
libGL: OpenDriver: trying /usr/lib64/dri/tls/swrast_dri.so
libGL: OpenDriver: trying /usr/lib64/dri/swrast_dri.so
libGL error: No matching fbConfigs or visuals found
libGL error: failed to load driver: swrast
X Error of failed request:  BadValue (integer parameter out of range for operation)
  Major opcode of failed request:  153 (GLX)
  Minor opcode of failed request:  3 (X_GLXCreateContext)
  Value in failed request:  0x0
  Serial number of failed request:  33
  Current serial number in output stream:  34
AL lib: (EE) alc_cleanup: 1 device not closed


Oddly, enough, the problem is induced by the /usr/bin/openapp launcher script when it sets LD_LIBRARY_CONFIG. By stripping /usr/lib64 from this, the problem is abated:

--- /usr/bin/openapp    2016-05-22 20:06:52.000000000 -0500
+++ /home/daniel/bin/openapp.move       2016-06-03 17:04:00.722171286 -0500
@@ -335,6 +335,7 @@

 else # non-debug follows

+  export LD_LIBRARY_PATH=$(echo ":${LD_LIBRARY_PATH}:"|sed 's|:/usr/lib64:|:|g; s/^://g; s/:$//g;')
   exec "$openapp_app_executable" "$@"

 fi


I don't understand the nature of the root cause however. Is gnustep-make not following Gentoo's variables from eselect? I am assuming of course that this is not oolite, but some gnustep ebuild.



$ eselect opengl list
Available OpenGL implementations:
  [1]   nvidia *
  [2]   xorg-x11
$ emerge --info app-admin/eselect app-eselect/eselect-opengl games-action/oolite $(qlist -IC x11-drivers/* x11-base/* gnustep-*) 
Portage 2.3.0_rc1 (python 2.7.11-final-0, default/linux/amd64/13.0/desktop/plasma, gcc-4.9.3, glibc-2.23-r2, 4.1.15-gentoo-r1 x86_64)
=================================================================
                         System Settings
=================================================================
System uname: Linux-4.1.15-gentoo-r1-x86_64-AMD_Phenom-tm-_9850_Quad-Core_Processor-with-gentoo-2.2
KiB Mem:     8175900 total,   1492968 free
KiB Swap:   16795944 total,  16497656 free
Timestamp of repository gentoo: Fri, 27 May 2016 03:00:01 +0000
sh bash 4.3_p42-r2
ld GNU ld (Gentoo 2.25.1 p1.1) 2.25.1
distcc 3.2rc1 x86_64-pc-linux-gnu [disabled]
ccache version 3.2.5 [disabled]
app-shells/bash:          4.3_p42-r2::gentoo
dev-java/java-config:     2.2.0-r3::gentoo
dev-lang/perl:            5.24.0::gentoo
dev-lang/python:          2.7.11-r2::gentoo, 3.4.3-r7::gentoo
dev-util/ccache:          3.2.5::gentoo
dev-util/cmake:           3.5.2-r1::gentoo
dev-util/pkgconfig:       0.29.1::gentoo
sys-apps/baselayout:      2.2::gentoo
sys-apps/openrc:          0.21::gentoo
sys-apps/sandbox:         2.10-r2::gentoo
sys-devel/autoconf:       2.13::gentoo, 2.69-r2::gentoo
sys-devel/automake:       1.11.6-r2::gentoo, 1.13.4-r1::gentoo, 1.14.1-r1::gentoo, 1.15-r2::gentoo
sys-devel/binutils:       2.25.1-r1::gentoo
sys-devel/gcc:            4.9.3::gentoo, 5.3.0::gentoo
sys-devel/gcc-config:     1.8-r1::gentoo
sys-devel/libtool:        2.4.6-r2::gentoo
sys-devel/make:           4.2-r1::gentoo
sys-kernel/linux-headers: 4.6::gentoo (virtual/os-headers)
sys-libs/glibc:           2.23-r2::gentoo
Repositories:

gentoo
    location: /usr/portage
    sync-type: rsync
    sync-uri: rsync://rsync.gentoo.org/gentoo-portage
    priority: -1000

loudmouth-local
    location: /usr/local/portage
    masters: gentoo
    priority: 0

gamerlay
    location: /var/lib/layman/gamerlay
    masters: gentoo
    priority: 50

pentoo
    location: /var/lib/layman/pentoo
    masters: gentoo
    priority: 50

rion
    location: /var/lib/layman/rion
    masters: gentoo
    priority: 50

sunrise
    location: /var/lib/layman/sunrise
    masters: gentoo
    priority: 50

zugaina
    location: /var/lib/layman/zugaina
    masters: gentoo
    priority: 50

ACCEPT_KEYWORDS="amd64 ~amd64"
ACCEPT_LICENSE="* -@EULA"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-march=native -O2 -g"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/lib64/libreoffice/program/sofficerc /usr/share/config /usr/share/gnupg/qualified.txt"
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/dconf /etc/env.d /etc/fonts/fonts.conf /etc/gconf /etc/gentoo-release /etc/revdep-rebuild /etc/sandbox.d /etc/terminfo"
CXXFLAGS="-march=native -O2 -g"
DISTDIR="/usr/portage/distfiles"
EMERGE_DEFAULT_OPTS="-j2 --load-average=3 --with-bdeps=y"
FCFLAGS="-O2 -pipe"
FEATURES="assume-digests binpkg-logs buildpkg candy cgroup compress-build-logs compressdebug config-protect-if-modified distlocks ebuild-locks fixlafiles installsources merge-sync news parallel-fetch preserve-libs protect-owned sandbox sfperms split-elog split-log splitdebug strict unknown-features-warn unmerge-logs unmerge-orphans userfetch userpriv usersandbox usersync xattr"
FFLAGS="-O2 -pipe"
GENTOO_MIRRORS="http://gentoo.mirrors.easynews.com/linux/gentoo/ http://gentoo.cites.uiuc.edu/pub/gentoo/ http://www.gtlib.gatech.edu/pub/gentoo"
LANG="en_US.utf8"
LDFLAGS="-Wl,-O1 -Wl,--as-needed"
MAKEOPTS="-j4"
PKGDIR="/usr/portage/packages"
PORTAGE_COMPRESS="pxz"
PORTAGE_COMPRESS_FLAGS="-9e"
PORTAGE_CONFIGROOT="/"
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --omit-dir-times --compress --force --whole-file --delete --stats --human-readable --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages --exclude=/.git"
PORTAGE_TMPDIR="/tmp"
USE="3dnow 3dnowext 7zip X a52 aac aacplus aacs acl acpi aio alsa amd64 apache2 autotools bazaar berkdb bindist bluetooth bluray branding bzip2 cairo cdda cddb cdio cdr celt cg clang cli cmake consolekit cracklib crypt cups cvs cxx dbus declarative designer development device-mapper dirac directfb dot dri dts dvd dvdr emboss encode exif extraengine faac fam ffmpeg fftw firefox flac fluidsynth fortran frei0r fuse gcj gdbm geoip gif git glamor glew glut gme gnome-keyring gnutls gphoto2 gpm graphviz gsm gstreamer gtk gtk3 hardened highlight iconv ipv6 java jpeg jpeg2k kate kde kdrive kipi ladspa lame lcms ldap lensfun libass libcaca libnotify libsamplerate libv4l lto lua lzma lzo mad matroska md5sum mercurial midi mmx mmxext mng modules mp3 mp4 mpeg mtp mudflap multicall multilib multitarget musepack natspec ncurses networkmanager nls nptl nsplugin objc objc++ objc-gc ogg okteta omr openal opencl openexr opengl openmp opus pam pango pch pcre pdf perl phonon plasma playlist png policykit ppds projectm python qemu qml qt3support qt4 qt5 qthelp quvi rar raw readline reviewboard rfc3779 sasl scanner schroedinger sdl seccomp semantic-desktop session sid smp speex spell sqlite sqlite3 sse sse2 sse3 ssh ssl startup-notification static-libs subversion svg syslog systemtap taglib tcpd theora threads thumbnail tiff tk tools tremor truetype twolame udev udisks unicode upnp upnp-av upower usb utils v4l vaapi valgrind vcdx vdpau vhost-net vim-syntax vlc vorbis vpx wavpack webkit webp widgets wifi wxwidgets x264 x265 xattr xcb xcomposite xen xine xinerama xml xpm xrandr xscreensaver xv xvid xvmc zeroconf zlib zvbi" ABI_X86="64 32" ALSA_CARDS="hdsp emu10k1 hda-intel" APACHE2_MODULES="authn_core authz_core socache_shmcb unixd actions alias auth_basic authn_alias authn_anon authn_dbm authn_default authn_file authz_dbm authz_default authz_groupfile authz_host authz_owner authz_user autoindex cache cgi cgid dav dav_fs dav_lock deflate dir disk_cache env expires ext_filter file_cache filter headers include info log_config logio mem_cache mime mime_magic negotiation rewrite setenvif speling status unique_id userdir usertrack vhost_alias" CALLIGRA_FEATURES="kexi words flow plan sheets stage tables krita karbon braindump author" CAMERAS="ptp2" COLLECTD_PLUGINS="df interface irq load memory rrdtool swap syslog" CPU_FLAGS_X86="mmx mmxext sse sse2" ELIBC="glibc" GPSD_PROTOCOLS="ashtech aivdm earthmate evermore fv18 garmin garmintxt gpsclock itrax mtk3301 nmea ntrip navcom oceanserver oldstyle oncore rtcm104v2 rtcm104v3 sirf superstar2 timing tsip tripmate tnt ublox ubx" GRUB_PLATFORMS="pc" INPUT_DEVICES="keyboard mouse joystick evdev wacom" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LIBREOFFICE_EXTENSIONS="presenter-console presenter-minimizer" LINGUAS="en_US en" OFFICE_IMPLEMENTATION="libreoffice" PHP_TARGETS="php5-5" PYTHON_SINGLE_TARGET="python2_7" PYTHON_TARGETS="python2_7 python3_4" QEMU_SOFTMMU_TARGETS="aarch64 arm armeb i386 m68k mips mips64 mips64el mipsel mipsn32 mipsn32el ppc ppc64 ppc64abi32 ppc64le x86_64" QEMU_USER_TARGETS="aarch64 arm armeb i386 m68k mips mips64 mips64el mipsel mipsn32 mipsn32el ppc ppc64 ppc64abi32 ppc64le x86_64" RUBY_TARGETS="ruby20 ruby22 ruby23" USERLAND="GNU" VIDEO_CARDS="nvidia radeon" XTABLES_ADDONS="quota2 psd pknock lscan length2 ipv4options ipset ipp2p iface geoip fuzzy condition tee tarpit sysrq steal rawnat logmark ipmark dhcpmac delude chaos account"
Unset:  CC, CPPFLAGS, CTARGET, CXX, INSTALL_MASK, LC_ALL, PORTAGE_BUNZIP2_COMMAND, PORTAGE_RSYNC_EXTRA_OPTS, USE_PYTHON

=================================================================
                        Package Settings
=================================================================

app-admin/eselect-1.4.5::gentoo was built with the following:
USE="doc (policykit) vim-syntax -emacs" ABI_X86="64"
CFLAGS="-march=native -O2 -g3"
CXXFLAGS="-march=native -O2 -g3"


app-eselect/eselect-opengl-1.3.1-r4::gentoo was built with the following:
USE="" ABI_X86="64"
CFLAGS="-march=native -O2 -g3"
CXXFLAGS="-march=native -O2 -g3"


games-action/oolite-1.82::rion was built with the following:
USE="-debug -doc" ABI_X86="64"


gnustep-base/gnustep-back-cairo-0.24.1::gentoo was built with the following:
USE="opengl -debug -doc -xim" ABI_X86="64"


gnustep-base/gnustep-base-1.24.8-r1::gentoo was built with the following:
USE="gnutls icu libffi ssl zeroconf -debug -doc -libressl" ABI_X86="64"


gnustep-base/gnustep-gui-0.24.1::gentoo was built with the following:
USE="cups gif jpeg png -debug -doc -icu -speech" ABI_X86="64"


gnustep-base/gnustep-make-2.6.7-r1::gentoo was built with the following:
USE="-debug -doc -libobjc2 -native-exceptions" ABI_X86="64"


virtual/gnustep-back-0.24.1::gentoo was built with the following:
USE="" ABI_X86="64"
CHOST=""


x11-base/xorg-drivers-1.18-r1::gentoo was built with the following:
USE="" ABI_X86="64" INPUT_DEVICES="evdev joystick keyboard mouse wacom -acecad -aiptek -elographics -fpit -hyperpen -libinput -mutouch -penmount -synaptics -tslib -vmmouse -void" VIDEO_CARDS="nvidia radeon -amdgpu -apm -ast -chips -cirrus -dummy -epson -fbdev -fglrx -freedreno -geode -glint -i128 -i740 -intel -mach64 -mga -neomagic -nouveau -nv -omap -omapfb -qxl -r128 -radeonsi -rendition -s3 -s3virge -savage -siliconmotion -sisusb -sunbw2 -suncg14 -suncg3 -suncg6 -sunffb -sunleo -suntcx -tdfx -tegra -tga -trident -tseng -vesa -via -virtualbox -vmware -voodoo"


x11-base/xorg-server-1.18.3::gentoo was built with the following:
USE="glamor ipv6 kdrive static-libs suid udev xorg -dmx -doc -libressl -minimal (-selinux) -systemd -tslib -unwind -wayland -xephyr -xnest -xvfb" ABI_X86="64"
LDFLAGS="-Wl,-O1 -Wl,--as-needed -Wl,-z,lazy"


x11-drivers/nvidia-drivers-367.18::gentoo was built with the following:
USE="X acpi driver gtk3 kms multilib static-libs tools uvm -compat -pax_kernel -wayland" ABI_X86="64"


x11-drivers/xf86-input-evdev-2.10.2::gentoo was built with the following:
USE="" ABI_X86="64"
LDFLAGS="-Wl,-O1 -Wl,--as-needed -Wl,-z,lazy"


x11-drivers/xf86-input-joystick-1.6.2::gentoo was built with the following:
USE="" ABI_X86="64"
LDFLAGS="-Wl,-O1 -Wl,--as-needed -Wl,-z,lazy"


x11-drivers/xf86-input-keyboard-1.8.1::gentoo was built with the following:
USE="" ABI_X86="64"
LDFLAGS="-Wl,-O1 -Wl,--as-needed -Wl,-z,lazy"


x11-drivers/xf86-input-mouse-1.9.1::gentoo was built with the following:
USE="" ABI_X86="64"
LDFLAGS="-Wl,-O1 -Wl,--as-needed -Wl,-z,lazy"


x11-drivers/xf86-input-wacom-0.32.0::gentoo was built with the following:
USE="-debug" ABI_X86="64"
LDFLAGS="-Wl,-O1 -Wl,--as-needed -Wl,-z,lazy"


x11-drivers/xf86-video-ati-7.7.0::gentoo was built with the following:
USE="glamor udev" ABI_X86="64"
LDFLAGS="-Wl,-O1 -Wl,--as-needed -Wl,-z,lazy"


x11-drivers/xf86-video-virtualbox-5.0.20-r1::gentoo was built with the following:
USE="dri" ABI_X86="64" PYTHON_TARGETS="python2_7"
Comment 1 Sergey Ilinykh 2017-03-05 18:46:25 UTC
Hi Daniel,

Probably you already solved this. For me it looks like some problem with your environment.

But to just let you know, I've bumped oolite in my overlay to oolite-1.85_alpha1.
It's not really official. It's just a today snapshot which works for me.
Comment 2 Sergey Ilinykh 2017-03-05 18:54:34 UTC
I'm sorry, I just reread your message. I got it wrong for the first time.

openapp comes from gnustep-base/gnustep-make

In any case oolite works for me w/o mods to openapp.