From owner-freebsd-amd64@FreeBSD.ORG Tue Feb 15 17:07:17 2005 Return-Path: Delivered-To: freebsd-amd64@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 8F76A16A4CE for ; Tue, 15 Feb 2005 17:07:17 +0000 (GMT) Received: from dragon.nuxi.com (trang.nuxi.com [66.93.134.19]) by mx1.FreeBSD.org (Postfix) with ESMTP id 3A97443D3F for ; Tue, 15 Feb 2005 17:07:17 +0000 (GMT) (envelope-from obrien@NUXI.com) Received: from dragon.nuxi.com (obrien@localhost [127.0.0.1]) by dragon.nuxi.com (8.13.1/8.13.1) with ESMTP id j1FH7GUo082467 for ; Tue, 15 Feb 2005 09:07:16 -0800 (PST) (envelope-from obrien@dragon.nuxi.com) Received: (from obrien@localhost) by dragon.nuxi.com (8.13.1/8.13.1/Submit) id j1FH7GWX082466 for freebsd-amd64@freebsd.org; Tue, 15 Feb 2005 09:07:16 -0800 (PST) (envelope-from obrien) Date: Tue, 15 Feb 2005 09:07:16 -0800 From: "David O'Brien" To: freebsd-amd64@freebsd.org Message-ID: <20050215170716.GB38158@dragon.nuxi.com> References: <20050215141155.GA29160@gattaca.yadt.co.uk> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20050215141155.GA29160@gattaca.yadt.co.uk> User-Agent: Mutt/1.4.1i X-Operating-System: FreeBSD 6.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 Subject: Re: Cross compiling for i386 X-BeenThere: freebsd-amd64@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list Reply-To: obrien@freebsd.org List-Id: Porting FreeBSD to the AMD64 platform List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 15 Feb 2005 17:07:17 -0000 On Tue, Feb 15, 2005 at 02:11:55PM +0000, David Taylor wrote: > I also have an i386 workstation, which is significantly slower at building > world. I tried to cross-build the world on the amd64 box, then install it > over an NFS mount. To date we've never guaranteed that a cross-arch built world is usable. We only officially support cross-arch compiles for compile testing. There are other things in the tree that aren't size & endian-clean that prevent usable cross-arch release builds. Many (?most?) of the result from a cross-arch 'make buildworld' are usable on the target arch; but small nuances cause the total of the result to not really be usable. > Eventually, I managed to persuade it to build and > install, but it's not really a process I'd like to repeat every time I > update... > > I managed to eventually complete a single build/install world cycle by doing > something like: > > $ cd /usr/src; make buildworld TARGET_ARCH=i386 > $ mount :/usr/src /usr/src > $ mount :/usr/obj /usr/obj > $ make installworld I would mount /usr/src read-only. Probably /usr/obj also; just to make sure you don't end up writing into these directories on the i386 machine. > This however had a few problems. Running installworld caused the i386 box > to attempt to write to /usr/src, due to newvers.sh, so I needed to mount > /usr/src rw. Please submit a PR for this, with sufficient logs to see what was going on. /usr/src should be considered read-only by 'make installworld'; else it is a bug. > Also the built objects appeared to be in /usr/obj/i386, whilst > installworld was looking at /usr/obj. See above, we don't support cross-arch built installs. Given the closeness of x86 and amd64 I can understand the desire to make this work as you're wanting. But there is still so much to be done to polish FreeBSD/AMD64 in these corner cases. The Linux 32-bit support is still very rough, as you mentioned earlier the FreeBSD 32-bit support is rough. I personally don't think either should have been exposed in 5.x until they were to the point of easy-of-use and polish users are demanding in this mailing list. > Is this supposed to be possible/supported? And does anyone have any ideas > how to make it work more automatically? My suggestion is to dual-boot your AMD Athlon 64 3500+ to do builds. -- -- David (obrien@FreeBSD.org)