Subject: Re: I can't buil a decent kernel
To: None <port-sparc@NetBSD.org>
From: Nuno Pires <nmfp@mega.ist.utl.pt>
List: port-sparc
Date: 08/19/2006 21:48:24
Hi,

Now I can compile the kernel! A clear mk.conf didn't solve the problem, 
but an upgrade to 3.0.1 did. The thing is I couldn't track down the 
source of the compilation mess.

Thanks to Valery and Gorge. And to all for NetBSD/sparc.
-- 
Nuno P.

On 17/ago/2006, at 22:16, Valeriy E. Ushakov wrote:

> On Thu, Aug 17, 2006 at 20:10:20 +0100, Nuno Pires wrote:
>
>> The problem is that I can't build a kernel that boots the system.
>> Building GENERIC results in a kernel that just makes the system reboot
>> after: "ms0 at zs1 channel 1: baud rate 1200". And it is much bigger
>> than the distribution one:
>> -rwxr-xr-x   1 root  wheel  3812216 Dec 19  2005 netbsd.dist
>> -rwxr-xr-x   1 root  wheel  6377427 Aug 16 16:05 netbsd.test
>>
>> My mk.conf goes like this:
>> COPTS+=-mcpu=v8
>> CPUFLAGS=-mcpu=v8
>> COPTS+=-mtune=v8
>> CPUFLAGS=-mtune=v8
>> COPTS+=-pipe
>> BUILDFLAGS+=-j3
>
> Check the build logs.  I guess you nuke -O2 from COPTS with those
> assignemnts (+= sets it, so ?= -O2 in the makefile is ignored)
>
>     CPUFLAGS=-mcpu=supersparc
>
> is enough to get the v8 optimizations you want.
>
> SY, Uwe
> -- 
> uwe@ptc.spbu.ru                         |       Zu Grunde kommen
> http://snark.ptc.spbu.ru/~uwe/          |       Ist zu Grunde gehen
>