whazza f*** with objc garbage collector in gcc 3.4.1?!

;) cunnilinux at bigmir.net
Mon Aug 16 01:38:17 PDT 2004


hi community! i have 2 questions.

1) trying to build gcc-3.4.1 with objective c garbage collector enabled
[configure option --enable-objc-gc], i get this error:

=== begin ==============================================================

creating libobjc.la
(cd .libs && rm -f libobjc.la && ln -s ../libobjc.la libobjc.la)
./libtool --mode=compile /.build/gcc-build/gcc/xgcc
-B/.build/gcc-build/gcc/ -B/usr/i686-pc-linux-gnu/b in/
-B/usr/i686-pc-linux-gnu/lib/ -isystem /usr/i686-pc-linux-gnu/include
-isystem /usr/i686-pc-linux-g nu/sys-include -c  -o archive_gc.lo -I.
-I/.build/gcc-3.4.1/libobjc   -O2 -g -O2 -W -Wall -Wwrite-strin gs
-Wstrict-prototypes -DHAVE_GTHR_DEFAULT -DIN_GCC -DIN_TARGET_LIBS
-fno-strict-aliasing -DOBJC_WITH_G C=1 \
        -I/.build/gcc-3.4.1/libobjc/objc 
-I/.build/gcc-3.4.1/libobjc/../gcc -I/.build/gcc-3.4.1/libobj
c/../gcc/config -I../../gcc -I/.build/gcc-3.4.1/libobjc/../include
/.build/gcc-3.4.1/libobjc/archive.c/.build/gcc-build/gcc/xgcc
-B/.build/gcc-build/gcc/ -B/usr/i686-pc-linux-gnu/bin/
-B/usr/i686-pc-linux- gnu/lib/ -isystem /usr/i686-pc-linux-gnu/include
-isystem /usr/i686-pc-linux-gnu/sys-include -c -I.
-I/.build/gcc-3.4.1/libobjc -O2 -g -O2 -W -Wall -Wwrite-strings
-Wstrict-prototypes -DHAVE_GTHR_DEFAULT -D IN_GCC -DIN_TARGET_LIBS
-fno-strict-aliasing -DOBJC_WITH_GC=1 -I/.build/gcc-3.4.1/libobjc/objc
-I/.buil d/gcc-3.4.1/libobjc/../gcc
-I/.build/gcc-3.4.1/libobjc/../gcc/config -I../../gcc
-I/.build/gcc-3.4.1/li bobjc/../include
/.build/gcc-3.4.1/libobjc/archive.c  -fPIC -DPIC -o
.libs/archive_gc.o/.build/gcc-build/gcc/xgcc -B/.build/gcc-build/gcc/
-B/usr/i686-pc-linux-gnu/bin/ -B/usr/i686-pc-linux- gnu/lib/ -isystem
/usr/i686-pc-linux-gnu/include -isystem
/usr/i686-pc-linux-gnu/sys-include -c -I. -I/.build/gcc-3.4.1/libobjc
-O2 -g -O2 -W -Wall -Wwrite-strings -Wstrict-prototypes
-DHAVE_GTHR_DEFAULT -D IN_GCC -DIN_TARGET_LIBS -fno-strict-aliasing
-DOBJC_WITH_GC=1 -I/.build/gcc-3.4.1/libobjc/objc -I/.buil
d/gcc-3.4.1/libobjc/../gcc -I/.build/gcc-3.4.1/libobjc/../gcc/config
-I../../gcc -I/.build/gcc-3.4.1/li bobjc/../include
/.build/gcc-3.4.1/libobjc/archive.c -o archive_gc.o >/dev/null
2>&1./libtool --mode=compile /.build/gcc-build/gcc/xgcc
-B/.build/gcc-build/gcc/ -B/usr/i686-pc-linux-gnu/b in/
-B/usr/i686-pc-linux-gnu/lib/ -isystem /usr/i686-pc-linux-gnu/include
-isystem /usr/i686-pc-linux-g nu/sys-include -c -o class_gc.lo -I.
-I/.build/gcc-3.4.1/libobjc   -O2 -g -O2 -W -Wall -Wwrite-strings
-Wstrict-prototypes -DHAVE_GTHR_DEFAULT -DIN_GCC -DIN_TARGET_LIBS
-fno-strict-aliasing -DOBJC_WITH_GC=1 \
        -I/.build/gcc-3.4.1/libobjc/objc 
-I/.build/gcc-3.4.1/libobjc/../gcc -I/.build/gcc-3.4.1/libobj
c/../gcc/config -I../../gcc -I/.build/gcc-3.4.1/libobjc/../include
/.build/gcc-3.4.1/libobjc/class.c/.build/gcc-build/gcc/xgcc
-B/.build/gcc-build/gcc/ -B/usr/i686-pc-linux-gnu/bin/
-B/usr/i686-pc-linux- gnu/lib/ -isystem /usr/i686-pc-linux-gnu/include
-isystem /usr/i686-pc-linux-gnu/sys-include -c -I.
-I/.build/gcc-3.4.1/libobjc -O2 -g -O2 -W -Wall -Wwrite-strings
-Wstrict-prototypes -DHAVE_GTHR_DEFAULT -D IN_GCC -DIN_TARGET_LIBS
-fno-strict-aliasing -DOBJC_WITH_GC=1 -I/.build/gcc-3.4.1/libobjc/objc
-I/.buil d/gcc-3.4.1/libobjc/../gcc
-I/.build/gcc-3.4.1/libobjc/../gcc/config -I../../gcc
-I/.build/gcc-3.4.1/li bobjc/../include
/.build/gcc-3.4.1/libobjc/class.c  -fPIC -DPIC -o
.libs/class_gc.o/.build/gcc-build/gcc/xgcc -B/.build/gcc-build/gcc/
-B/usr/i686-pc-linux-gnu/bin/ -B/usr/i686-pc-linux- gnu/lib/ -isystem
/usr/i686-pc-linux-gnu/include -isystem
/usr/i686-pc-linux-gnu/sys-include -c -I. -I/.build/gcc-3.4.1/libobjc
-O2 -g -O2 -W -Wall -Wwrite-strings -Wstrict-prototypes
-DHAVE_GTHR_DEFAULT -D IN_GCC -DIN_TARGET_LIBS -fno-strict-aliasing
-DOBJC_WITH_GC=1 -I/.build/gcc-3.4.1/libobjc/objc -I/.buil
d/gcc-3.4.1/libobjc/../gcc -I/.build/gcc-3.4.1/libobjc/../gcc/config
-I../../gcc -I/.build/gcc-3.4.1/li bobjc/../include
/.build/gcc-3.4.1/libobjc/class.c -o class_gc.o >/dev/null 2>&1
./libtool --mode=compile /.build/gcc-build/gcc/xgcc
-B/.build/gcc-build/gcc/ -B/usr/i686-pc-linux-gnu/b in/
-B/usr/i686-pc-linux-gnu/lib/ -isystem /usr/i686-pc-linux-gnu/include
-isystem /usr/i686-pc-linux-g nu/sys-include -c -o encoding_gc.lo -I.
-I/.build/gcc-3.4.1/libobjc   -O2 -g -O2 -W -Wall -Wwrite-strin gs
-Wstrict-prototypes -DHAVE_GTHR_DEFAULT -DIN_GCC -DIN_TARGET_LIBS
-fno-strict-aliasing -DOBJC_WITH_G C=1 \
        -I/.build/gcc-3.4.1/libobjc/objc 
-I/.build/gcc-3.4.1/libobjc/../gcc -I/.build/gcc-3.4.1/libobj
c/../gcc/config -I../../gcc -I/.build/gcc-3.4.1/libobjc/../include
/.build/gcc-3.4.1/libobjc/encoding.c/.build/gcc-build/gcc/xgcc
-B/.build/gcc-build/gcc/ -B/usr/i686-pc-linux-gnu/bin/
-B/usr/i686-pc-linux- gnu/lib/ -isystem /usr/i686-pc-linux-gnu/include
-isystem /usr/i686-pc-linux-gnu/sys-include -c -I.
-I/.build/gcc-3.4.1/libobjc -O2 -g -O2 -W -Wall -Wwrite-strings
-Wstrict-prototypes -DHAVE_GTHR_DEFAULT -D IN_GCC -DIN_TARGET_LIBS
-fno-strict-aliasing -DOBJC_WITH_GC=1 -I/.build/gcc-3.4.1/libobjc/objc
-I/.buil d/gcc-3.4.1/libobjc/../gcc
-I/.build/gcc-3.4.1/libobjc/../gcc/config -I../../gcc
-I/.build/gcc-3.4.1/li bobjc/../include
/.build/gcc-3.4.1/libobjc/encoding.c  -fPIC -DPIC -o
.libs/encoding_gc.o/.build/gcc-3.4.1/libobjc/encoding.c:89: warning:
'target_flags' defined but not used/.build/gcc-build/gcc/xgcc
-B/.build/gcc-build/gcc/ -B/usr/i686-pc-linux-gnu/bin/
-B/usr/i686-pc-linux- gnu/lib/ -isystem /usr/i686-pc-linux-gnu/include
-isystem /usr/i686-pc-linux-gnu/sys-include -c -I.
-I/.build/gcc-3.4.1/libobjc -O2 -g -O2 -W -Wall -Wwrite-strings
-Wstrict-prototypes -DHAVE_GTHR_DEFAULT -D IN_GCC -DIN_TARGET_LIBS
-fno-strict-aliasing -DOBJC_WITH_GC=1 -I/.build/gcc-3.4.1/libobjc/objc
-I/.buil d/gcc-3.4.1/libobjc/../gcc
-I/.build/gcc-3.4.1/libobjc/../gcc/config -I../../gcc
-I/.build/gcc-3.4.1/li bobjc/../include
/.build/gcc-3.4.1/libobjc/encoding.c -o encoding_gc.o >/dev/null
2>&1./libtool --mode=compile /.build/gcc-build/gcc/xgcc
-B/.build/gcc-build/gcc/ -B/usr/i686-pc-linux-gnu/b in/
-B/usr/i686-pc-linux-gnu/lib/ -isystem /usr/i686-pc-linux-gnu/include
-isystem /usr/i686-pc-linux-g nu/sys-include -c -o gc_gc.lo -I.
-I/.build/gcc-3.4.1/libobjc   -O2 -g -O2 -W -Wall -Wwrite-strings -Ws
trict-prototypes -DHAVE_GTHR_DEFAULT -DIN_GCC -DIN_TARGET_LIBS
-fno-strict-aliasing -DOBJC_WITH_GC=1 \       
-I/.build/gcc-3.4.1/libobjc/objc  -I/.build/gcc-3.4.1/libobjc/../gcc
-I/.build/gcc-3.4.1/libobj c/../gcc/config -I../../gcc
-I/.build/gcc-3.4.1/libobjc/../include
/.build/gcc-3.4.1/libobjc/gc.c/.build/gcc-build/gcc/xgcc
-B/.build/gcc-build/gcc/ -B/usr/i686-pc-linux-gnu/bin/
-B/usr/i686-pc-linux- gnu/lib/ -isystem /usr/i686-pc-linux-gnu/include
-isystem /usr/i686-pc-linux-gnu/sys-include -c -I.
-I/.build/gcc-3.4.1/libobjc -O2 -g -O2 -W -Wall -Wwrite-strings
-Wstrict-prototypes -DHAVE_GTHR_DEFAULT -D IN_GCC -DIN_TARGET_LIBS
-fno-strict-aliasing -DOBJC_WITH_GC=1 -I/.build/gcc-3.4.1/libobjc/objc
-I/.buil d/gcc-3.4.1/libobjc/../gcc
-I/.build/gcc-3.4.1/libobjc/../gcc/config -I../../gcc
-I/.build/gcc-3.4.1/li bobjc/../include /.build/gcc-3.4.1/libobjc/gc.c 
-fPIC -DPIC -o .libs/gc_gc.o/.build/gcc-3.4.1/libobjc/gc.c:37:16: gc.h:
No such file or directory/.build/gcc-3.4.1/libobjc/gc.c:40: error: parse
error before "word"/.build/gcc-3.4.1/libobjc/gc.c:40: warning: type
defaults to `int' in declaration of
`word'/.build/gcc-3.4.1/libobjc/gc.c:40: warning: data definition has no
type or storage class/.build/gcc-3.4.1/libobjc/gc.c:41: error: parse
error before "signed_word"/.build/gcc-3.4.1/libobjc/gc.c:41: warning:
type defaults to `int' in declaration of
`signed_word'/.build/gcc-3.4.1/libobjc/gc.c:41: warning: data definition
has no type or storage class/.build/gcc-3.4.1/libobjc/gc.c:55:22:
gc_typed.h: No such file or directory/.build/gcc-3.4.1/libobjc/gc.c:69:
error: parse error before "mask"/.build/gcc-3.4.1/libobjc/gc.c:69:
warning: function declaration isn't a prototype
/.build/gcc-3.4.1/libobjc/gc.c:71: error: parse error before "mask"
/.build/gcc-3.4.1/libobjc/gc.c:71: warning: function declaration isn't a
prototype/.build/gcc-3.4.1/libobjc/gc.c:75: error: parse error before
"mask"/.build/gcc-3.4.1/libobjc/gc.c:76: warning: function declaration
isn't a prototype/.build/gcc-3.4.1/libobjc/gc.c: In function
`__objc_gc_setup_array':/.build/gcc-3.4.1/libobjc/gc.c:77: warning:
implicit declaration of function
`atoi'/.build/gcc-3.4.1/libobjc/gc.c:77: error: `type' undeclared (first
use in this function)/.build/gcc-3.4.1/libobjc/gc.c:77: error: (Each
undeclared identifier is reported only
once/.build/gcc-3.4.1/libobjc/gc.c:77: error: for each function it
appears in.)/.build/gcc-3.4.1/libobjc/gc.c:85: error: `mask' undeclared
(first use in this function)/.build/gcc-3.4.1/libobjc/gc.c:85: error:
`offset' undeclared (first use in this
function)/.build/gcc-3.4.1/libobjc/gc.c: At top
level:/.build/gcc-3.4.1/libobjc/gc.c:104: error: parse error before
"mask"/.build/gcc-3.4.1/libobjc/gc.c:105: warning: function declaration
isn't a prototype/.build/gcc-3.4.1/libobjc/gc.c: In function
`__objc_gc_setup_struct':/.build/gcc-3.4.1/libobjc/gc.c:110: error:
`type' undeclared (first use in this
function)/.build/gcc-3.4.1/libobjc/gc.c:132: error: `offset' undeclared
(first use in this function)/.build/gcc-3.4.1/libobjc/gc.c:142: warning:
implicit declaration of function
`GC_set_bit'/.build/gcc-3.4.1/libobjc/gc.c:142: error: `mask' undeclared
(first use in this function)/.build/gcc-3.4.1/libobjc/gc.c: At top
level:/.build/gcc-3.4.1/libobjc/gc.c:164: error: parse error before
"mask"/.build/gcc-3.4.1/libobjc/gc.c:165: warning: function declaration
isn't a prototype/.build/gcc-3.4.1/libobjc/gc.c: In function
`__objc_gc_setup_union':/.build/gcc-3.4.1/libobjc/gc.c:172: error:
`type' undeclared (first use in this
function)/.build/gcc-3.4.1/libobjc/gc.c:181: error: `offset' undeclared
(first use in this function)/.build/gcc-3.4.1/libobjc/gc.c:181: warning:
type defaults to `int' in declaration of
`__v'/.build/gcc-3.4.1/libobjc/gc.c:184: error: `mask' undeclared (first
use in this function)/.build/gcc-3.4.1/libobjc/gc.c: At top level:
/.build/gcc-3.4.1/libobjc/gc.c:193: error: parse error before "mask"
/.build/gcc-3.4.1/libobjc/gc.c:194: warning: function declaration isn't
a prototype/.build/gcc-3.4.1/libobjc/gc.c: In function
`__objc_gc_type_description_from_type':/.build/gcc-3.4.1/libobjc/gc.c:1
99: error: `type' undeclared (first use in this
function)/.build/gcc-3.4.1/libobjc/gc.c:227: error: `mask' undeclared
(first use in this function)/.build/gcc-3.4.1/libobjc/gc.c: In function
`__objc_generate_gc_type_description':/.build/gcc-3.4.1/libobjc/gc.c:30
0: error: `GC_bitmap' undeclared (first use in this
function)/.build/gcc-3.4.1/libobjc/gc.c:300: error: parse error before
"mask"/.build/gcc-3.4.1/libobjc/gc.c:316: error: `BITS_PER_WORD'
undeclared (first use in this
function)/.build/gcc-3.4.1/libobjc/gc.c:316: warning: type defaults to
`int' in declaration of `__a'/.build/gcc-3.4.1/libobjc/gc.c:317: error:
`mask' undeclared (first use in this
function)/.build/gcc-3.4.1/libobjc/gc.c:345: warning: implicit
declaration of function `GC_make_descriptor' make[1]: *** [gc_gc.lo]
Error 1
make[1]: Leaving directory `/.build/gcc-build/i686-pc-linux-gnu/libobjc'
make: *** [all-target-libobjc] Error 2

=== end ================================================================

i tried many different combinations of configure options, but the
problem is always the same and always occurs when --enable-objc-gc
specified. and without this one, everything's always going fine.

2) could anyone tell me, do i really need this feature in compiler to
build gnustep?

thanxx!!




More information about the lfs-chat mailing list