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 documentation


Peter Barada wrote:
I've had ssucess building a toolchain vor ppc-linux by building *two*
bootstrap compilers and *two* glibcs:

1) first bootstrap compiler that has *no* libgcc which is used for the:
2) first glibc configurd/built only to install-headers
3) second bootstrap compiler can now be built(and build ligbcc) since the
   headers are in place
4) second glibc that is fully built using the second bootstrap
   compiler
5) full gcc with c++ using the second bootstrap compiler.

Is there a more efficient method that *doesn't* require building two
bootstrap compilers or effectively building glibc twice?

Well, sure! My script at http://kegel.com/crosstool does this: 1) configure glibc and do 'make install-headers'; a wee bit of hackery circumvents its urge to build everything 2) build and install bootstrap compiler 3) build and install real glibc 4) build and install real gcc

My step #1 isn't pretty, but it only takes a couple minutes, and I'm
sure it's faster than what you described.  I thought you knew about
that already...
- Dan

--
Dan Kegel
http://www.kegel.com
http://counter.li.org/cgi-bin/runscript/display-person.cgi?user=78045


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