cross-compilation documentation

Peter Barada peter@baradas.org
Mon Jun 23 14:14:00 GMT 2003


>> But this fragment *requires* a cross-compiler to build it.
>
>Hmm.  That's odd.  I do almost the same thing, but I don't require a cross-compiler.
>Maybe the step you're missing is the following kludge:
>         make sysdeps/gnu/errlist.c
>         mkdir -p stdio-common
>         touch stdio-common/errlist-compat.c
>That goes between the configure and the make of glibc, and keeps anything
>real from being compiled by the install-headers.

If that's in the source tree then its *really* a kludge and won't work
too well for me since I keep my source in a CVS controlled tree.

>> ... I'm hoping people see that there *is* a
>> problem making blanket statements that "its perfectly normal to insist
>> that the system headers be installed when building the bootstrap".
>
>Indeed.
>
>> I don't know what the solution is, but I trying to figure out the
>> minimal set of changes necessary to make a(or most/if not
>> all -linux toolchains).  That way hopefully with the next release of
>> gcc/glibc I won't have to go through this mess all over again...
>
>I think the powers that be are suggesting that the fix for gcc-3.5
>might be to separate out the building of libgcc from the building of
>gcc.  Hmm, and then separate out the building of anything in glibc
>that requires libgcc into a separate target.  Then we could do
>    make bootstrap gcc without libgcc
>    make whatever parts of glibc that don't depend on libgcc
>    make real gcc including libgcc
>    make whatever parts of glibc that depend on libgcc

That's what I described as *two* bootstrap compilers and *two*
configure/builds of glibc...

-- 
Peter Barada
peter@baradas.org



More information about the Gcc mailing list