Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 104307

Summary: compilation x11-drm-20050502 fails -- file drm.o missing
Product: Gentoo Linux Reporter: Jean-Sébastien Légaré <jlegar>
Component: Current packagesAssignee: X11 External Driver Maintainers <x11-drivers>
Status: RESOLVED DUPLICATE    
Severity: major    
Priority: High    
Version: unspecified   
Hardware: x86   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---

Description Jean-Sébastien Légaré 2005-08-30 14:55:41 UTC
The compilation stops because it tries to copy a .o file that
does not exist.

Reproducible: Always
Steps to Reproduce:
1.emerge x11-drm-20050502
2.bang!
3.

Actual Results:  
compilation failed

Expected Results:  
installed successfully

I changed my hardware recently. I decided to do a software upgrade at the
same time by upgrading all my apps and my kernel (from 2.4 to 2.6). The gentoo 
migration guide from linux 2.4 to 2.6 recommends first to update all installed
packages. I changed my USE flags to disable stuff relative to my old hardware
and then started the full update procedure. 

Basically I did 'emerge --sync' and then 'emerge -uND world'.

x11-drm is one of the packages that needs to be updated but compilation fails.

I am currently running the same kernel I had with my old hardware. The only
relevant hardware change relative to this package is my graphics card. 

I had a matrox G450 but now I switched for an nVidia geForce4.

I find it kind of bad that x11-drm fails to compile, since it will be useless 
when I finish compiling my 2.6 kernel.

Here is my 'emerge --info':

System uname: 2.4.26-gentoo-r6 i686 Intel(R) Pentium(R) 4 CPU 2.00GHz
Gentoo Base System version 1.6.13
dev-lang/python:     2.3.5
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
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="-O2 -march=pentium4 -fomit-frame-pointer -mfpmath=sse -pipe
-finline-functions"
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 /var/qmail/control"
CONFIG_PROTECT_MASK="/etc/gconf /etc/terminfo /etc/env.d"
CXXFLAGS="-O2 -march=pentium4 -fomit-frame-pointer -mfpmath=sse -pipe
-finline-functions"
DISTDIR="/usr/portage/distfiles"
FEATURES="autoconfig distlocks sandbox sfperms strict"
GENTOO_MIRRORS="ftp://ftp-stud.fht-esslingen.de/pub/Mirrors/gentoo/
ftp://ftp6.uni-erlangen.de/pub/mirrors/gentoo
ftp://vlaai.snt.ipv6.utwente.nl/pub/os/linux/gentoo/
http://www.gigaload.org/gentoo.org/"
MAKEOPTS="-j2"
PKGDIR="/usr/portage/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
SYNC="rsync://rsync.gentoo.org/gentoo-portage"
USE="x86 X aim alsa apache2 apm arts avi berkdb bitmap-fonts cdr cpdflib crypt
cups curl dba divx4linux eds emacs emboss encode esd fam firebird flac
foomaticdb fortran ftp gd gd-external gdbm gif gnome gpm gstreamer gtk gtk2 icq
imagemagick imlib ipv6 java jpeg junit kde libg++ libwww mad mikmod mmx motif
mozilla mp3 mpeg msn mysql mysqli ncurses nls nvidia ogg oggvorbis opengl oss
pam pdflib perl png ppds pps python qt quicktime readline samba sdl session
slang spell sse ssl svga tcltk tcpd tiff truetype truetype-fonts type1-fonts usb
vorbis xine xml xml2 xmms xv zlib video_cards_nvidia userland_GNU kernel_linux
elibc_glibc"
Unset:  ASFLAGS, CTARGET, LANG, LC_ALL, LDFLAGS, LINGUAS, PORTDIR_OVERLAY



Here is the last bit of the compilation error:

...
make -C  /var/tmp/portage/x11-drm-20050502/work/drm/linux CFLAGS="-D__KERNEL__
-I/usr/src/linux-2.4.26-gentoo-r6/include -Wall -Wstrict-prototypes
-Wno-trigraphs -O2 -fno-strict-aliasing -fno-common -pipe
-mpreferred-stack-boundary=2 -march=i586 -DMODULE" MAKING_MODULES=1 modules
make[2]: Entering directory `/var/tmp/portage/x11-drm-20050502/work/drm/linux'
make[2]: Nothing to be done for `modules'.
make[2]: Leaving directory `/var/tmp/portage/x11-drm-20050502/work/drm/linux'
make[1]: Leaving directory `/usr/src/linux-2.4.26-gentoo-r6'
cc -D_IN_LIBDRM -O2 -march=pentium4 -fomit-frame-pointer -mfpmath=sse -pipe
-finline-functions -c -I../shared-core xf86drm.c
cc -D_IN_LIBDRM -O2 -march=pentium4 -fomit-frame-pointer -mfpmath=sse -pipe
-finline-functions -c -I../shared-core xf86drmHash.c
cc -D_IN_LIBDRM -O2 -march=pentium4 -fomit-frame-pointer -mfpmath=sse -pipe
-finline-functions -c -I../shared-core xf86drmRandom.c
cc -D_IN_LIBDRM -O2 -march=pentium4 -fomit-frame-pointer -mfpmath=sse -pipe
-finline-functions -c -I../shared-core xf86drmSL.c
cc -shared -Wl,-hlibdrm.so.1 -o libdrm.so xf86drm.o xf86drmHash.o
xf86drmRandom.o xf86drmSL.o
/usr/lib/gcc-lib/i686-pc-linux-gnu/3.3.5-20050130/../../../../i686-pc-linux-gnu/bin/ld:
warning: creating a DT_TEXTREL in object.
cc -O2 -march=pentium4 -fomit-frame-pointer -mfpmath=sse -pipe
-finline-functions -g -ansi -pedantic -DPOSIX_C_SOURCE=199309L -D_POSIX_SOURCE
-D_XOPEN_SOURCE -D_BSD_SOURCE -D_SVID_SOURCE -I. -I../../.. -I../libdrm
dristat.c -o dristat
cc -O2 -march=pentium4 -fomit-frame-pointer -mfpmath=sse -pipe
-finline-functions -g -ansi -pedantic -DPOSIX_C_SOURCE=199309L -D_POSIX_SOURCE
-D_XOPEN_SOURCE -D_BSD_SOURCE -D_SVID_SOURCE -I. -I../../.. -I../libdrm
drmstat.c -o drmstat ../libdrm/*.o -L../../.. -L.. -L../libdrm
>>> 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-gentoo-r6/x11-drm
cp -p drm.o
/var/tmp/portage/x11-drm-20050502/image//lib/modules/2.4.26-gentoo-r6/x11-drm
cp: cannot stat `drm.o': No such file or directory
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.
Comment 1 Joshua Baergen (RETIRED) gentoo-dev 2005-08-31 18:29:29 UTC
This is a duplicate bug.  In the other bug it's determined to be a 2.4 kernel
problem.  If you really care about getting this updated before migrating look at
the description and comment #5 on the original bug.  Otherwise I wouldn't worry
about it.

*** This bug has been marked as a duplicate of 96952 ***