[kaffe] Kaffe on XScale

Jari Korva jpkorva at iki.fi
Tue Oct 12 01:00:10 PDT 2004


Hi,

there was an additional f0 lurking (see below). Because my Assembly is
pretty bad, I just removed it blindly - but it made Kaffe to compile!

The resulting Kaffe does not quite work though (throws an NPE in
System.initProperties, see bottom of this message).

Cheers,
  Jari

-----

 armv5b-softfloat-linux-gcc -DHAVE_CONFIG_H -I. -I. -I../../../config
-I../../../include/kaffe -I../../../kaffe/kaffevm/systems/unix-pthreads
-I../../../kaffe/kaffevm/jni -I.. -I./.. -DINTERPRETER -I../../../include
-I/wrk/ipaq/u/jko/kaffe-cvs-head/./kaffe/kaffevm
-I/wrk/ipaq/u/jko/kaffe-cvs-head/./kaffe/kaffevm/intrp
-I/wrk/ipaq/u/jko/kaffe-cvs-head/./kaffe/kaffevm/systems/unix-pthreads
-I../../../binreloc -I../../../config -I../../../include -DKAFFE_VMDEBUG
-I/opt/cross/armv5b-linux/include -Wno-import -Wchar-subscripts -Wcomment
-Wformat=2 -Wimplicit-int -Wmain -Wmissing-braces -Wmultichar
-Wparentheses -Wsequence-point -Wreturn-type -Wswitch -Wtrigraphs
-Wunused-function -Wunused-label -Wunused-parameter -Wunused-variable
-Wunused-value -W -Wfloat-equal -Wundef -Wendif-labels -Wshadow
-Wpointer-arith -Wbad-function-cast -Wcast-qual -Wcast-align
-Wwrite-strings -Wconversion -Wsign-compare -Waggregate-return
-Wstrict-prototypes -Wmissing-prototypes -Wmissing-declarations
-Wmissing-noreturn -Wmissing-format-attribute -Wpacked -Wredundant-decls
-Wnested-externs -Winline -Wlong-long -Wdisabled-optimization
-fsigned-char -pthread -DENABLE_BINRELOC -MT methodcalls.lo -MD -MP -MF
.deps/methodcalls.Tpo -c methodcalls.c  -fPIC -DPIC -o .libs/methodcalls.o
In file included from ../../../config/./arm/linux/md.h:16,
                 from ../../../config/md.h:1,
                 from ../classMethod.h:18,
                 from methodcalls.h:15,
                 from methodcalls.c:20:
../../../config/arm/sysdepCallMethod.h: In function `sysdepCallMethod':
../../../config/arm/sysdepCallMethod.h:65: error: `f0' undeclared (first
use in this function)
../../../config/arm/sysdepCallMethod.h:65: error: (Each undeclared
identifier is reported only once
../../../config/arm/sysdepCallMethod.h:65: error: for each function it
appears in.)
methodcalls.c: In function `engine_callMethod':
methodcalls.c:38: warning: nested extern declaration of `virtualMachine'
methodcalls.c:48: warning: nested extern declaration of `native'
methodcalls.c:48: warning: initialization makes pointer from integer
without a cast
methodcalls.c:100: warning: nested extern declaration of `lockObject'
methodcalls.c:103: warning: nested extern declaration of
`setupExceptionHandling'
methodcalls.c:122: warning: nested extern declaration of `unlockObject'
methodcalls.c:137: warning: nested extern declaration of
`cleanupExceptionHandling'
make[3]: *** [methodcalls.lo] Error 1
make[3]: Leaving directory
`/wrk/ipaq/u/jko/kaffe-cvs-head/kaffe/kaffevm/intrp'
make[2]: *** [all-recursive] Error 1
make[2]: Leaving directory `/wrk/ipaq/u/jko/kaffe-cvs-head/kaffe/kaffevm'
make[1]: *** [kaffe-build-order] Error 2
make[1]: Leaving directory `/wrk/ipaq/u/jko/kaffe-cvs-head'
make: *** [all-recursive] Error 1

----

# java -classpath test.zip doubletest
Internal error: caught an unexpected exception.
Please check your CLASSPATH and your installation.
java/lang/NullPointerException
        at java.lang.System.initProperties(System.java:native)
        at java.lang.System.<clinit>(System.java:44)
        at java.lang.ClassLoader.<init>(ClassLoader.java:115)
        at java.lang.ClassLoader.<init>(ClassLoader.java:111)
        at
java.security.SecureClassLoader.<init>(SecureClassLoader.java:60)
        at java.net.URLClassLoader.<init>(URLClassLoader.java:544)
        at kaffe.lang.AppClassLoader.<init>(AppClassLoader.java:237)
        at kaffe.lang.AppClassLoader.<clinit>(AppClassLoader.java:35)
Aborted



On Sat, 9 Oct 2004, Helmer [ISO-8859-15] Krämer wrote:

> On Wed, 6 Oct 2004 12:55:19 +0200
> Thomas Winkler <tom at qwws.net> wrote:
>
> Hi,
>
> > I'm currently trying to compile kaffe for the the intel XScale (ARM, Big
> > Endian).
> > I tried kaffe 1.1.4 as well as kaffe CVS HEAD (20041006). But I've run into
> > problems I could not manage to resolve on my own and I hope that somebody on
> > the list is able to help me.
> >
> > build environment:
> >  binutils-2.15
> >  gcc-3.4.0
> >  glibc-2.3.2
>
> could you probably try whether the attached patch (against CVS HEAD)
> makes any difference? GCC might be crashing because kaffe makes use
> of fp registers, but your gcc was configured for soft float....
>
> BTW, has anybody used libffi on arm for functions that return 64bit
> values?
>
> Regards,
> Helmer
>
>
>
>
>

 - Jari Korva -
  - jari.korva at iki.fi -
  - +358-40-756 4812 -




More information about the kaffe mailing list