From owner-freebsd-arm@FreeBSD.ORG Tue May 19 20:21:38 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 079EF10656A9 for ; Tue, 19 May 2009 20:21:38 +0000 (UTC) (envelope-from chuckr@telenix.org) Received: from mail5.sea5.speakeasy.net (mail5.sea5.speakeasy.net [69.17.117.7]) by mx1.freebsd.org (Postfix) with ESMTP id D5D6F8FC12 for ; Tue, 19 May 2009 20:21:36 +0000 (UTC) (envelope-from chuckr@telenix.org) Received: (qmail 7324 invoked from network); 19 May 2009 20:21:36 -0000 Received: from april.chuckr.org (HELO april.telenix.org) (chuckr@[66.92.151.30]) (envelope-sender ) by mail5.sea5.speakeasy.net (qmail-ldap-1.03) with AES256-SHA encrypted SMTP for ; 19 May 2009 20:21:36 -0000 Message-ID: <4A1314D3.1010603@telenix.org> Date: Tue, 19 May 2009 16:21:39 -0400 From: Chuck Robey User-Agent: Thunderbird 2.0.0.19 (X11/20090121) MIME-Version: 1.0 To: "M. Warner Losh" References: <4A1310F8.3070202@telenix.org> <20090519.141224.556005618.imp@bsdimp.com> In-Reply-To: <20090519.141224.556005618.imp@bsdimp.com> Content-Type: text/plain; charset=ISO-8859-1 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:21:40 -0000 M. Warner Losh wrote: > 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 OK, does xdev just do the cross tools? The port I'm after doesn't yet exist, after all. Oh, BTW, I checked and (wouldn't you know it) the first gcc that added Cortex support is (I think) 4.3.0. Well, maybe I can get 4.3.0 to build, who knows? I know very well I can do it directly from the gcc sources, I alreqady tried that, excepting I used a machine description I can't end up with (derivative of Linux). > > to do all that... > > Warner