Subject: Re: kern/21311: Generic kernel doesnt compile in 1.6.1_STABLE
To: Lubomir Sedlacik <salo@Xtrmntr.org>
From: Mipam <mipam@ibb.net>
List: netbsd-bugs
Date: 04/24/2003 23:59:08
[SNIP]

> > /usr/src/tools/obj/tools.NetBSD-1.6.1_STABLE-i386/bin/i386--netbsdelf-gcc
> > -ffreestanding  -pipe -Werror -Wall -Wno-main -Wno-format-zero-length
> > -Wpointer-arith -Wmissing-prototypes -Wstrict-prototypes
> > -Wno-uninitialized  -Di386 -I.  -I../../../../arch -I../../../..
> > -nostdinc -DLKM -DMAXUSERS=32 -D_KERNEL -D_KERNEL_OPT   -c
> > /sys/arch/i386/compile/Mipam.GENERIC/../../../../dev/pci/if_pcn.c
> > /sys/arch/i386/compile/Mipam.GENERIC/../../../../dev/pci/if_pcn.c: In
> > function `pcn_init':
> > /sys/arch/i386/compile/Mipam.GENERIC/../../../../dev/pci/if_pcn.c:1768:
> > internal error--unrecognizable insn:
> > (insn 644 643 646 (set (reg:SI 170)
> >         (unspec:SI[ 
> >                 (const_int 512 [0x200])
> >             ]  5)) -1 (nil)
> >     (nil))
> > *** Error code 1
> > 
> > Stop.
> > nbmake: stopped in /sys/arch/i386/compile/Mipam.GENERIC
> 
> this is a known gcc bug.  you changed COPTS or CFLAGS in your mk.conf
> and forgot to add -O2.

I used for the pkgsrc CFLAGS+= -pipe
and for the kernel and userland COPTS+= -pipe
so that the normal options arent changed but just -pipe is added,
at least thats what i think.
So ... it means that in the default compilation
-O2 is omitted as well? Weird though ....
Or does this mean someting goes wrong with += and
the options are replaced instead of -pipe is been added?
Bye,

Mipam.