Skip to main content

CLDC VM unstable

No replies
dronius
Offline
Joined: 2009-07-09
Points: 0

Hello,

I am trying to install phoneME Feature on Atmel AT91SAM9 device with ARM926EJ-S CPU core.
After some trickery, I was able to successfully build both Feature and Advanced VM's.
CVM (phoneme advanced) with Foundation profile seems to work OK, though I did not test it much. What I am more interested in is the CLDC VM (feature).

Unfortunately, CLDC VM crashes with SIGSEGV >50% of time for the simplest HelloWorld class that just calls System.out.println(). Sometimes it manages to run and prints the message, though.

I tried linux_arm, linux_arm_926 build targets. Below is my build command.

make -C cldc/build/linux_arm_926 \
GNU_TOOLS_DIR=$GNU_TOOLS_DIR \
JDK_DIR=$JDK_DIR \
ENABLE_PCSL=true \
PCSL_DIR=$HOME/pcsl \
PCSL_OUTPUT_DIR=$OUTPUT/pcsl \
JVMWorkSpace=$HOME/cldc \
JVMBuildSpace=$OUTPUT/cldc \
TOOLS_DIR=$HOME/tools \
TOOLS_OUTPUT_DIR=$OUTPUT/tools \
ENABLE_ISOLATES=true \
ENABLE_JAVA_DEBUGGER=true \
ENABLE_ROM_JAVA_DEBUGGER=false \
ENABLE_SYSTEM_CLASSES_DEBUG=false \
ENABLE_COMPILATION_WARNINGS=true \
$1

I am using arm-2009q1 from CodeSourcery and had to patch asm/ucontext.h inclusion in OS_Linux.hpp and allow compilation warnings to make the buildsystem work.

What I am doing wrong?