building a gcc-3.3-prerelease cross-compiler
Michael Eager
eager@eagercon.com
Tue May 13 20:34:00 GMT 2003
Rene Rebe wrote:
>> (1) how do you create that version of gcc, and (2) is
>>this the same version of gcc that you build later?
>> This is the classic bootstrap
>>problem which appears overlooked.
>
>
> Could you elaborate on the problem that appears to be overlooked?
I occasionally have a need to build a toolchain for a new architecture
or new variant. After building binutils, the first step is to build
a bootstrap compiler. Once I have that compiler, I can build glibc.
After building glibc, I build a complete gcc. Both versions of gcc,
the bootstrap and the final, are built from the same sources.
In your scheme, you assume that the bootstrap has been done. Also
the compiler you use to build glibc is potentially one revision back
from your final compiler.
When you are working with one architecture, and repeatedly building
for that architecture, then this not a problem. But if you are building
tools for different architectures, or a new architecture, or you want to
make the entire process explicit, the bootstrap process should be explicit.
--
Michael Eager Eager Consulting eager@eagercon.com
1960 Park Blvd., Palo Alto, CA 94306 650-325-8077
More information about the Gcc
mailing list