Cross GCC and Sysroot

Duft Markus Markus.Duft@salomon.at
Fri Mar 16 17:24:00 GMT 2007


Kai Ruottu <> wrote:
> Duft Markus kirjoitti:
>> Hi!
>> 
>> I'm working on getting a compiler-farm up, that can cross compile to
>> multiple platforms. It's allready almost done, but there are some
>> small problems left over. 
>> 
>> Since the Compiler-Farm will only compile (no preprocessing, no
>> linking, etc.) because of usage of DISTCC, i wanted to ask if there
>> is a way to build binutils/gcc in a way that there are only the
>> really necessary parts (as, gcc, g++) without support for linking
>> and other unwanted stuff. 
>> 
>  Just leave the build when it stops!  It stops when trying libgcc, so
> if you don't link,
> where you will need libgcc?

You're right ;o) i don't need libgcc anyways. But i'm inside an
automated build system, which will die if there is an error.
Additionally i can't do "make install" in this state, can i?

>> The second problem is, how to find out what to put in the sysroot
>> packages used to bootstrap the crossc ompilers for each platform. At
>> the moment this is a really annoying manual process of sorting out
>> and tar'ing together /usr/include and /usr/lib with some additional
>> softlinks. Is there a somewhat short list of files i need for this
>> purpose? 
>> 
>  You  don't need anything for the $target system...
>> The sysroot package is used only for bootstrapping gcc, since
>> everything that the cross-gcc will see is preprocessed allready.
>> 
>  No 'bootstrap' required either...
> 
>  In a nutshell: Building GCC binaries requires ONLY the $host GCC !
> Nothing for
> the $target !  Producing anything for the $target WITH the new GCC
> then can require
> quite a lot $target stuff !

Oki doki.... ;o)

Thanks, Markus



More information about the Gcc-help mailing list