Thanks for your kindness. No, I don't want a crosscompiler actually. I just want a higher version of GCC on my system in order to run OpenMP programs. At the beginning, the problem is that it cannot locate "stubs-64.h" file which is included in "features.h". As I am really new to the make of GCC, I cannot find a suitable solution. So I simply checked the configuration of the original GCC by "gcc -v" and specified the target as "--target=sparc-linux-gnu" when I configured the new one. Maybe I shouldn't have done this? If not, what should I do? Thanks again! On 8/13/07, Kai Ruottu <karuottu@xxxxxxxx> wrote: > jiaqi zhang wrote: > > I'm compiling gcc-4.2.1 on a sparc64 system. The make fails and complains: > > /usr/local/gcc/objdir/./gcc/xgcc -B/usr/local/gcc/objdir/./gcc/ > > -B/usr/local/gcc/gcc-install/sparc-linux-gnu/bin/ > > -B/usr/local/gcc/gcc-install/sparc-linux-gnu/lib/ -isystem > > /usr/local/gcc/gcc-install/sparc-linux-gnu/inclsparclinux@xxxxxxxxxxxxxxxxxx -isystem > > /usr/local/gcc/gcc-install/sparc-linux-gnu/sys-include > > -DIN_GCC -DCROSS_COMPILE -W -Wall -Wwrite-strings > > > Hmmm... The 'CROSS_COMPILE' means producing a crosscompiler, here one > for 'sparc-linux-gnu' > $target on a 'sparc64-linux-gnu' or something $host.... Because of this > you should have the target > binutils installed in the '$tooldir/bin', here > '/usr/local/gcc/gcc-install/sparc-linux-gnu/bin' just as that > given '-B' option tells ! With bare 'as', 'ld' etc. names... > > The OS is Ubuntu, kernel 2.6.20-12-sparc64-smp. > > The original gcc is Ubuntu 4.1.2-0ubuntu4 > > What could be the problem? > > > Maybe the 64-bit defaulted 'as' in '/usr/bin' doesn't grok this > option? It will be tried next if the target 'as' > is not found in '$tooldir/bin'... > > Probably you didn't want a crosscompiler but a native compiler for the > native 'sparc64-linux-gnu' target? > >