This is the mail archive of the crossgcc@sources.redhat.com mailing list for the crossgcc project.

See the CrossGCC FAQ for lots more information.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Some fundamental questions for cross too chain.


Hi All,
I am new to building cross tool chain so please forgive if answer of
below questions are obvious. (They may be obvious to u) 

I am building a cross tool chain for ARM XSCALE IXP425.
build=i686-pc-linux-gnu host=i686-pc-linux-gnu
target=armbe-xscale-linux-gnu. At many place on web I have seen
procedure as follows,

1.Compile and install binutil for target
2.Configure kernel to generate header and copy arch-specific header to
prefix dir.
3.Compile gcc for target (First pass)
4.Cross Compile glibc with above tools and install.
5.Compile gcc for target (Second Pass).

First,
	Is it necessary to compile gcc twice and if yes why? I can somewhat
understand if we are building cross compiler where build and host are
different. But I am not able to understand above steps where build
machine and host machine are same. 

Second,
Are these steps valid for cross compilation when build machine and host
machine are same and target is different.

1.Build binutil and gcc in any order and for target and install them.
2.Configure kernel, get headers.
3.Cross compile glibc using above cross compiler and binutil.

Thanks,
Tushar






------
Want more information?  See the CrossGCC FAQ, http://www.objsw.com/CrossGCC/
Want to unsubscribe? Send a note to crossgcc-unsubscribe@sources.redhat.com


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