On Dec 5, 2013, at 1:11 PM, Ian Lance Taylor wrote: > On Thu, Dec 5, 2013 at 10:20 AM, Don Krause <dkrause@xxxxxxxxxxx> wrote: >> >> I've been trying to build gcc-4.8.2 on Solaris 10 on Sparc. >> >> The bootstrap process gives me an "internal compiler error" >> >> Using: >> >> SunOS sunv210 5.10 Generic_127127-11 sun4u sparc SUNW,Sun-Fire-V210 >> gcc 3.4.6 >> make 3.81 >> bunutils 2.24 >> >> As for the source code stack, it: >> >> gcc 4.8.2 + >> >> gmp 4.3.2 >> mpc 0.8.1 >> mpfr 2.4.2 >> >> Procedure, >> >> expand gcc 4.8.2 into clean directory. >> expand gmp, mpc, mpfr into gcc 4.8.2 tree, rename directories as appropriate. >> >> ./configure --prefix=/home/tools/solaris2013 >> >> make. >> >> That churns for a couple hours. (yes, old and crappy equipment. No options here..) >> >> Then: >> >> make[4]: Leaving directory `/home/towelie/dkrause/src/solaris2013/gcc-4.8.2/BUILD/sparc-sun-solaris2.10/libgcc' >> /home/towelie/dkrause/src/solaris2013/gcc-4.8.2/BUILD/./gcc/xgcc -B/home/towelie/dkrause/src/solaris2013/gcc-4.8.2/BUILD/./gcc/ -B/home/tools/solaris2013/sparc-sun-solaris2.10/bin/ -B/home/tools/solaris2013/sparc-sun-solaris2.10/lib/ -isystem /home/tools/solaris2013/sparc-sun-solaris2.10/include -isystem /home/tools/solaris2013/sparc-sun-solaris2.10/sys-include -g -O2 -O2 -g -O2 -DIN_GCC -W -Wall -Wwrite-strings -Wcast-qual -Wstrict-prototypes -Wmissing-prototypes -Wold-style-definition -isystem ./include -fPIC -g -DIN_LIBGCC2 -fbuilding-libgcc -fno-stack-protector -fPIC -I. -I. -I../.././gcc -I../../../libgcc -I../../../libgcc/. -I../../../libgcc/../gcc -I../../../libgcc/../include -DHAVE_CC_TLS -o _muldi3.o -MT _muldi3.o -MD -MP -MF _muldi3.dep -DL_muldi3 -c ../../../libgcc/libgcc2.c -fvisibility=hidden -DHIDE_EXPORTS >> ../../../libgcc/libgcc2.c: In function '__muldi3': >> ../../../libgcc/libgcc2.c:549:17: internal compiler error: Segmentation Fault >> const DWunion uu = {.ll = u}; >> ^ >> Please submit a full bug report, >> with preprocessed source if appropriate. >> See <http://gcc.gnu.org/bugs.html> for instructions. >> make[3]: *** [_muldi3.o] Error 1 >> make[3]: Leaving directory `/home/towelie/dkrause/src/solaris2013/gcc-4.8.2/BUILD/sparc-sun-solaris2.10/libgcc' >> make[2]: *** [all-stage1-target-libgcc] Error 2 >> make[2]: Leaving directory `/home/towelie/dkrause/src/solaris2013/gcc-4.8.2/BUILD' >> make[1]: *** [stage1-bubble] Error 2 >> make[1]: Leaving directory `/home/towelie/dkrause/src/solaris2013/gcc-4.8.2/BUILD' >> make: *** [all] Error 2 >> >> >> Suggestions? > > > Since GCC 4.8.2 is known to build on SPARC Solaris 10, the first thing > I would consider is which compiler you are using to build GCC. > Perhaps there is a bug in that compiler. Since you mentioned "old and > crappy equipment" the second thing I would consider is the possibility > of a hardware failure. > > So: first try to repeat the build in a clean directory. If it fails > in the same way, consider the build compiler. Can you perhaps stage > the build by building an earlier version of GCC and using that to > build GCC 4.8.2? > > Hope this helps. > > Ian > > Still have the same problem, and this is after switching machines, with a fresh install of Sparc Solaris10, a new user, no environment stuff set. Building gcc-4.8.2 using gcc-3.4.6 from sunfreeware gets along far enough to create what I believe is a stage one xgcc, then that binary crashes with an internal compiler error as above. The build starts with Make 3.81 gcc 3.4.6 and bunutils 2.17. I guess my only option now is to try to build an intermediate, maybe 4.2.* gcc and try it again. Thanks! -- Don Krause
Attachment:
smime.p7s
Description: S/MIME cryptographic signature