Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 27 Mar 2000 21:28:57 -0800 (PST)
From:      <jkoshy@FreeBSD.org>
To:        alpha@FreeBSD.org
Cc:        obrien@FreeBSD.org (GCC maintainer)
Subject:   Cross building Alpha on an i386
Message-ID:  <200003280528.VAA39537@freefall.freebsd.org>

next in thread | raw e-mail | index | archive | help


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 <URL:http://www.gnu.org/software/gcc/bugs.html>; 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 <URL:http://www.gnu.org/software/gcc/bugs.html>; for instructions.


The source tree being built is -current as of yesterday.

Any suggestions on getting a cross world build to work?

Koshy
<jkoshy@freebsd.org>


To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-alpha" in the body of the message




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200003280528.VAA39537>