g++ -o nsPipe2.o -c -DOSTYPE=\"Linux2.4\" -DOSARCH=\"Linux\" -DOJI -D_IMPL_NS_CO M -D_BSD_SOURCE -I../../dist/include/string -I../../dist/include/xpcom -I../../ dist/include -I/var/tmp/portage/mozilla-1.2.1-r5/work/mozilla/dist/include/nspr -I/usr/X11R6/include -fPIC -I/usr/X11R6/include -frtti -fno-exceptions -Wconversion -Wpointer-arith -Wcast-align -Woverloaded-virtual -Wsynth -Wno-ctor -dtor-privacy -Wno-long-long -mcpu=athlon -pipe -Wno-deprecated -fshort-wchar -p thread -pipe -DNDEBUG -DTRIMMED -ffunction-sections -O1 -I/usr/X11R6/include - DMOZILLA_CLIENT -include ../../mozilla-config.h -Wp,-MD,.deps/nsPipe2.pp nsPipe2 .cpp g++: Internal error: Segmentation fault (program as) Please submit a full bug report. See <URL:http://bugs.gentoo.org/> for instructions. make[3]: *** [nsPipe2.o] Error 1 make[3]: *** Waiting for unfinished jobs.... nsPipe2.cpp: In member function `virtual nsresult nsPipe::nsPipeInputStream::QueryInterface(const nsIID&, void**)': nsPipe2.cpp:323: warning: invalid offsetof from non-POD type `class nsPipe'; use pointer to member instead nsPipe2.cpp: In member function `virtual nsrefcnt nsPipe::nsPipeInputStream::AddRef()': nsPipe2.cpp:330: warning: invalid offsetof from non-POD type `class nsPipe'; use pointer to member instead nsPipe2.cpp: In member function `virtual nsrefcnt nsPipe::nsPipeInputStream::Release()': nsPipe2.cpp:338: warning: invalid offsetof from non-POD type `class nsPipe'; use pointer to member instead nsPipe2.cpp: In member function `virtual nsresult nsPipe::nsPipeInputStream::Close()': nsPipe2.cpp:344: warning: invalid offsetof from non-POD type `class nsPipe'; use pointer to member instead nsPipe2.cpp: In member function `virtual nsresult nsPipe::nsPipeInputStream::Available(PRUint32*)': nsPipe2.cpp:366: warning: invalid offsetof from non-POD type `class nsPipe'; use pointer to member instead nsPipe2.cpp: In member function `virtual nsresult nsPipe::nsPipeInputStream::ReadSegments(nsresult (*)(nsIInputStream*, void*, const char*, unsigned int, unsigned int, PRUint32*), void*, unsigned int, PRUint32*)': nsPipe2.cpp:385: warning: invalid offsetof from non-POD type `class nsPipe'; use pointer to member instead nsPipe2.cpp: In member function `nsresult nsPipe::nsPipeInputStream::Fill()': nsPipe2.cpp:492: warning: invalid offsetof from non-POD type `class nsPipe'; use pointer to member instead nsPipe2.cpp: In member function `virtual nsresult nsPipe::nsPipeInputStream::Search(const char*, int, PRBool*, PRUint32*)': nsPipe2.cpp:550: warning: invalid offsetof from non-POD type `class nsPipe'; use pointer to member instead nsPipe2.cpp: In member function `virtual nsresult nsPipe::nsPipeOutputStream::QueryInterface(const nsIID&, void**)': nsPipe2.cpp:632: warning: invalid offsetof from non-POD type `class nsPipe'; use pointer to member instead nsPipe2.cpp: In member function `virtual nsrefcnt nsPipe::nsPipeOutputStream::AddRef()': nsPipe2.cpp:639: warning: invalid offsetof from non-POD type `class nsPipe'; use pointer to member instead nsPipe2.cpp: In member function `virtual nsrefcnt nsPipe::nsPipeOutputStream::Release()': nsPipe2.cpp:647: warning: invalid offsetof from non-POD type `class nsPipe'; use pointer to member instead nsPipe2.cpp: In member function `virtual nsresult nsPipe::nsPipeOutputStream::Close()': nsPipe2.cpp:653: warning: invalid offsetof from non-POD type `class nsPipe'; use pointer to member instead nsPipe2.cpp: In member function `virtual nsresult nsPipe::nsPipeOutputStream::WriteSegments(nsresult (*)(nsIOutputStream*, void*, char*, unsigned int, unsigned int, PRUint32*), void*, unsigned int, PRUint32*)': nsPipe2.cpp:673: warning: invalid offsetof from non-POD type `class nsPipe'; use pointer to member instead nsPipe2.cpp: In member function `virtual nsresult nsPipe::nsPipeOutputStream::Flush()': nsPipe2.cpp:796: warning: invalid offsetof from non-POD type `class nsPipe'; use pointer to member instead make[3]: Leaving directory `/var/tmp/portage/mozilla-1.2.1-r5/work/mozilla/xpcom /io' make[2]: *** [libs] Error 2 make[2]: Leaving directory `/var/tmp/portage/mozilla-1.2.1-r5/work/mozilla/xpcom ' make[1]: *** [tier_2] Error 2 make[1]: Leaving directory `/var/tmp/portage/mozilla-1.2.1-r5/work/mozilla' make: *** [default] Error 2 !!! ERROR: net-www/mozilla-1.2.1-r5 failed. !!! Function src_compile, Line 483, Exitcode 2 !!! (no error message) cc1plus: Broken pipe: error writing to - ------------------ using cflags: "-mcpu=athlon -O3 -pipe -fomit-frame-pointer -fforce-addr" using USE flags: "moznoirc moznomail moznocompose -gnome -gnome2"
How much memory and swap ?
around 300 MB RAM and 200MB sawp. I've already built Mozilla once on this machine, btw.
What version gcc ? if gcc-3.2.1-r[67], then maybe check that you have gcc-config-1.3.1, and try again ?
I got just the same problem. Got gcc-3.2.1-r6 and the proposed gcc-config-1.3.1. Still doesn't work any better.
Try to update to gcc-3.2.2 ... its g++ segfaulting, so either a gcc problem, or maybe hardware/not enouth memory problem. Try to increase swap to 256mb, and if you have more than one dimm, take out the smaller.
Nope, a simple change to autoconf 2.5 did the trick! As explained in the forum (there should be a thread under FAQ that says "ebuilds fail? ..." or something like this. Or search for autoconf!
This is no longer a bug.
autoconf update made it