Subject: BETA 1.4, internal compiler error
To: NetBSD port-arm32 <port-arm32@NetBSD.ORG>
From: Leo Smiers <L.Smiers@cable.A2000.nl>
List: port-arm32
Date: 04/30/1999 18:52:54
Hello all

Yesterday and today I spent some time to install the 1.4 BETA kernel and
sets. In general it works, but....

Before I go on I would like to tell you that I installed the RISCPC kernel 
and all sets except for games (I don't play games), kern (I use the RISCPC
kernel) and xfont, remember not to install the xfonts set if you run a
RISCPC or A7000 (eg the X-arm X server). I did it again and all my font
paths were messed up, fortunatly I had the xfont set for the X-Arm server
kept somewhere save.

The 1.4_BETA seems to work but for two things:
1 Still no working support for Connect 32 (I know this is an old problem
  but I repeat it here for completeness)
2 The cc compiler crashes when I try to make a kernel depend. The following
  output is from the make depend for a modified RISCPC kernel (called RAVEL)

=== START INCLUDE
  
depending the kern library objects
depending the compat library objects
awk -f ../../../../arch/arm32/vidc/makemodes.awk ../../../../arch/arm32/conf
/monitors/Taxan875+LR 1024,768,60 1024,768,70 800,600,60 640,480,60 1280,102
4 1152,900 >modedefs.c
1024,768,60 ==> 1024 x 768 x 256 x 60 : 60 70 - 60
1024,768,70 ==> 1024 x 768 x 256 x 70 : 60 70 - 70
800,600,60 ==> 800 x 600 x 256 x 60 : 56 60 76 - 60
640,480,60 ==> 640 x 480 x 256 x 60 : 61 74 75 - 61
1280,1024 ==> 1280 x 1024 x 256 x -1 : 60 70 - 60
1152,900 ==> 1152 x 900 x 256 x -1 : 53 77 - 53
sh ../../../../kern/genassym.sh cc  -O2 -Werror -Wall -Wcomment -Wpointer-ar
ith -Wno-main -I. -I../../../../arch -I../../../.. -nostdinc -DIOMD -DRISCPC
 -DSHMMAXPGS="0x400" -DLKM -DDIAGNOSTIC -DPOSTMORTEM -DMAXUSERS=32 -D_KERNEL 
-Darm32   < ../../../../arch/arm32/arm32/genassym.cf > assym.h.tmp &&  mv -f
 assym.h.tmp assym.h
cc: Internal compiler error: program cc1 got fatal signal 11
mkdep -x assembler-with-cpp -D_LOCORE -I. -I../../../../arch -I../../../.. -
nostdinc -DIOMD -DRISCPC -DSHMMAXPGS="0x400" -DLKM -DDIAGNOSTIC -DPOSTMORTEM
 -DMAXUSERS=32 -D_KERNEL -Darm32 ../../../../arch/arm32/arm32/locore.S
mkdep -a  -O2 -Werror -Wall -Wcomment -Wpointer-arith -Wno-main -I. -I../../
../../arch -I../../../.. -nostdinc -DIOMD -DRISCPC -DSHMMAXPGS="0x400" -DLKM
 -DDIAGNOSTIC -DPOSTMORTEM -DMAXUSERS=32 -D_KERNEL -Darm32 param.c 

=== SKIPPED a lot of files ===

 ../../../../arch/arm32/vidc/sysbeep_vidc.c  ../../../../arch/arm32/arm32/co
 mpat_13_machdep.c swapnetbsd.c
test -z "" || mkdep -a -x assembler-with-cpp -D_LOCORE -I. -I../../../../arc
h -I../../../.. -nostdinc -DIOMD -DRISCPC -DSHMMAXPGS="0x400" -DLKM -DDIAGNO
STIC -DPOSTMORTEM -DMAXUSERS=32 -D_KERNEL -Darm32 
sh ../../../../kern/genassym.sh mkdep -f assym.dep  -O2 -Werror -Wall -Wcomm
ent -Wpointer-arith -Wno-main  -I. -I../../../../arch -I../../../.. -nostdin
c -DIOMD -DRISCPC -DSHMMAXPGS="0x400" -DLKM -DDIAGNOSTIC -DPOSTMORTEM -DMAXU
SERS=32 -D_KERNEL -Darm32 < ../../../../arch/arm32/arm32/genassym.cf
mkdep -a  -O2 -Werror -Wall -Wcomment -Wpointer-arith -Wno-main -I. -I../../
../../arch -I../../../.. -nostdinc -DIOMD -DRISCPC -DSHMMAXPGS="0x400" -DLKM
 -DDIAGNOSTIC -DPOSTMORTEM -DMAXUSERS=32 -D_KERNEL -Darm32 modedefs.c

=== END INCLUDE

The line starting with sh following the processing of the monitor definition
files failes. The make depend continues with the rest of the makefile which
seem to finish ok.

When I now try to do a make the as command for the locore.S file crashes,
but this must be a secondary failure because of the faling sh command.

When I revert to the 1.4_ALPHA comp set the 'make depend' and make commands
finish ok and generate a fine kernel, from this I conclude that the source
code is fine. After this I have reinstalled the 1.4_BETA comp set again and
removed the *.o and netbsd file in the kernel compile directory. When I now
do a make the locore.S file assembles ok but the next cc command (I forgot
for which file this was) also generates an Internal compilor error. (cc:
Internal compiler error: program cc1 got fatal signal 11).

For the time being I keep using the comp set from the 1.4_ALPHA distribution
but is there a fix for the buggy compiler?

Leo

-- 
Leo Smiers
Software Engineer                          bv Nederland Haarlem
Author of !PDF, current version 0.73a      http://people.a2000.nl/lsmiers