Subject: Re: Alpha cross compile
To: None <jrf@NetBSD.org>
From: Sean Davis <dive@endersgame.net>
List: tech-toolchain
Date: 07/31/2003 14:52:57
On Thu, Jul 31, 2003 at 02:42:11PM -0400, Jason R. Fink wrote:
> 
> Hello,
> 
> Got this while running build.sh -m alpha kernel=GENERIC 
> with -current as of 31 July:
> 
> /usr/src/tooldir.NetBSD-1.6U-i386/bin/alpha--netbsd-gcc  -mno-fp-regs  -ffreestanding  -O2 -Werror -Wall -Wno-main -Wno-format-zero-length -Wpointer-arith -Wmissing-prototypes -Wstrict-prototypes -Wno-sign-compare -Wno-uninitialized  -Dalpha -I.  -I/usr/src/sys/arch -I/usr/src/sys -nostdinc -DDIAGNOSTIC -DLKM -DMAXUSERS=32 -D_KERNEL -D_KERNEL_OPT   -c /usr/src/sys/netinet/igmp.c
> /usr/src/sys/netinet/igmp.c: In function `igmp_sendpkt':
> /usr/src/sys/netinet/igmp.c:591: internal error--unrecognizable insn:
> (insn 374 372 376 (set (reg:DI 159)
>         (and:DI (plus:DI (reg:DI 152)
>                 (const_int 21474836480 [0x500000000]))
>             (const_int -8 [0xfffffffffffffff8]))) -1 (insn_list 372 (nil))
>     (nil))
> *** Error code 1
> 
> Stop.
> nbmake: stopped in /usr/src/sys/arch/alpha/compile/GENERIC
> 
> ERROR: Failed to make all in /usr/src/sys/arch/alpha/compile/GENERIC
> *** BUILD ABORTED ***

I've seen the same thing, and what I was told when I asked is that it is
currently not possible with the version of GCC in -current to build from
ILP32 -> LP64. (Although I *know* I built a Sparc64 snapshot a while back on
-current, including the 64bit kernel.. so I don't know. I think that
something that used to work is now broken, but I'm no toolchain guru.)

-Sean

-- 
/~\ The ASCII
\ / Ribbon Campaign                   Sean Davis
 X  Against HTML                       aka dive
/ \ Email!