This is the mail archive of the gcc@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: Cross-Compilation Problems


>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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]