Subject: Re: sparc64 error when compiling kernel
To: None <port-sparc64@netbsd.org>
From: None <sigsegv@rambler.ru>
List: port-sparc64
Date: 02/18/2005 00:22:28
gaspo wrote:
> netbsd% uname -a
> NetBSD netbsd.fastwebnet.it 2.0 NetBSD 2.0 (GENERIC) #0: Thu Dec  2
> 02:49:29 UTC 2004 
> builds@build:/big/builds/ab/netbsd-2-0-RELEASE/sparc64/200411300000Z-obj/big/builds/ab/netbsd-2-0-RELEASE/src/sys/arch/sparc64/compile/GENERIC
> sparc64
> netbsd%
> 
> i havent mk.conf in /etc/
> netbsd% pwd
> /usr/src/sys/arch/sparc64/conf/
> netbsd%
> 
> i download kernel source for netbsd 2.0
> 

Have you got a backup of GENERIC config file, which you haven't modified 
yourself? Maybe you removed some options which break kernel build. 
Obtain unmodified GENERIC config file for sparc64 port and try the 
following to build a kernel. If it builds OK, then you know there is 
nothing wrong with the tools or kernel sources and THEN backup GENERIC 
to GENERIC.orig and add your custom options to GENERIC and try building 
new kernel again

cd /usr/src && ./build.sh -m sparc64 \
	-O /usr/obj.sparc64 -T /usr/tools.sparc64 \
	tools
cd /usr/src && ./build.sh -u -m sparc64 \
	-O /usr/obj.sparc64 -T /usr/tools.sparc64 \
	kernel=GENERIC