This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
Re: Cross-Compilation Problems
- From: Peter Barada <peter at the-baradas dot com>
- To: sam124 at operamail dot com
- Cc: gcc at gcc dot gnu dot org
- Date: Sun, 31 Oct 2004 15:54:30 -0500 (EST)
- Subject: Re: Cross-Compilation Problems
- References: <20041031203732.5762023C12@ws5-3.us4.outblaze.com>
>I've been trying to cross-compile on an i686-pc-linux-gnu system to
>i686-pc-linux-aout, i586-pc-linux-gnu, and
>powerpc-apple-darwin7.4.0. When I build any version of GCC, as soon as
>make gets to making gcc/config/machinename-crt2.c, it says "In file
>included from machinename-crt2.c, included from tconfig.h, included
>from tsystem.h: /lib/machinename not found". After reading the code
>I've discovered that it was looking for headers from the compile-to
>system. Since obviously these headers aren't on my system, any
>suggestions?
Without knowing what steps you are taking to configure/build the
tools(and in what order), I don't think anyone can help you.
Also, have you looked at crosstool to build the toolchain for you?
Check out the crossgcc mailing list at http://sources.redhat.com/ml/crossgcc/
where you'll find lots of information on building cross-compiler toolchains.
--
Peter Barada
peter@the-baradas.com