Subject: Re: config GENERIC -> error
To: None <port-i386@netbsd.org>
From: Michael Gerhards <HM-Gerhards@uni.de>
List: port-i386
Date: 02/28/2005 20:36:56
Michael Gerhards <HM-Gerhards@uni.de> wrote:
> 
> So my question now is how to handle this problem. I guess, I could make
> the kernel compile by commenting out the line 
> include "compat/aout/files.aout"
> in /usr/src/sys/arch/i386/conf/files.i386

I tried this. 

When I tried to compile the kernel with 
cd /usr/src
build.sh kernel=GENERIC

I got these error messages:

cleandiring the kern library objects
rm -f a.out [Ee]rrs mklog core *.core libkern.o libkern.po
rm: libkern.o: Permission denied

*** Failed target:  cleanlib
*** Failed command: rm -f a.out [Ee]rrs mklog core *.core libkern.o
libkern.po
*** Error code 1

Stop.
nbmake: stopped in /usr/obj/sys/arch/i386/compile/GENERIC/lib/kern

*** Failed target:  cleandirkernlib
*** Failed command: if [ -d
"/usr/obj/sys/arch/i386/compile/GENERIC/lib/kern" ]; then cd
/usr/obj/sys/arch/i386/compile/GENERIC/lib/kern &&
/usr/src/tooldir.NetBSD-2.0_RC5-i386/bin/nbmake -f
/usr/src/sys/lib/libkern/Makefile KERNDIR=/usr/src/sys/lib/libkern
CC=/usr/src/tooldir.NetBSD-2.0_RC5-i386/bin/i386--netbsdelf-gcc CFLAGS=\
\ \ \ \ -ffreestanding\ \ \ -O2\ -Werror\ -Wall\ -Wno-main\
-Wno-format-zero-length\ -Wpointer-arith\ -Wmissing-prototypes\
-Wstrict-prototypes\ -Wno-sign-compare\ -fno-zero-initialized-in-bss
AS=/usr/src/tooldir.NetBSD-2.0_RC5-i386/bin/i386--netbsdelf-as AFLAGS=\
-x\ assembler-with-cpp\ -traditional-cpp\ \ -D_LOCORE
LORDER=NM=/usr/src/tooldir.NetBSD-2.0_RC5-i386/bin/i386--netbsdelf-nm\
MKTEMP=/usr/src/tooldir.NetBSD-2.0_RC5-i386/bin/nbmktemp\
/usr/src/tooldir.NetBSD-2.0_RC5-i386/bin/nblorder
TSORT=/usr/src/tooldir.NetBSD-2.0_RC5-i386/bin/nbtsort\ -q
LD=/usr/src/tooldir.NetBSD-2.0_RC5-i386/bin/i386--netbsdelf-ld
STRIP=/usr/src/tooldir.NetBSD-2.0_RC5-i386/bin/i386--netbsdelf-strip
AR=/usr/src/tooldir.NetBSD-2.0_RC5-i386/bin/i386--netbsdelf-ar
NM=/usr/src/tooldir.NetBSD-2.0_RC5-i386/bin/i386--netbsdelf-nm
RANLIB=/usr/src/tooldir.NetBSD-2.0_RC5-i386/bin/i386--netbsdelf-ranlib
SIZE=/usr/src/tooldir.NetBSD-2.0_RC5-i386/bin/i386--netbsdelf-size
MACHINE=i386 MACHINE_ARCH=i386 KERNCPPFLAGS=-Di386\ -I../../.\
-I/usr/src/sys/arch\ -I/usr/src/sys\ -nostdinc\ -DLKM\ -DMAXUSERS=32\
-D_KERNEL\ -D_KERNEL_OPT KERNMISCCPPFLAGS= LINTFLAGS=-bcehnxzFS
cleandir; fi
*** Error code 1

Stop.
nbmake: stopped in /usr/obj/sys/arch/i386/compile/GENERIC

ERROR: Failed to make cleandir in
/usr/src/sys/arch/i386/compile/obj/GENERIC
*** BUILD ABORTED ***


Then I tried to compile the kernel the "traditional" way by
cd ../compile/GENERIC
make depend
make

This way everything compiled without any problems...

Any ideas?

Michael