[kaffe] failure on openbsd/sparc

Riccardo zuse at libero.it
Mon Jun 20 09:31:06 PDT 2005


Hello,

kaffe fails with:

./../kaffe/kaffevm/.libs/libkaffevm.so: warning: sprintf() is often 
misused, please use snprintf()
./../kaffe/kaffevm/.libs/libkaffevm.so: undefined reference to `__
builtin_expect'
collect2: ld returned 1 exit status

this is expected on other gcc 2.95 targets too, like irix-mips (
strangely I don't get it on MkLinux! any comments? is it used only with 
JIT? or is it architecture dependent?)

my suggestion would be to check for this with configure and have :

__builtin_expec be substituted by  "a == b"
__builtin_trap be substituted by __builtin_abort

as Andrew Pinski suggested.

cheers,

-R





More information about the kaffe mailing list