Subject: Cross compile broken
To: None <port-i386@netbsd.org, port-alpha@netbsd.org>
From: Jonathan Perkin <sketch@rd.bbc.co.uk>
List: port-alpha
Date: 01/05/2002 20:41:18
(Sorry for the cross post, not sure which arch is causing this bug)

Trying to do an alpha cross build on my intel box fails with a
reproducible bug.  I've tried this twice now over the past few weeks
so it can't just be a dodgy src update.  Fails in the same place each
time.  Newlines added in the following paste...

/usr/src/tools/obj.alpha/tools.NetBSD-1.5ZA-i386/bin/alpha--netbsd-gcc -O2
-DALL_STATE -DUSG_COMPAT  -Wall -Wstrict-prototypes -Wmissing-prototypes
-Wpointer-arith -Wno-uninitialized -Wreturn-type -Wpointer-arith -Wswitch
-Wshadow  -Werror  -D_LIBC -DNLS -DYP -DHESIOD -DLIBC_SCCS -DSYSLIBC_SCCS
-D_REENTRANT -I/usr/src/lib/libc/include -DINET6 -D__DBINTERFACE_PRIVATE
-I/usr/src/lib/libc/../../libexec/ld.elf_so -I/usr/src/lib/libc/dlfcn
-DWITH_RUNE -DRUNEMOD_MAJOR=3  -D_PATH_LOCALEMODULE=\"/usr/lib/runemodule\"
-DRESOLVSORT -I. -DPOSIX_MISTAKE -DPORTMAP -DFLOATING_POINT -nostdinc
-isystem /home/alpha/usr/include  -c /usr/src/lib/libc/gen/__glob13.c
/usr/src/lib/libc/gen/__glob13.c: In function `g_opendir':
/usr/src/lib/libc/gen/__glob13.c:939: internal error--unrecognizable insn:
(insn 24 22 26 (set (reg:DI 82)
        (and:DI (plus:DI (reg:DI 75)
                (const_int 578553187355590656 [0x8076f0f00000000]))
            (const_int -8 [0xfffffffffffffff8]))) -1 (insn_list 22 (nil))
    (nil))
*** Error code 1

Stop.
nbmake: stopped in /usr/src/lib/libc
*** Error code 1

Is this a known bug?  Anyone want any more specific information with
which to track it down.  I'm fresh out of clues as to where to start
looking with this one.

Build attempted with "./build.sh -a alpha -d -D /home/alpha -m alpha"

NetBSD trumpton.intra.nut 1.5ZA (TRUMPTON) #0: Thu Jan  3 17:50:38 GMT 2002

-- 
 Jonathan Perkin - BBC Internet Services - <sketch@rd.bbc.co.uk>