kamaraju kusumanchi wrote: >>> Any suggestions? >> That's nasty. It looks like your binutils perhaps may have been miscompiled. >> >> I'd rebuild binutils with no optimization. See if you still get the >> internal error when assembling eh_alloc.s. Everyone else can assemble that >> file, so it's probably not a binutils bug. >> > > Ok. I recompiled the binutils without any optimizations (i.e. using > the -fsimple=1 option for the Solaris C compiler). This time, I am > getting an internal error at a different place. Huh? -fsimple "Allows the optimizer to make simplifying assumptions concerning floating-point arithmetic." It is very odd that this should have made any difference. -x0 optimizes. "The default is no optimization. However, this is only possible if you do not specify an optimization level. If you specify an optimization level, there is no option for turning optimization off." There is something extremely odd going on here. It seems that everything that you build behaves oddly, or at least differently from how it behaves for everyone else. > /home/kkusuman/software/compileHere/gcc-4.4-20081107/./gcc/xgcc > -B/home/kkusuman/software/compileHere/gcc-4.4-20081107/./gcc/ > -B/home/kkusuman/software/myroot/gcc-4.4-20081107/sparc-sun-solaris2.8/bin/ > -B/home/kkusuman/software/myroot/gcc-4.4-20081107/sparc-sun-solaris2.8/lib/ > -isystem /home/kkusuman/software/myroot/gcc-4.4-20081107/sparc-sun-solaris2.8/include > -isystem /home/kkusuman/software/myroot/gcc-4.4-20081107/sparc-sun-solaris2.8/sys-include > -c -g -W -Wall -Wwrite-strings -Wstrict-prototypes > -Wmissing-prototypes -Wold-style-definition -Wmissing-format-attribute > -Wno-overlength-strings -pedantic -Wno-long-long > -I/home/kkusuman/software/myroot/include -DHAVE_CONFIG_H -I. > -I../../../unZipped/gcc-4.4-20081107/fixincludes -I../include > -I../../../unZipped/gcc-4.4-20081107/fixincludes/../include > ../../../unZipped/gcc-4.4-20081107/fixincludes/fixincl.c > ../../../unZipped/gcc-4.4-20081107/fixincludes/fixincl.c: In function > 'run_compiles': > ../../../unZipped/gcc-4.4-20081107/fixincludes/fixincl.c:394: internal > compiler error: Segmentation Fault > Please submit a full bug report, > with preprocessed source if appropriate. > See <http://gcc.gnu.org/bugs.html> for instructions. > make[2]: *** [fixincl.o] Error 1 > make[2]: Leaving directory > `/home/kkusuman/software/compileHere/gcc-4.4-20081107/fixincludes' > make[1]: *** [all-fixincludes] Error 2 > make[1]: Leaving directory > `/home/kkusuman/software/compileHere/gcc-4.4-20081107' > make: *** [all] Error 2 > > Any ideas/suggestions? This is a segfault in the newly-built compiler. We'd need to debug it to see why. I'm guessing that the Solaris compiler has miscompiled the new gcc. However, it can't be an optimization problem this time, since the stage1 compiler should have been built without optimization anyway. On the other hand, it might be a bug in gcc. But you've had so many otehr problems no-one else has seen before that I don't know. Andrew.