Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 126297 - mozilla/gecko-sdk fails to compile with sys-devel/gcc-4.1.0
Summary: mozilla/gecko-sdk fails to compile with sys-devel/gcc-4.1.0
Status: RESOLVED DUPLICATE of bug 127075
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] GCC Porting (show other bugs)
Hardware: All Linux
: High normal (vote)
Assignee: Mozilla Gentoo Team
URL:
Whiteboard:
Keywords:
: 130877 (view as bug list)
Depends on:
Blocks: 117482
  Show dependency tree
 
Reported: 2006-03-15 05:30 UTC by Avuton Olrich
Modified: 2006-04-22 13:13 UTC (History)
4 users (show)

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Avuton Olrich 2006-03-15 05:30:37 UTC
mozilla/gecko-sdk fails to compile with sys-devel/gcc-4.1.0

x86_64-pc-linux-gnu-g++ -o TestOpen.o -c -DOSTYPE=\"Linux2.6\" -DOSARCH=\"Linux\"  -I../../dist/include/xpcom -I../../dist/include/string -I../../dist/include/necko -I../../dist/include/pref -I../../dist/include/util -I../../dist/include/test_necko -I../../dist/include -I/var/tmp/portage/mozilla-1.7.12-r2/work/mozilla/dist/include/nspr        -fPIC  -DGENTOO_NSPLUGINS_DIR=\"/usr/lib64/nsplugins\" -DGENTOO_NSBROWSER_PLUGINS_DIR=\"/usr/lib64/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 -pipe -march=k8 -fPIC -Wno-return-type -w -fshort-wchar -pthread -pipe  -DDEBUG -D_DEBUG -DDEBUG_portage -DTRACING -g -fno-inline -O1  -DGENTOO_NSPLUGINS_DIR=\"/usr/lib64/nsplugins\" -DGENTOO_NSBROWSER_PLUGINS_DIR=\"/usr/lib64/nsbrowser/plugins\"  -DMOZILLA_CLIENT -include ../../mozilla-config.h -Wp,-MD,.deps/TestOpen.pp TestOpen.cpp
TestIOThreads.cpp: In function 'void* HandleEvent(PLEvent*)':
TestIOThreads.cpp:53: error: cast from 'void*' to 'int' loses precision
gmake[3]: *** [TestIOThreads.o] Error 1
gmake[3]: *** Waiting for unfinished jobs....
gmake[3]: Leaving directory `/var/tmp/portage/mozilla-1.7.12-r2/work/mozilla/netwerk/test'
gmake[2]: *** [libs] Error 2
gmake[2]: Leaving directory `/var/tmp/portage/mozilla-1.7.12-r2/work/mozilla/netwerk'
gmake[1]: *** [tier_9] Error 2
gmake[1]: Leaving directory `/var/tmp/portage/mozilla-1.7.12-r2/work/mozilla'
make: *** [default] Error 2

emerge --info:
Portage 2.1_pre6-r2 (!/usr/portage/profiles/default-linux/amd64/2006.0, gcc-4.0.2, glibc-2.4-r0, 2.6.16-rc6 x86_64)
=================================================================
System uname: 2.6.16-rc6 x86_64 AMD Athlon(tm) 64 X2 Dual Core Processor 4200+
Gentoo Base System version 1.12.0_pre16
distcc[17089] (dcc_mkdir) ERROR: mkdir /var/tmp/portage/.distcc//state failed: No such file or directory [disabled]
dev-lang/python:     2.3.5, 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-r2
sys-devel/libtool:   1.5.22
virtual/os-headers:  2.6.11-r3
ACCEPT_KEYWORDS="amd64 ~amd64"
AUTOCLEAN="yes"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-pipe -O2 -march=k8"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/kde/2/share/config /usr/kde/3.5/env /usr/kde/3.5/share/config /usr/kde/3.5/shutdown /usr/kde/3/share/config /usr/share/X11/xkb /usr/share/config /var/qmail/control"
CONFIG_PROTECT_MASK="/etc/gconf /etc/revdep-rebuild /etc/terminfo /etc/env.d"
CXXFLAGS="-pipe -O2 -march=k8"
DISTDIR="/usr/distfiles"
FEATURES="autoconfig digest distlocks metadata-transfer nostrip sandbox sfperms strict userpriv usersandbox"
GENTOO_MIRRORS="http://distfiles.gentoo.org http://distro.ibiblio.org/pub/linux/distributions/gentoo"
MAKEOPTS="-j3"
PKGDIR="/usr/portage/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/mnt/shapeshifter/portage"
PORTDIR_OVERLAY="/usr/local/portage"
SYNC="rsync://rsync.gentoo.org/gentoo-portage"
USE="amd64 64bit 7zip X a52 aac acpi aim alsa ao apache2 audiofile avi bash-completion berkdb bitmap-fonts bzip2 c++ cairo calendar cddb cdparanoia cli clock-screen crypt css ctype cups dba dbus debug dri dvd dvdr eds encode expat ext-png ext-zlib fam fastbuild ffmpeg firefox flac foomaticdb force-cgi-redirect fortran ftp gcj gd gdb gif glut glx gmail gpm grammar gstreamer gtalk gzip hal id3 image imlib imlib2 input_devices_keyboard input_devices_mouse java javascript jikes joystick jpeg jpeg2k kde key-screen lame libsamplerate linuxkeys linuxthreads-tls live lzw lzw-tiff memlimit mmap mouse mozilla mozsvg mp3 mpeg mpeg2 mplayer ncurses net nfs nntp no-old-linux nptl nptlonly nvidia objc offensive ogg opengl openssh oscar pam pcre pdf pdflib perl png posix python qt quicktime rar readline real reiser4 reiserfs rss rtc scp screen sdl search-screen session simplexml smp soap sockets speedo speex spell spl ssl svg svgz symlink sysfs syslog szip t1lib theora threads tiff tokenizer truetype truetype-fonts type1 type1-fonts udev unicode usb utf8 video_cards_nv video_cards_nvidia vim vim-with-x web wma wma123 wmf wordperfect xinerama xml xpm xrandr xscreensaver xsl xv xvmc zip zlib elibc_glibc kernel_linux userland_GNU"
Unset:  ASFLAGS, CTARGET, EMERGE_DEFAULT_OPTS, LANG, LC_ALL, LDFLAGS, LINGUAS
Comment 1 Ryan Hill (RETIRED) gentoo-dev 2006-03-18 17:38:41 UTC
this error message looks like it's from mozilla-1.7.12-r2.  i can't reproduce.  are you using any other USE flags than the one's in your make.conf (ie. package.use)?
Comment 2 Avuton Olrich 2006-03-19 02:10:17 UTC
I'm not using any more USE flags, are you using a 64 bit platform and testing with these use flags?
Comment 3 Ben 2006-03-19 11:42:28 UTC
I have a nother error when compiling gecko-sdk-1.7.12-r1 with gcc-4.1.0
I tried unsetting all CFLAGS and even makeopts to -j1 but allways get the same error. Anybody seen this ?

i686-pc-linux-gnu-g++ -o nsStackFrameUnix.o -c -DOSTYPE=\"Linux2.6\" -DOSARCH=\"Linux\" -D_IMPL_NS_COM  -I../../dist/include/string -I../../dist/include/xpcom -I../../dist/include -I/var/tmp/portage/gecko-sdk-1.7.12-r1/work/mozilla/dist/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 -Wno-return-type -w -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/nsStackFrameUnix.pp nsStackFrameUnix.cpp
nsStackFrameUnix.cpp: In function ‘void DumpStackToFile(FILE*)’:
nsStackFrameUnix.cpp:96: error: ‘JB_BP’ was not declared in this scope
gmake[3]: *** [nsStackFrameUnix.o] Error 1
gmake[3]: Leaving directory `/var/tmp/portage/gecko-sdk-1.7.12-r1/work/mozilla/xpcom/base'
gmake[2]: *** [libs] Error 2
gmake[2]: Leaving directory `/var/tmp/portage/gecko-sdk-1.7.12-r1/work/mozilla/xpcom'
gmake[1]: *** [tier_2] Error 2
gmake[1]: Leaving directory `/var/tmp/portage/gecko-sdk-1.7.12-r1/work/mozilla'
make: *** [default] Error 2


Portage 2.0.54 (default-linux/x86/2006.0, gcc-4.1.0, glibc-2.4-r1, 2.6.15-gentoo-r7 i686)
=================================================================
System uname: 2.6.15-gentoo-r7 i686 Intel(R) Pentium(R) M processor 1.60GHz
Gentoo Base System version 1.12.0_pre16
dev-lang/python:     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-r2
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="-O3 -march=pentium-m -mtune=pentium-m -fomit-frame-pointer -fforce-addr -pipe -fno-stack-protector -mmmx -msse2 -mfpmath=sse"
CHOST="i686-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/kde/2/share/config /usr/kde/3.5/env /usr/kde/3.5/share/config /usr/kde/3.5/shutdown /usr/kde/3/share/config /usr/lib/X11/xkb /usr/share/config /var/qmail/control"
CONFIG_PROTECT_MASK="/etc/gconf /etc/revdep-rebuild /etc/splash /etc/terminfo /etc/texmf/web2c /etc/env.d"
CXXFLAGS="-O3 -march=pentium-m -mtune=pentium-m -fomit-frame-pointer -fforce-addr -pipe -fno-stack-protector -mmmx -msse2 -mfpmath=sse"
DISTDIR="/usr/portage/distfiles"
FEATURES="autoconfig distlocks sandbox sfperms strict userpriv"
GENTOO_MIRRORS="ftp://ftp.uni-erlangen.de/pub/mirrors/gentoo ftp://ftp.wh2.tu-dresden.de/pub/mirrors/gentoo ftp://pandemonium.tiscali.de/pub/gentoo  ftp://sunsite.informatik.rwth-aachen.de/pub/Linux/gentoo"
LANG="en_US.utf8"
LC_ALL="de_DE.utf8"
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 3dnowext X a52 aac acl acpi alsa amd apache2 applet arts artswrappersuid asf async audiofile automount bash-completion bcmath bcp berkdb bitmap-fonts bjam bluetooth bonobo bzip2 cairo cardbus cdda cddb cdio cdparanoia cdr chroot cli crypt css ctype cups curl dba dbus dga dri dts dvd dvdr dvdread eds encode esd ethereal evo exif expat fam fastbuild fbcon ffmpeg firefox font-server foomaticdb force-cgi-redirect fortran ftp gcj gd gdbm gif glibc-omitfp glut glx gmp gnome gnome-print gnomecanvas gphoto2 gpm gstreamer gtk gtk2 gtkhtml guile hal hbci howl idn ieee1394 image imagemagick imap imlib input_devices_mouse input_devices_synaptics ipv6 irmc java jpeg jpeg2k junit kde kdepim lcms libg++ libwww linuxthreads-tls lm_sensors lzo mad memlimit mikmod mmx mmxext mng motif mozsvg mp3 mpeg mplayer mysql ncurses nfs nls no-old-linux nodrm nokia6600 nptl nptlonly nsplugin ocaml ogg opengl pam pcmcia pcre pda pdf perl pic pmu png posix python qt quicktime quotes rar rdesktop readline real reiserfs rtc samba sdl session simplexml soap sockets spell spl sqlite sqlite3 sse sse2 ssl subtitles svg sysfs tcltk tcpd tetex threads threadsonly tiff tokenizer truetype truetype-fonts type1-fonts udev unicode usb userlocales utf8 video_cards_ati video_cards_radeon vorbis win32codecs wxwindows xine xinerama xml xml2 xmlrpc xmms xosd xscreensaver xsl xv xvid xvmc zip zlib userland_GNU kernel_linux elibc_glibc"
Unset:  ASFLAGS, CTARGET, LDFLAGS, LINGUAS
Comment 4 Ryan Hill (RETIRED) gentoo-dev 2006-03-19 12:47:11 UTC
(In reply to comment #3)
> I have a nother error when compiling gecko-sdk-1.7.12-r1 with gcc-4.1.0
> I tried unsetting all CFLAGS and even makeopts to -j1 but allways get the same
> error. Anybody seen this ?

that's an error caused by glibc-2.4.  should be patched in -r2.

(In reply to comment #2)
> I'm not using any more USE flags, are you using a 64 bit platform and testing
> with these use flags?

I'll try on x86_64.  This doesn't change the fact that the error is from mozilla, not gecko-sdk.

Comment 5 Avuton Olrich 2006-03-19 14:46:33 UTC
(In reply to comment #4)
|I'll try on x86_64.  This doesn't change the fact that the error is from
|mozilla, not gecko-sdk.

Not true, I have duplicated with both gecko-sdk and mozilla, same exact error.
Comment 6 Jory A. Pratt 2006-03-19 16:01:00 UTC
Already fixed in -r2
Comment 7 Avuton Olrich 2006-04-19 09:44:42 UTC
Not fixed, I just got the _same_exact_ error again.
Comment 8 Jory A. Pratt 2006-04-22 13:11:09 UTC
*** Bug 130877 has been marked as a duplicate of this bug. ***
Comment 9 Jory A. Pratt 2006-04-22 13:13:45 UTC

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