Bug 96952 - x11-drm-20050502 does not install because a file does not exist.
|
Bug#:
96952
|
Product: Gentoo Linux
|
Version: unspecified
|
Platform: x86
|
|
OS/Version: Linux
|
Status: RESOLVED
|
Severity: normal
|
Priority: P2
|
|
Resolution: FIXED
|
Assigned To: x11-drivers@gentoo.org
|
Reported By: telefrancisco@gmail.com
|
|
Component: Applications
|
|
|
URL:
|
|
Summary: x11-drm-20050502 does not install because a file does not exist.
|
|
Keywords:
|
|
Status Whiteboard:
|
|
Opened: 2005-06-24 09:08 0000
|
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
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
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
Have either of you tried 20050807, currently testing?
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?
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.
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.
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.
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. :-)
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.
*** Bug 104307 has been marked as a duplicate of this bug. ***
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.
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.
Bug still presente in x11-drm-20051028
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
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.
*** Bug 121586 has been marked as a duplicate of this bug. ***