How to build cross compiler
Rupert Wood
me@rupey.net
Fri Jun 28 02:21:00 GMT 2002
Samant wrote:
> I want to build a cross compiler which runs on Red Hat 6.2 -- intel
> and generates executables which are run on target Red Hat 6.2 --
> powerpc.
>
> Please suggest me some documents for this... FAQs ?
FAQ and CrossGCC mailing list archives:
http://crossgcc.billgatliff.com/
http://sources.redhat.com/ml/crossgcc/
> I think, i need to build :
0) Binutils with --target=powerpc-linux. You may combine this with step
1 by creating a merged source tree, e.g. as described
http://gcc.gnu.org/simtest-howto.html
If built separately then you need to install these before you continue.
They should be built with the same --prefix that you're going to
build/install GCC to.
> 1) Gcc with --target=powerpc-linux
> 2) Glibc with gcc obtained in step 1.
or if you have access to powerpc-linux system headers and libraries (and
you're willing to use them rather than rebuilding glibc - probably a
good idea if you have an existing system in mind) then you can copy
these to <prefix>/powerpc-linux/sys-include and
<prefix>/powerpc-linux/lib and skip these two steps. This will be
described in the CrossGCC FAQ.
> 3) Gcc with Glibc obtained in step 2
Good luck,
Rup.
More information about the Gcc-help
mailing list