This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
Failed to build libobjc/gc.c, can't find gc.h
- From: Christian Jönsson <c dot christian dot joensson at telia dot com>
- To: gcc-bugs at gcc dot gnu dot org
- Date: Sun, 3 Feb 2002 07:46:48 +0100
- Subject: Failed to build libobjc/gc.c, can't find gc.h
When trying to build gcc-3.1-20020202 (CVS Sun Feb 3 06:27:10 UTC 2002), I
get an error in libobjc/gc.c:
./libtool --mode=compile /share1/gcc-dev/gcc/objdir/gcc/xgcc -B/share1/gcc-dev/gcc/objdir/gcc/ -B/usr/sparc-linux/bin/ -B/usr/sparc-linux/lib/ -isystem /usr/sparc-linux/include -L/share1/gcc-dev/gcc/objdir/ld -c -o gc_gc.lo -I. -I../../../libobjc -g -DHAVE_GTHR_DEFAULT -DIN_GCC -DIN_TARGET_LIBS -DOBJC_WITH_GC=1 \
-I../../../libobjc/objc -I../../../libobjc/../gcc -I../../../libobjc/../gcc/config -I../../gcc -I../../../libobjc/../include ../../../libobjc/gc.c
/share1/gcc-dev/gcc/objdir/gcc/xgcc -B/share1/gcc-dev/gcc/objdir/gcc/ -B/usr/sparc-linux/bin/ -B/usr/sparc-linux/lib/ -isystem /usr/sparc-linux/include -L/share1/gcc-dev/gcc/objdir/ld -c -I. -I../../../libobjc -g -DHAVE_GTHR_DEFAULT -DIN_GCC -DIN_TARGET_LIBS -DOBJC_WITH_GC=1 -I../../../libobjc/objc -I../../../libobjc/../gcc -I../../../libobjc/../gcc/config -I../../gcc -I../../../libobjc/../include ../../../libobjc/gc.c -fPIC -DPIC -o .libs/gc_gc.o
../../../libobjc/gc.c:37:16: gc.h: No such file or directory
../../../libobjc/gc.c:40: parse error before "word"
../../../libobjc/gc.c:40: warning: data definition has no type or storage class
../../../libobjc/gc.c:41: parse error before "signed_word"
../../../libobjc/gc.c:41: warning: data definition has no type or storage class
../../../libobjc/gc.c:55:22: gc_typed.h: No such file or directory
../../../libobjc/gc.c:69: parse error before "mask"
../../../libobjc/gc.c:71: parse error before "mask"
../../../libobjc/gc.c:75: parse error before "mask"
../../../libobjc/gc.c: In function `__objc_gc_setup_array':
../../../libobjc/gc.c:77: `type' undeclared (first use in this function)
../../../libobjc/gc.c:77: (Each undeclared identifier is reported only once
../../../libobjc/gc.c:77: for each function it appears in.)
../../../libobjc/gc.c:85: `mask' undeclared (first use in this function)
../../../libobjc/gc.c:85: `offset' undeclared (first use in this function)
../../../libobjc/gc.c: At top level:
../../../libobjc/gc.c:104: parse error before "mask"
../../../libobjc/gc.c: In function `__objc_gc_setup_struct':
../../../libobjc/gc.c:110: `type' undeclared (first use in this function)
../../../libobjc/gc.c:132: `offset' undeclared (first use in this function)
../../../libobjc/gc.c:142: `mask' undeclared (first use in this function)
../../../libobjc/gc.c: At top level:
../../../libobjc/gc.c:164: parse error before "mask"
../../../libobjc/gc.c: In function `__objc_gc_setup_union':
../../../libobjc/gc.c:172: `type' undeclared (first use in this function)
../../../libobjc/gc.c:181: `offset' undeclared (first use in this function)
../../../libobjc/gc.c:184: `mask' undeclared (first use in this function)
../../../libobjc/gc.c: At top level:
../../../libobjc/gc.c:193: parse error before "mask"
../../../libobjc/gc.c: In function `__objc_gc_type_description_from_type':
../../../libobjc/gc.c:199: `type' undeclared (first use in this function)
../../../libobjc/gc.c:227: `mask' undeclared (first use in this function)
../../../libobjc/gc.c: In function `__objc_generate_gc_type_description':
../../../libobjc/gc.c:300: `GC_bitmap' undeclared (first use in this function)
../../../libobjc/gc.c:300: parse error before "mask"
../../../libobjc/gc.c:317: `mask' undeclared (first use in this function)
make[2]: *** [gc_gc.lo] Error 1
make[2]: Leaving directory `/share1/gcc-dev/gcc/objdir/sparc-linux/libobjc'
make[1]: *** [all-target-libobjc] Error 2
make[1]: *** Waiting for unfinished jobs....
The bootstrap was with binutils (CVS Sun Feb 3 06:32:56 UTC 2002) on a debian sparc woody system.
configure was run like this:
../configure --with-gcc-version-trigger=/share1/gcc-dev/gcc/gcc/version.c --host=sparc-linux --enable-languages=c,c++,java,f77,proto,objc --prefix=/usr --infodir=/usr/share/info --mandir=/usr/share/man --enable-shared --with-gnu-as --with-gnu-ld --with-system-zlib --enable-long-long --enable-nls --without-included-gettext --enable-threads=posix --with-cpp-install-dir=bin --enable-objc-gc --verbose --norecursion
Note the --enable-objc-gc option.
Cheers,
/ChJ