FS#23463 - [gcc 4.6] xulrunner cannot be built using gcc 4.6

Attached to Project: Arch Linux
Opened by Frederic Bezies (fredbezies) - Sunday, 27 March 2011, 10:26 GMT
Last edited by Andrea Scarpino (BaSh) - Saturday, 16 April 2011, 10:57 GMT
Task Type Bug Report
Category Packages: Extra
Status Closed
Assigned To No-one
Architecture All
Severity Low
Priority Normal
Reported Version
Due in Version Undecided
Due Date Undecided
Percent Complete 100%
Votes 0
Private No

Details

I wanted this morning to build an homemade version of mozilla minefield, using trunk source code as I do everyday or so.

But since I installed gcc 4.6 using testing repository, I cannot get it to be built. So I reported the bug on mozilla bugzilla, cf https://bugzilla.mozilla.org/show_bug.cgi?id=645469

I wanted to verify if it was related to gcc 4.6 at all.

So, after cleaning ccache cache, I grabbed xulrunner tarball, and launch build process using makepkg.

And it won't work. Here is the error log :

c++ -o nsWeakReference.o -c -I../../dist/stl_wrappers -I../../dist/system_wrappers -include /home/fred/xulrunner/src/mozilla-2.0/config/gcc_hidden.h -DOSTYPE=\"Linux2.6\" -DOSARCH=Linux -DTARGET_XPCOM_ABI=\"x86_64-gcc3\" -I/home/fred/xulrunner/src/mozilla-2.0/xpcom/glue/../build -I/home/fred/xulrunner/src/mozilla-2.0/xpcom/glue -I. -I../../dist/include -I../../dist/include/nsprpub -I/usr/include/nspr -I/usr/include/nss -fPIC -fno-rtti -fno-exceptions -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 -fno-strict-aliasing -fshort-wchar -pthread -pipe -DNDEBUG -DTRIMMED -Os -freorder-blocks -fomit-frame-pointer -DMOZILLA_CLIENT -include ../../mozilla-config.h -MD -MF .deps/nsWeakReference.pp /home/fred/xulrunner/src/mozilla-2.0/xpcom/glue/nsWeakReference.cpp
/home/fred/xulrunner/src/mozilla-2.0/xpcom/glue/nsEnumeratorUtils.cpp:115:27: erreur: uninitialized const ‘EmptyEnumeratorImpl::kInstance’ [-fpermissive]
/home/fred/xulrunner/src/mozilla-2.0/xpcom/glue/nsEnumeratorUtils.cpp:50:7: note: ‘const class EmptyEnumeratorImpl’ has no user-provided default constructor
make[5]: *** [nsEnumeratorUtils.o] Erreur 1
make[5]: *** Attente des tâches non terminées....
/home/fred/xulrunner/src/mozilla-2.0/xpcom/glue/nsINIParser.cpp: In member function ‘nsresult nsINIParser::Init(nsILocalFile*)’:
/home/fred/xulrunner/src/mozilla-2.0/xpcom/glue/nsINIParser.cpp:91:14: attention : variable ‘rv’ set but not used [-Wunused-but-set-variable]
make[5] : on quitte le répertoire « /home/fred/xulrunner/src/mozilla-2.0/obj-x86_64-unknown-linux-gnu/xpcom/glue »
make[4]: *** [libs] Erreur 2
make[4] : on quitte le répertoire « /home/fred/xulrunner/src/mozilla-2.0/obj-x86_64-unknown-linux-gnu/xpcom »
make[3]: *** [libs_tier_platform] Erreur 2
make[3] : on quitte le répertoire « /home/fred/xulrunner/src/mozilla-2.0/obj-x86_64-unknown-linux-gnu »
make[2]: *** [tier_platform] Erreur 2
make[2] : on quitte le répertoire « /home/fred/xulrunner/src/mozilla-2.0/obj-x86_64-unknown-linux-gnu »
make[1]: *** [default] Erreur 2
make[1] : on quitte le répertoire « /home/fred/xulrunner/src/mozilla-2.0/obj-x86_64-unknown-linux-gnu »
make: *** [build] Erreur 2
==> ERREUR: Une erreur s'est produite dans build().
Abandon...

Additional info:
[fred@fredo-arch ~]$ pacman -Qi gcc | grep Version
Version : 4.6.0-1

Steps to reproduce:

Upgrade gcc version and try to build xulrunner.
This task depends upon

Closed by  Andrea Scarpino (BaSh)
Saturday, 16 April 2011, 10:57 GMT
Reason for closing:  Upstream
Comment by Rémy Oudompheng (remyoudompheng) - Sunday, 27 March 2011, 10:38 GMT
Probably related to "G++ no longer allows objects of const-qualified type to be default initialized unless the type has a user-declared default constructor." in latest GCC changes. g++ has become more strict in its checking, add -fpermissive to your CXXFLAGS to work around this.
Comment by Frederic Bezies (fredbezies) - Sunday, 27 March 2011, 10:44 GMT
Ok. Will add it to my .mozconfig and I will tell you.
Comment by Frederic Bezies (fredbezies) - Sunday, 27 March 2011, 11:55 GMT
It worked. Thanks for the tip !

I think they'll be more software which will be broken.
Comment by Allan McRae (Allan) - Thursday, 31 March 2011, 12:08 GMT
  • Assignment removed
Unassigning me. This is not a gcc bug.
Comment by Frederic Bezies (fredbezies) - Monday, 04 April 2011, 09:11 GMT
Well, it is a mozilla bug. Closing ?

Loading...