This is the mail archive of the newlib@sourceware.org mailing list for the newlib project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: Problem building newlib 1.15.0 for ppc-eabi


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

Attachment: signature.asc
Description: This is a digitally signed message part.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]