Subject: Re: firefox-gtk2 and internal compiler error on sparc64
To: None <sigsegv@rambler.ru>
From: Seth Kurtzberg <seth@cql.com>
List: port-sparc64
Date: 02/20/2005 23:45:03
sigsegv@rambler.ru wrote:

> Greetings, I was trying to build firefox-gtk2 inside chroot from 
> current pkgsrc tree, when it died with 'internal compiler error'
>
> This is sun4u Ultra10, running 32-bit kernel and userland
>
> u10# uname -a
> NetBSD u10 2.0_STABLE NetBSD 2.0_STABLE (GENERIC_SUN4U) #0: Fri Feb 11 
> 16:57:08 UTC 2005 
> root@athlon1000:/opt/obj.sparc/sys/arch/sparc/compile/GENERIC_SUN4U 
> sparc64
>
> u10# gcc -v
> Using built-in specs.
> Configured with: 
> /home/nick/work/netbsd/src/tools/gcc/../../gnu/dist/gcc/configure 
> --enable-long-long --disable-multilib --enable-threads 
> --disable-symvers --build=i386-unknown-netbsdelf 
> --host=sparc--netbsdelf --target=sparc--netbsdelf
> Thread model: posix
> gcc version 3.3.3 (NetBSD nb3 20040520)
>
> Below is the compiler output, has anyone seen this before? I'm going 
> to build lang/gcc34 and see if that works.

My experience is that gcc34 is worse.  So either use 3.3.3 or 3.4.x, x 
being the latest.

Usually, when this happens, you can simply restart make and the 
compilation will continue.  (I didn't say it makes sense, I just said it 
frequently happens).  If you haven't already, try that.  It's 
counterintuitive, and bizarre, and all of those similar things, but I've 
seen it work many times.

The error is not specific to sparc or sparc64; the compiler just dies 
whenever it feels like it.

Now, it is possible that this is a separate error (different that the 
one I've frequently seen) so take it as a suggestion or even just a 
test.  If it dies at the same place when you restart make, then it is a 
different problem.

>
>
> c++ -o nsTextFormatter.o -c -DOSTYPE=\"NetBSD2\" -DOSARCH=\"NetBSD\" 
> -D_IMPL_NS_COM  -I../../dist/include/string -I../../dist/include/xpcom 
> -I../../dist/include -I/opt/obj.spa
> rc64/pkg/www/firefox-gtk2/work/mozilla/dist/include/nspr 
> -I/usr/pkg/include -I/usr/pkg/include  -I/usr/X11R6/include   -fPIC 
> -DPIC  -I/usr/pkg/include -I/usr/include -I/usr/p
> kg/include/freetype2  -I/usr/X11R6/include -fno-rtti -fno-exceptions 
> -Wall -Wconversion -Wpointer-arith -Wcast-align -Woverloaded-virtual 
> -Wsynth -Wno-ctor-dtor-privacy -Wno-n
> on-virtual-dtor -Wno-long-long -O2 -mcpu=ultrasparc -O2 
> -I/usr/pkg/include -I/usr/include -I/usr/pkg/include/freetype2 
> -mcpu=ultrasparc -O2 -Dunix -fshort-wchar -pthread -pipe
>   -DNDEBUG -DTRIMMED -mcpu=ultrasparc -O2  -I/usr/pkg/include 
> -I/usr/include -I/usr/pkg/include/freetype2  -I/usr/X11R6/include 
> -DMOZILLA_CLIENT -include ../../mozilla-config.
> h -Wp,-MD,.deps/nsTextFormatter.pp nsTextFormatter.cpp
> nsTextFormatter.cpp: In function `NumArgState* BuildArgArray(const 
> PRUnichar*,
>    char*, int*, NumArgState*)':
> nsTextFormatter.cpp:916: warning: cast from `char*' to `PRIntn**' 
> increases
>    required alignment of target type
> nsTextFormatter.cpp:916: warning: cast from `char*' to `PRIntn*' 
> increases
>    required alignment of target type
> nsTextFormatter.cpp:916: warning: cast from `char*' to `PRIntn*' 
> increases
>    required alignment of target type
> nsTextFormatter.cpp:918: warning: cast from `char*' to `PRInt32**' 
> increases
>    required alignment of target type
>
>
> ... many more cast warnings
>
>
> nsTextFormatter.cpp:1191: internal compiler error: in convert_move, at 
> expr.c:
>    565
> Please submit a full bug report,
> with preprocessed source if appropriate.
> See <URL:http://www.netbsd.org/Misc/send-pr.html> for instructions.
> gmake[3]: *** [nsTextFormatter.o] Error 1
> gmake[3]: Leaving directory 
> `/opt/obj.sparc64/pkg/www/firefox-gtk2/work/mozilla/xpcom/ds'
> gmake[2]: *** [libs] Error 2
> gmake[2]: Leaving directory 
> `/opt/obj.sparc64/pkg/www/firefox-gtk2/work/mozilla/xpcom'
> gmake[1]: *** [tier_2] Error 2
> gmake[1]: Leaving directory 
> `/opt/obj.sparc64/pkg/www/firefox-gtk2/work/mozilla'
> gmake: *** [default] Error 2
> *** Error code 2
>
> Stop.
> make: stopped in /opt/pkgsrc/www/firefox-gtk2
> ===>
> ===> There was an error during the ``build'' phase.
> ===> Please investigate the following for more information:
> ===>      * log of the build
> ===>      * /opt/obj.sparc64/pkg/www/firefox-gtk2/work/.work.log
> ===>
> *** Error code 1
>
> Stop.
> make: stopped in /opt/pkgsrc/www/firefox-gtk2
>
>
> !DSPAM:4218e72b50311046514204!
>