This is the mail archive of the gcc@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

Re: cannot bootstrap neither gcc-2.8.0-971206 nor egcs-971207 on sparc-sun-sunos4.1.3


On , 10 December 1997, 16:17:27, oliva@dcc.unicamp.br wrote:

 > Hi there!
 > 
 > I've been unable to bootstrap the latest snapshots of gcc and egcs on
 > sparc-sun-sunos4.1.3, configured --with-gnu-as --enable-shared, using
 > GNU as and GNU ld from binutils 2.8.1 as assembler and linker, with
 > BOOT_CFLAGS="-O4 -g", using egcs-1.0 as the stage1 compiler.  I don't
 > know whether this is a bug in egcs-1.0 or in the current snapshots of
 > both packages.  The error I get is exactly the same for both builds:
 > 
 > stage1/xgcc -Bstage1/  -DIN_GCC    -O4 -g  -DHAVE_CONFIG_H  -o genattr \
 >  genattr.o rtl.o ` case "obstack.o" in ?*) echo obstack.o ;; esac ` ` case "stage1/xgcc -Bstage1/"@"" in "cc"@?*) echo  ;; esac ` ` case "" in ?*) echo  ;; esac `
 > ./genattr /n/temp1/gcctest/bin/../src/ss/gcc/config/sparc/sparc.md > tmp-attr.h
 > /bin/sh: 9857 Memory fault - core dumped
 > make[2]: *** [stamp-attr] Error 139
 > make[2]: Leaving directory `/tmp_mnt/n/temp1/tmp/gcctest/src/atibaia/ss/gcc'
 > make[1]: *** [bootstrap] Error 2
 > make[1]: Leaving directory `/tmp_mnt/n/temp1/tmp/gcctest/src/atibaia/ss/gcc'
 > make: *** [bootstrap] Error 2
 > 
 > genattr crashes in the initialization code, with a stack trace like
 > this (I removed the buggy program before I decided to post this
 > message, so I quote from memory):
 > 
 > ??? (invalid address)
 > memcpy
 > __main
 > main
 > 

Same here:

$ gdb genattr core 
Core was generated by `genattr'.
Program terminated with signal 11, Segmentation fault.
#0  0xef7f1d08 in ?? ()
Breakpoint 1 at 0x8130
(gdb) bt
#0  0xef7f1d08 in ?? ()
#1  0xef7f1c28 in ?? ()
#2  0xef7f0084 in ?? ()
#3  0x8180 in memset ()
#4  0x6368 in __do_global_ctors ()
#5  0x6390 in __main ()
#6  0x309c in main ()

Also interesting, cpp built by the stage1 compiler:

$ ./cpp -v -dM
ld.so: unidentifiable procedure reference at 0x1e2a4

Looks like gcc/egcs on SunOS are seriously broken!

Manfred


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]