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

Bug 95297

Summary: firefox 1.0.4 wont compile w/ amd64 w/ error: Only 32bit ELF files supported
Product: Gentoo Linux Reporter: demian
Component: Current packagesAssignee: Mozilla Gentoo Team <mozilla>
Status: RESOLVED FIXED    
Severity: normal    
Priority: High    
Version: unspecified   
Hardware: AMD64   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---

Description demian 2005-06-06 21:52:22 UTC
i get this error when compiling mozilla-firefox-1.0.4 in amd64: 
 
x86_64-pc-linux-gnu-g++  -fno-rtti -fno-exceptions  -Wconversion 
-Wpointer-arith -Wcast-align -Woverloaded-virtual -Wsynth 
-Wno-ctor-dtor-privacy -Wno-non-virtual-dtor -Wno-long-long -march=athlon64 
-pipe -fPIC -Wno-deprecated -fshort-wchar -pthread -pipe  -DNDEBUG -DTRIMMED 
-ffunction-sections -O2 -fPIC -shared -Wl,-h -Wl,libxpcom_compat_c.so -o 
libxpcom_compat_c.so  nsXPCOMObsolete.o nsRegistry.o       -L../../../dist/bin 
-lxpcom  -L../../../dist/bin 
-L/var/tmp/portage/mozilla-firefox-1.0.4/work/mozilla/dist/lib -lplds4 -lplc4 
-lnspr4 -lpthread -ldl  -L../../../dist/lib -lxpcom_compat  
-Wl,--version-script 
-Wl,../../../build/unix/gnu-ld-scripts/components-version-script -Wl,-Bsymbolic 
-ldl -lm 
chmod +x libxpcom_compat_c.so 
strip libxpcom_compat_c.so 
/var/tmp/portage/mozilla-firefox-1.0.4/work/mozilla/config/nsinstall -R -m 755 
libxpcom_compat_c.so ../../../dist/gre/components 
../../../dist/bin/elf-dynstr-gc ../../../dist/gre/components/libxpcom_compat_c.so 
Only 32bit ELF files supported 
gmake[3]: *** [libs] Error 1 
gmake[3]: Leaving directory 
`/var/tmp/portage/mozilla-firefox-1.0.4/work/mozilla/xpcom/obsolete/component' 
gmake[2]: *** [libs] Error 2 
gmake[2]: Leaving directory 
`/var/tmp/portage/mozilla-firefox-1.0.4/work/mozilla/xpcom/obsolete' 
 

Reproducible: Always
Steps to Reproduce:
1.emerge mozilla-firefox 
2. 
3. 
 



Portage 2.0.51.22-r1 (default-linux/x86/2005.0, gcc-3.4.3-20050110, 
glibc-2.3.5-r0, 2.6.11-gentoo-r9 x86_64) 
================================================================= 
System uname: 2.6.11-gentoo-r9 x86_64 AMD Athlon(tm) 64 Processor 3400+ 
Gentoo Base System version 1.6.11 
dev-lang/python:     2.3.5 
sys-apps/sandbox:    1.2.8 
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-r8 
sys-devel/libtool:   1.5.16 
virtual/os-headers:  2.6.11 
ACCEPT_KEYWORDS="x86 ~amd64 ~x86" 
AUTOCLEAN="yes" 
CBUILD="x86_64-pc-linux-gnu" 
CFLAGS="-march=athlon64 -O3 -pipe -fomit-frame-pointer -fPIC" 
CHOST="x86_64-pc-linux-gnu" 
CONFIG_PROTECT="/etc /usr/kde/2/share/config /usr/kde/3/share/config /usr/share/config /var/qmail/control" 
CONFIG_PROTECT_MASK="/etc/gconf /etc/env.d" 
CXXFLAGS="-march=athlon64 -O3 -pipe -fomit-frame-pointer -fPIC" 
DISTDIR="/usr/portage/distfiles" 
FEATURES="autoaddcvs autoconfig distlocks sandbox sfperms strict" 
GENTOO_MIRRORS="http://distfiles.gentoo.org 
http://distro.ibiblio.org/pub/Linux/distributions/gentoo" 
MAKEOPTS="-j2" 
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 3dnow X alsa apm arts avi berkdb bitmap-fonts bzlib cdparanoia cdr 
crypt cups curl directfb divx4linux dvd dvdr dvdread emboss encode esd fam 
ffmpeg flac foomaticdb fortran gd gdbm gif gnome gphoto2 gpm gstreamer gtk gtk2 
imagemagick imlib ipv6 java javadoc jikes jpeg junit kde kdeenablefinal ldap 
libg++ libwww lm_sensors mad matroska mikmod mmx motif mp3 mpeg msn mysql nas 
ncurses nls nptl ogg oggvorbis openal opengl oss pam pdflib perl png postgres 
python qt quicktime readline samba sasl sdl slp spell ssl svg tcltk tcpd theora 
tiff truetype truetype-fonts type1-fonts usb v4l vcd videos vorbis xerces xine 
xinerama xml xml2 xmlrpc xmms xpm xv xvid yahoo zlib userland_GNU kernel_linux 
elibc_glibc" 
Unset:  ASFLAGS, CTARGET, LANG, LC_ALL, LDFLAGS, LINGUAS
Comment 1 demian 2005-06-09 02:26:49 UTC
fixed the problem already. problem was with the profile i was using. i was 
using the x86 profile and not the amd64. switching to amd64 profile fixed 
everything. got the solution from bug#95420.