This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
Re: Howto Cross Compile GCC to run on PPC Platform
- From: Kai Ruottu <karuottu at mbnet dot fi>
- To: Jeff Stevens <jsteve17 at yahoo dot com>
- Cc: gcc at gcc dot gnu dot org
- Date: Thu, 03 Nov 2005 16:44:59 +0200
- Subject: Re: Howto Cross Compile GCC to run on PPC Platform
- References: <20051103131338.19037.qmail@web33409.mail.mud.yahoo.com>
- Reply-to: karuottu at mbnet dot fi
Jeff Stevens wrote:
.../gcc-3.4.4/configure
--build=`../gcc-3.4.4/config.guess`
--target=powerpc-linux --host=powerpc-linux
--prefix=${PREFIX} --enable-languages=c
and then a make all. The make went fine, and
completed without any errors. However, when I ran
'make install' I got the following error:
powerpc-linux-gcc: installation problem, cannot exec
`/opt/recorder/tools/libexec/gcc/powerpc-linux/3.4.4/collect2':
Exec format error
How do I install the native compiler?
You shouldn't ask how but where !
You cannot install alien binaries into
the native places on your host ! This
is not sane at all...
Ok, one solution is to collect the components
from the produced stuff, pack them into a
'.tar.gz' or something and then ftp or something
the stuff into the native system.
If you really want to install the stuff into your
host, you should know the answer to the "where"
first, and should read from the "GCC Install"
manual the chapter 7, "Final installation" and
see what option to 'make' you should use in order
to get the stuff into your chosen "where"...