Subject: gcc internal error during firefox build?
To: None <port-sparc@netbsd.org>
From: Hauke Fath <hauke@Espresso.Rhein-Neckar.DE>
List: port-sparc
Date: 08/01/2004 10:00:35
Hi,

did anyone succeed in building www/firefox on sparc? I am getting a
reproducible compiler error on netbsd-2-0:

g++ -o nsTextFormatter.o -c -DOSTYPE=\"NetBSD2\" -DOSARCH=\"NetBSD\"
-D_IMPL_NS_COM  -I../../dist/include/string -I../../dist/include/xpcom
-I../../dist/include
-I/usr/src/pkgsrc/www/firefox/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/pkg/include/freetype2
-I/usr/pkg/include/gdk-pixbuf-1.0 -I/usr/include  -I/usr/X11R6/include
-fno-rtti -fno-exceptions -Wall -Wconversion -Wpointer-arith -Wcast-align
-Woverloaded-virtual -Wsynth -Wno-ctor-dtor-privacy -Wno-non-virtual-dtor
-Wno-long-long -O2 -I/usr/pkg/include -I/usr/pkg/include/freetype2
-I/usr/pkg/include/gdk-pixbuf-1.0 -I/usr/include -Dunix -fshort-wchar
-pthread -pipe  -DNDEBUG -DTRIMMED -O2  -I/usr/pkg/include
-I/usr/pkg/include/freetype2 -I/usr/pkg/include/gdk-pixbuf-1.0
-I/usr/include  -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

[more warnings, snipped]

nsTextFormatter.cpp:1260: warning: cast from `char*' to `int**' increases
   required alignment of target type
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 `/usr/src/pkgsrc/www/firefox/work/mozilla/xpcom/ds'
gmake[2]: *** [libs] Error 2

[hauke@pizza] /<3>www/firefox > uname -a
NetBSD pizza.causeuse.org 2.0_BETA NetBSD 2.0_BETA (PIZZA) #4: Sat Jul 31
18:15:24 CEST 2004
hauke@pizza.causeuse.org:/var/obj/netbsd-builds/2_0/sparc/obj/sys/arch/sparc/com
pile/PIZZA sparc
[hauke@pizza] /<3>www/firefox > ll /usr/bin/gcc
112 -r-xr-xr-x  2 root  wheel  99324 Jun 26 06:58 /usr/bin/gcc
[hauke@pizza] /<3>www/firefox > gcc --version
gcc (GCC) 3.3.3 (NetBSD nb3 20040520)
[...]

Ideas?

	hauke

--
/~\  The ASCII Ribbon Campaign
\ /    No HTML/RTF in email
 X     No Word docs in email
/ \  Respect for open standards