2008-12-31 04:22:29     compile error when compiling kaffe-1.1.7

Document created by Aaronwu Employee on Aug 22, 2013
Version 1Show Document
  • View in full screen mode

2008-12-31 04:22:29     compile error when compiling kaffe-1.1.7

DAVID ZHOU (CHINA)

Message: 67246   

 

I followed this page:

 

  docs.blackfin.uclinux.org/doku.php?id=run_java_application_on_stamp_board)

 

Compile jikes and kaffe are successful, but when compile kaffe for blackfin the followed error occured:

 

.....

 

checking for shared library run path origin... /bin/sh: ./config.rpath: No such file or directory

done

checking for iconv... no, consider installing GNU libiconv

checking for X... libraries /usr/lib, headers /usr/include

checking for dnet_ntoa in -ldnet... no

checking for dnet_ntoa in -ldnet_stub... no

checking for gethostbyname... yes

checking for connect... (cached) yes

checking for remove... yes

checking for shmat... yes

checking for IceConnectionNumber in -lICE... no

checking for XTestQueryExtension in -lXtst... no

configure: error: libXtst NOT found, required for GdkRobot

configure: error: /bin/sh './configure' failed for libraries/javalib/external/classpath

 

 

Can anyone help me ? Thanks very much!

 

 

 

 

 

 

QuoteReplyEditDelete

 

 

2009-01-03 22:15:54     Re: compile error when compiling kaffe-1.1.7

DAVID ZHOU (CHINA)

Message: 67323   

 

The up error is due to jikes. Fixed when install jikes first.

 

But there is still errors when compile for blackfin :

 

In file included from mprec.h:34,

                 from dtoa.c:29:

ieeefp.h:159:2: error: #error Endianess not declared!!

In file included from dtoa.c:29:

mprec.h:78: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'one'

dtoa.c: In function '_Jv_dtoa_r':

dtoa.c:251: error: storage size of 'd' isn't known

dtoa.c:251: error: storage size of 'd2' isn't known

dtoa.c:251: error: storage size of 'eps' isn't known

dtoa.c:251: warning: unused variable 'eps'

dtoa.c:251: warning: unused variable 'd2'

dtoa.c:251: warning: unused variable 'd'

make[4]: *** [dtoa.lo] Error 1

make[4]: Leaving directory `/home/david/java/kaffe-1.1.7-blackfin/kaffe-1.1.7/libraries/javalib/external/classpath/native/fdlibm'

 

Any one who know it please help me ! Thanks!

QuoteReplyEditDelete

 

 

2009-01-04 03:55:30     Re: compile error when compiling kaffe-1.1.7

DAVID ZHOU (CHINA)

Message: 67324   

 

Finished doing this job.Some steps should be modified. Download the source code tar.bz2:

 

kaffe-1.1.7.tar.bz2 and untar,you may need to download filesigcontextinfo.h seperated and put into config/bfin/uclinux/:

 

1.configure kaffe for blackfin using:

 

        ./configure \

                --host=bfin-uclinux \

                --disable-native-awt \

                --enable-pure-java-math \

                --with-gc=kaffe-gc \

                --with-threads=unix-pthreads \

                --enable-static \

                --with-staticlib \

                --with-staticbin \

                --with-staticvm \

                --disable-binreloc \

                --disable-alsa \

                --without-esd \

                --with-engine=intrp \

                --disable-gtk-peer

 

2. add followed code in kaffe-1.1.7/libraries/javalib/external/classpath/native/fdlibm/ieeefp.h

 

#ifdef BFIN

#define __IEEE_LITTLE_ENDIAN

#endif

 

 

3.make

 

4. after make

 

download followed file:

 

kaffe-1.1.7/libraries/clib/native/.libs/libjavalang.a  and  libjavalang.la

 

kaffe-1.1.7/libraries/clib/nio/.libs/libjavanio.a and  libjavanio.la

 

kaffe-1.1.7/libraries/clib/io/.libs/libjavaio.a and libjavaio.la

 

kaffe-1.1.7/libraries/javalib/external/classpath/tools/tools.zip

 

kaffe-1.1.7/libraries/javalib/external/classpath/lib/glibj.zip

 

5.when download to stamp: ln -s tools.zip tools.jar

 

ln -s glibj.zip glibj.jar

 

6. run your hello word app.

 

 

QuoteReplyEditDelete

 

 

2010-09-09 08:43:53     Re: compile error when compiling kaffe-1.1.7

Manish Gajjaria (INDIA)

Message: 93300   

 

Hello,

 

I have followed the exact steps as mentioned in the previous posts . I could cross compile for bfin-uclinux; however, when I run the Hello World App from the target, I am faced with the SIGSEGV error.

 

After changing some configuration options, I was able to get the Hello World App running; however, Kaffe seemed inefficient by taking too much CPU utilization.

 

David: Since you were able to get the Hello World app running on your target, could you share info about the performance or the configuration options you provided to improve performance?

 

Thanks,

 

Manish

QuoteReplyEditDelete

 

 

2010-09-10 00:01:52     Re: compile error when compiling kaffe-1.1.7

Sonic Zhang (CHINA)

Message: 93318   

 

Kaffe is not supported in blackfin linux distribution any more.

Attachments

    Outcomes