Compilation of /mozilla/xpcom/tests/ fails. Seems to be a library/header related problem. Excerprt of compiler/linker error messages 8snipped for brevity): `nsCOMPtr<IFoo>::StartAssignment(void)': /var/tmp/portage/mozilla-1.2.1-r4/work/mozilla/xpcom/tests/../../ dist/include/xpcom/nsCOMPtr.h: undefined reference to `endl(ostream &)' TestCOMPtr.o(.text+0x4e):/var/tmp/portage/mozilla-1.2.1-r4/work/mozilla/xpcom/tests/../../ dist/include/xpcom/nsCOMPtr.h: undefined reference to `cout' TestCOMPtr.o(.text+0x54):/var/tmp/portage/mozilla-1.2.1-r4/work/mozilla/xpcom/tests/../../ dist/include/xpcom/nsCOMPtr.h: undefined reference to `ostream::operator<<(char const *)' TestCOMPtr.o(.text+0x5d):/var/tmp/portage/mozilla-1.2.1-r4/work/mozilla/xpcom/tests/../../ dist/include/xpcom/nsCOMPtr.h: undefined reference to `ostream::operator<<(unsigned int)' [snip repetitive errors] collect2: ld returned 1 exit status make[3]: *** [TestCOMPtr] Error 1 make[3]: *** Waiting for unfinished jobs.... make[3]: Leaving directory `/var/tmp/portage/mozilla-1.2.1-r4/work/mozilla/xpcom/tests' make[2]: *** [libs] Error 2 make[2]: Leaving directory `/var/tmp/portage/mozilla-1.2.1-r4/work/mozilla/xpcom' make[1]: *** [tier_2] Error 2 make[1]: Leaving directory `/var/tmp/portage/mozilla-1.2.1-r4/work/mozilla' make: *** [default] Error 2 !!! ERROR: net-www/mozilla-1.2.1-r4 failed. !!! Function src_compile, Line 351, Exitcode 2 !!! (no error message)
Compiling with gcc-3.2.1 on a Duron 1200MHz I get the following error: gcc -o pngwutil.o -c -DOSTYPE=\"Linux2.4\" -DOSARCH=\"Linux\" -DOJI -I. -I../../../dist/include/png -I../../../dist/include -I/var/tmp/portage/mozilla-1.2.1-r4/work/mozilla/dist/include/nspr -I/usr/X11R6/include -fPIC -I/usr/X11R6/include -W -Wno-unused -Wpointer-arith -Wcast-align -Wno-long-long -march=athlon -mcpu=athlon -O3 -pipe -pthread -pipe -DNDEBUG -DTRIMMED -ffunction-sections -O2 -I/usr/X11R6/include -include ../../../mozilla-config.h -DMOZILLA_CLIENT -Wp,-MD,.deps/pngwutil.pp pngwutil.c pngrtran.c: In function `png_do_expand': pngrtran.c:3797: internal error: Segmentation fault Please submit a full bug report, with preprocessed source if appropriate. See <URL:http://www.gnu.org/software/gcc/bugs.html> for instructions. make[3]: *** [pngrtran.o] Error 1 make[3]: Leaving directory `/var/tmp/portage/mozilla-1.2.1-r4/work/mozilla/modules/libimg/png'
1) Output of 'emerge info' attached please. 2) Same box ? If not, then specify, and add 'emerge info' for the second box as well. 3) If gcc segfaults, it is usually (no relevance in order): a) Just what it said, a bug with gcc. b) Hardware related (memory most of the times). If you havent yet, just run memtest86 to verify .... c) While still bug related, a bit easier to try and detect ... It could be arch optimize related. Try with different CFLAGS: # CFLAGS="-march=i686 -O2 -pipe" CXXFLAGS="-march=i686 -O2 -pipe" \ emerge mozilla For both cases, please try to include a more complete log. Try to list what version of diff packages of tool chain (gcc, binutils, glibc, etc). Thanks.
Optimization problems. "-march=i686 -O2 -pipe" worked while "-march=i686 -O2" didn't. Strangely enough it now compiles with "-march=i686 -O3 -pipe" as well, which it didn't on first try.