This is the mail archive of the
gcc-help@gcc.gnu.org
mailing list for the GCC project.
Re: problems when building gcc 3.2.3 as crosscompiler
On Wed, May 21, 2003 at 03:51:00PM +0200, t152@vmars.tuwien.ac.at wrote:
> Hi,
>
> I'm currently trying to build the gcc 3.2.3 as cross-compiler
> for power pc on a i686-pc-linux-gnu host with this compiler:
>
> ...
>
> Maybe there is something completely wrong with my approach.
>
Not completely wrong, but not right either. Since you have no target
standard-library (glibc), I would suggest first building a mininal
(no-threads, and no-other-fancy-stuff) c-only cross-compiler, using
the "inhibit_libc" patch. Then you can use this compiler to
cross-build a glibc (or other standard library) for your target. Only
then, having the target library, you can build a "complete"
cross-compiler with front-ends for any language you might need, thread
support, etc.
I have posted a message with very detailed instructions on how to
build a cross-toolchain from scratch in the "gcc-help" newsgroup. The
examples are for the sparc-linux target, but the overall procedure is
very similar for other targets too. You can also get this document
from here:
http://www.inaccessnetworks.com/misc-downloads/xdvl/cross-toolchain-build.txt
/npat
--
They that can give up essential liberty to obtain a little temporary
safety deserve neither liberty nor safety.
-- Benjamin Franklin, Historical Review of Pennsylvania, 1759.