This is the mail archive of the gcc-bugs@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]

build/bootstrap error in cvs-19990518


cc1obj segfaults when building libobjc/linking.m on a linux-2.2.9
system (glibc-2.1). That's the first ObjC file which is compiled.

../configure --with-gcc-version-trigger=/home/doko/packages/egcs/gcc-snapshot-19990518/gcc/version.c --host=i486-debian-linux-gnu -v --prefix=/usr/lib/gcc-ss --enable-shared --with-fast-fixincludes --enable-threads --enable-java-gc=boehm --enable-objc-gc --norecursion

The snapshot comes from the CVS gcc-2_95_branch. The 19990502 snapshot 
bootstrapped ok.

$ /home/doko/packages/egcs/gcc-snapshot-19990518/builddir/gcc/cc1obj linking.mi -quiet -dumpbase linking.m -version -fgnu-runtime -lang-objc -o linking.s

$ gdb /home/doko/packages/egcs/gcc-snapshot-19990518/builddir/gcc/cc1obj
GNU gdb 4.17.19981224.m68k.objc.threads.hwwp.fpu.gnat
Copyright 1998 Free Software Foundation, Inc.
GDB is free software, covered by the GNU General Public License, and you are
welcome to change it and/or distribute copies of it under certain conditions.
Type "show copying" to see the conditions.
There is absolutely no warranty for GDB.  Type "show warranty" for details.
This GDB was configured as "i686-pc-linux-gnu"...
(gdb) r linking.mi -quiet -dumpbase linking.m -version -fgnu-runtime -lang-objc -o linking.s
Starting program:
/home/doko/packages/egcs/gcc-snapshot-19990518/builddir/gcc/cc1obj linking.mi -quiet -dumpbase linking.m -version -fgnu-runtime -lang-objc -o linking.s
GNU Obj-C version egcs-2.93.22 19990518 (gcc2 ss-980929 experimental) (i486-debian-linux-gnu) compiled by GNU C version egcs-2.93.22 19990518 (gcc2 ss-980929 experimental).

Program received signal SIGSEGV, Segmentation fault.
0x81a2152 in split_specs_attrs (specs_attrs=0x82274d4,
declspecs=0x81f90e0, 
    prefix_attributes=0x81f90e4) at ../../gcc/c-common.c:1005
1005                a = TREE_CHAIN (a);
(gdb) bt 
#0  0x81a2152 in split_specs_attrs (specs_attrs=0x82274d4, 
    declspecs=0x81f90e0, prefix_attributes=0x81f90e4)
    at ../../gcc/c-common.c:1005
#1  0x817c85d in yyparse () at objc-parse.y:925
#2  0x804b451 in compile_file (name=0xbffffad6 "linking.mi")
    at ../../gcc/toplev.c:3263
#3  0x804e70b in main (argc=10, argv=0xbffff904) at
../../gcc/toplev.c:5439
(gdb) print a
$1 = 0x0


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