From owner-freebsd-arm@FreeBSD.ORG Wed Dec 8 15:12:44 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 2C90716A521 for ; Wed, 8 Dec 2004 15:12:44 +0000 (GMT) Received: from rproxy.gmail.com (rproxy.gmail.com [64.233.170.199]) by mx1.FreeBSD.org (Postfix) with ESMTP id B37BA43D5F for ; Wed, 8 Dec 2004 15:12:43 +0000 (GMT) (envelope-from jiashiun@gmail.com) Received: by rproxy.gmail.com with SMTP id 40so141060rnz for ; Wed, 08 Dec 2004 07:12:43 -0800 (PST) DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=beta; d=gmail.com; h=received:message-id:date:from:reply-to:to:subject:cc:in-reply-to:mime-version:content-type:content-transfer-encoding:references; b=kgLNl88uvmTsWLjx7IU+eJDamtQhc1gE+b8m7hh9+lweqP1QujIL1nArUeRzbPO0mFX+rOP4QJywfFlKJ3lxLWDYkjbaxoTsIWcUvOEexsFu3Oi2hCcv1zpF4zR1T+ttaDrtQbi6NZhLi2vS+8dntwtRqxhGihiZCzGpDWU7gDY= Received: by 10.38.8.44 with SMTP id 44mr422868rnh; Wed, 08 Dec 2004 07:12:43 -0800 (PST) Received: by 10.38.206.69 with HTTP; Wed, 8 Dec 2004 07:12:43 -0800 (PST) Message-ID: <1d6d20bc04120807123444ee91@mail.gmail.com> Date: Wed, 8 Dec 2004 23:12:43 +0800 From: Jia-Shiun Li To: Olivier Houchard In-Reply-To: <20041124173242.GA38286@ci0.org> Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit References: <41939C6D.5010400@sitetronics.com> <20041112010144.GA36319@ci0.org> <1d6d20bc04111811434a86bc7b@mail.gmail.com> <20041118214602.GA6230@ci0.org> <1d6d20bc041124080974e4eb3e@mail.gmail.com> <20041124173242.GA38286@ci0.org> 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 Reply-To: Jia-Shiun Li List-Id: Porting FreeBSD to the StrongARM Processor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 08 Dec 2004 15:12:44 -0000 On Wed, 24 Nov 2004 18:32:42 +0100, Olivier Houchard wrote: > On Thu, Nov 25, 2004 at 12:09:30AM +0800, Jia-Shiun Li wrote: > > On Thu, 18 Nov 2004 22:46:02 +0100, Olivier Houchard wrote: > > > 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 tried again, despite some directories under /usr/cross missing > > during installation, the second step to build binutils still failed > > somewhere, so I decided to do some lary try. :) > > > > I checked /usr/src/Makefile to see how it works to crossbuild for > > other platform, and executed > > make -DNOCLEAN buildworld TARGET_ARCH=arm TARGET=arm __MAKE_CONF=/dev/null > > and it failed at the same place. Looks like that as.h was included > > twice. But buildworld will work for other platforms, at least I tried > > IA64. > > > > Wild guess : didn't you try to re-apply the patch after cvsup-ing ? I remember > getting hit by that before, because instead of re-creating the files, patch will > happen the diffs to the existing files, effectively duplicating it. > There may be a patch option to tell it not to create files that already exists, > but I don't know it. When I have to re-apply the patches I usually remove > src/gnu, src/contrib/gcc and src/contrib/binutils. after re- cvsup gnu/ and contrib/, building gcc worked, then it stopped at the first file of building kernel: root@jsli-x4:/usr/src/sys/arm/compile/IQ31244 # make all /usr/cross/usr/bin/gcc -c -x assembler-with-cpp -DLOCORE -O2 -pipe -fno-strict-aliasing -Wall -Wredundant-decls -Wnested-externs -Wstrict-prototypes -Wmissing-prototypes -Wpointer-arith -Winline -Wcast-qual -fformat-extensions -std=c99 -g -nostdinc -I- -I. -I../../.. -I../../../contrib/dev/acpica -I../../../contrib/altq -I../../../contrib/ipfilter -I../../../contrib/pf -I../../../contrib/dev/ath -I../../../contrib/dev/ath/freebsd -I../../../contrib/ngatm -D_KERNEL -include opt_global.h -fno-common -finline-limit=8000 --param inline-unit-growth=100 --param large-function-growth=1000 -mcpu=xscale -ffreestanding -Werror ../../../arm/arm/locore.S ../../../arm/arm/locore.S: Assembler messages: ../../../arm/arm/locore.S:138: Error: undefined symbol `PMAP_DOMAIN_KERNEL' in operation ../../../arm/arm/locore.S:198: Error: undefined symbol `KERNBASE' in operation ../../../arm/arm/locore.S:237: Error: internal_relocation (type: OFFSET_IMM) not fixed up *** Error code 1 Stop in /usr/src/sys/arm/compile/IQ31244. if I use the (lazy) buildworld way, it would stop at building libc/softfloat.