From owner-freebsd-arm@FreeBSD.ORG Tue May 19 20:31:33 2009 Return-Path: Delivered-To: freebsd-arm@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id DDB221065677 for ; Tue, 19 May 2009 20:31:33 +0000 (UTC) (envelope-from imp@bsdimp.com) Received: from harmony.bsdimp.com (bsdimp.com [199.45.160.85]) by mx1.freebsd.org (Postfix) with ESMTP id 9AAE38FC15 for ; Tue, 19 May 2009 20:31:33 +0000 (UTC) (envelope-from imp@bsdimp.com) Received: from localhost (localhost [127.0.0.1]) by harmony.bsdimp.com (8.14.3/8.14.1) with ESMTP id n4JKSGtB041286; Tue, 19 May 2009 14:28:16 -0600 (MDT) (envelope-from imp@bsdimp.com) Date: Tue, 19 May 2009 14:28:24 -0600 (MDT) Message-Id: <20090519.142824.570083563.imp@bsdimp.com> To: chuckr@telenix.org From: "M. Warner Losh" In-Reply-To: <20090519.141224.556005618.imp@bsdimp.com> References: <4A1310F8.3070202@telenix.org> <20090519.141224.556005618.imp@bsdimp.com> X-Mailer: Mew version 5.2 on Emacs 21.3 / Mule 5.0 (SAKAKI) Mime-Version: 1.0 Content-Type: Text/Plain; charset=us-ascii Content-Transfer-Encoding: 7bit Cc: freebsd-arm@freebsd.org Subject: Re: making the cross tools- more info X-BeenThere: freebsd-arm@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Porting FreeBSD to the StrongARM Processor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 19 May 2009 20:31:34 -0000 In message: <20090519.141224.556005618.imp@bsdimp.com> "M. Warner Losh" writes: : In message: <4A1310F8.3070202@telenix.org> : Chuck Robey writes: : : I have one bit more of info, so I'm going to paste it at the end. : : ------------------------------------- : : Referring to the "Mini-install guide" that's on the Arm web page, I've : : built/installed the compiler, but when I got to the 2nd set of instructions, : : about building the binutils, it gives me this error after doing quite a bit of : : building: : : : : make: don't know how to make /usr/cross/usr/lib/libc.a. Stop : : *** Error code 2 : : : : The DESTDIR is /usr/cross, and the command itself from the guide sets the : : TOOLS_PREFIX also to /usr/cross. Any idea what's going on, that it's refusing : : to use my system libc.a? It's a cross-compiler here, which means it's going to : : execute here on my i386 machine, so it really SHOULD use my local libc.a (not : : some libc.a for the Arm arch), right? : : : : : : [ADDED} the build error came in the "all" target part of building of ld, which : : is the 7th app in that subdir (all the others went beautifully). Svn diff : : doesn't tell me that I have any mods, and seeing as I only recently changed : : from cvs to svn (about 2 months ago) I'm really pretty sure I haven't hacked : : into there any. : : I usually use: : : cd /usr/src : sudo make xdev TARGET=arm TARGET_ARCH=arm : to do all that... Err, got confused between the buildworld method and the xdev method: sudo make xdev XDEV=arm XDEV_ARCH=arm is what I use. Well, really, what I usually use is: setenv TARGET arm make buildworld make buildkernel KERNCONF=blah and then s/KERNCONF/KERNFAST/ after the first time unless I'm hacking the config files. This just works and I don't have to think about it. The xdev stuff is more tailored to cross building whole projects as well (or hacking on ports support for cross build :). Warner