[kaffe] compiling kaffe CVS on linux with gcc 2.95.x issue: undefined reference to `__builtin_expect'

Dalibor Topic robilad at kaffe.org
Sat Apr 2 02:08:50 PST 2005


Am Freitag, den 01.04.2005, 10:19 +0200 schrieb gian paolo ciceri:
> -----BEGIN PGP SIGNED MESSAGE-----
> Hash: SHA1
> 
> Hi all,
> if I compile (it's a cross-compilation, but it doesn't matter)
> kaffe Cvs on linux with a gcc 2.95.3, I take
> 
> - ----
> arm-unknown-linux-gnu-gcc -g -O2 -Wchar-subscripts -Wcomment -Wformat=2
> - -Wimplicit-function-declaration -Wimplicit-int -Wmain -Wmissing-braces
> - -Wparentheses -Wreturn-type -Wswitch -Wtrigraphs -Wunknown-pragmas -W
> - -Wundef -Wshadow -Wpointer-arith -Wbad-function-cast -Wcast-qual
> - -Wcast-align -Wwrite-strings -Wconversion -Wsign-compare
> - -Waggregate-return -Wstrict-prototypes -Wmissing-prototypes
> - -Wmissing-declarations -Wmissing-noreturn -Wredundant-decls
> - -Wnested-externs -Winline -Wlong-long -fsigned-char
> - -fno-omit-frame-pointer -pthread -DENABLE_BINRELOC -o .libs/kaffe-bin
> main.o version.o .libs/kaffe-binS.o -Wl,--export-dynamic
> ../kaffevm/.libs/libkaffevm.so
> /home/gpciceri/works/cvsroot/kaffe-arm-crosstool-glibc213/kaffe/kaffevm/verifier/.libs/libkaffeverifier.so
> /home/gpciceri/works/cvsroot/kaffe-arm-crosstool-glibc213/kaffe/kaffevm/kaffe-gc/.libs/libkaffegc.so
> - -lm ../../replace/.libs/libreplace.so ../../libltdl/.libs/libltdlc.a
> - -ldl -Wl,--rpath
> - -Wl,/usr/local/kaffe-arm-cvs-X-crosstool-glibc213/jre/lib/arm
> ../kaffevm/.libs/libkaffevm.so: undefined reference to `__builtin_expect'
> collect2: ld returned 1 exit status
> make[2]: *** [kaffe-bin] Error 1

Ciao gian paolo, I think I've fixed that problem now, finally. I've
added the include statement for gcbuiltin.h into common.h files of the
architectures using katomic.h

cheers,
dalibor topic





More information about the kaffe mailing list