Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 96952 - x11-drm-20050502 does not install because a file does not exist.
Summary: x11-drm-20050502 does not install because a file does not exist.
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: x86 Linux
: High normal (vote)
Assignee: X11 External Driver Maintainers
URL:
Whiteboard:
Keywords:
: 104307 121586 (view as bug list)
Depends on:
Blocks:
 
Reported: 2005-06-24 09:08 UTC by Francisco José Cañizares Santofimia
Modified: 2006-06-16 12:18 UTC (History)
4 users (show)

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


Attachments
output of "emerge x11-drm > drm.out 2>&1" with "x11-base/x11-drm ~x86" in /etc/portage/package.keywords (drm.out,19.88 KB, text/plain)
2005-08-17 04:13 UTC, Wolfgang Herder
Details
/etc/X11/xorg,conf (xorg.conf,4.01 KB, text/plain)
2005-08-28 06:29 UTC, schaedpq
Details
/var/log/Xorg.0.log (Xorg.0.log,49.19 KB, text/plain)
2005-08-28 06:31 UTC, schaedpq
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Francisco José Cañizares Santofimia 2005-06-24 09:08:42 UTC
Hi, when I try to install x11-drm-20050502, gentoo cannot install it because a
file is not present. In fact, the error is:
>>> Install x11-drm-20050502 into /var/tmp/portage/x11-drm-20050502/image/
category x11-base
 * Installing DRM...
mkdir -p
/var/tmp/portage/x11-drm-20050502/image//lib/modules/2.4.28-gentoo-r9/x11-drm
cp -p radeon.o drm.o
/var/tmp/portage/x11-drm-20050502/image//lib/modules/2.4.28-gentoo-r9/x11-drm
cp: no se puede efectuar `stat' sobre 
Comment 1 Francisco José Cañizares Santofimia 2005-06-24 09:08:42 UTC
Hi, when I try to install x11-drm-20050502, gentoo cannot install it because a
file is not present. In fact, the error is:
>>> Install x11-drm-20050502 into /var/tmp/portage/x11-drm-20050502/image/
category x11-base
 * Installing DRM...
mkdir -p
/var/tmp/portage/x11-drm-20050502/image//lib/modules/2.4.28-gentoo-r9/x11-drm
cp -p radeon.o drm.o
/var/tmp/portage/x11-drm-20050502/image//lib/modules/2.4.28-gentoo-r9/x11-drm
cp: no se puede efectuar `stat' sobre «drm.o»: No existe el fichero o el directorio
make: *** [install] Error 1

!!! ERROR: x11-base/x11-drm-20050502 failed.
!!! Function src_install, Line 124, Exitcode 2
!!! Install failed.
!!! If you need support, post the topmost build error, NOT this status message.

In my humble opinion the fail of this is because on the ebuild it says in the
src_install() part:
        make KV="${KV}" \
                LINUXDIR="${ROOT}/usr/src/linux" \
                DESTDIR="${D}" \
                RUNNING_REL="${KV}" \
                MODULE_LIST="${VIDCARDS} drm.${KV_OBJ}" \
                install || die "Install failed."
and, drm.${KV_OBJ} at least for 2.4 kernels, I think. So, perhaps changing this
to an if for 2.6 and  2.4, ione with drm.${KV_OBJ} and the other without it.



Reproducible: Always
Steps to Reproduce:
1.Emerge x11-drm.
2.
3.

Actual Results:  
It does not install.

Expected Results:  
It should install.

Portage 2.0.51.22-r1 (default-linux/x86/2005.0, gcc-3.4.3-20050110,
glibc-2.3.5-r0, 2.4.28-gentoo-r9 i686)
=================================================================
System uname: 2.4.28-gentoo-r9 i686 Intel(R) Pentium(R) 4 CPU 2.50GHz
Gentoo Base System version 1.7.1
dev-lang/python:     2.4.1-r1
sys-apps/sandbox:    1.2.9
sys-devel/autoconf:  2.13, 2.59-r6
sys-devel/automake:  1.4_p6, 1.5, 1.6.3, 1.7.9-r1, 1.8.5-r3, 1.9.5
sys-devel/binutils:  2.16.1
sys-devel/libtool:   1.5.16
virtual/os-headers:  2.4.22-r1
ACCEPT_KEYWORDS="x86 ~x86"
AUTOCLEAN="yes"
CBUILD="i686-pc-linux-gnu"
CFLAGS="-march=pentium4 -O3 -pipe -fomit-frame-pointer"
CHOST="i686-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/kde/2/share/config /usr/kde/3.4/env
/usr/kde/3.4/share/config /usr/kde/3.4/shutdown /usr/kde/3/share/config
/usr/lib/X11/xkb /usr/lib/mozilla/defaults/pref /usr/share/config
/var/qmail/control"
CONFIG_PROTECT_MASK="/etc/gconf /etc/terminfo /etc/texmf/web2c /etc/env.d"
CXXFLAGS="-march=pentium4 -O3 -pipe -fomit-frame-pointer"
DISTDIR="/usr/portage/distfiles"
FEATURES="autoconfig distlocks sandbox sfperms strict"
GENTOO_MIRRORS="http://distfiles.gentoo.org
http://distro.ibiblio.org/pub/Linux/distributions/gentoo"
LANG="es_ES@euro"
LC_ALL="es_ES@euro"
LINGUAS="es"
PKGDIR="/usr/portage/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/usr/local/portage"
SYNC="rsync://rsync.gentoo.org/gentoo-portage"
USE="x86 X aac aalib adns aim alsa apache2 apm arts artswrappersuid avi
bash-completion berkdb bindinst bitmap-fonts bmp cddb cdr cpdflib crypt cups
curl dba dga directfb doc dvd eds emboss encode esd faad fam fbcon ffmpeg flac
font-server foomaticdb fortran gcc-libffi gcj gd gdbm gg ggi gif gnome gnustep
gphoto2 gpm gstreamer gtk gtk2 guile icq imagemagick imlib intl ipv6 irc jabber
java joystick jpeg junit kde ldap libcaca libdsk libg++ libwww lirc live lj mad
mikmod mmx mmx2 motif mozcalendar mozilla mozsvg mp3 mpeg msn mysql ncurses nls
objc offensive ogg oggvorbis old-eq opengl oss pam pdflib perl png ppds python
qt quicktime readline real rss ruby samba scanner sdl silc slang softmmu spell
sse sse2 ssl svg svga symlink tcltk tcpd tetex theora tiff truetype
truetype-fonts type1-fonts usb vcd vorbis webcam wxwindows xchatdccserver
xchattext xine xinerama xml xml2 xmms xosd xv yahoo zlib video_cards_radeon
linguas_es userland_GNU kernel_linux elibc_glibc"
Unset:  ASFLAGS, CTARGET, LDFLAGS, MAKEOPTS
Comment 2 Wolfgang Herder 2005-08-10 04:14:17 UTC
Same here:
emerge info
Portage 2.0.51.22-r2 (default-linux/x86/2005.0/2.4, gcc-3.3.5-20050130,
glibc-2.3.5-r0, 2.4.28-gentoo-r9 i686)
=================================================================
System uname: 2.4.28-gentoo-r9 i686 Mobile Intel(R) Pentium(R) 4 - M CPU 2.00GHz
Gentoo Base System version 1.6.13
distcc 2.18.3 i686-pc-linux-gnu (protocols 1 and 2) (default port 3632) [disabled]
ccache version 2.3 [disabled]
dev-lang/python:     2.3.5
sys-apps/sandbox:    1.2.11
sys-devel/autoconf:  2.13, 2.59-r6
sys-devel/automake:  1.4_p6, 1.5, 1.6.3, 1.7.9-r1, 1.8.5-r3, 1.9.5
sys-devel/binutils:  2.15.92.0.2-r10
sys-devel/libtool:   1.5.18-r1
virtual/os-headers:  2.4.22-r1
ACCEPT_KEYWORDS="x86"
AUTOCLEAN="yes"
CBUILD="i686-pc-linux-gnu"
CFLAGS="-O3 -march=pentium4 -pipe"
CHOST="i686-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/kde/2/share/config /usr/kde/3.2/share/config
/usr/kde/3.3/env /usr/kde/3.3/share/config /usr/kde/3.3/shutdown
/usr/kde/3.4/env /usr/kde/3.4/share/config /usr/kde/3.4/shutdown
/usr/kde/3/share/config /usr/lib/X11/xkb /usr/lib/mozilla/defaults/pref
/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/ /var/qmail/control"
CONFIG_PROTECT_MASK="/etc/gconf /etc/terminfo /etc/env.d"
CXXFLAGS="-O3 -march=pentium4 -pipe"
DISTDIR="/usr/portage/distfiles"
FEATURES="autoconfig distlocks sandbox sfperms strict"
GENTOO_MIRRORS="http://mirrors.sec.informatik.tu-darmstadt.de/gentoo/
http://gentoo.inode.at/ http://ftp.snt.utwente.nl/pub/os/linux/gentoo
http://linux.rz.ruhr-uni-bochum.de/download/gentoo-mirror/
http://gentoo.mirror.sdv.fr http://ftp.heanet.ie/pub/gentoo/
http://ftp.easynet.nl/mirror/gentoo/"
LANG="de_DE@euro"
LC_ALL="de_DE@euro"
MAKEOPTS="-j2"
PKGDIR="/usr/portage/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
SYNC="rsync://rsync.gentoo.org/gentoo-portage"
USE="x86 X aalib alsa apm arts avi bash-completion berkdb bitmap-fonts cdr crypt
cups curl doc dvd dvdread eds emboss encode esd fam flac foomatic foomaticdb
fortran gd gdbm gif gnome gpm gstreamer gtk gtk2 icq imagemagick imap imlib ipv6
jack java jce jpeg junit kde libg++ libwww mad mikmod mmx motif mozilla mp3 mpeg
ncurses nls ogg oggvorbis opengl oss pam pda pdflib perl pic pie png ppds python
qt quicktime readline sdl slang speex spell sse ssl svga tcltk tcpd tetex tiff
truetype truetype-fonts type1-fonts vorbis xine xml2 xmms xv zlib
video_cards_radeon userland_GNU kernel_linux elibc_glibc"
Unset:  ASFLAGS, CTARGET, LDFLAGS, LINGUAS, PORTDIR_OVERLAY
Comment 3 Joshua Baergen (RETIRED) gentoo-dev 2005-08-16 16:28:16 UTC
Have either of you tried 20050807, currently testing?
Comment 4 Wolfgang Herder 2005-08-17 04:13:40 UTC
Created attachment 66127 [details]
output of "emerge x11-drm > drm.out 2>&1" with "x11-base/x11-drm ~x86" in /etc/portage/package.keywords

20050807 fails with the same message
Comment 5 Joshua Baergen (RETIRED) gentoo-dev 2005-08-24 18:22:53 UTC
I don't know if any of the relevant devs run 2.4 anymore.  Could you try your
suggested fix and confirm that this solves the problem and gives you working drm?
Comment 6 schaedpq 2005-08-25 00:29:08 UTC
I modified my ebuild for x11-drm-20050502 by removing "drm.${KV_OBJ}". The
ebuild installs then.
Unfortunately, my X then complains about a missing module "drm". But I am not
sure, if that issue is not a different one and the "drm" my X complains about is
a different thing from the "drm" this ebuild installs or wants to install.
I will report back this evening, when I am back at the machine I tried this on
and add at least the error messages if I am not able to find out more.
Comment 7 schaedpq 2005-08-25 14:16:37 UTC
Im sorry, X complained about not being able to load its module "dri", not "drm":

(EE) MGA: Failed to load module "dri" (once-only module, 0)
(EE) MGA(0): [drm] DRIScreenInit failed.  Disabling DRI.

/usr/lib/modules/extensions/libdri.so exists on my system, I dont know, why it
cannot load it.
Probably, that problem is not related to this bug. Or do you think, it is may be
related? (X log available if you would like to see it.) Otherwise a new bug may
be the better choice for that problem.

So, as far as it concerns installation of the ebuild for x11-drm: Removing
drm.${KV_OBJ} for 2.4 kernels makes it install again on my system.
Comment 8 Joshua Baergen (RETIRED) gentoo-dev 2005-08-26 08:22:19 UTC
Hmm...if you could attach (not paste, please) both your xorg.conf and your log
that would be appreciated.  We'll see if it's related or not.
Comment 9 schaedpq 2005-08-28 06:27:54 UTC
I was not at home for the last day, therefore my late response. I will attach
the 2 files in a minute. Thank you for having a look at them. :-)
Comment 10 schaedpq 2005-08-28 06:29:20 UTC
Created attachment 67070 [details]
/etc/X11/xorg,conf

/etc/X11/xorg,conf for the X installation which doesn't load DRM.
Comment 11 schaedpq 2005-08-28 06:31:30 UTC
Created attachment 67071 [details]
/var/log/Xorg.0.log
Comment 12 Joshua Baergen (RETIRED) gentoo-dev 2005-08-29 07:41:16 UTC
Dri is actually being loaded twice which is why it's failing for the MGA driver.
Try getting rid of the 'Load "dri"' line in the Modules section.
Comment 13 Joshua Baergen (RETIRED) gentoo-dev 2005-08-31 18:29:29 UTC
*** Bug 104307 has been marked as a duplicate of this bug. ***
Comment 14 schaedpq 2005-09-02 14:38:06 UTC
Sorry for being late again with reporting back. :-(
Ich tried now removing a) "Load "dri"" in section module and b) "Option "DRI""
from the section "Device". Both had now success, I get the same error message
and that stuff from the log file previously posted.

But I think I have narrowed the problem a little bit. The kernel module agpgart
is not loaded on my machine (though it was until 2-3 weeks ago) and I think,
that module should provide the /dev/dri/card* devices, which X could not access.
I am trying now to figure out, whats wrong with it and how to load that module
again.
Comment 15 Francisco José Cañizares Santofimia 2005-10-18 12:22:04 UTC
Mmmmm, installing x11-drm still complaints about missing drm.o in 2.4 kernels so
I need to modify the ebuild to install it (without drm.o).
I'm talking about 20050807
Thanks in advance.
Comment 16 Francisco José Cañizares Santofimia 2005-12-11 05:23:02 UTC
Bug still presente in x11-drm-20051028
Comment 17 Deadpan110 2006-01-25 13:47:23 UTC
Hi,
I too use a 2.4.* kernel and following the gentoo howto http://www.gentoo.org/doc/en/dri-howto.xml I also get the emerge breaking at:

>>> Test phase [not enabled]: x11-base/x11-drm-20050502

>>> Install x11-drm-20050502 into /var/tmp/portage/x11-drm-20050502/image/ category x11-base
 * Installing DRM...
mkdir -p /var/tmp/portage/x11-drm-20050502/image//lib/modules/2.4.26-om1/x11-drm
cp -p r128.o drm.o /var/tmp/portage/x11-drm-20050502/image//lib/modules/2.4.26-om1/x11-drm
cp: cannot stat `drm.o': No such file or directory
make: *** [install] Error 1

I have tried recompiling my kernel a few times with different settings for Direct Rendering Manager (ie, leaving it out entirely... putting it back in and editing the config to see if forcing it as a module would work) and also i tried  every version in portage including unmasking the ~x86 version x11-base/x11-drm-20051223

emerge --info (as follows)

Portage 2.0.54 (default-linux/x86/no-nptl/2.4, gcc-3.3.6, glibc-2.3.5-r2, 2.4.26-om1 i686)
=================================================================
System uname: 2.4.26-om1 i686 Intel(R) Pentium(R) 4 CPU 1.70GHz
Gentoo Base System version 1.6.14
distcc[24023] (dcc_mkdir) ERROR: mkdir /var/tmp/distcc/state failed: No such file or directory [disabled]
ccache version 2.3 [enabled]
dev-lang/python:     2.3.5, 2.4.2
sys-apps/sandbox:    1.2.12
sys-devel/autoconf:  2.13, 2.59-r6
sys-devel/automake:  1.4_p6, 1.5, 1.6.3, 1.7.9-r1, 1.8.5-r3, 1.9.6-r1
sys-devel/binutils:  2.16.1
sys-devel/libtool:   1.5.22
virtual/os-headers:  2.4.22-r1
ACCEPT_KEYWORDS="x86"
AUTOCLEAN="yes"
CBUILD="i386-pc-linux-gnu"
CFLAGS="-march=i386 -O3 -pipe -fomit-frame-pointer"
CHOST="i386-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/kde/2/share/config /usr/kde/3.4/env /usr/kde/3.4/share/config /usr/kde/3.4/shutdown /usr/kde/3/share/config /usr/lib/X11/xkb /usr/lib/mozilla/defaults/pref /usr/share/config /var/qmail/control"
CONFIG_PROTECT_MASK="/etc/gconf /etc/terminfo /etc/env.d"
CXXFLAGS="-march=i386 -O3 -pipe -fomit-frame-pointer"
DISTDIR="/home/admin/public_html/gentoo/distfiles"
FEATURES="autoconfig buildpkg ccache distlocks fixpackages sandbox sfperms strict"
GENTOO_MIRRORS="http://distfiles.gentoo.org http://distro.ibiblio.org/pub/linux/distributions/gentoo"
MAKEOPTS="-j8"
PKGDIR="/home/admin/public_html/gentoo/binaries/i386-gentoo-glibc-desktop"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/nfs/config/portage/"
PORTDIR_OVERLAY="/nfs/config/overlay"
SYNC="rsync://rsync.gentoo.org/gentoo-portage"
USE="X apm arts avi bitmap-fonts buttons crypt cups dvd esd firefox gif gnome gpm gtk howl insecure-drivers java jpeg kde ldap mmx mp3 mpeg ncurses new-login nls opengl oss pam perl png python qt quicktime readline samba sdk slang spell ssl tcpd truetype usb vorbis win32codecs x86 xmms xscreensaver xv xvid zlib video_cards_rage128 userland_GNU kernel_linux elibc_glibc"
Unset:  ASFLAGS, CTARGET, LANG, LC_ALL, LDFLAGS, LINGUAS

relevent sections of my linux/.config

#
# Processor type and features
#
CONFIG_MPENTIUM4=y
CONFIG_X86_WP_WORKS_OK=y
CONFIG_X86_INVLPG=y
CONFIG_X86_CMPXCHG=y
CONFIG_X86_XADD=y
CONFIG_X86_BSWAP=y
CONFIG_X86_POPAD_OK=y
CONFIG_RWSEM_XCHGADD_ALGORITHM=y
CONFIG_X86_L1_CACHE_SHIFT=7
CONFIG_X86_HAS_TSC=y
CONFIG_X86_GOOD_APIC=y
CONFIG_X86_PGE=y
CONFIG_X86_USE_PPRO_CHECKSUM=y
CONFIG_X86_F00F_WORKS_OK=y
CONFIG_X86_MCE=y
CONFIG_NOHIGHMEM=y
CONFIG_MTRR=y
CONFIG_SMP=y
CONFIG_NR_CPUS=2
CONFIG_X86_TSC=y
CONFIG_HAVE_DEC_LOCK=y

#
# Character devices
#
CONFIG_AGP=m
CONFIG_AGP_INTEL=y

#
# Direct Rendering Manager (XFree86 DRI support)
#
# CONFIG_DRM is not set

I use a standard 2.4.26 kernel patched with the official openMosix patch and the squashfs patch only, hence the reason I cannot upgrade to kernel 2.6.* yet.

My entire network is part of an openMosix cluster but it is only 2 computers that require a desktop with drm support.

If there is any other information you require, please let me know
Comment 18 Bryan Stine (RETIRED) gentoo-dev 2006-06-16 00:11:39 UTC
I just committed new versions of the recent ebuilds which should have this issue resolved. Try them out and if anything goes wrong, let me know. Thanks.
Comment 19 Bryan Stine (RETIRED) gentoo-dev 2006-06-16 12:18:05 UTC
*** Bug 121586 has been marked as a duplicate of this bug. ***