[kaffe] compiling kaffe CVS on linux with gcc 2.95.x issue: undefined reference to `__builtin_expect'
gian paolo ciceri
gp.ciceri at acm.org
Fri Apr 1 00:19:19 PST 2005
-----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
- ----
it seems that it's a rather known issue,
for example see
http://boudicca.tux.org/hypermail/linux-kernel/2001week17/0009.html
in <linux/compiler.h> there's the #define that it's needed.
Of course, I've no idea where to actually put such a kind of fix in
kaffe sources.
I suppose something in config/katomic.h: at least, if I add the
#include, it builds succesfully.
Regards
/gp
- --
gian paolo ciceri - japanman
suddenthinks, excellence through refactoring
++39 340 7218101
gp.ciceri at acm.org
gp.ciceri at suddenthinks.com
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.6 (GNU/Linux)
Comment: Using GnuPG with Fedora - http://enigmail.mozdev.org
iD8DBQFCTQQH5CXmEF0gaHgRAvCuAKCuP1u+VraeQPCpNSb3nqttI5q8hwCfeQFV
CBT+3D5HZOb/vIg/advIC3M=
=+Ubb
-----END PGP SIGNATURE-----
More information about the kaffe
mailing list