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: building a gcc-3.3-prerelease cross-compiler


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


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