This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
recent snapshot fail to compile on BSD/OS
- To: egcs at cygnus dot com
- Subject: recent snapshot fail to compile on BSD/OS
- From: Shigeya Suzuki <shigeya at foretune dot co dot jp>
- Date: Mon, 13 Apr 1998 19:18:51 +0900
I've been trying this recently, but everytime I built from CVS
snapshot (I tried several times, including ss-980406) no luck.
I've got coredump on stage1, and stage2. Anything I can help?
shigeya
------------------------------
./xgcc -B./ -DIN_GCC -g -I./include enquire.o -o enquire
./enquire -f > tmp-float.h
Segmentation fault - core dumped
------------------------------
stage1/xgcc -Bstage1/ -DIN_GCC -W -Wall -O2 -g -O2 -DHAVE_CONFIG_H -o gen
genrtl \
gengenrtl.o ` case "obstack.o" in ?*) echo obstack.o ;; esac ` ` case "" in ?*)
echo ;; esac ` ` case "" in ?*) echo ;; esac `
./gengenrtl tmp-genrtl.h tmp-genrtl.c
gmake[2]: *** [s-genrtl] Segmentation fault (core dumped)
gmake[2]: Leaving directory `/usr/home/shigeya/work/egcs/snap1/gcc'
gmake[1]: *** [bootstrap] Error 2
gmake[1]: Leaving directory `/usr/home/shigeya/work/egcs/snap1/gcc'
gmake: *** [bootstrap] Error 2
------------------------------
stack traces:
enquire:
(gdb) bt
#0 0x14b1 in main (argc=2, argv=0xefbfcc58)
at ../../cvs-snap/egcs/gcc/enquire.c:680
(gdb) l 680
675 /* Add more calls as necessary */
676
677 Unexpected(1);
678
679 bad=0;
680 for (i=1; i < argc; i++) {
681 s= argv[i];
682 if (*s == '-') {
683 s++;
684 while (*s) {
argc = 2, argv[2] = 0x00, looks no problem.
gengenrtl:
pooh 68% gdb gengenrtl gengenrtl.core
Core was generated by `gengenrtl'.
Program terminated with signal 11, Segmentation fault.
#0 0x1cab in find_formats () at ../../cvs-snap/egcs/gcc/gengenrtl.c:126
126 if (!strcmp(*f, defs[i].format))
Breakpoint 1 at 0x9ebf
(gdb) bt
#0 0x1cab in find_formats () at ../../cvs-snap/egcs/gcc/gengenrtl.c:126
#1 0x2525 in main (argc=3, argv=0xefbfcbd4)
at ../../cvs-snap/egcs/gcc/gengenrtl.c:290
(gdb) l
121
122 if (special_format (defs[i].format))
123 continue;
124
125 for (f = formats; *f ; ++f)
126 if (!strcmp(*f, defs[i].format))
127 break;
128
129 if (!*f)
130 *f = defs[i].format;
(gdb) p f
$1 = (char **) 0xc814
(gdb) p *f
$2 = 0x0
(gdb) p defs[i].format
$3 = 0x190c "ue"