This is the mail archive of the 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: x32_64 cross compiler

NightStrike writes:
 > On Nov 12, 2007 8:11 AM, Andrew Haley <> wrote:
 > > NightStrike writes:
 > >  >
 > >  > There's a program called "crosstool" that automates the
 > >  > process, though I've found it easier to just do it myself
 > >  > assuming you have all the tools in place that you need.  Check
 > >  > here:
 > >  >
 > >  >
 > >  > If you get stuck, I could probably build you a toolchain real fast and
 > >  > send you a log of what I did so that you can see each command and how
 > >  > it works.
 > >
 > > This is an excruciatingly hard way to build a Linux-Linux cross
 > > compiler.  The easy way is to copy libraries from a 64-bit Linux
 > > system to a 32-bit system and then to build the compiler with
 > >
 > >     --enable-targets=all
 > Right... because everyone with a 32-bit linux system has a running
 > 64-bit system available from which to copy system
 > libraries.....................


rpm2cpio ./glibc-2.5-18.fc6.x86_64.rpm | cpio -idv

Repeat for glibc-devel, etc.

What's more, this will work for all target libraries needed, not just

 > The guy is building a cross compiler, not a native compiler.

And you believe that building system libraries from scratch is going
to be easier?


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