Looks like your Ubuntu is outdated a bit. I suggest you may file a bug
apparently a bug in gcc and not mozilla itself.
> Hi,
>
> I am trying to build mozilla from source code on ubuntu linux. This is
> what I did so far.
> hg clone
http://hg.mozilla.org/mozilla-central/ src
> cd src
> hg pull
> hg up
> echo '. $topsrcdir/browser/config/mozconfig'> .mozconfig
> echo 'mk_add_options AUTOCONF=autoconf2.13'>> .mozconfig
> make -f client.mk build
>
> But I keep getting this error.
>
>
> HttpChannelParent.cpp
> c++ -o HttpChannelParent.o -c -I../../../dist/stl_wrappers -I../../../
> dist/system_wrappers -include /home/chamal/mozilla/src/config/
> gcc_hidden.h -DMOZ_GLUE_IN_PROGRAM -DMOZILLA_INTERNAL_API -
> D_IMPL_NS_COM -DEXPORT_XPT_API -DEXPORT_XPTC_API -D_IMPL_NS_GFX -
> D_IMPL_NS_WIDGET -DIMPL_XREAPI -DIMPL_NS_NET -DIMPL_THEBES -
> DSTATIC_EXPORTABLE_JS_API -DOSTYPE=\"Linux2.6\" -DOSARCH=Linux -
> DEXCLUDE_SKIA_DEPENDENCIES -DOS_LINUX=1 -DOS_POSIX=1 -DIMPL_NS_NET -
> I/home/chamal/mozilla/src/netwerk/protocol/http/../../base/src -I/home/
> chamal/mozilla/src/xpcom/ds -I/home/chamal/mozilla/src/content/base/
> src -I/home/chamal/mozilla/src/content/events/src -I/home/chamal/
> mozilla/src/ipc/chromium/src -I/home/chamal/mozilla/src/ipc/glue -
> I../../../ipc/ipdl/_ipdlheaders -I/home/chamal/mozilla/src/netwerk/
> protocol/http -I. -I../../../dist/include -I../../../dist/include/
> nsprpub -I/home/chamal/mozilla/src/obj-x86_64-unknown-linux-gnu/dist/
> include/nspr -I/home/chamal/mozilla/src/obj-x86_64-unknown-linux-gnu/
> dist/include/nss -fPIC -fno-rtti -Wall -Wpointer-arith -
> Woverloaded-virtual -Wsynth -Wno-ctor-dtor-privacy -Wno-non-virtual-
> dtor -Wcast-align -Wno-invalid-offsetof -Wno-variadic-macros -
> Werror=return-type -Wno-long-long -fno-exceptions -fno-strict-aliasing
> -fshort-wchar -ffunction-sections -fdata-sections -pthread -pipe -
> DNDEBUG -DTRIMMED -g -Os -freorder-blocks -fomit-frame-pointer -
> DMOZILLA_CLIENT -include ../../../mozilla-config.h -MD -MF .deps/
> HttpChannelParent.pp /home/chamal/mozilla/src/netwerk/protocol/http/
> HttpChannelParent.cpp
> In file included from ../../../dist/include/nsAutoPtr.h:48,
> from ../../../dist/include/gfxPattern.h:46,
> from ../../../dist/include/IPC/IPCMessageUtils.h:54,
> from ../../../ipc/ipdl/_ipdlheaders/mozilla/net/
> PNecko.h:14,
> from ../../../ipc/ipdl/_ipdlheaders/mozilla/net/
> PNeckoChild.h:9,
> from ../../../dist/include/mozilla/net/NeckoChild.h:
> 44,
> from /home/chamal/mozilla/src/netwerk/protocol/http/
> nsHttp.h:60,
> from ../../../dist/include/mozilla/net/
> HttpChannelParent.h:45,
> from /home/chamal/mozilla/src/netwerk/protocol/http/
> HttpChannelParent.cpp:41:
> ../../../dist/include/nsCOMPtr.h: In function ‘nsQueryInterface
> do_QueryInterface(nsISupports*)’:
> ../../../dist/include/nsCOMPtr.h:316: internal compiler error: in
> tree_nrv, at tree-nrv.c:143
> Please submit a full bug report,
> with preprocessed source if appropriate.
> See<file:///usr/share/doc/gcc-4.4/README.Bugs> for instructions.
> make[7]: *** [HttpChannelParent.o] Error 1
>
> Please help me to figure out what is wrong.
>
> Thanking You,
> Chamal.
> _______________________________________________
> dev-builds mailing list
>
dev-builds@...
>
https://lists.mozilla.org/listinfo/dev-builds