[kaffe] an error during 'make' cause of library linking and ' illegal instruction (core dumped) in target board.

정종진_KETI mozzalt at keti.re.kr
Sun Jun 1 22:50:01 PDT 2003


Hi
I succeeded in building a kaffe CVS (about  April 15 2003), and I tested a
java code in my target. It makes a good job..
But it generate the follwing Waning message....in both host(x86-i686) and my
target.
----------------------------------------------
Waring : Unrecognized version number 47/0 in classfile.
----------------------------------------------
So I updated a kaffe-cvs today. But I have a problem with building the
lasted kaffe.

I compiled with same work and option, nevertheless I have an error during
building the lasted kaffe.

Simply my working is the following

1. I updated jikes-1.18 through jikes CVS and I built a jikes.
    1) ./configure --prefix=/usr/local/jikes
    2) make
    3) make install

1.5.  I downloaed qt-3.1.1 and I install qt in /usr/local/mips-qt

2. I updated kaffe  through kaffe CVS and I first built a kaffe for
x86(i686) in order to compile a java code in host(i686)
    1)
./configure --prefix=/usr/local/x86kaffe --with-jikes=/usr/local/jikes/bin/j
ikes
    2) make and make install
    3) It makes succesfully and kaffe example is compiled and runned
succesfully

3. I compiled kaffe for my target ( mips, linux, awt=qt, crosscompiler=SGI
CrossCompiler tool chain mips-linux-gcc(egcs- 2.91.66,etc)
    1) I configured a kaffe with the following options
    ---------------------------------
        export QTDIR=/usr/local/mips-qt
        CC=mips-linux-gcc CFLAGS="-mcpu=r5000" \
        CXX=mips-linux-g++ CXXFLAGS="-mcpu=r5000" \
        KAFFEH=/usr/local/x86kaffe/bin/kaffeh \
        ac_cv_c_char_unsigned='no' \ ac_cv_alignmentof_voidp='4' \
ac_cv_c_bigendian='yes' \
        ac_cv_sizeof___int64='0' \  ac_cv_sizeof_int='4' \
ac_cv_sizeof_long='4' \ ac_cv_sizeof_long_long='8' \
        ac_cv_sizeof_short='2' \ ac_cv_sizeof_voidp='4' \
        ./configure \
        --with-engine=intrp \ --with-jikes=/usr/local/bin/jikes/bin/jikes \
        --target=mips-pc-linux-gnu --host=mips-linux-gnu --build=mips-linux
\
        --with-include=/usr/mips-linux/include --with-librariesusr/mips-linu
x/lib \
        --with-awt=qt --with-qtdir=/usr/local/mips-qt \
        --enable-debug \ --disable-feedback \ --without-profiling
\ --without-stats \ --disable-gcj
        ----------------------------------------------------
   2) make
      During making a kaffe, the follwing error happened..(library linking
error)
------------------------------------------------------
mips-linux-g++ -shared -nostdlib /opt/mipsroot/usr/lib/crti.o
/opt/mipsroot/usr/lib/crtbeginS.o  .libs/tlk.o .libs/wnd.o .libs/evt.o
.libs/gra.o .libs/fnt.o .libs/clr.o .libs/img.o .libs/cbd.o
libs/evt.moc.o  -L/usr/local/mips-qt/lib -lqte -L/usr/lib/gcc-lib/mips-linux
/egcs-2.91.66 -L/usr/mips-linux/lib -lstdc++ -lm -lc -lgcc
/opt/mipsroot/usr/lib/crtendS.o /opt/mipsroot/usr/lib/crtn.o
 -mcpu=r5000 -mcpu=r5000 -Wl,-soname -Wl,libawt-1.1.x-cvs.so -Wl,-retain-sym
bols-file -Wl,.libs/libawt.exp -o .libs/libawt-1.1.x-cvs.so
/usr/mips-linux/bin/ld: cannot find -lm
make[4]: *** [libawt.la] error 1
make[4]: exit `/root/kaffe/libraries/clib/awt/qt' directory
make[3]: *** [all] error 2
make[3]: exit `/root/kaffe/libraries/clib/awt/qt' directory
make[2]: *** [all-recursive] mips-linux-g++ -shared -nostdlib
/opt/mipsroot/usr/lib/crti.o /opt/mipsroot/usr/lib/crtbeginS.o  .libs/tlk.o
.libs/wnd.o .libs/evt.o .libs/gra.o .libs/fnt.o .libs/clr.o .libs/img.o
.libs/cbd.o
.libs/evt.moc.o  -L/usr/local/mips-qt/lib -lqte -L/usr/lib/gcc-lib/mips-linu
x/egcs-2.91.66 -L/usr/mips-linux/lib -lstdc++ -lm -lc -lgcc
/opt/mipsroot/usr/lib/crtendS.o /opt/mipsroot/usr/lib/crtn.o
 -mcpu=r5000 -mcpu=r5000 -Wl,-soname -Wl,libawt-1.1.x-cvs.so -Wl,-retain-sym
bols-file -Wl,.libs/libawt.exp -o .libs/libawt-1.1.x-cvs.so
/usr/mips-linux/bin/ld: cannot find -lm
make[4]: *** [libawt.la] error 1
make[4]: exit  `/root/kaffe/libraries/clib/awt/qt' directory
make[3]: *** [all] error 2
make[3]: exit `/root/kaffe/libraries/clib/awt/qt' directory
make[2]: *** [all-recursive] error 1
make[2]: exit `/root/kaffe/libraries/clib/awt' directory
make[1]: *** [all-recursive] error 1
make[1]: exit `/root/kaffe/libraries/clib' directory
make: *** [all-recursive] error 11
make[2]: exit `/root/kaffe/libraries/clib/awt' directory
make[1]: *** [all-recursive] error 1
make[1]: exit `/root/kaffe/libraries/clib' directory
make: *** [all-recursive] error 1
----------------------------------------------------------------------------
-
    So I replaced the configure option 'with-libraries=usr/mips-linux/lib'
with 'with-libraries=/opt/mipsroot/usr/lib'.
    'make' is succesful.
    ' make install' created a tree in /usr/local/kaffe.
    3) I copied that tree in my target.
    4) I test command (kaffe, java, etc), but it generated just 'illegal
instruction (core dumped) Error. Debugging options(-verbosecall, -vmdebug)
is useless. The result is same.


   What is the wrong...? Is it related with the option ( --with-libraries=
PATH )?
   Before I use the latest kaffe-CVS, I have a nothing problem except warnig
message.
   How can I solve those problems?
   I wonder about the cause of Warning message and that error.

Tnanks.







More information about the kaffe mailing list