Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 24 Nov 2004 18:32:42 +0100
From:      Olivier Houchard <mlfbsd@ci0.org>
To:        Jia-Shiun Li <jiashiun@gmail.com>
Cc:        freebsd-arm@freebsd.org
Subject:   Re: Current status and further development
Message-ID:  <20041124173242.GA38286@ci0.org>
In-Reply-To: <1d6d20bc041124080974e4eb3e@mail.gmail.com>
References:  <41939C6D.5010400@sitetronics.com> <20041112010144.GA36319@ci0.org> <1d6d20bc04111811434a86bc7b@mail.gmail.com> <20041118214602.GA6230@ci0.org> <1d6d20bc041124080974e4eb3e@mail.gmail.com>

next in thread | previous in thread | raw e-mail | index | archive | help
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 <mlfbsd@ci0.org> 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. 

> BTW why is there two binutils & cc, under gnu/ and contrib/ ? i
> thought they were the same?
> 

contrib/ contains the bits from FSF almost verbatim.
gnu/ contains our build bits.

Cheers,

Olivier


Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20041124173242.GA38286>