Subject: error building atw.o during kernel compile
To: None <current-users@netbsd.org, port-macppc@netbsd.org>
From: Erik Osheim <erik@plastic-idolatry.com>
List: current-users
Date: 11/24/2003 12:59:01
--Apple-Mail-1--952255498
Content-Transfer-Encoding: 7bit
Content-Type: text/plain; charset=US-ASCII; format=flowed

[ cross-posted between current-users and port-macppc... sorry ]

Hello,

I'm new to running -current on NetBSD (my other machines are running 
1.6); I just set up a Rev. A iMac to track -current via anoncvs. 
Yesterday, after refreshing the src directory from cvs, I tried to 
compile a current kernel.

I was able to build the tools fine, using './build.sh tools' (in 
/usr/src). However, './build.sh kernel=DIGIT_2003_11_23' failed after 
running for about 20 minutes with the following:

[ ... fine up until this point ... ]
#   compile  DIGIT_2003_11_23/atw.o
/usr/src/tooldir.NetBSD-1.6.1-powerpc/bin/powerpc--netbsd-gcc 
-msoft-float -ffreestanding -O2 -Wreturn-type -Werror -Wall -Wno-main 
-Wno-format-zero-length -Wpointer-arith -Wmissing-prototypes 
-Wstrict-prototypes -Wno-sign-compare -Dmacppc -I. -I/usr/src/sys/arch 
-I/usr/src/sys -nostdinc -DLKM -DDIAGNOSTIC -DZS_CONSOLE_ABORT 
-DDEBUG_DARWIN -DDEBUG_MACH -DMAXUSERS=32 -D_KERNEL -D_KERNEL_OPT -c 
/usr/src/sys/dev/ic/atw.c
powerpc--netbsd-gcc: Internal error: Killed (program cc1)
Please submit a full bug report.
See <URL:http://www.netbsd.org/Misc/send-pr.html> for instructions.

*** Failed target:  atw.o
*** Failed command: echo '# ' "compile " DIGIT_2003_11_23/atw.o; echo 
/usr/src/tooldir.NetBSD-1.6.1-powerpc/bin/powerpc--netbsd-gcc 
-msoft-float -ffreestanding -O2 -Wreturn-type -Werror -Wall -Wno-main 
-Wno-format-zero-length -Wpointer-arith -Wmissing-prototypes 
-Wstrict-prototypes -Wno-sign-compare -Dmacppc -I. -I/usr/src/sys/arch 
-I/usr/src/sys -nostdinc -DLKM -DDIAGNOSTIC -DZS_CONSOLE_ABORT 
-DDEBUG_DARWIN -DDEBUG_MACH -DMAXUSERS=32 -D_KERNEL -D_KERNEL_OPT -c 
/usr/src/sys/dev/ic/atw.c; 
/usr/src/tooldir.NetBSD-1.6.1-powerpc/bin/powerpc--netbsd-gcc 
-msoft-float -ffreestanding -O2 -Wreturn-type -Werror -Wall -Wno-main 
-Wno-format-zero-length -Wpointer-arith -Wmissing-prototypes 
-Wstrict-prototypes -Wno-sign-compare -Dmacppc -I. -I/usr/src/sys/arch 
-I/usr/src/sys -nostdinc -DLKM -DDIAGNOSTIC -DZS_CONSOLE_ABORT 
-DDEBUG_DARWIN -DDEBUG_MACH -DMAXUSERS=32 -D_KERNEL -D_KERNEL_OPT -c 
/usr/src/sys/dev/ic/atw.c
*** Error code 1

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

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

The only changes to the GENERIC kernel config I made were to add:
options         COMPAT_DARWIN   # Darwin binary compatibility 
(experimental)
options         COMPAT_MACH     # Mach compatibility, needed for 
COMPAT_DARWIN
options         EXEC_MACHO      # Mach-O binary support, needed for 
COMPAT_MACH
options         DEBUG_DARWIN    # COMPAT_DARWIN debugging
options         DEBUG_MACH      # COMPAT_MACH debugging

( I was hoping to help work on the COMPAT_DARWIN by doing some testing, 
which is why I needed the -current kernel )

Anyway, the instructions said to do a 'send-pr', but I"m really not 
sure what's going wrong; I certainly didn't kill gcc myself. I looked 
into the problems that had already been reported, but was unable to 
determine if this was a new problem or not: I didn't see anything 
obviously resembling it, but like I said, I have no idea how the 
compiler is getting killed. Running out of memory maybe (the iMac has 
64 MB and 96 MB of swap)?

Any guidance regarding the 'send-pr' system or specific fixes for the 
problem I'm seeing would be excellent. I can furnish more details upon 
request.

-- Erik

--Apple-Mail-1--952255498
content-type: application/pgp-signature; x-mac-type=70674453;
	name=PGP.sig
content-description: This is a digitally signed message part
content-disposition: inline; filename=PGP.sig
content-transfer-encoding: 7bit

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.3 (Darwin)

iD8DBQE/wkbr6jwIlDfhHxgRAmG8AKC40RomuG1Q+ct/rkrP8ym78EW8SACfbQQC
Lws8jjGa6aR8Z7VA+eg/D84=
=E8iN
-----END PGP SIGNATURE-----

--Apple-Mail-1--952255498--