From owner-freebsd-alpha Mon Mar 27 21:29: 0 2000 Delivered-To: freebsd-alpha@freebsd.org Received: from freefall.freebsd.org (freefall.FreeBSD.ORG [204.216.27.21]) by hub.freebsd.org (Postfix) with ESMTP id 01E8C37B9BE; Mon, 27 Mar 2000 21:28:58 -0800 (PST) (envelope-from jkoshy@FreeBSD.org) Received: (from jkoshy@localhost) by freefall.freebsd.org (8.9.3/8.9.2) id VAA39537; Mon, 27 Mar 2000 21:28:57 -0800 (PST) (envelope-from jkoshy@FreeBSD.org) Date: Mon, 27 Mar 2000 21:28:57 -0800 (PST) From: Message-Id: <200003280528.VAA39537@freefall.freebsd.org> X-Mailer: exmh version 2.0.2 2/24/98 To: alpha@FreeBSD.org Cc: obrien@FreeBSD.org (GCC maintainer) Subject: Cross building Alpha on an i386 Mime-Version: 1.0 Content-Type: text/plain Sender: owner-freebsd-alpha@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.org I can't seem to find a prior message in the mailing lists about this problem. A cross build with MACHINE_ARCH=alpha on a FreeBSD/x86 system fails: foobar# make MACHINE_ARCH=alpha buildworld [output elided] cc -O -pipe -I/home/src-current/lib/libmd -I/home/obj-current/alpha/home/s rc-current/i386/usr/include -c /home/src-current/lib/libmd/md2c.c -o md2c.o /home/src-current/lib/libmd/md2c.c: In function `MD2Final': /home/src-current/lib/libmd/md2c.c:167: internal error--unrecognizable ins n: (insn 26 24 28 (set (reg:DI 79) (and:DI (plus:DI (reg/v:DI 69) (const_int 586267588705834800 [0x822d7440822d730])) (const_int -8 [0xfffffffffffffff8]))) -1 (insn_list 4 (nil)) (nil)) *** Error code 1 Building with -O0 goes further, but not far enough: cc -pipe -Wall -DLIBC_SCCS -I/home/src-current/lib/libutil -I/home/src-cur rent/lib/libutil/../../sys -DINET6 -I/home/obj-current/alpha/home/src-current/i3 86/usr/include -c /home/src-current/lib/libutil/pty.c -o pty.o^M /home/src-current/lib/libutil/pty.c: In function `openpty':^M /home/src-current/lib/libutil/pty.c:63: Internal compiler error in `alpha_ expand_unaligned_load', at config/alpha/alpha.c:1617^M Please submit a full bug report.^M See for instructions.^M *** Error code 1^M ^M The offending line in "libutil/pty.c" has the following code: char line[] = "/dev/ptyXX"; In fact, the following 1 liner program demonstrates the problem too. foobar% cat /tmp/a.c int main() { char line[] = "/dev/ptyXX"; } And here is the compiler `cc -v' output: ob47191% /home/obj-current/alpha/home/src-current/i386/usr/bin/cc -v -B/home/obj-current/alpha/home/src-current/i386/usr/libexec/ /tmp/a.c Using builtin specs. gcc version 2.95.2 19991024 (release) /home/obj-current/alpha/home/src-current/i386/usr/libexec/cpp -lang-c -v -isystem /home/obj-current/alpha/home/src-current/i386/usr/libexec/include -D__GNUC__=2 -D__GNUC_MINOR__=95 -D__alpha__ -D__alpha -Dunix -D__FreeBSD__=5 -D__FreeBSD_cc_version=500001 -D__alpha__ -D__alpha -D__unix__ -D__FreeBSD__=5 -D__FreeBSD_cc_version=500001 -D__unix -Acpu(alpha) -Amachine(alpha) -Asystem(unix) -Asystem(FreeBSD) -Acpu(alpha) -Amachine(alpha) -D__alpha -D__alpha__ -D__alpha_ev4__ -Acpu(ev4) -D__ELF__ /tmp/a.c /tmp/ccTyb436.i GNU CPP version 2.95.2 19991024 (release) (FreeBSD/Alpha ELF) #include "..." search starts here: #include <...> search starts here: /home/obj-current/alpha/home/src-current/i386/usr/include /home/obj-current/alpha/home/src-current/i386/usr/include End of search list. The following default directories have been omitted from the search path: /home/obj-current/alpha/home/src-current/i386/usr/include/g++ End of omitted list. /home/obj-current/alpha/home/src-current/i386/usr/libexec/cc1 /tmp/ccTyb436.i -quiet -dumpbase a.c -version -o /tmp/ccfZO436.s GNU C version 2.95.2 19991024 (release) (alpha-unknown-freebsd) compiled by GNU C version 2.7.2.3. /tmp/a.c: In function `main': /tmp/a.c:1: Internal compiler error in `alpha_expand_unaligned_load', at config/alpha/alpha.c:1617 Please submit a full bug report. See for instructions. The source tree being built is -current as of yesterday. Any suggestions on getting a cross world build to work? Koshy To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-alpha" in the body of the message