This is the mail archive of the gcc-help@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 compiler questions


Let's elaborate, simple things are the most hard to grok, the nature law called entropy states that
the world goes towards more disorder, to more complicated systems all the time :(


On 19.3.2010 11:30, Kai Ruottu wrote:
Please read the "Prerequisites" in "Install"

http://gcc.gnu.org/install/prerequisites.html

and you will see that what you are claiming is pure bullshit! A cross compiler as default requires
only one build stage, if you see something else claimed elsewhere, please don't believe it!

"Bootstrap" in a native GCC builld is a 3-stage process, a cross GCC build doesn't use it!


If one wants Java, then a 2-stage build process is obligatory :

"If the cross compiler is to be built with support for the Java programming language and the
ability to compile .java source files is desired, the installed native compiler used to build the
cross compiler needs to be the same GCC version as the cross compiler. In addition the
cross compiler needs to be configured with --with-ecj-jar=.... "

The first build stage would be to build a native "boostrap GCC" from the same sources and
then use this "stage 1" GCC to build the cross GCC, this being the "stage 2"...



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