This is the mail archive of the gcc-help@gcc.gnu.org mailing list for the GCC 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: PowerPc Cross Compile


none none wrote:

> I have installed the latest binutils and also I have
> exported to $PATH the
> following directory:
> 
> /usr/local/powerpc/powerpc_exports
> 
> in whitch my binutils are installed. I configure using
> 
> /var/gcc-4.1.0/configure --target=powerpc-linux
> --prefix=/usr/local/powerpc/powerpc_exports
> --disable-shared
> --disable-threads --enable-languages=c --with-newlib
> 
> and then i give: gmake all-gcc install-gcc
> 
> After a while I get the error message:
> 
> gmake[3]: powerpc-linux-ar: Command not found
> [...]
>
> 
> But I DO have exported the directory in which the AR
> linker is installed!
> powerpc-linux-ar IS installed!  What can I do? I am
> out of ideas.

You added $prefix to the PATH but the binaries aren't in $prefix,
they're in $prefix/bin which is what needs to be in the PATH.  You can
verify that you've got it right as "which powerpc-linux-ar" from the
shell prompt should find the right binary.

Brian


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