Skip to main content

buil error cldc for arm-linux

7 replies [Last post]
ljmasdf
Offline
Joined: 2009-10-07
Points: 0

Hello.
I have a issuse when compiling phoneme features MR4 for arm-linux platform:
==================================================
GNU_TOOLS_DIR = /usr/local/arm/3.4.1/arm-linux
==================================================
../../romgen/app/romgen -cp /usr/wb/phoneme_feature/build_output/cldc/classes.zip +GenerateGNUCode =HeapCapacity16M -romconfig /usr/wb/phoneme_feature/cldc/src/vm/cldctest_rom.cfg -romincludepath /usr/wb/phoneme_feature/cldc/src/vm +RewriteROMConstantPool +EnableAllROMOptimizations -romize

If romizer fails, increase your heap size.
E.g., =HeapCapacity80M

Starting free heap = 13036 KB
Loading classes...Done! in 0.36 seconds
... reading system property: microedition.encoding
Fatal signal SIGSEGV: errno=0; code=1; addr=0x1000206
[Dumping all threads]
Current thread = 0x40001000

[Thread: 0x40001000 *** CURRENT ***]
task ID 0x1
Stack Trace (id=0) [
[ 0] com/sun/cldchi/jvm/JVM.createSysImage bci=0
[ 1] EntryFrame
[ 2] com/sun/cldchi/jvm/JVM.createSysImage bci=0
[ 3] EntryFrame
[ 4] com/sun/cldchi/jvm/JVM.createSysImage bci=0
[ 5] EntryFrame
[ 6] com/sun/cldchi/jvm/JVM.createSysImage bci=0
[ 7] EntryFrame
[ 8] com/sun/cldchi/jvm/JVM.createSysImage bci=0
[ 9] EntryFrame
]

[Finished dumping all threads]
make[1]: *** [../generated/ROMImage.cpp] Error 1
make[1]: Leaving directory `/usr/wb/phoneme_feature/build_output/cldc/linux_arm/target/debug'
make: *** [_debug] Error 2
make: Leaving directory `/usr/wb/phoneme_feature/cldc/build/linux_arm'
cldc_status=failed

my build cmd is like this:
export PF_HOME=/usr/wb/phoneme_feature
export JDK_DIR=/usr/lib/jvm/java
export GNU_TOOLS_DIR=/usr/local/arm/3.4.1/arm-linux
export Scripts=`pwd`
export Output=$PF_HOME/build_output
export Log=$PF_HOME/log.txt
export USE_DEBUG_ROMGEN=true
export USE_DEBUG_ROMGEN_SYMBOLS=true
rm -f $Log
make -C $PF_HOME/cldc/build/linux_arm \
GNU_TOOLS_DIR=$GNU_TOOLS_DIR \
JDK_DIR=$JDK_DIR ENABLE_PCSL=true \
PCSL_OUTPUT_DIR=$Output/pcsl \
JVMWORKSPACE=$PF_HOME/cldc \
JVMBUILDSPACE=$Output/cldc \
TOOLS_DIR=$PF_HOME/tools \
TOOLS_OUTPUT_DIR=$Output/tools \
ENABLE_ISOLATES=true \
ENABLE_PCSL=true \
ENABLE_MULTIPLE_PROFILES_SUPPORT=true \
DISABLE_WRITE_STRING_WARNINGS=true $1
if [ $? -ne 0 ]; then
echo "cldc_status=failed" >> $Log
else
echo "cldc_status=OK" >> $Log
fi
cd $PF_HOME
cat $Log
cd $Scripts

how can I fix this issuse?
Thanks

Reply viewing options

Select your preferred way to display the comments and click "Save settings" to activate your changes.
ljmasdf
Offline
Joined: 2009-10-07
Points: 0

Hi dalina
According to what you said, I compile cldc sucessfully.but when I try to run cldc with command like this "dist/bin/cldc_vm -cp ../classes.zip HelloWorld" I get a segmentation fault.
I do not how do the fault happen,and how to deal with this fault.
How can I fix this issue.
Thanks.
ljm

danila
Offline
Joined: 2006-09-25
Points: 0

Hello,
try to build the VM in debug mode ('debug' make target) and run HelloWorld on it.
Danila

ljmasdf
Offline
Joined: 2009-10-07
Points: 0

Thanks for your replay.
I use MR3 compileing instand of MR4 and can run in device .

conradciobanica
Offline
Joined: 2009-11-17
Points: 0

I see that you managed to build phone me for linux_arm. I have similar problems and I need your help. I'am trying to build it but i miss Embedix package and I don't know what to install or what package to take from repository. If you can give me some more instructions to follow, I will be very happy.

Thanks,
Conrad

ljmasdf
Offline
Joined: 2009-10-07
Points: 0

Hi,conradciobanica!
my instructions are all from linux-arm.tar.gz. You can down it from Phoneme websit and do some change as you need,such as export env.

danila
Offline
Joined: 2006-09-25
Points: 0

Try to increase the heap size for romgen.
In your case, replace =HeapCapacity16M with e.g. =HeapCapacity80M in make rule in cldc/build/share/jvm.make.
Also try to rebuild the VM with USE_DEBUG_ROMGEN=true and USE_DEBUG_ROMGEN_SYMBOLS=true.

ljmasdf
Offline
Joined: 2009-10-07
Points: 0

Hi,danila.
Thanks for you replay!
I recompiling it as your said and it works!!!
Thanks you again!

Message was edited by: ljmasdf