[kaffe] Compile problems

Rafael Teixeira monoman at gmail.com
Fri Nov 18 07:19:38 PST 2005


Hi Jari and Kaffe-List:

I'm also stuck with Kaffe stopping on startup on my XScale (IXP42x)
hardware. To add some more info we've tried with JamVM and SableVM,
and similar behaviour occurs, our next try is to use Mono with IKVM,
to see if we can get a single VM to startup our java firmware in the
XScale.

By tracing a bit, sure things look like your unanswered post on Signal
Waiting was in the right track, but with JamVM we are sometimes able
to get a simple "Hello World" to work, and sometimes it also hangs.

Jari, Have you been able to go further?

Thanks for any information, and we will be glad to share what we find
on our quest to make Kaffe work on XScale.


Regards,

--
Rafael Teixeira


On 11/18/05, Jari Korva <jpkorva at iki.fi> wrote:
> Hi,
>
> I observed a few problems while compiling Kaffe cvs head:
>
> ******
>
> Classpath configure fails due to missing X libraries although X and
> GTK are disabled in Kaffe configure script:
>
> # ./configure --prefix=/wrk/kaffe.intrp --build=i686-linux
> --host=armv5b-softfloat-linux --enable-xscale --without-x
> --disable-alsatest --disable-esdtest --disable-sound
> --enable-pure-java-math --with-jikes=/opt/local/bin/jikes
> --without-classpath-gtk-awt --without-kaffe-qt-awt --without-kaffe-x-awt
> --with-threads=unix-pthreads --with-engine=intrp
> ...
> checking for iconv declaration...
>          extern size_t iconv (iconv_t cd, char * *inbuf, size_t
> *inbytesleft, char * *outbuf, size_t *outbytesleft);
> checking for X... disabled
> configure: error: GTK+ peers requested but no X library available
> configure: error: /bin/sh './configure' failed for libraries/javalib/external/classpath
>
> I was able to fix this by doing a manual classpath configure (with
> --disable-gtk-peer):
>
> # cd libraries/javalib/external/classpath
> # ./configure --prefix=/wrk/kaffe.intrp --build=i686-linux
> --host=armv5b-softfloat-linux --enable-xscale --without-x
> --disable-alsatest --disable-esdtest --disable-sound
> --enable-pure-java-math --with-jikes=/opt/local/bin/jikes
> --without-classpath-gtk-awt --without-kaffe-qt-awt --without-kaffe-x-awt
> --with-threads=unix-pthreads --with-engine=intrp --enable-debug
> --enable-xdebugging --disable-boehm-gc-configuration
> build_alias=i686-linux host_alias=armv5b-softfloat-linux
> --enable-ltdl-convenience --disable-core-jni --disable-examples
> --with-glibj-dir=/wrk/kaffe.intrp/jre/lib
> --with-native-libdir=/wrk/kaffe.intrp/jre/lib/arm
> --with-vm-classes=/wrk/kaffe-cvs-head/libraries/javalib/vmspecific
> --cache-file=/dev/null --srcdir=. --disable-gtk-peer
>
> ******
>
> The 2nd problem is that configure fails when cross compiling for
> ARM/XScale:
>
> ...
> checking for esd-config... /usr/bin/esd-config
> checking for ESD - version >= 0.2.1... yes
> Information: Using pure Java math library
> checking which extensions to include...
> checking if malloc debugging is wanted... no
> checking pthread.h usability... yes
> checking pthread.h presence... yes
> checking for pthread.h... yes
> checking for /proc/self/maps... configure: error: cannot check for file
> existence when cross compiling
>
> I was able to fix this with the patch below:
>
> --- config/arm/linux/config.frag    20 Jan 2005 23:19:18 -0000     1.8
> +++ config/arm/linux/config.frag    18 Nov 2005 12:46:49 -0000
> @@ -12,4 +12,5 @@
>    ac_cv_func_mmap_fixed_mapped=${ac_cv_func_mmap_fixed_mapped='yes'}
>  #  ac_cv_func_utime_null=${ac_cv_func_utime_null='yes'}
>    ac_cv_c_char_unsigned=${ac_cv_c_char_unsigned='no'}
> +  ac_cv_file__proc_self_maps=${ac_cv_file__proc_self_maps='yes'}
>  fi
>
> ******
>
> Cheers,
>   Jari
>
> --
>  - Jari Korva -
>   - jari.korva at iki.fi -
>
> _______________________________________________
> kaffe mailing list
> kaffe at kaffe.org
> http://kaffe.org/cgi-bin/mailman/listinfo/kaffe
>



More information about the kaffe mailing list