Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 130592 - ati-drivers env.d file screws up modular X open-source DRI
Summary: ati-drivers env.d file screws up modular X open-source DRI
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: New packages (show other bugs)
Hardware: AMD64 Linux
: High normal (vote)
Assignee: X11 External Driver Maintainers
URL:
Whiteboard:
Keywords:
: 146521 147926 151504 (view as bug list)
Depends on:
Blocks:
 
Reported: 2006-04-20 05:18 UTC by Robert Führicht
Modified: 2007-04-16 20:57 UTC (History)
8 users (show)

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


Attachments
13484-mesa-6.5-r2.log (13484-mesa-6.5-r2.log,328.55 KB, text/plain)
2006-04-20 11:07 UTC, Robert Führicht
Details
possible solution (path.patch,946 bytes, patch)
2006-06-21 00:19 UTC, Luca Barbato
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Robert Führicht 2006-04-20 05:18:10 UTC
fuero@hephaestos ~ % LIBGL_DEBUG=verbose glxinfo
name of display: :0.0
libGL: XF86DRIGetClientDriverName: 4.0.3 r300 (screen 0)
libGL: OpenDriver: trying /usr/lib32/xorg/modules/dri//r300_dri.so
libGL error: dlopen /usr/lib32/xorg/modules/dri//r300_dri.so failed (/usr/lib32/xorg/modules/dri//r300_dri.so: cannot open shared object file: No such file or directory)
libGL: OpenDriver: trying /usr/lib64/xorg/modules/dri/r300_dri.so
libGL error: dlopen /usr/lib64/xorg/modules/dri/r300_dri.so failed (/usr/lib64/xorg/modules/dri/r300_dri.so: cannot open shared object file: No such file or directory)
libGL error: unable to find driver: r300_dri.so
display: :0  screen: 0
direct rendering: No

Mesa puts them into /usr/lib/dri, when moving them to usr/lib64/xorg/modules/dri , it works:


fuero@hephaestos ~ % LIBGL_DEBUG=verbose glxinfo
name of display: :0.0
libGL: XF86DRIGetClientDriverName: 4.0.3 r300 (screen 0)
libGL: OpenDriver: trying /usr/lib32/xorg/modules/dri//r300_dri.so
libGL error: dlopen /usr/lib32/xorg/modules/dri//r300_dri.so failed (/usr/lib32/xorg/modules/dri//r300_dri.so: cannot open shared object file: No such file or directory)
libGL: OpenDriver: trying /usr/lib64/xorg/modules/dri/r300_dri.so
drmOpenByBusid: Searching for BusID pci:0000:02:00.0
drmOpenDevice: node name is /dev/dri/card0
drmOpenDevice: open result is 4, (OK)
drmOpenByBusid: drmOpenMinor returns 4
drmOpenByBusid: drmGetBusid reports pci:0000:02:00.0
libGL error:
Can't open configuration file /etc/drirc: No such file or directory.
display: :0  screen: 0
direct rendering: Yes


BTW: Shouldn't there be a 32 Bit version of there modules for amd64 people?
Comment 1 Donnie Berkholz (RETIRED) gentoo-dev 2006-04-20 09:54:00 UTC
Please attach a compilation log of mesa (set PORT_LOGDIR in make.conf) and reopen.
Comment 2 Robert Führicht 2006-04-20 11:07:47 UTC
Created attachment 85042 [details]
13484-mesa-6.5-r2.log

As requested, here's the compile log.

I missed emerge --info output, here you go:

Portage 2.1_pre7-r5 (default-linux/amd64/2006.0, gcc-4.1.0, glibc-2.4.20060329-r0, 2.6.16-gentoo-r2 x86_64)
=================================================================
System uname: 2.6.16-gentoo-r2 x86_64 AMD Athlon(tm) 64 Processor 3200+
Gentoo Base System version 1.12.0_pre17
ccache version 2.4 [enabled]
dev-lang/python:     2.4.2-r1
sys-apps/sandbox:    1.2.17
sys-devel/autoconf:  2.13, 2.59-r7
sys-devel/automake:  1.4_p6, 1.5, 1.6.3, 1.7.9-r1, 1.8.5-r3, 1.9.6-r2
sys-devel/binutils:  2.16.91.0.6
sys-devel/libtool:   1.5.22
virtual/os-headers:  2.6.16
ACCEPT_KEYWORDS="amd64 ~amd64"
AUTOCLEAN="yes"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-O2 -pipe -march=k8"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/kde/2/share/config /usr/kde/3.5/env /usr/kde/3.5/share/config /usr/kde/3.5/shutdown /usr/kde/3/share/config /usr/lib64/mozilla/defaults/pref /usr/share/X11/xkb /usr/share/config /usr/share/cursors/xorg-x11/default /var/qmail/control"
CONFIG_PROTECT_MASK="/etc/eselect/compiler /etc/gconf /etc/init.d /etc/initng /etc/revdep-rebuild /etc/skel /etc/splash /etc/terminfo /etc/texmf/web2c /etc/env.d"
CXXFLAGS="-O2 -pipe -march=k8"
DISTDIR="/usr/portage/distfiles"
FEATURES="autoconfig ccache collision-detect digest distlocks metadata-transfer sandbox sfperms strict userpriv usersandbox"
GENTOO_MIRRORS="http://gentoo.inode.at"
LANG="de_DE.utf8"
LC_ALL="de_DE.utf8"
LDFLAGS="-Wl,-O1 -Wl,-Bdirect -Wl,-hashvals -Wl,-zdynsort"
LINGUAS="de"
MAKEOPTS="-j2"
PKGDIR="/usr/portage/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/usr/local/portage"
SYNC="rsync://rsync.europe.gentoo.org/gentoo-portage"
USE="amd64 X alsa avi berkdb bitmap-fonts browserplugin cdinstall cdparanoia cli cpudetection crypt cups custom-cflags dbus dillo dri dvd dvdr dvdread emboss encode ffmpeg firefox foomaticdb gif glut gstreamer gtk gtk2 hal icq imlib insecure-savers isdnlog java jpeg kde kdeenablefinal kdehiddenvisibility kdenewldflags logitech-mouse lzw lzw-tiff mad maildir matroska mmap mp3 mpeg mplayer musicbrainz ncurses nls nptl nptlonly nsplugin offensive ogg oggvorbis openal opengl pam pcre pdflib pic png ppds pppd qt quicktime readline reflection samba sdl session sid spamassassin spl ssl subtitles symlink sysfs tcpd threads tiff truetype truetype-fonts type1-fonts unicode usb userlocales visualization vorbis wma xine xml xml2 xpm xscreensaver xv xvid zlib elibc_glibc input_devices_evdev input_devices_mouse input_devices_keyboard kernel_linux linguas_de userland_GNU video_cards_vesa video_cards_fbdev video_cards_radeon video_cards_fglrx video_cards_ati"
Unset:  ASFLAGS, CTARGET, EMERGE_DEFAULT_OPTS, INSTALL_MASK
Comment 3 Robert Führicht 2006-04-20 11:09:08 UTC
Reopening, I provided requested information.
Comment 4 Donnie Berkholz (RETIRED) gentoo-dev 2006-04-20 16:31:18 UTC
OK, I'm seeing -DDEFAULT_DRIVER_DIR='"/usr/lib64/dri"' which is what I was looking for. I'm not sure exactly how amd64 deals with the emul xlibs package -- that may also need a define added to do the same thing.

AMD64 team, could you comment?
Comment 5 Donnie Berkholz (RETIRED) gentoo-dev 2006-04-20 23:31:04 UTC
Oh, do you have either of these variables set in your environment? LIBGL_DRIVERS_PATH or LIBGL_DRIVERS_DIR.
Comment 6 Robert Führicht 2006-04-21 02:19:59 UTC
Sorry, I forgot about that. This is set by x11-drivers/ati-drivers.

fuero@hephaestos ~ % grep -ri 'LIBGL' /etc/env.d/
/etc/env.d/09ati:3:LIBGL_DRIVERS_PATH="/usr/lib32/xorg/modules/dri/:/usr/lib64/xorg/modules/dri"
Comment 7 Luca Barbato gentoo-dev 2006-06-21 00:19:51 UTC
Created attachment 89694 [details, diff]
possible solution

Please try this patch and report back
Comment 8 Jakub Moc (RETIRED) gentoo-dev 2006-09-06 02:14:07 UTC
*** Bug 146521 has been marked as a duplicate of this bug. ***
Comment 9 Luca Barbato gentoo-dev 2006-09-06 04:19:06 UTC
I'm waiting for feedback...
Comment 10 Robert Führicht 2006-09-06 04:28:42 UTC
ok, seems fine here
Comment 11 Jakub Moc (RETIRED) gentoo-dev 2006-09-17 06:57:23 UTC
*** Bug 147926 has been marked as a duplicate of this bug. ***
Comment 12 Luca Barbato gentoo-dev 2006-09-17 17:21:01 UTC
All the drivers in portage are fixed..
Comment 13 Jan Kohnert 2006-10-27 13:49:42 UTC
I have the same problem here on x86.

Fixed by linking the requested modules to /usr/lib/xorg/modules/dri but this can not be the solution.

Any suggestions?

Portage 2.1.1 (default-linux/x86/2006.0, gcc-4.1.1, glibc-2.4-r3, 2.6.17-gentoo-r7 i686)
=================================================================
System uname: 2.6.17-gentoo-r7 i686 AMD Athlon(TM) XP 3000+
Gentoo Base System version 1.12.5
Last Sync: Fri, 27 Oct 2006 19:30:01 +0000
app-admin/eselect-compiler: [Not Present]
dev-java/java-config: 1.3.7, 2.0.30
dev-lang/python:     2.4.3-r4
dev-python/pycrypto: 2.0.1-r5
dev-util/ccache:     [Not Present]
dev-util/confcache:  [Not Present]
sys-apps/sandbox:    1.2.17
sys-devel/autoconf:  2.13, 2.59-r7
sys-devel/automake:  1.4_p6, 1.5, 1.6.3, 1.7.9-r1, 1.8.5-r3, 1.9.6-r2
sys-devel/binutils:  2.16.1-r3
sys-devel/gcc-config: 1.3.13-r4
sys-devel/libtool:   1.5.22
virtual/os-headers:  2.6.17-r1
ACCEPT_KEYWORDS="x86"
AUTOCLEAN="yes"
CBUILD="i686-pc-linux-gnu"
CFLAGS="-O2 -mtune=athlon-xp -fomit-frame-pointer -pipe"
CHOST="i686-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/kde/3.4/env /usr/kde/3.4/share/config /usr/kde/3.4/shutdown /usr/kde/3.5/env /usr/kde/3.5/share/config /usr/kde/3.5/shutdown /usr/lib/mozilla/defaults/pref /usr/share/X11/xkb /usr/share/config /usr/share/texmf/dvipdfm/config/ /usr/share/texmf/dvips/config/ /usr/share/texmf/tex/generic/config/ /usr/share/texmf/tex/platex/config/ /usr/share/texmf/xdvi/"
CONFIG_PROTECT_MASK="/etc/env.d /etc/env.d/java/ /etc/gconf /etc/java-config/vms/ /etc/revdep-rebuild /etc/terminfo"
CXXFLAGS="-O2 -mtune=athlon-xp -fomit-frame-pointer -pipe"
DISTDIR="/usr/portage/distfiles"
FEATURES="autoconfig distlocks metadata-transfer sandbox sfperms strict"
GENTOO_MIRRORS="http://ftp.easynet.nl/mirror/gentoo"
LANG="de_DE.UTF8"
LINGUAS="de zh_CN zh_TW ko"
MAKEOPTS="-j1"
PKGDIR="/usr/portage/packages"
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --compress --force --whole-file --delete --delete-after --stats --timeout=180 --exclude='/distfiles' --exclude='/local' --exclude='/packages'"
PORTAGE_TMPDIR="/home/portage"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/usr/local/portage"
SYNC="rsync://rsync.gentoo.org/gentoo-portage"
USE="x86 3dfx 3dnow 3dnowext X X509 a52 acpi alsa arts asf audiofile bash-completion berkdb bitmap-fonts bonobo bzip2 cddb cdr cjk cli cracklib crypt cups curl dba divx dlloader doc dri dvdr dvdread eds elibc_glibc emboss encode esd exif expat ffmpeg flac foomaticdb fortran gd gdbm gif glut gmedia gmp gstreamer gtk2 gtkhtml idn imagemagick imlib input_devices_evdev input_devices_keyboard input_devices_mouse ipv6 isdnlog jack jack-esd java jpeg kde kdexdeltas kernel_linux lcms libg++ libsamplerate libwww linguas_de linguas_ko linguas_zh_CN linguas_zh_TW lm_sensors mad mhash mjpeg mmx mmxext mng motif mozilla mp3 mpeg mplayer nas ncurses nls nptl nptlonly nsplugin offensive ogg openexr opengl pam pcre perl png ppds pppd python qt qt3 qt4 quicktime readline real realmedia recode reflection samba scanner sdl session slang spell spl sse sse2 ssl subtitles subversion svga tcltk tcpd tetex tiff truetype truetype-fonts type1-fonts udev unicode usb userland_GNU v4l v4l2 vcd video_cards_fglrx video_cards_r128 video_cards_radeon video_cards_v4l video_cards_vesa video_cards_via vorbis win32codecs wmf wmp xcomposite xine xml xml2 xorg xprint xv xvid zlib"
Unset:  CTARGET, EMERGE_DEFAULT_OPTS, INSTALL_MASK, LC_ALL, LDFLAGS, PORTAGE_RSYNC_EXTRA_OPTS

Best regards Jan
Comment 14 Jörg Noebels 2006-11-23 00:10:11 UTC
(In reply to comment #13)
> I have the same problem here on x86.
> 
> Fixed by linking the requested modules to /usr/lib/xorg/modules/dri but this
> can not be the solution.
> 
> Any suggestions?

I had the same problem, I'm also on x86. Deleting the ati-drivers and remerging mesa, xorg-server, libdrm, x11-drm and xorg-x11 solved the problem for me. Now direct rendering is available again.

My suggestion is to remove ati-drivers if you don't really need them and remerge the packages (maybe it isn't needed to remerge all of mine, but at least it works now).

Greets, J
Comment 15 Jörg Noebels 2006-11-23 00:10:11 UTC
(In reply to comment #13)
> I have the same problem here on x86.
> 
> Fixed by linking the requested modules to /usr/lib/xorg/modules/dri but this
> can not be the solution.
> 
> Any suggestions?

I had the same problem, I'm also on x86. Deleting the ati-drivers and remerging mesa, xorg-server, libdrm, x11-drm and xorg-x11 solved the problem for me. Now direct rendering is available again.

My suggestion is to remove ati-drivers if you don't really need them and remerge the packages (maybe it isn't needed to remerge all of mine, but at least it works now).

Greets, Jörg
Comment 16 Jakub Moc (RETIRED) gentoo-dev 2006-12-01 05:25:10 UTC
*** Bug 151504 has been marked as a duplicate of this bug. ***
Comment 17 Andreas Niederl 2007-04-16 20:57:33 UTC
Hi,
I just encountered this problem with /etc/env.d/09ati on a colleague's system and I believe I know whats going wrong here:

media-libs/mesa sets a default search directory for drivers in its ebuild (DRI_DRIVER_SEARCH_DIR) which gets compiled into mesa and is used by mesa if and only if no $LIBGL_DRIVERS_PATH is set in the environment.
But x11-drivers/ati-drivers sets this variable in /etc/env.d/09ati which would be fine, if it had been defined before it is extended for the ati drivers.
Further, the env.d-file installed by stable ati-drivers contains a double double colon (::) and env-update doesn't seem to recognize this as colon separated.

This could be fixed if media-libs/mesa would install a /etc/env.d/08mesa with the correct LIBGL_DRIVERS_PATH and a more sane 09ati file.

There's also a comment about this in the ati-drivers-8.35.5 ebuild (at src_install) which I've found just after writing this. It provides another way around this.