Subject: Re: Problem building 1.6.2 kernel
To: None <port-i386@netbsd.org>
From: Lubomir Sedlacik <salo@Xtrmntr.org>
List: port-i386
Date: 04/15/2004 18:21:15
--pmKUVAsxJ35RhmJn
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline
Content-Transfer-Encoding: quoted-printable

hi,

On Thu, Apr 15, 2004 at 12:17:40PM -0400, GuRU wrote:
> I've been encountering a problem building a 1.6.2 kernel on P200.  I
> keep getting the following error while building the kernel:
>=20
> /usr/tools/bin/i386--netbsdelf-gcc  -pipe -ffreestanding -g -pipe -Werror
> -Wall -Wno-main -Wno-format-zero-length -Wpointer-arith -Wmissing-prototy=
pes
> -Wstrict-prototypes -Wno-uninitialized  -Di386 -I.  -I../../../../arch
> -I../../../.. -nostdinc -DLKM -DIPSEC_DEBUG -DMAXUSERS=3D64 -D_KERNEL
> -D_KERNEL_OPT   -c ../../../../dev/pci/if_pcn.c
> ../../../../dev/pci/if_pcn.c: In function `pcn_init':
> ../../../../dev/pci/if_pcn.c:1768: internal error--unrecognizable insn:
> (insn 643 642 645 (set (reg:SI 170)
>         (unspec:SI[=20
>                 (const_int 512 [0x200])
>             ]  5)) -1 (nil)
>     (nil))
> *** Error code 1
>=20
> Stop.
> nbmake: stopped in /sys/arch/i386/compile/WOYAYA

this is really a FAQ.  search archives for duplicates.

it's a bug in gcc2 optimizer, you shot yourself in the foot with
improper use of CFLAGS/COPTS in /etc/mk.conf.


regards,

--=20
-- Lubomir Sedlacik <salo@{NetBSD,Xtrmntr,silcnet}.org>   --

--pmKUVAsxJ35RhmJn
Content-Type: application/pgp-signature
Content-Disposition: inline

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.4 (NetBSD)

iD8DBQFAfrZ7iwjDDlS8cmMRAkghAJ4lUxZ4K3+EA38BcxhesXCCvrI5eACfZiqL
5ddB67xcYKjPKDh/cf7hxCQ=
=FF/9
-----END PGP SIGNATURE-----

--pmKUVAsxJ35RhmJn--