Subject: Re: build.sh rlease: failed
To: None <current-users@netbsd.org>
From: Christian Biere <christianbiere@gmx.de>
List: current-users
Date: 02/02/2003 06:27:32
--mVcE.FpBk'=.teGF
Content-Type: text/plain; charset=US-ASCII
Content-Transfer-Encoding: 7bit

Hi Takahiro-San,

Takahiro Kambe <taca@back-street.net> wrote:
> /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))
> *** Error code 1
> 
> Stop.
> nbmake: stopped in /var/obj/sys/arch/i386/compile/GENERIC
> *** Error code 1
> Is there any compiler problem?

yes, indeed. This has been reported several times in the last month.
It's a bug in gcc which is still present in 3.2. You have to compile
with "-Ox" in your CFLAGS/COPTS and x must not be 0 (zero). There's a
"problem" that COPTS will default to -O2 if they it's not defined. Thus,
if you define COPTS you have to add this by yourself.

Christian

--mVcE.FpBk'=.teGF
Content-Type: application/pgp-signature

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

iD8DBQE+PKxP0KQix3oyIMcRAgixAJ45RrWPCdUyP/DgbHVJ68OXBeXvCACgqvcb
HGMhB1FHx5RhVENcxJbUYeY=
=t0x4
-----END PGP SIGNATURE-----

--mVcE.FpBk'=.teGF--