Subject: Re: -current kernel build fails
To: Lubomir Sedlacik <salo@Xtrmntr.org>
From: Patrick Welche <prlw1@newn.cam.ac.uk>
List: current-users
Date: 02/21/2003 15:43:53
On Fri, Feb 21, 2003 at 04:30:08PM +0100, Lubomir Sedlacik wrote:
> hi,
>
> On Fri, Feb 21, 2003 at 05:24:40PM +0200, Ossi Herrala wrote:
> >
> > I get this while building todays -current kernel on i386:
> >
> > /usr/tools/bin/i386--netbsdelf-gcc -pipe -ffreestanding -pipe
> > -Werror -Wall -W no-main -Wno-format-zero-length -Wpointer-arith
> > -Wmissing-prototypes -Wstrict-pr ototypes -Wno-sign-compare
> > -Wno-uninitialized -Di386 -I. -I/usr/src/sys/arch - I/usr/src/sys
> > -nostdinc -DLKM -DMAXUSERS=32 -D_KERNEL -D_KERNEL_OPT -c
> > /usr/src/sys/dev/pci/if_pcn.c
> > /usr/src/sys/dev/pci/if_pcn.c: In function `pcn_init':
> > /usr/src/sys/dev/pci/if_pcn.c:1769: internal error--unrecognizable insn:
> > (insn 644 643 646 (set (reg:SI 170)
> > (unspec:SI[
> > (const_int 512 [0x200])
> > ] 5)) -1 (nil)
> > (nil))
> > cpp0: output pipe has been closed
> > *** [if_pcn.o] Error code 1
> > 1 error
>
> this should be a FAQ :). you are missing -O2 in your CFLAGS. you need
> to add it along with -pipe to your /etc/mk.conf, otherwise you override
> the system default setting.
I will have to try it with -O2 as well... Thanks!
Patrick