Gecko-sdk-1.7.8 fails to build with latest stable GCC (gcc-3.3.5.20050130-r1), error follows: gmake[3]: Entering directory `/var/tmp/portage/gecko-sdk-1.7.8/work/mozilla/xpcom/build' rm -f libxpcom.so i686-pc-linux-gnu-g++ -fno-rtti -fno-handle-exceptions -Wall -Wconversion -Wpointer-arith -Wcast-align -Woverloaded-virtual -Wsynth -Wno-ctor-dtor-privacy -Wno-non-virtual-dtor -Wno-long-long -march=athlon-xp -pipe -Wno-deprecated -Wno-return-type -w -fshort-wchar -pthread -pipe -DNDEBUG -DTRIMMED -ffunction-sections -O2 -fPIC -shared -Wl,-h -Wl,libxpcom.so -o libxpcom.so nsXPComInit.o nsStringAPI.o -Wl,--whole-archive ../../dist/lib/libxpcomds_s.a ../../dist/lib/libxpcomio_s.a ../../dist/lib/libxpcomcomponents_s.a ../../dist/lib/libxpcomthreads_s.a ../../dist/lib/libxpcomproxy_s.a ../../dist/lib/libxpcombase_s.a ../../dist/lib/libxptcall.a ../../dist/lib/libxptinfo.a ../../dist/lib/libxpt.a ../../dist/lib/libxptcmd.a ../../dist/lib/libstring_s.a ../../dist/lib/libxpcomglue_s.a -Wl,--no-whole-archive -L/var/tmp/portage/gecko-sdk-1.7.8/work/mozilla/dist/lib -lplds4 -lplc4 -lnspr4 -lpthread -ldl -ldl -lm i686-pc-linux-gnu-g++: Internal error: Segmentation fault (program collect2) Please submit a full bug report. See <URL:http://bugs.gentoo.org/> for instructions. gmake[3]: *** [libxpcom.so] Error 1 gmake[3]: Leaving directory `/var/tmp/portage/gecko-sdk-1.7.8/work/mozilla/xpcom/build' gmake[2]: *** [libs] Error 2 gmake[2]: Leaving directory `/var/tmp/portage/gecko-sdk-1.7.8/work/mozilla/xpcom' gmake[1]: *** [tier_2] Error 2 gmake[1]: Leaving directory `/var/tmp/portage/gecko-sdk-1.7.8/work/mozilla' make: *** [default] Error 2 Solution: Stop ebuild from applying mozilla-1.7.6-gcc4.patch when gcc4 is not being used. It may still work not applying the patch at all even when using gcc4 (as was the case with media-video/transcode recently), untested though.
Does this break the regular Mozilla build too? It's the exact same ebuild (with a modified install section) and they're not making the patch conditional. Is there a bug open on Mozilla if it does break?
I thought I had commented on this awhile ago. Does this always fail in the same place? What is the output of `emerge info'? It doesn't seem to be a widespread problem, since I haven't seen many reports concerning this.
Please reopen if you're still having a problem with gecko-sdk 1.7.12.