Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
oolite fails with libGL: screen 0 does not appear to be DRI2
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
daniel.santos
n00b
n00b


Joined: 05 Jun 2007
Posts: 49

PostPosted: Thu Jun 02, 2016 8:15 pm    Post subject: oolite fails with libGL: screen 0 does not appear to be DRI2 Reply with quote

I've copied /usr/bin/openapp into my ~/bin and modified with a few troubleshooting steps:
Code:
+  export LIBGL_DEBUG=verbose
+  for ws in 64 32; do
+    LD_LIBRARY_PATH="$LD_LIBRARY_PATH:/usr/lib${ws}/opengl/$(eselect opengl show)/lib:/usr/lib${ws}/xorg/modules"
+  done
+  export LD_LIBRARY_PATH
+
   "$openapp_app_executable" "$@"

And here is the output:
Code:
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


I don't have an xorg.conf anymore, just xorg.conf.d with 20opengl.conf (I presume from eselect opengl):
Code:
Section "Files"
        ModulePath "/usr/lib64/opengl/nvidia"
        ModulePath "/usr/lib64/xorg/modules"
EndSection


And a useless 00nvidia-fixe.conf from troubleshooting something else:
Code:
Section "ServerFlags"
    Option "IgnoreABI" "1"
EndSection

I am able to play other opengl games. Any ideas?

EDIT: A few things I forgot to mention. First, there is nothing in dmesg, syslog or Xorg.0.log and:

Code:
# emerge --info $(qlist -IC x11-base* x11-drivers/nv*)
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,    867348 free
KiB Swap:   16795944 total,  16496576 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
=================================================================

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"


EDIT 2: ooh! ooh! I replace the openapp launcher with glxgears and it dies too! So it's something they do in their launcher script...
Back to top
View user's profile Send private message
daniel.santos
n00b
n00b


Joined: 05 Jun 2007
Posts: 49

PostPosted: Thu Jun 02, 2016 9:13 pm    Post subject: Reply with quote

Well, I found a work-around, but this is either a bug in the launcher script or I don't fully understand the conflict. This just strips /usr/lib64 out of the LD_LIBRARY_PATH:
Code:
export LD_LIBRARY_PATH=$(echo ":${LD_LIBRARY_PATH}:"|sed 's|:/usr/lib64:|:|g; s/^://g; s/:$//g;')


So the /usr/lib64 in the LD_LIBRARY_PATH is what kills it, but is that a bug in the script or something that just needs to be patched in the ebuild to conform to Gentoo's eselect opengl mechanism or something else?
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