Problem building newlib 1.15.0 for ppc-eabi
Dirk Heinrichs
dirk.heinrichs.ext@nsn.com
Wed Aug 15 14:00:00 GMT 2007
Am Mittwoch, 15. August 2007 schrieb ext Dave Korn:
> On 15 August 2007 11:03, Dirk Heinrichs wrote:
> > Hi,
> >
> > I'm trying to build a new cross compiler toolchain for ppc-eabi, using
> > binutils 1.17, gcc 4.2.1 and newlib 1.15.0. While building the first
> > two went fine, configuring newlib fails:
> >
> > CC=ppc-eabi-gcc ../newlib-1.15.0/configure
> > --prefix=/vob/apps/xgnu/newlib --host=ppc-eabi creating cache
> > ./config.cache
>
> That CC= looks bogus to me. IIUC, you're setting the build (native)
> compiler there, not the host (cross) compiler. configure ought to be
> perfectly capable of finding ppc-eabi-gcc itself, it knows to look for it
> because you specified --host. If something went wrong, you would set
> CC_FOR_TARGET, but it's best to left configure work things out for itself
> unless you really have to, it'll generally set CC and CC_FOR_TARGET
> correctly.
>
> > checking host system type... powerpc-unknown-eabi
> > checking target system type... powerpc-unknown-eabi
> > checking build system type... powerpc-unknown-eabi
>
> Configure thinks you're building on the native system, and hence not
> cross-compiling at all.
Hmm, right, didn't see this. I followed the instructions found in
https://www6.software.ibm.com/developerworks/education/l-cross/l-cross-ltr.pdf.
> > Any ideas what I could do to fix this? Build host is Solaris 2.9.
>
> Try not claiming that the build host is ppc-eabi then!
Stopped doing so, builds fine now :-)
Thanks a lot.
Bye...
Dirk
--
Dirk Heinrichs | Tel: +49 (0)162 234 3408
Configuration Manager | Fax: +49 (0)211 47068 111
Capgemini Deutschland | Mail: dirk.heinrichs@capgemini.com
Wanheimerstraße 68 | Web: http://www.capgemini.com
D-40468 Düsseldorf | ICQ#: 110037733
GPG Public Key C2E467BB | Keyserver: www.keyserver.net
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 189 bytes
Desc: This is a digitally signed message part.
URL: <http://sourceware.org/pipermail/newlib/attachments/20070815/3553f1ce/attachment.sig>
More information about the Newlib
mailing list