This is the mail archive of the
gcc-help@gcc.gnu.org
mailing list for the GCC project.
Re: PowerPc Cross Compile
- From: Brian Dessent <brian at dessent dot net>
- To: none none <menwn at yahoo dot co dot uk>
- Cc: gcc-help at gcc dot gnu dot org
- Date: Thu, 01 Feb 2007 13:54:04 -0800
- Subject: Re: PowerPc Cross Compile
- References: <20070201115727.86847.qmail@web26208.mail.ukl.yahoo.com>
- Reply-to: gcc-help at gcc dot gnu dot org
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