From owner-freebsd-alpha Sat Nov 11 14:47:28 2000 Delivered-To: freebsd-alpha@freebsd.org Received: from dragon.nuxi.com (trang.nuxi.com [209.152.133.57]) by hub.freebsd.org (Postfix) with ESMTP id 7BC5837B479 for ; Sat, 11 Nov 2000 14:47:26 -0800 (PST) Received: (from obrien@localhost) by dragon.nuxi.com (8.9.3/8.9.1) id OAA21752; Sat, 11 Nov 2000 14:44:31 -0800 (PST) (envelope-from obrien) Date: Sat, 11 Nov 2000 14:44:31 -0800 From: "David O'Brien" To: "Michael C . Wu" Cc: Marcel Moolenaar , freebsd-alpha@FreeBSD.ORG Subject: Re: Crosscompiling from x86 host to alpha target Message-ID: <20001111144431.A21664@dragon.nuxi.com> Reply-To: obrien@FreeBSD.ORG References: <20001111145311.A18007@peorth.iteration.net> <3A0DB4E9.C6C5D067@cup.hp.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.2.5i In-Reply-To: <3A0DB4E9.C6C5D067@cup.hp.com>; from marcel@cup.hp.com on Sat, Nov 11, 2000 at 01:06:49PM -0800 X-Operating-System: FreeBSD 5.0-CURRENT Organization: The NUXI BSD group X-Pgp-Rsa-Fingerprint: B7 4D 3E E9 11 39 5F A3 90 76 5D 69 58 D9 98 7A X-Pgp-Rsa-Keyid: 1024/34F9F9D5 Sender: owner-freebsd-alpha@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.org On Sat, Nov 11, 2000 at 01:06:49PM -0800, Marcel Moolenaar wrote: > "Michael C . Wu" wrote: > > > > I am trying to use our basesystem gcc to cross compile > > to an Alpha from my x86 box. David O'Brien told me to use > > > > export TARGET_MACHINE=alpha > > make buildworld > > Use MACHINE_ARCH. Don't use TARGET_MACHINE. Doh! Sorry, it was quite late at night when you asked and I had GCC on my mind (which set TARGET_MACHINE). > If you don't have the gcc patches, it'll probably fail compiling libmd > (which is quite early). With the gcc patches it fails for perl. > The gcc patches can be downloaded from http://people.freebsd.org/~marcel/ These patches are OBE. The first one being applied in src/contrib/gcc.295/config/alpha.c rev 1.2: Add missing prototypes. This allows cross building an Alpha Gcc on a 32-bit host to work. Obtained from: alpha-protos.h (GCC 2.96 / head branch of FSF/GCC CVS repo) A different form of the Makefile patch was committed along time ago. (These two changes also exist in the RELENG_4 branch.) -- -- David (obrien@FreeBSD.org) GNU is Not Unix / Linux Is Not UniX To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-alpha" in the body of the message