[kaffe] undefined reference to isinf, isnan when cross compiling
D greene
dgreene21 at hotmail.com
Sun Aug 15 19:44:47 PDT 2004
Thanks Dalibor for your response.
>thanks for the bug report. Does configure detect isnan and isinf?
>
>cheers,
>dalibor topic
Seems like I'm not detecting it, here's the relevant snippets from
config.log:
configure:43911: test -s conftest
configure:43914: $? = 0
configure:43926: result: yes
configure:43939: checking for isnan
configure:43996: mipsel-unknown-linux-uclibc-gcc -o conftest -Os
-fomit-frame-pointer -Wall -Wstrict prototypes -fno-omit-frame-pointer
-DNDEBUG conftest.c -lm >&5
conftest.c:150: warning: function declaration isn't a prototype
conftest.c:157: warning: function declaration isn't a prototype
conftest.c:165: warning: function declaration isn't a prototype
/tmp/ccYGlYrN.o(.text+0x20): In function `main':
: undefined reference to `isnan'
/tmp/ccYGlYrN.o(.data+0x0): undefined reference to `isnan'
collect2: ld returned 1 exit status
configure:44002: $? = 1
configure: failed program was:
| /* confdefs.h. */
...
configure:44027: result: no
configure:44039: checking for isinf
configure:44096: mipsel-unknown-linux-uclibc-gcc -o conftest -Os
-fomit-frame-pointer -Wall -Wstrict-prototypes -fno-omit-frame-pointer
-DNDEBUG conftest.c -lm >&5
conftest.c:150: warning: function declaration isn't a prototype
conftest.c:157: warning: function declaration isn't a prototype
conftest.c:165: warning: function declaration isn't a prototype
/tmp/ccMvpRol.o(.text+0x20): In function `main':
: undefined reference to `isinf'
/tmp/ccMvpRol.o(.data+0x0): undefined reference to `isinf'
collect2: ld returned 1 exit status
configure:44102: $? = 1
configure: failed program was:
| /* confdefs.h. */
...
ac_cv_func_isinf=no
ac_cv_func_isnan=no
thanks,
d greene
>
>I'm getting the following error:
>
>Making all in kaffe
>make[2]: Entering directory `/kaffe-1.1.4/kaffe/kaffe'
>/bin/sh ../../libtool --mode=link mipsel-unknown-linux-uclibc-gcc -Os
>-fomit-frame-pointer -Wall -Wstrict-prototypes -fno-omit-frame-pointer -o
>kaffe-bin -export-dynamic main.o version.o -dlopen
>../../libraries/clib/native/libnative.la -dlopen
>../../libraries/clib/net/libnet.la -dlopen ../../libraries/clib/io/libio.la
>-dlopen ../../libraries/clib/zip/libzip.la -dlopen
>../../libraries/clib/management/libmanagement.la -dlopen
>../../libraries/clib/security/libsecurity.la ../kaffevm/libkaffevm.la
>../../replace/libreplace.la ../../libltdl/libltdlc.la
>rm -f .libs/kaffe-bin.nm .libs/kaffe-bin.nmS .libs/kaffe-bin.nmT
>creating .libs/kaffe-binS.c
>(cd .libs && mipsel-unknown-linux-uclibc-gcc -c -fno-builtin
>"kaffe-binS.c")
>rm -f .libs/kaffe-binS.c .libs/kaffe-bin.nm .libs/kaffe-bin.nmS
>.libs/kaffe-bin.nmT
>mipsel-unknown-linux-uclibc-gcc -Os -fomit-frame-pointer -Wall
>-Wstrict-prototypes -fno-omit-frame-pointer -o .libs/kaffe-bin main.o
>version.o .libs/kaffe-binS.o -Wl,--export-dynamic
>../kaffevm/.libs/libkaffevm.so -lm ../../replace/.libs/libreplace.a
>../../libltdl/.libs/libltdlc.a -ldl -Wl,--rpath -Wl,/tmp/kaffe/jre/lib/mips
>../kaffevm/.libs/libkaffevm.so: undefined reference to `isinf'
>../kaffevm/.libs/libkaffevm.so: undefined reference to `isnan'
>collect2: ld returned 1 exit status
>make[2]: *** [kaffe-bin] Error 1
>
>Any pointers would be appreciated. My build params:
>
>CC=mipsel-unknown-linux-uclibc-gcc NM=mipsel-unknown-linux-uclibc-nm
>AR=mipsel-unknown-linux-uclibc-ar RL=mipsel-unknown-linux-uclibc-ranlib \
>CFLAGS="-Os -fomit-frame-pointer -fno-builtin" \
>./configure --enable-pure-java-math --disable-sound --without-awt \
>--disable-debug --disable-xprofiling \
>--disable-xdebugging --disable-feedback --without-profiling --host \
>--mipsel-unknown-linux-uclibc --without-stats \
>--disable-gcj --build=i686-linux --prefix /tmp/kaffe \
>--with-rt-jar=/rt.jar --without-x \
>--without-extensions --without-alsa --without-esd --disable-mips2
_________________________________________________________________
FREE pop-up blocking with the new MSN Toolbar get it now!
http://toolbar.msn.click-url.com/go/onm00200415ave/direct/01/
More information about the kaffe
mailing list