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


On Sun, 2003-06-22 09:31:32 -0700, Dan Kegel <dank@kegel.com>
wrote in message <3EF5D9E4.7020906@kegel.com>:
> The Linux target is interesting because you can build absolutely
> everything from virgin source tarballs.  It's a challenge, though:
> you have to install just the glibc headers so you can
> compile a bootstrap gcc so you can
> compile glibc so you can (finally!) compile gcc.
> That first step, installing bootstrap glibc headers, is a new
> and annoying prerequisite as of gcc-3.3. See
> http://sources.redhat.com/ml/crossgcc/2003-06/msg00170.html
> for my rant on the subject.

ACK.

_But_ it's even worse that there's no[1] strict documentation on how to
get a working cross-compiler. There are some "interesting"
configurations which should have easily findable documentation.
(Extensive --with-sysroot docs?).

For me, toying mostly with around with Linux, my top wishlist is:

	- Building a Linux kernel-only cross compiler on my i386-linux
	  box for some {mips|ppc|m68k|...}-linux target running
	  efficiently on the box I build it on (BUILD == HOST).
	- Building a Linux kernel-only cross compiler on my i386-linux
	  box for some {mips|ppc|m68k|...}-linux target running
	  on any i386-like Linux machine (BUILD != HOST). So I can
	  easily copy this binutils/compiler suite to some other box.

	- Building a full cross compiler (including userland and all
	  sensefull languages) with BUILD == HOST as well as BULID !=
	  HOST, but also keeping in mind that BUILD and HOST are nearly
	  identical:)

So basically I don't need a full Canadian Cross configuration. The
"simple" version would be enough for me.

For all those who are trying to build cross compilers, you may find
helpfull hints at my link list here:
http://lug-owl.de/~jbglaw/linux-ports/#EasilyBuildableCrossToolchains

MfG, JBG
[1] When I looked at GCCs docs, I either oversaw helpful hints, or they
simply didn't exist.

-- 
   Jan-Benedict Glaw       jbglaw@lug-owl.de    . +49-172-7608481
   "Eine Freie Meinung in  einem Freien Kopf    | Gegen Zensur | Gegen Krieg
    fuer einen Freien Staat voll Freier Bürger" | im Internet! |   im Irak!
      ret = do_actions((curr | FREE_SPEECH) & ~(IRAQ_WAR_2 | DRM | TCPA));

Attachment: pgp00000.pgp
Description: PGP signature


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