[kaffe] Compile problems

Jari Korva jpkorva at iki.fi
Fri Nov 18 04:51:49 PST 2005


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 -




More information about the kaffe mailing list