Subject: gcc compilation problem
To: None <current-users@netbsd.org>
From: James Whitwell <abacau@yahoo.com.au>
List: current-users
Date: 10/07/2003 21:18:18
Hi,

I'm seeing the following problem compiling the kernel:

/usr/src/obj/tooldir.NetBSD-1.6ZC-powerpc/bin/powerpc--netbsd-gcc   
-msoft-float   -ffreestanding -g -O2 -Wreturn-type -Werror -Wall  
-Wno-main -Wno-format-zero-length -Wpointer-arith -Wmissing-prototypes  
-Wstrict-prototypes -Wno-sign-compare -Wno-uninitialized  -Dmacppc -I.   
-I/usr/src/sys/arch -I/usr/src/sys -nostdinc -DLKM -DDIAGNOSTIC  
-DZS_CONSOLE_ABORT -DDEBUG_DARWIN -DDEBUG_MACH -DOFB_ENABLE_CACHE  
-DMAXUSERS=32 -D_KERNEL -D_KERNEL_OPT   -c  
/usr/src/sys/compat/mach/mach_vm.c
/usr/src/sys/compat/mach/mach_vm.c: In function `mach_vm_wire':
/usr/src/sys/compat/mach/mach_vm.c:304: error: Attempt to delete  
prologue/epilogue insn:
(insn/f 233 232 234 0 0x0 (set (mem:SI (plus:SI (reg/f:SI 1 r1)
                 (const_int 68 [0x44])) [0 S4 A8])
         (reg:SI 0 r0)) -1 (nil)
     (expr_list:REG_FRAME_RELATED_EXPR (set (mem:SI (plus:SI (reg/f:SI 1  
r1)
                     (const_int 68 [0x44])) [0 S4 A8])
             (reg:SI 65 lr))
         (nil)))
/usr/src/sys/compat/mach/mach_vm.c:304: internal compiler error: in  
propagate_one_insn, at flow.c:1642
Please submit a full bug report,
with preprocessed source if appropriate.
See <URL:http://gcc.gnu.org/bugs.html> for instructions.

*** Failed target:  mach_vm.o
*** Failed command:  
/usr/src/obj/tooldir.NetBSD-1.6ZC-powerpc/bin/powerpc--netbsd-gcc  
-msoft-float -ffreestanding -g -O2 -Wreturn-type -Werror -Wall  
-Wno-main -Wno-format-zero-length -Wpointer-arith -Wmissing-prototypes  
-Wstrict-prototypes -Wno-sign-compare -Wno-uninitialized -Dmacppc -I.  
-I/usr/src/sys/arch -I/usr/src/sys -nostdinc -DLKM -DDIAGNOSTIC  
-DZS_CONSOLE_ABORT -DDEBUG_DARWIN -DDEBUG_MACH -DOFB_ENABLE_CACHE  
-DMAXUSERS=32 -D_KERNEL -D_KERNEL_OPT -c  
/usr/src/sys/compat/mach/mach_vm.c
*** Error code 1

Stop.
nbmake: stopped in /usr/obj/sys/arch/macppc/compile/TOTORO

ERROR: Failed to make all in /usr/src/sys/arch/macppc/compile/obj/TOTORO
*** BUILD ABORTED ***

jams:/usr/src:$  
/usr/src/obj/tooldir.NetBSD-1.6ZC-powerpc/bin/powerpc--netbsd-gcc -v
Reading specs from  
/usr/src/obj/tooldir.NetBSD-1.6ZC-powerpc/lib/gcc-lib/powerpc--netbsd/ 
3.3.1/specs
Configured with: /usr/src/tools/gcc/../../gnu/dist/gcc/configure  
--target=powerpc--netbsd --disable-nls --enable-long-long  
--disable-multilib --enable-threads  
--program-transform-name=s,^,powerpc--netbsd-, --enable-languages=c c++  
objc f77 --prefix=/usr/src/obj/tooldir.NetBSD-1.6ZC-powerpc  
--disable-shared
Thread model: posix
gcc version 3.3.1

sys/compat/mach/mach_vm.c is 1.31.  Should I file a pr?

cheers,
;) jimmy.