jiaqi zhang wrote:
Hi, everyone,
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/
<snip>
-c ../../gcc-4.2.1/gcc/crtstuff.c -DCRT_BEGIN \
-o crtbegin.o
exec: 2: -Qy: not found
Your log showed only the 'xgcc' command where that '-Qy' doesn't
appear! So please add a "verbose"
option to the command via editing the '$build/gcc/Makefile', here
'/usr/local/gcc/objdir/gcc/Makefile',
the right place could be 'CRTSTCFLAGS' or something taking care about
compiling the "crt* C
stuff"... With 'gcc' that is the '-v' option and after adding it you
should see the commands given to the
'as' and 'ld' where that '-Qy' seems to appear.
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?
As could be seen, no clue... So you must learn to "debug" this thing
yourself :-(