From owner-freebsd-arm@FreeBSD.ORG Thu Nov 18 20:57:07 2004 Return-Path: Delivered-To: freebsd-arm@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id E7DC016A4CE for ; Thu, 18 Nov 2004 20:57:07 +0000 (GMT) Received: from dong.ci0.org (cognet.ci0.org [80.65.224.102]) by mx1.FreeBSD.org (Postfix) with ESMTP id BEB1B43D2F for ; Thu, 18 Nov 2004 20:57:06 +0000 (GMT) (envelope-from mlfbsd@dong.ci0.org) Received: from dong.ci0.org (localhost.ci0.org [127.0.0.1]) by dong.ci0.org (8.13.1/8.12.11) with ESMTP id iAILk3Hh006304; Thu, 18 Nov 2004 22:46:03 +0100 (CET) (envelope-from mlfbsd@dong.ci0.org) Received: (from mlfbsd@localhost) by dong.ci0.org (8.13.1/8.12.11/Submit) id iAILk2vT006303; Thu, 18 Nov 2004 22:46:02 +0100 (CET) (envelope-from mlfbsd) Date: Thu, 18 Nov 2004 22:46:02 +0100 From: Olivier Houchard To: Jia-Shiun Li Message-ID: <20041118214602.GA6230@ci0.org> References: <41939C6D.5010400@sitetronics.com> <20041112010144.GA36319@ci0.org> <1d6d20bc04111811434a86bc7b@mail.gmail.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <1d6d20bc04111811434a86bc7b@mail.gmail.com> User-Agent: Mutt/1.4.1i cc: freebsd-arm@freebsd.org Subject: Re: Current status and further development X-BeenThere: freebsd-arm@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Porting FreeBSD to the StrongARM Processor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 18 Nov 2004 20:57:08 -0000 On Fri, Nov 19, 2004 at 03:43:16AM +0800, Jia-Shiun Li wrote: > Hi Oliver, > > I tried following the instructions to build -current , but the first > stage to build a cross-compiler would fail with messages like this: > > make: don't know how to make /usr/cross/usr/lib/libc.a. Stop > *** Error code 2 > > Stop in /usr/src/gnu/usr.bin/cc. > > at the step of 'make all' for cc. I checked the .depend file, the last > line said cc depends on /usr/cross/usr/lib/libc.a and > /usr/src/gnu/usr.bin/cc/cc/../cc_int/libcc_int.a. Since I am building > the cross-compiler for the first time, there is nothing under > /usr/cross. Do I need some more hack or compiled library to continue? > > Thanks, > > Jia-Shiun. Hi, It seems it my fault, partially. Apparently specifying DESTDIR for any other target than install is not a good idea (although some .depend files looks right, go figure). So instead you have to do make TARGET_ARCH=arm TOOLS_PREFIX=/usr/cross depend all make TARGET_ARCH=arm TOOLS_PREFIX=/usr/cross DESTDIR=/usr/cross install I've updated freebsd_arm.txt to reflect this. Thanks for reporting, and sorry for the trouble. Cheers, Olivier