Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
[SOLVED] mozilla-firefox-1.5.0.1-r1 and gcc-4.0.2-r3
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Unsupported Software
View previous topic :: View next topic  
Author Message
flowolf
Tux's lil' helper
Tux's lil' helper


Joined: 22 Jun 2003
Posts: 143

PostPosted: Sat Feb 25, 2006 9:15 am    Post subject: [SOLVED] mozilla-firefox-1.5.0.1-r1 and gcc-4.0.2-r3 Reply with quote

I'm building a new Gentoo system using gcc-4.0.2-r3 and I got the first compilation problem on firefox:
Code:
i686-pc-linux-gnu-g++ -o xptiZipLoader.o -c -I../../../../dist/include/system_wrappers -include ../../../../config/gcc_hidden.h -DMOZILLA_INTERNAL_API -DOSTYPE=\"Linux2.6\" -DOSARCH=\"Linux\" -DBUILD_ID=2006022509 -DEXPORT_XPTI_API -DEXPORT_XPT_API -D_IMPL_NS_COM -D_IMPL_NS_BASE -I./../../../ds -I../../../../dist/include/string -I../../../../dist/include/xpcom -I../../../../dist/include -I/usr/include/nspr       -fPIC  -DGENTOO_NSPLUGINS_DIR=\"/usr/lib/nsplugins\" -DGENTOO_NSBROWSER_PLUGINS_DIR=\"/usr/lib/nsbrowser/plugins\"  -fno-rtti -fno-handle-exceptions  -Wconversion -Wpointer-arith -Wcast-align -Woverloaded-virtual -Wsynth -Wno-ctor-dtor-privacy -Wno-non-virtual-dtor -Wno-long-long -march=pentium-m -pipe -Wno-return-type -w -freorder-blocks -fno-reorder-functions -fshort-wchar -pthread -pipe  -DNDEBUG -DTRIMMED -ffunction-sections -O2  -DGENTOO_NSPLUGINS_DIR=\"/usr/lib/nsplugins\" -DGENTOO_NSBROWSER_PLUGINS_DIR=\"/usr/lib/nsbrowser/plugins\"  -DMOZILLA_CLIENT -include ../../../../mozilla-config.h -Wp,-MD,.deps/xptiZipLoader.pp xptiZipLoader.cpp
rm -f libxptinfo.a
ar cr libxptinfo.a xptiFile.o xptiInterfaceInfo.o xptiInterfaceInfoManager.o xptiManifest.o xptiMisc.o xptiTypelibGuts.o xptiWorkingSet.o xptiZipItem.o xptiZipLoader.o
ranlib libxptinfo.a
/var/tmp/portage/mozilla-firefox-1.5.0.1-r1/work/mozilla/config/nsinstall -R -m 644 libxptinfo.a ../../../../dist/lib
gmake[5]: Leaving directory `/var/tmp/portage/mozilla-firefox-1.5.0.1-r1/work/mozilla/xpcom/reflect/xptinfo/src'
gmake[4]: Leaving directory `/var/tmp/portage/mozilla-firefox-1.5.0.1-r1/work/mozilla/xpcom/reflect/xptinfo'
gmake[4]: Entering directory `/var/tmp/portage/mozilla-firefox-1.5.0.1-r1/work/mozilla/xpcom/reflect/xptcall'
gmake[5]: Entering directory `/var/tmp/portage/mozilla-firefox-1.5.0.1-r1/work/mozilla/xpcom/reflect/xptcall/public'
gmake[5]: Leaving directory `/var/tmp/portage/mozilla-firefox-1.5.0.1-r1/work/mozilla/xpcom/reflect/xptcall/public'
gmake[5]: Entering directory `/var/tmp/portage/mozilla-firefox-1.5.0.1-r1/work/mozilla/xpcom/reflect/xptcall/src'
xptcall.cpp
i686-pc-linux-gnu-g++ -o xptcall.o -c -I../../../../dist/include/system_wrappers -include ../../../../config/gcc_hidden.h -DMOZILLA_INTERNAL_API -DOSTYPE=\"Linux2.6\" -DOSARCH=\"Linux\" -DBUILD_ID=2006022509 -DEXPORT_XPTC_API -D_IMPL_NS_COM -D_IMPL_NS_BASE   -I../../../../dist/include/xpcom -I../../../../dist/include -I/usr/include/nspr       -fPIC  -DGENTOO_NSPLUGINS_DIR=\"/usr/lib/nsplugins\" -DGENTOO_NSBROWSER_PLUGINS_DIR=\"/usr/lib/nsbrowser/plugins\"  -fno-rtti -fno-handle-exceptions  -Wconversion -Wpointer-arith -Wcast-align -Woverloaded-virtual -Wsynth -Wno-ctor-dtor-privacy -Wno-non-virtual-dtor -Wno-long-long -march=pentium-m -pipe -Wno-return-type -w -freorder-blocks -fno-reorder-functions -fshort-wchar -pthread -pipe  -DNDEBUG -DTRIMMED -ffunction-sections -O2  -DGENTOO_NSPLUGINS_DIR=\"/usr/lib/nsplugins\" -DGENTOO_NSBROWSER_PLUGINS_DIR=\"/usr/lib/nsbrowser/plugins\"  -DMOZILLA_CLIENT -include ../../../../mozilla-config.h -Wp,-MD,.deps/xptcall.pp xptcall.cpp
rm -f libxptcall.a
ar cr libxptcall.a xptcall.o
ranlib libxptcall.a
/var/tmp/portage/mozilla-firefox-1.5.0.1-r1/work/mozilla/config/nsinstall -R -m 644 libxptcall.a ../../../../dist/lib
gmake[6]: Entering directory `/var/tmp/portage/mozilla-firefox-1.5.0.1-r1/work/mozilla/xpcom/reflect/xptcall/src/md'
gmake[7]: Entering directory `/var/tmp/portage/mozilla-firefox-1.5.0.1-r1/work/mozilla/xpcom/reflect/xptcall/src/md/unix'
xptcinvoke_x86_64_linux.cpp
i686-pc-linux-gnu-g++ -o xptcinvoke_x86_64_linux.o -c -I../../../../../../dist/include/system_wrappers -include ../../../../../../config/gcc_hidden.h -DOSTYPE=\"Linux2.6\" -DOSARCH=\"Linux\" -DBUILD_ID=2006022509 -DEXPORT_XPTC_API   -I../../../../../../dist/include/xpcom -I../../../../../../dist/include -I/usr/include/nspr    -I../../../../../../dist/sdk/include -I./../..    -fPIC  -DGENTOO_NSPLUGINS_DIR=\"/usr/lib/nsplugins\" -DGENTOO_NSBROWSER_PLUGINS_DIR=\"/usr/lib/nsbrowser/plugins\"  -fno-rtti -fno-handle-exceptions  -Wconversion -Wpointer-arith -Wcast-align -Woverloaded-virtual -Wsynth -Wno-ctor-dtor-privacy -Wno-non-virtual-dtor -Wno-long-long -march=pentium-m -pipe -Wno-return-type -w -freorder-blocks -fno-reorder-functions -fshort-wchar -pthread -pipe  -DNDEBUG -DTRIMMED -ffunction-sections -O2  -DGENTOO_NSPLUGINS_DIR=\"/usr/lib/nsplugins\" -DGENTOO_NSBROWSER_PLUGINS_DIR=\"/usr/lib/nsbrowser/plugins\"  -DMOZILLA_CLIENT -include ../../../../../../mozilla-config.h -Wp,-MD,.deps/xptcinvoke_x86_64_linux.pp xptcinvoke_x86_64_linux.cpp
xptcstubs_x86_64_linux.cpp
i686-pc-linux-gnu-g++ -o xptcstubs_x86_64_linux.o -c -I../../../../../../dist/include/system_wrappers -include ../../../../../../config/gcc_hidden.h -DOSTYPE=\"Linux2.6\" -DOSARCH=\"Linux\" -DBUILD_ID=2006022509 -DEXPORT_XPTC_API   -I../../../../../../dist/include/xpcom -I../../../../../../dist/include -I/usr/include/nspr    -I../../../../../../dist/sdk/include -I./../..    -fPIC  -DGENTOO_NSPLUGINS_DIR=\"/usr/lib/nsplugins\" -DGENTOO_NSBROWSER_PLUGINS_DIR=\"/usr/lib/nsbrowser/plugins\"  -fno-rtti -fno-handle-exceptions  -Wconversion -Wpointer-arith -Wcast-align -Woverloaded-virtual -Wsynth -Wno-ctor-dtor-privacy -Wno-non-virtual-dtor -Wno-long-long -march=pentium-m -pipe -Wno-return-type -w -freorder-blocks -fno-reorder-functions -fshort-wchar -pthread -pipe  -DNDEBUG -DTRIMMED -ffunction-sections -O2  -DGENTOO_NSPLUGINS_DIR=\"/usr/lib/nsplugins\" -DGENTOO_NSBROWSER_PLUGINS_DIR=\"/usr/lib/nsbrowser/plugins\"  -DMOZILLA_CLIENT -include ../../../../../../mozilla-config.h -Wp,-MD,.deps/xptcstubs_x86_64_linux.pp xptcstubs_x86_64_linux.cpp
xptcinvoke_x86_64_linux.cpp: In function ‘nsresult XPTC_InvokeByIndex(nsISupports*, PRUint32, PRUint32, nsXPTCVariant*)’:
xptcinvoke_x86_64_linux.cpp:182: error: invalid register name for ‘a4’
xptcinvoke_x86_64_linux.cpp:183: error: invalid register name for ‘a5’
gmake[7]: *** [xptcinvoke_x86_64_linux.o] Error 1
gmake[7]: *** Waiting for unfinished jobs....
{standard input}: Assembler messages:
{standard input}:7: Error: bad register name `%rbp'
{standard input}:8: Error: bad register name `%rsp'
{standard input}:9: Error: bad register name `%rsp'
{standard input}:10: Error: bad register name `%rdi'
{standard input}:11: Error: bad register name `%rsi'
{standard input}:12: Error: bad register name `%rdx'
{standard input}:13: Error: bad register name `%rcx'
{standard input}:14: Error: bad register name `%r8'
{standard input}:15: Error: bad register name `%r9'
{standard input}:16: Error: bad register name `%rbp)'
{standard input}:17: Error: bad register name `%rbp)'
{standard input}:18: Error: bad register name `%rbp)'
{standard input}:19: Error: bad register name `%rbp)'
{standard input}:20: Error: bad register name `%rbp)'
{standard input}:21: Error: bad register name `%rbp)'
{standard input}:22: Error: bad register name `%rbp)'
{standard input}:23: Error: bad register name `%rbp)'
{standard input}:24: Error: bad register name `%rbp)'
{standard input}:25: Error: bad register name `%rbp)'
{standard input}:27: Error: bad register name `%rbp)'
gmake[7]: *** [xptcstubs_x86_64_linux.o] Error 1
gmake[7]: Leaving directory `/var/tmp/portage/mozilla-firefox-1.5.0.1-r1/work/mozilla/xpcom/reflect/xptcall/src/md/unix'
gmake[6]: *** [libs] Error 2
gmake[6]: Leaving directory `/var/tmp/portage/mozilla-firefox-1.5.0.1-r1/work/mozilla/xpcom/reflect/xptcall/src/md'
gmake[5]: *** [libs] Error 2
gmake[5]: Leaving directory `/var/tmp/portage/mozilla-firefox-1.5.0.1-r1/work/mozilla/xpcom/reflect/xptcall/src'
gmake[4]: *** [libs] Error 2
gmake[4]: Leaving directory `/var/tmp/portage/mozilla-firefox-1.5.0.1-r1/work/mozilla/xpcom/reflect/xptcall'
gmake[3]: *** [libs] Error 2
gmake[3]: Leaving directory `/var/tmp/portage/mozilla-firefox-1.5.0.1-r1/work/mozilla/xpcom/reflect'
gmake[2]: *** [libs] Error 2
gmake[2]: Leaving directory `/var/tmp/portage/mozilla-firefox-1.5.0.1-r1/work/mozilla/xpcom'
gmake[1]: *** [tier_2] Error 2
gmake[1]: Leaving directory `/var/tmp/portage/mozilla-firefox-1.5.0.1-r1/work/mozilla'
make: *** [default] Error 2

!!! ERROR: www-client/mozilla-firefox-1.5.0.1-r1 failed.
Call stack:
  ebuild.sh, line 1894:   Called dyn_compile
  ebuild.sh, line 941:   Called src_compile

!!! (no error message)
!!! If you need support, post the topmost build error, and the call stack if relevant.


Any way to fix this?
Bye!
_________________
Religions are like fireflies. They require darkness in order to shine.
Arthur Schopenhauer


Last edited by flowolf on Sat Feb 25, 2006 3:13 pm; edited 2 times in total
Back to top
View user's profile Send private message
nxsty
Veteran
Veteran


Joined: 23 Jun 2004
Posts: 1556
Location: .se

PostPosted: Sat Feb 25, 2006 9:20 am    Post subject: Reply with quote

What's your emerge --info? And why is this in "unsupported software"? :)
Back to top
View user's profile Send private message
flowolf
Tux's lil' helper
Tux's lil' helper


Joined: 22 Jun 2003
Posts: 143

PostPosted: Sat Feb 25, 2006 9:34 am    Post subject: Reply with quote

My emerge info:
Code:
nibiru / # emerge info
Portage 2.1_pre4-r1 (default-linux/x86/2005.1, gcc-4.0.2, glibc-2.3.6-r3, 2.6.15-gentoo-r5 x86_64)
=================================================================
System uname: 2.6.15-gentoo-r5 x86_64 AMD Athlon(tm) 64 Processor 3000+
Gentoo Base System version 1.12.0_pre16
dev-lang/python:     2.3.5-r2, 2.4.2-r1
sys-apps/sandbox:    1.2.17
sys-devel/autoconf:  2.13, 2.59-r7
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-r1
sys-devel/libtool:   1.5.22
virtual/os-headers:  2.6.11-r3
ACCEPT_KEYWORDS="x86 ~x86"
AUTOCLEAN="yes"
CBUILD="i686-pc-linux-gnu"
CFLAGS="-O2 -march=pentium-m -pipe -fomit-frame-pointer"
CHOST="i686-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/kde/2/share/config /usr/kde/3/share/config /usr/share/X11/xkb /usr/share/config /var/qmail/control"
CONFIG_PROTECT_MASK="/etc/gconf /etc/terminfo /etc/env.d"
CXXFLAGS="-O2 -march=pentium-m -pipe -fomit-frame-pointer"
DISTDIR="/usr/portage/distfiles"
FEATURES="autoconfig distlocks sandbox sfperms strict"
GENTOO_MIRRORS="http://pandemonium.tiscali.de/pub/gentoo"
LANG="en_US.UTF-8"
LC_ALL="en_US.UTF-8"
LINGUAS="en it"
MAKEOPTS="-j2"
PKGDIR="/usr/portage/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
SYNC="rsync://rsync.europe.gentoo.org/gentoo-portage"
USE="x86 7zip X a52 aac aalib acpi alsa apm asf avi berkdb bitmap-fonts bluetooth bonobo bzip2 cairo cdio cdparanoia cdr cdrom cgi crypt cups curl directfb dri dts dvd dvdread eds emboss encode expat fbcon ffmpeg firefox flac foomaticdb gd gdbm gif gimp glade glitz glx gnome gpm gstreamer gtk gtk2 gtkhtml gvim hal icq imlib input_devices_keyboard input_devices_mouse input_devices_synaptics ipod ipv6 irda jpeg libg++ libwww lighttpd live mad matroska mikmod mmx mono mp3 mpeg mplayer musepack mysql nautilus ncurses nfs nls nodrm nptl nptlonly ntfs ogg oggvorbis opengl pam pcmcia pcre pdflib perl php png ppds python qemu-fast quicktime rar readline real reiserfs ruby samba sdl speex spell sqlite sqlite3 sse sse2 ssl syslog tcpd theora tiff truetype truetype-fonts type1-fonts udev unicode usb userlocales utf8 video_cards_i810 vorbis wifi win32codecs xine xinerama xml xmlrpc xv xvid zlib elibc_glibc kernel_linux linguas_en linguas_it userland_GNU"
Unset:  ASFLAGS, CTARGET, EMERGE_DEFAULT_OPTS, LDFLAGS, PORTDIR_OVERLAY


Please note that this system is not active now, I'm building it using a chroot on my amd64 system.
And I putted this on "unsupported software" because searching for "gcc4" returns most of the threads on this forum.
_________________
Religions are like fireflies. They require darkness in order to shine.
Arthur Schopenhauer
Back to top
View user's profile Send private message
nxsty
Veteran
Veteran


Joined: 23 Jun 2004
Posts: 1556
Location: .se

PostPosted: Sat Feb 25, 2006 9:55 am    Post subject: Reply with quote

flowolf wrote:
My emerge info:
nibiru / # emerge info
Portage 2.1_pre4-r1 (default-linux/x86/2005.1, gcc-4.0.2, glibc-2.3.6-r3, 2.6.15-gentoo-r5 x86_64)
=================================================================
System uname: 2.6.15-gentoo-r5 x86_64 AMD Athlon(tm) 64 Processor 3000+
Gentoo Base System version 1.12.0_pre16
dev-lang/python: 2.3.5-r2, 2.4.2-r1
sys-apps/sandbox: 1.2.17
sys-devel/autoconf: 2.13, 2.59-r7
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-r1
sys-devel/libtool: 1.5.22
virtual/os-headers: 2.6.11-r3
ACCEPT_KEYWORDS="x86 ~x86"
AUTOCLEAN="yes"
CBUILD="i686-pc-linux-gnu"
CFLAGS="-O2 -march=pentium-m -pipe -fomit-frame-pointer"
CHOST="i686-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/kde/2/share/config /usr/kde/3/share/config /usr/share/X11/xkb /usr/share/config /var/qmail/control"
CONFIG_PROTECT_MASK="/etc/gconf /etc/terminfo /etc/env.d"
CXXFLAGS="-O2 -march=pentium-m -pipe -fomit-frame-pointer"
DISTDIR="/usr/portage/distfiles"
FEATURES="autoconfig distlocks sandbox sfperms strict"
GENTOO_MIRRORS="http://pandemonium.tiscali.de/pub/gentoo"
LANG="en_US.UTF-8"
LC_ALL="en_US.UTF-8"
LINGUAS="en it"
MAKEOPTS="-j2"
PKGDIR="/usr/portage/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
SYNC="rsync://rsync.europe.gentoo.org/gentoo-portage"
USE="x86 7zip X a52 aac aalib acpi alsa apm asf avi berkdb bitmap-fonts bluetooth bonobo bzip2 cairo cdio cdparanoia cdr cdrom cgi crypt cups curl directfb dri dts dvd dvdread eds emboss encode expat fbcon ffmpeg firefox flac foomaticdb gd gdbm gif gimp glade glitz glx gnome gpm gstreamer gtk gtk2 gtkhtml gvim hal icq imlib input_devices_keyboard input_devices_mouse input_devices_synaptics ipod ipv6 irda jpeg libg++ libwww lighttpd live mad matroska mikmod mmx mono mp3 mpeg mplayer musepack mysql nautilus ncurses nfs nls nodrm nptl nptlonly ntfs ogg oggvorbis opengl pam pcmcia pcre pdflib perl php png ppds python qemu-fast quicktime rar readline real reiserfs ruby samba sdl speex spell sqlite sqlite3 sse sse2 ssl syslog tcpd theora tiff truetype truetype-fonts type1-fonts udev unicode usb userlocales utf8 video_cards_i810 vorbis wifi win32codecs xine xinerama xml xmlrpc xv xvid zlib elibc_glibc kernel_linux linguas_en linguas_it userland_GNU"
Unset: ASFLAGS, CTARGET, EMERGE_DEFAULT_OPTS, LDFLAGS, PORTDIR_OVERLAY


I'm a bit confused about your emerge --info. The system uname reports that you're on x86_64 and firefox is obviously trying to build for that but your CHOST is i686 and your ACCEPT_KEYWORDS and profile are x86. Are you trying mix arches perhaps? And why do you have -march=pentium-m on a amd64?
Back to top
View user's profile Send private message
flowolf
Tux's lil' helper
Tux's lil' helper


Joined: 22 Jun 2003
Posts: 143

PostPosted: Sat Feb 25, 2006 10:11 am    Post subject: Reply with quote

flowolf wrote:
Please note that this system is not active now, I'm building it using a chroot on my amd64 system.


I know that my english is really bad (it isn't my main language). Let me explain using other words: I have an amd64 system and I'm going to get an x86 notebook so I have created a x86 chroot on my x86_64 system to prebuild the system that I will put on the notebook. Everything compiles fine on my x86 chroot, everything except firefox.
Bye.
_________________
Religions are like fireflies. They require darkness in order to shine.
Arthur Schopenhauer
Back to top
View user's profile Send private message
flowolf
Tux's lil' helper
Tux's lil' helper


Joined: 22 Jun 2003
Posts: 143

PostPosted: Sat Feb 25, 2006 12:37 pm    Post subject: Reply with quote

Same problem with sys-devel/binutils-2.16.91.0.6.
_________________
Religions are like fireflies. They require darkness in order to shine.
Arthur Schopenhauer
Back to top
View user's profile Send private message
nxsty
Veteran
Veteran


Joined: 23 Jun 2004
Posts: 1556
Location: .se

PostPosted: Sat Feb 25, 2006 1:55 pm    Post subject: Reply with quote

Try running "linux32 chroot". The fact that uname returns x86_64 instead of i686 might confuse applications.
Back to top
View user's profile Send private message
flowolf
Tux's lil' helper
Tux's lil' helper


Joined: 22 Jun 2003
Posts: 143

PostPosted: Sat Feb 25, 2006 3:12 pm    Post subject: Reply with quote

nxsty wrote:
Try running "linux32 chroot". The fact that uname returns x86_64 instead of i686 might confuse applications.


You are right, it now works :wink:
_________________
Religions are like fireflies. They require darkness in order to shine.
Arthur Schopenhauer
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Unsupported Software All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum