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


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.

> checking for a BSD compatible install... /vob/apps/gnu/SunOS/bin/install -c
> checking whether ln works... yes
> checking whether ln -s works... yes
> checking for gcc... ppc-eabi-gcc
> checking whether the C compiler (ppc-eabi-gcc  ) works... no
> configure: error: installation or configuration problem: C compiler cannot
> create executables.

  No wonder it got confused trying to run a target executable on your build
machine.
  
> 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!

    cheers,
      DaveK
-- 
Can't think of a witty .sigline today....


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