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

Bug 177994

Summary: [fPIC] media-libs/mesa-6.5.3 fails to build
Product: Gentoo Linux Reporter: Gregor Galwas <G.Galwas>
Component: [OLD] LibraryAssignee: Gentoo Linux bug wranglers <bug-wranglers>
Status: RESOLVED NEEDINFO    
Severity: normal CC: isidansick
Priority: High    
Version: unspecified   
Hardware: AMD64   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---
Attachments: My full build log

Description Gregor Galwas 2007-05-11 05:03:09 UTC
Trying to compile mesa, it fails to build
The problem happens with both

mesa-6.5.3     (testing , hard masked)
mesa-6.5.2-r1  (as far as I know stable)

 

Reproducible: Always

Steps to Reproduce:
1. emerge mesa
2.
3.

Actual Results:  
mklib: Making Linux shared library:  savage_dri.so
/usr/lib/gcc/x86_64-pc-linux-gnu/4.1.1/../../../../x86_64-pc-linux-gnu/bin/ld: warning: creating a DT_TEXTREL in object.
/usr/lib/gcc/x86_64-pc-linux-gnu/4.1.1/../../../../x86_64-pc-linux-gnu/bin/ld: savagetex.o: relocation R_X86_64_PC32 against `savageUploadSubtile_2x8' can not be used when making a shared object; recompile with -fPIC
/usr/lib/gcc/x86_64-pc-linux-gnu/4.1.1/../../../../x86_64-pc-linux-gnu/bin/ld: final link failed: Bad value
collect2: ld returned 1 exit status
../../../../../bin/minstall savage_dri.so ../../../../../lib64 
Unknown type of argument:  savage_dri.so
make[6]: *** [../../../../../lib64/savage_dri.so] Error 1
make[6]: Leaving directory `/var/tmp/portage/media-libs/mesa-6.5.3/work/Mesa-6.5.3/src/mesa/drivers/dri/savage'
make[5]: *** [subdirs] Error 1
make[5]: Leaving directory `/var/tmp/portage/media-libs/mesa-6.5.3/work/Mesa-6.5.3/src/mesa/drivers/dri'
make[4]: *** [linux-solo] Error 2
make[4]: Leaving directory `/var/tmp/portage/media-libs/mesa-6.5.3/work/Mesa-6.5.3/src/mesa'
make[3]: *** [default] Error 2
make[3]: Leaving directory `/var/tmp/portage/media-libs/mesa-6.5.3/work/Mesa-6.5.3/src/mesa'
make[2]: *** [subdirs] Error 1
make[2]: Leaving directory `/var/tmp/portage/media-libs/mesa-6.5.3/work/Mesa-6.5.3/src'
make[1]: *** [default] Error 1
make[1]: Leaving directory `/var/tmp/portage/media-libs/mesa-6.5.3/work/Mesa-6.5.3'
make: *** [linux-dri-x86-64] Error 2

!!! ERROR: media-libs/mesa-6.5.3 failed.
Call stack:
  ebuild.sh, line 1614:   Called dyn_compile
  ebuild.sh, line 971:   Called qa_call 'src_compile'
  environment, line 3627:   Called src_compile
  mesa-6.5.3.ebuild, line 233:   Called die

!!! Build failed
!!! If you need support, post the topmost build error, and the call stack if relevant.
!!! A complete build log is located at '/var/tmp/portage/media-libs/mesa-6.5.3/temp/build.log'.


My System is :

AMD64 X2, 2GB Ram
I have just installed Gentoo2007-amd64
Comment 1 Jakub Moc (RETIRED) gentoo-dev 2007-05-11 06:45:08 UTC
Please, review http://bugs.gentoo.org/page.cgi?id=fields.html#bug_severity; also post emerge --info output.
Comment 2 Gregor Galwas 2007-05-11 14:03:42 UTC
Portage 2.1.2.2 (default-linux/amd64/2007.0, gcc-4.1.1, glibc-2.5-r2, 2.6.20-gentoo-r7 x86_64)
=================================================================
System uname: 2.6.20-gentoo-r7 x86_64 AMD Athlon(tm) 64 X2 Dual Core Processor 5600+
Gentoo Base System release 1.12.9
Timestamp of tree: Thu, 10 May 2007 20:00:01 +0000
dev-lang/python:     2.4.3-r4
dev-python/pycrypto: 2.0.1-r5
sys-apps/sandbox:    1.2.17
sys-devel/autoconf:  2.13, 2.61
sys-devel/automake:  1.6.3, 1.7.9-r1, 1.9.6-r2, 1.10
sys-devel/binutils:  2.16.1-r3
sys-devel/gcc-config: 1.3.14
sys-devel/libtool:   1.5.22
virtual/os-headers:  2.6.17-r2
ACCEPT_KEYWORDS="amd64"
AUTOCLEAN="yes"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-march=k8 -cO2 -pipe"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/kde/3.5/env /usr/kde/3.5/share/config /usr/kde/3.5/shutdown /usr/share/X11/xkb /usr/share/config"
CONFIG_PROTECT_MASK="/etc/env.d /etc/gconf /etc/terminfo"
CXXFLAGS="-march=k8 -cO2 -pipe"
DISTDIR="/usr/portage/distfiles"
FEATURES="distlocks metadata-transfer sandbox sfperms strict"
GENTOO_MIRRORS="http://distfiles.gentoo.org http://distro.ibiblio.org/pub/linux/distributions/gentoo"
MAKEOPTS="-j4"
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 --filter=H_**/files/digest-*"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
SYNC="rsync://rsync.gentoo.org/gentoo-portage"
USE="X acl alsa amd64 berkdb bitmap-fonts cdr cli cracklib crypt cups dri dvd fortran gdbm gpm iconv ipv6 isdnlog kde libg++ midi mmx ncurses nls nptl nptlonly pam pcre perl pppd python qt3 qt4 readline reflection session spl sse sse2 ssl tcpd truetype-fonts type1-fonts unicode xorg zlib" ALSA_CARDS="ali5451 als4000 atiixp atiixp-modem bt87x ca0106 cmipci emu10k1x ens1370 ens1371 es1938 es1968 fm801 hda-intel intel8x0 intel8x0m maestro3 trident usb-audio via82xx via82xx-modem ymfpci" ALSA_PCM_PLUGINS="adpcm alaw asym copy dmix dshare dsnoop empty extplug file hooks iec958 ioplug ladspa lfloat linear meter mulaw multi null plug rate route share shm softvol" ELIBC="glibc" INPUT_DEVICES="keyboard mouse evdev" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" USERLAND="GNU" VIDEO_CARDS="apm ark ati chips cirrus cyrix dummy fbdev glint i128 i810 mga neomagic nv rendition s3 s3virge savage siliconmotion sis sisusb tdfx tga trident tseng v4l vesa vga via vmware voodoo"
Unset:  CTARGET, EMERGE_DEFAULT_OPTS, INSTALL_MASK, LANG, LC_ALL, LDFLAGS, LINGUAS, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS, PORTDIR_OVERLAY
Comment 3 Isaac ‘Will It Work’ Dansicker 2007-05-11 17:37:11 UTC
I've been having the same problem since I rebuilt from stage3 last week.  This is at least a major, it looks like mesa depends on header files that are part of X, but X won't install without mesa!!   Maybe related to the dodgy X build process

Need to:
* Changed hardware to all (I am experiencing it on my old P4)
* Specified version (bug originator and I are both using 2007.0)
* Reopen this, please?


emerge --info follows:
-------------------------------------
Portage 2.1.2.2 (default-linux/x86/2007.0, gcc-4.1.1, glibc-2.5-r2, 2.6.21-rc7-mm2 i686)
=================================================================
System uname: 2.6.21-rc7-mm2 i686 Intel(R) Pentium(R) 4 CPU 1500MHz
Gentoo Base System release 1.12.9
Timestamp of tree: Fri, 11 May 2007 14:00:01 +0000
dev-java/java-config: 1.3.7, 2.0.31-r5
dev-lang/python:     2.4.4
dev-python/pycrypto: 2.0.1-r5
sys-apps/sandbox:    1.2.17
sys-devel/autoconf:  2.13, 2.61
sys-devel/automake:  1.4_p6, 1.5, 1.6.3, 1.7.9-r1, 1.8.5-r3, 1.9.6-r2, 1.10
sys-devel/binutils:  2.16.1-r3
sys-devel/gcc-config: 1.3.16
sys-devel/libtool:   1.5.22
virtual/os-headers:  2.6.17-r2
ACCEPT_KEYWORDS="x86"
AUTOCLEAN="yes"
CBUILD="i686-pc-linux-gnu"
CFLAGS="-O2 -march=pentium4 -mfpmath=sse -pipe -fomit-frame-pointer"
CHOST="i686-pc-linux-gnu"
CONFIG_PROTECT="/etc"
CONFIG_PROTECT_MASK="/etc/env.d /etc/env.d/java/ /etc/gconf /etc/java-config/vms/ /etc/php/apache1-php5/ext-active/ /etc/php/apache2-php5/ext-active/ /etc/php/cgi-php5/ext-active/ /etc/php/cli-php5/ext-active/ /etc/revdep-rebuild /etc/terminfo"
CXXFLAGS="-O2 -march=pentium4 -mfpmath=sse -pipe -fomit-frame-pointer"
DISTDIR="/usr/portage/distfiles"
FEATURES="digest distlocks metadata-transfer parallel-fetch sandbox sfperms strict"
GENTOO_MIRRORS="http://gentoo.mirrors.tds.net/gentoo ftp://ftp.ndlug.nd.edu/pub/gentoo/ http://gentoo.mirrors.easynews.com/linux/gentoo/"
LINGUAS="en_GB he ja"
MAKEOPTS="-j2"
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 --filter=H_**/files/digest-*"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/var/lib/layman/xeffects /var/lib/layman/emacs /var/lib/layman/armagetron /var/lib/layman/x11"
SYNC="rsync://rsync.gentoo.org/gentoo-portage"
USE="X Xaw3d a52 aac aalib accessibility acl acpi afs alsa apache2 arts asf avahi bash-completion bcmath berkdb bitmap-fonts bzip2 cairo caps cddb cdr cjk cli cracklib crypt cups curl curlwrappers dbus dhcp directfb dri dts dvd dvdr emacs esd exif fbcon flac font-server fortran gcj gd gdbm gif glitz gnome gnutls gphoto2 gpm gtk gtk2 gtkhtml guile hal icc iconv idn ieee1394 ipv6 isdnlog jack java javascript jbig jikes jpeg jpeg2k kde kerberos lash latex lcms libcaca libg++ lirc lm_sensors midi mikmod mmap mmx mng modplug mono mpeg mpi mysql mysqli nas nautilus ncurses net nhc98 nis nls nptl nptlonly nsplugin objc odbc offensive openexr pam pcntl pcre pda perl php png posix pppd python qt readline reflection ruby samba sasl sdl session slang slp sndfile snmp spl sse sse2 ssl startup-notification svg svga sysfs sysvipc tcl tcpd tetex theora threads tiff tk truetype truetype-fonts type1-fonts unicode urandom usb userlocales v4l v4l2 vcd vidix win32codecs wmf x86 xcb xcomposite xine xinetd xorg xpm xprint xscreensaver xvmc zeroconf zip zlib" ALSA_CARDS="ali5451 als4000 atiixp atiixp-modem bt87x ca0106 cmipci emu10k1 emu10k1x ens1370 ens1371 es1938 es1968 fm801 hda-intel intel8x0 intel8x0m maestro3 trident usb-audio via82xx via82xx-modem ymfpci" ALSA_PCM_PLUGINS="adpcm alaw asym copy dmix dshare dsnoop empty extplug file hooks iec958 ioplug ladspa lfloat linear meter mulaw multi null plug rate route share shm softvol" ELIBC="glibc" INPUT_DEVICES="evdev keyboard mouse joystick" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LINGUAS="en_GB he ja" USERLAND="GNU" VIDEO_CARDS="apm dummy fbdev glint nv nvidia r128 radeon tdfx v4l vesa vga"
Unset:  CTARGET, EMERGE_DEFAULT_OPTS, INSTALL_MASK, LANG, LC_ALL, LDFLAGS, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS

-------------------------------------
emerge --info ended
Comment 4 Jakub Moc (RETIRED) gentoo-dev 2007-05-11 17:45:28 UTC
(In reply to Comment  #2)
> CFLAGS="-march=k8 -cO2 -pipe"
> CXXFLAGS="-march=k8 -cO2 -pipe"

What should -cO2 exactly do?

(In reply to comment #3)
> I've been having the same problem since I rebuilt from stage3 last week.  This
> is at least a major, it looks like mesa depends on header files that are part
> of X, but X won't install without mesa!!   Maybe related to the dodgy X build
> process

What exactly do missing headers have in common w/ fPIC issue? File a *new* bug w/ emerge --info and attach log there.(In reply to comment #2)

Comment 5 Isaac ‘Will It Work’ Dansicker 2007-05-11 18:24:29 UTC
Created attachment 118893 [details]
My full build log

This is pretty indicative.  It doesn't find several header files, including Xdamage?

I get similar rsults if I pull all the USE flags and --oneshot it.
Comment 6 Gregor Galwas 2007-05-11 18:32:27 UTC
For the Xdamage-stuff...
I have installed libXDamage (emerge libxdamage), that worked ok , if I remember correctly, so that problem has gone.
But this was prior to my "bug"
Dont know if that was agood choice... but infact, it should happen by itself before mesa is build.
Comment 7 Jakub Moc (RETIRED) gentoo-dev 2007-05-11 18:33:49 UTC
(In reply to comment #5)
> This is pretty indicative.  It doesn't find several header files, including
> Xdamage?

OK, once again - this is totally unrelated to the issue on this bug; move it outta here.