Discussion:
GCC cross compiler dependency
naveen yadav
2010-08-19 15:32:44 UTC
Permalink
Hi all,

I want to know is there any dependency of host environment to build a
cross toolchain.
Suppose I want to build GCC 4.4 for MIPS arch.
1.So is there some min version of GCC I need to keep on my host build
server.So how can i found which is best for me.
2. or Some min kernel version I need to keep.
3. What is best and optimise way to build a cross toolchain.

Thanks
Ian Lance Taylor
2010-08-19 22:14:11 UTC
Permalink
Post by naveen yadav
I want to know is there any dependency of host environment to build a
cross toolchain.
I hope not.
Post by naveen yadav
Suppose I want to build GCC 4.4 for MIPS arch.
1.So is there some min version of GCC I need to keep on my host build
server.So how can i found which is best for me.
2. or Some min kernel version I need to keep.
3. What is best and optimise way to build a cross toolchain.
The kernel version is irrelevant.

Ordinarily you will get best results by building your compiler with a
native build of the same compiler version.

By the way, no need to send messages to both gcc-***@gcc.gnu.org and
gcc-***@gnu.org. Please send them only to gcc-***@gcc.gnu.org.
Thanks.

Ian
naveen yadav
2010-08-20 03:21:50 UTC
Permalink
Thanks Ian for your answer.

I will explain some evidence.

We build cross toolchain on two different host running with different
GCC version's
Our cross toolchain version is 4.4.1.
GCC version on one host is 4.1 and on other it is 4.3.2

so we observe one interesting thing the cross compiler Build on 4.1
fail one test case that was passed when we build cross toolchain with
4.3.2(Host)

so when I Increase the stack size. 'ulimit -S -s unlimited' using this
command the testcase got pass with both cross toolchain.

So I am suspecting there is Host environment effect building on Cross
toolchain.

Thanks
Post by Ian Lance Taylor
Post by naveen yadav
I want to know is there any dependency of host environment to build a
cross toolchain.
I hope not.
Post by naveen yadav
Suppose I want to build GCC 4.4 for MIPS arch.
1.So is there some min version of GCC  I need to keep on my host build
server.So how can i found which is best for me.
2. or Some min kernel version I need to keep.
3. What is best and optimise way to build a cross toolchain.
The kernel version is irrelevant.
Ordinarily you will get best results by building your compiler with a
native build of the same compiler version.
Thanks.
Ian
Ian Lance Taylor
2010-08-20 04:33:23 UTC
Permalink
Post by naveen yadav
I will explain some evidence.
We build cross toolchain on two different host running with different
GCC version's
Our cross toolchain version is 4.4.1.
GCC version on one host is 4.1 and on other it is 4.3.2
so we observe one interesting thing the cross compiler Build on 4.1
fail one test case that was passed when we build cross toolchain with
4.3.2(Host)
so when I Increase the stack size. 'ulimit -S -s unlimited' using this
command the testcase got pass with both cross toolchain.
So I am suspecting there is Host environment effect building on Cross
toolchain.
Sorry, in that sense, yes, you are correct: the compiler that you use to
build your compiler does make a difference in some cases.

Ian
Post by naveen yadav
Post by Ian Lance Taylor
Post by naveen yadav
I want to know is there any dependency of host environment to build a
cross toolchain.
I hope not.
Post by naveen yadav
Suppose I want to build GCC 4.4 for MIPS arch.
1.So is there some min version of GCC  I need to keep on my host build
server.So how can i found which is best for me.
2. or Some min kernel version I need to keep.
3. What is best and optimise way to build a cross toolchain.
The kernel version is irrelevant.
Ordinarily you will get best results by building your compiler with a
native build of the same compiler version.
Thanks.
Ian
Loading...