From owner-freebsd-sparc64@FreeBSD.ORG Fri Jan 30 17:42:15 2004 Return-Path: Delivered-To: freebsd-sparc64@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id EDFCD16A4CE; Fri, 30 Jan 2004 17:42:15 -0800 (PST) Received: from chaotic.oz.org (CPE-138-130-139-224.nsw.bigpond.net.au [138.130.139.224]) by mx1.FreeBSD.org (Postfix) with ESMTP id 114AE43D39; Fri, 30 Jan 2004 17:42:14 -0800 (PST) (envelope-from simon@chaotic.oz.org) Received: from [127.0.0.1] (helo=router.chaos.oz.org) by chaotic.oz.org with esmtp (Exim 4.30; FreeBSD) id 1Amk98-000F7y-Br; Sat, 31 Jan 2004 12:42:06 +1100 Received: (from simon@localhost) by router.chaos.oz.org (8.12.10/8.12.10/Submit) id i0V1g5bS058151; Sat, 31 Jan 2004 12:42:05 +1100 (EST) (envelope-from simon) Date: Sat, 31 Jan 2004 12:42:05 +1100 From: Simon Coggins To: "David O'Brien" Message-ID: <20040131014204.GA37744@uow.edu.au> References: <20040130123606.GB36245@uow.edu.au> <20040130160749.GA5544@dragon.nuxi.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20040130160749.GA5544@dragon.nuxi.com> User-Agent: Mutt/1.4.1i Organisation: ITS, University of Wollongong (http://www.uow.edu.au/) X-Sage-AU-Member: System Administrators Guild of Australia (http://www.sage-au.org.au/) X-PGP-Fingerprint: DD3E 8E69 D847 72B7 B85A 6C91 B0A6 5920 18AA 98FE (0x18AA98FE) X-Spam-Score: 0.0 (/) X-JunkMail: / cc: freebsd-sparc64@freebsd.org Subject: Re: Question about cross compiling sparc64 on i386 X-BeenThere: freebsd-sparc64@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Porting FreeBSD to the Sparc List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 31 Jan 2004 01:42:16 -0000 On Fri, Jan 30, 2004 at 08:07:49AM -0800, David O'Brien wrote: > On Fri, Jan 30, 2004 at 11:36:06PM +1100, Simon Coggins wrote: > > Does anyone have a how-to or quick instructions on how to go about > > cross compiling sparc64 world/kernel on i386. I assumed it would be as > > easy as cd /usr/src && make TARGET_ARCH=sparc64 ... > > It is that easy. > Good I was hoping it was. I can see the answer to this is that I shouldn't be building on one machine then installing on another. The build machine should install the files. That just means I have to do weird nfs mounts that I didn't want to do. But I'll explain what I'm doing now. > > Once it finished the installkernel on the ultra 5 didn't work becuase > > it couldn't find some modules it was looking to install. And > > installworld failed because it didn't build the tools to install (ala > > install binary). > > Error log please -- we weren't in front of your machine when this > happened. > My setup: I have an nfs share /usr/world that contains src,obj,ports /usr/src is symlinked to /usr/world/src /usr/obj is symlinked to /usr/world/obj I have 2 machines like this, Chaotic (800Mhz i386) and Solar (260Mhz sparc). Here is exactly what I'm doing: chaotic:/usr/src# make TARGET_ARCH=sparc64 buildworld This completes without error and the output can be seen here: http://chaotic.oz.org/other/bsd/buildworld.out.gz (414k gz, 6.3meg txt) solar:/usr/src# make TARGET_ARCH=sparc64 MAKEOBJDIRPREFIX=/usr/obj/sparc64 installworld This is where I get the install not found error. I also have to add the MAKEOBJDIRPREFIX so that it can find the build directory. By default it looks in /usr/obj/ but when you do TARGET_ARCH=sparc64 on i386 machine it puts it in /usr/obj/sparc64/ From the looks of the only the i386 legacy binaries are compiled (the things in /usr/obj/.../src//legacy/* so it puts that in the path for installing and doesn't work. Output here: http://chaotic.oz.org/other/bsd/installworld.out.gz (1k gz, 5k txt) Anyway there's my error messages.. Regards Simon -- Simon Coggins (SAGE-AU Member) Email: simon@uow.edu.au Network and System Management Officer Phone: +61-2-4221-3775 Information Technology Systems (ITS) Mobile: 0408 115861 University of Wollongong, 2522, Australia Fax: +61-2-4229-1985