Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 25295 - g++ Internal error compiling Mozilla
Summary: g++ Internal error compiling Mozilla
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: x86 Linux
: High critical (vote)
Assignee: Mozilla Gentoo Team
URL:
Whiteboard:
Keywords:
: 25823 (view as bug list)
Depends on:
Blocks:
 
Reported: 2003-07-25 19:24 UTC by Carl A. Dunham
Modified: 2004-02-15 09:39 UTC (History)
1 user (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 Carl A. Dunham 2003-07-25 19:24:03 UTC
Last several lines of "emerge -u mozilla": 
 
g++ -o nsHTMLEditorStyle.o -c -DOSTYPE=\"Linux2.4\" -DOSARCH=\"Linux\"  
-I../../../dist/include/xpcom -I../../../dist/include/string -I../../../dist/include/dom 
-I../../../dist/include/layout -I../../../dist/include/locale -I../../../dist/include/unicharutil 
-I../../../dist/include/content -I../../../dist/include/txmgr -I../../../dist/include/htmlparser 
-I../../../dist/include/necko -I../../../dist/include/pref -I../../../dist/include/gfx 
-I../../../dist/include/widget -I../../../dist/include/view -I../../../dist/include/editor -I../../../dist/include 
-I/var/tmp/portage/mozilla-1.4-r2/work/mozilla/dist/include/nspr      -I../../../editor/libeditor/base 
-I../../../editor/libeditor/text -I/usr/X11R6/include   -fPIC  -I/usr/X11R6/include -fno-rtti 
-fno-exceptions -Wall -Wconversion -Wpointer-arith -Wcast-align -Woverloaded-virtual -Wsynth 
-Wno-ctor-dtor-privacy -Wno-long-long -mcpu=k6 -march=k6 -pipe -Wno-deprecated 
-fshort-wchar -pthread -pipe  -DNDEBUG -DTRIMMED -ffunction-sections -O2  
-I/usr/X11R6/include -DMOZILLA_CLIENT -include ../../../mozilla-config.h 
-Wp,-MD,.deps/nsHTMLEditorStyle.pp nsHTMLEditorStyle.cpp 
nsHTMLEditorStyle.cpp: In member function `nsresult 
   nsHTMLEditor::SplitStyleAboveRange(nsIDOMRange*, nsIAtom*, const 
   nsAString*)': 
nsHTMLEditorStyle.cpp:577: warning: unused variable `PRBool sameNode' 
nsHTMLEditRules.cpp 
g++ -o nsHTMLEditRules.o -c -DOSTYPE=\"Linux2.4\" -DOSARCH=\"Linux\"  
-I../../../dist/include/xpcom -I../../../dist/include/string -I../../../dist/include/dom 
-I../../../dist/include/layout -I../../../dist/include/locale -I../../../dist/include/unicharutil 
-I../../../dist/include/content -I../../../dist/include/txmgr -I../../../dist/include/htmlparser 
-I../../../dist/include/necko -I../../../dist/include/pref -I../../../dist/include/gfx 
-I../../../dist/include/widget -I../../../dist/include/view -I../../../dist/include/editor -I../../../dist/include 
-I/var/tmp/portage/mozilla-1.4-r2/work/mozilla/dist/include/nspr      -I../../../editor/libeditor/base 
-I../../../editor/libeditor/text -I/usr/X11R6/include   -fPIC  -I/usr/X11R6/include -fno-rtti 
-fno-exceptions -Wall -Wconversion -Wpointer-arith -Wcast-align -Woverloaded-virtual -Wsynth 
-Wno-ctor-dtor-privacy -Wno-long-long -mcpu=k6 -march=k6 -pipe -Wno-deprecated 
-fshort-wchar -pthread -pipe  -DNDEBUG -DTRIMMED -ffunction-sections -O2  
-I/usr/X11R6/include -DMOZILLA_CLIENT -include ../../../mozilla-config.h 
-Wp,-MD,.deps/nsHTMLEditRules.pp nsHTMLEditRules.cpp 
g++: Internal error: Terminated (program cc1plus) 
Please submit a full bug report. 
See <URL:http://bugs.gentoo.org/> for instructions. 
make[4]: *** [nsHTMLEditor.o] Error 1 
make[4]: *** Deleting file `nsHTMLEditor.o' 
make[4]: *** Waiting for unfinished jobs.... 
{standard input}: Assembler messages: 
{standard input}:32290: Warning: end of file not at end of a line; newline inserted 
{standard input}:32353: Error: unrecognized symbol type "" 
make[4]: Leaving directory `/var/tmp/portage/mozilla-1.4-r2/work/mozilla/editor/libeditor/html' 
make[3]: *** [libs] Error 2 
make[3]: Leaving directory `/var/tmp/portage/mozilla-1.4-r2/work/mozilla/editor/libeditor' 
make[2]: *** [libs] Error 2 
make[2]: Leaving directory `/var/tmp/portage/mozilla-1.4-r2/work/mozilla/editor' 
make[1]: *** [tier_9] Error 2 
make[1]: Leaving directory `/var/tmp/portage/mozilla-1.4-r2/work/mozilla' 
make: *** [default] Error 2 
 
!!! ERROR: net-www/mozilla-1.4-r2 failed. 
!!! Function src_compile, Line 349, Exitcode 2 
!!! (no error message) 
 

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



output from emerge info: 
 
Portage 2.0.48-r7 (default-x86-1.4, gcc-3.2.3, glibc-2.2.5-r2,2.3.2-r1) 
================================================================= 
System uname: 2.4.20-xfs-r3 i586 AMD-K6(tm) 3D processor 
GENTOO_MIRRORS="ftp://csociety-ftp.ecn.purdue.edu/pub/gentoo/ 
rsync://csociety-ftp.ecn.purdue.edu/pub/gentoo/ ftp://ftp.ussg.iu.edu/pub/linux/gentoo 
http://csociety-ftp.ecn.purdue.edu/pub/gentoo/ ftp://ftp.gtlib.cc.gatech.edu/pub/gentoo" 
CONFIG_PROTECT="/etc /var/qmail/control /usr/share/config /usr/kde/2/share/config 
/usr/kde/3/share/config 
/var/bind:/usr/X11R6/lib/X11/xkb:/usr/kde/3.1/share/config:/usr/share/config" 
CONFIG_PROTECT_MASK="/etc/gconf /etc/env.d" 
PORTDIR="/usr/portage" 
DISTDIR="/usr/portage/distfiles" 
PKGDIR="/usr/portage/packages" 
PORTAGE_TMPDIR="/var/tmp" 
PORTDIR_OVERLAY="" 
USE="x86 oss 3dnow apm avi crypt cups encode foomaticdb gif jpeg libg++ mad mikmod mmx 
mpeg ncurses nls pdflib png quicktime spell truetype xml2 xmms xv zlib gdbm berkdb slang readline 
arts bonobo svga tcltk java guile mysql X sdl gpm tcpd pam libwww ssl perl python esd imlib 
oggvorbis gnome gtk qt kde motif opengl mozilla aalib apache2 directfb fbcon innodb 
moznocompose moznoirc moznomail mozxmlterm sll" 
COMPILER="gcc3" 
CHOST="i586-pc-linux-gnu" 
CFLAGS="-mcpu=k6 -march=k6 -O3 -pipe" 
CXXFLAGS="-O2 -mcpu=i686 -pipe" 
ACCEPT_KEYWORDS="x86 ~x86" 
MAKEOPTS="-j2" 
AUTOCLEAN="yes" 
SYNC="rsync://rsync.us.gentoo.org/gentoo-portage" 
FEATURES="sandbox ccache"
Comment 1 Martin Holzer (RETIRED) gentoo-dev 2003-07-26 02:45:47 UTC
try use i586 instead of k6
Comment 2 Carl A. Dunham 2003-07-26 21:16:13 UTC
It worked with just -O2, so it must be one of those k6 bugs (arch or cpu?). However, it 
shouldn't crash like this. Is this an upstream bug? It very specifically told me to file a bug here. 
When gcc tells me to do something, I obey. :-) 
Comment 3 Brad Laue (RETIRED) gentoo-dev 2003-07-27 00:37:02 UTC
cat /proc/cpuinfo, por favor
Comment 4 Todd 2003-07-27 06:20:26 UTC
I get a similar error compiling both mozilla-firebird and dc-gui ever since the last upgrade in gcc.  This is on a Thunderbird proc.  Additional info below... I can post the errors from dc-gui if anyone would like.  But mozilla-firebird output is below.
CFLAGS="-O3 -mcpu=athlon-tbird -pipe"

.h -Wp,-MD,.deps/nsPluginsDirUnix.pp nsPluginsDirUnix.cpp
{standard input}: Assembler messages:
{standard input}:34350: Warning: end of file not at end of a line; newline inserted
{standard input}:34422: Warning: missing operand; zero assumed
g++: Internal error: Terminated (program cc1plus)
Please submit a full bug report.
See <URL:http://bugs.gentoo.org/> for instructions.
gmake[3]: *** [nsPluginHostImpl.o] Error 1
gmake[3]: *** Deleting file `nsPluginHostImpl.o'
gmake[3]: *** Waiting for unfinished jobs....
{standard input}:34386: Error: undefined symbol `.LLSDACSE3117' in operation
gmake[3]: Leaving directory `/var/tmp/portage/mozilla-firebird-0.6-r7/work/mozilla/modules/plugin/base/src'
gmake[2]: *** [libs] Error 2
gmake[2]: Leaving directory `/var/tmp/portage/mozilla-firebird-0.6-r7/work/mozilla/modules/plugin'
gmake[1]: *** [tier_9] Error 2
gmake[1]: Leaving directory `/var/tmp/portage/mozilla-firebird-0.6-r7/work/mozilla'
make: *** [default] Error 2

angel root # cat /proc/cpuinfo
processor       : 0
vendor_id       : AuthenticAMD
cpu family      : 6
model           : 4
model name      : AMD Athlon(tm) Processor
stepping        : 2
cpu MHz         : 1008.997
cache size      : 256 KB
fdiv_bug        : no
hlt_bug         : no
f00f_bug        : no
coma_bug        : no
fpu             : yes
fpu_exception   : yes
cpuid level     : 1
wp              : yes
flags           : fpu vme de tsc msr pae mce cx8 sep mtrr pge mca cmov pat pse36 mmx fxsr syscall mmxext 3dnowext 3dnow
bogomips        : 2011.95
Comment 5 Carl A. Dunham 2003-07-27 09:20:39 UTC
# cat /proc/cpuinfo 
processor       : 0 
vendor_id       : AuthenticAMD 
cpu family      : 5 
model           : 8 
model name      : AMD-K6(tm) 3D processor 
stepping        : 12 
cpu MHz         : 400.118 
cache size      : 64 KB 
fdiv_bug        : no 
hlt_bug         : no 
f00f_bug        : no 
coma_bug        : no 
fpu             : yes 
fpu_exception   : yes 
cpuid level     : 1 
wp              : yes 
flags           : fpu vme de pse tsc msr mce cx8 pge mmx syscall 3dnow k6_mtrr 
bogomips        : 797.90 
 
 
Comment 6 Brad Laue (RETIRED) gentoo-dev 2003-07-27 18:26:49 UTC
Sigh. Trying to contact GCC people. Are you using colorgcc by any chance?
Comment 7 Carl A. Dunham 2003-07-27 19:44:30 UTC
Not using colorgcc, no. 
 
Another bit of information, changing CFLAGS to: 
 
CFLAGS="-mcpu=k6-2 -O3 -pipe" 
 
resulted in a successful build. Recall that it was previously set to: 
 
CFLAGS="-mcpu=k6 -march=k6 -O3 -pipe" 
 
Hope this helps... 
Comment 8 Todd 2003-07-27 22:24:25 UTC
I am not using colorgcc either.
Comment 9 Gerald Normandin (RETIRED) 2003-07-28 06:58:18 UTC
OK, I had a similar issue here's what i did to fix it. 
I did emerge -UDp mozilla, and to my astonishment saw that gnuconfig-20030708 was on the list of things to merge. I merge gnuconfig.. then mozilla... and everything went smoothly from here. I hope this helps you guys, as this problem is quite odd.
Comment 10 Andrew Cooks (RETIRED) gentoo-dev 2003-11-24 07:33:55 UTC
Maybe the ebuild can depend on a recent version of gnuconfig?
Comment 11 Martin Holzer (RETIRED) gentoo-dev 2003-12-07 16:50:49 UTC
*** Bug 25823 has been marked as a duplicate of this bug. ***
Comment 12 Martin Holzer (RETIRED) gentoo-dev 2003-12-07 16:51:15 UTC
is this still an issue since 1.5 is stable now ?
Comment 13 Derrick Coetzee 2003-12-27 09:47:33 UTC
I had a similar problem where I got internal compiler error messages from g++ during compiles of Qt, Mozilla, and kdelibs. Changing compile flags to be more conservative didn't seem to help, but upgrading to the unstable version of gcc seemed to help, and so did booting from the LiveCD and chroot'ing.
Comment 14 Brad Laue (RETIRED) gentoo-dev 2004-02-15 09:39:22 UTC
GCC/incorrect CFLAGS issue, apparently no longer an issue. Reopen if so.