Skip to main content

run usertest error

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

Hi
I compiled phoneME Feature MR4 with below commands and resualts are OK,but I get a wrong message that is "Segmentation fault" when I try to run bin/arm/usertest.
When I try to run cldc_vm I also get same error.

commands:
build-pcsl.sh
build-cldc.sh
build-midp.sh

All related files are below:
#setup.sh
# Copyright ?2008 Sun Microsystems, Inc. All rights reserved. SUN PROPRIETARY/CONFIDENTIAL.
export PFHOME=/usr/wb/phoneme_feature
export JDK_DIR=/usr/lib/jvm/java
export GNU_TOOLS_DIR=/usr/local/arm/3.4.6/arm-linux
export Scripts=`pwd`
export Output=$PFHOME/output
export Log=$PFHOME/log.txt
rm -f $Log

#build-pcsl.sh
# Copyright ?2008 Sun Microsystems, Inc. All rights reserved. SUN PROPRIETARY/CONFIDENTIAL.
. $PWD/setup.sh
make -C $PFHOME/pcsl \
GNU_TOOLS_DIR=$GNU_TOOLS_DIR \
PCSL_PLATFORM=linux_arm_gcc \
PCSL_OUTPUT_DIR=$Output/pcsl \
NETWORK_MODULE=bsd/generic \
TOOLS_DIR=$PFHOME/tools \
TOOLS_OUTPUT_DIR=$Output/tools \
$1
if [ $? -ne 0 ]; then
echo "build-pcsl=failed" >> $Log
else
echo "build-pcsl=OK" >> $Log
fi
. $Scripts/teardown.sh

#build-cldc.sh
# Copyright ?2008 Sun Microsystems, Inc. All rights reserved. SUN PROPRIETARY/CONFIDENTIAL.
. $PWD/setup.sh
make -C $PFHOME/cldc/build/linux_arm \
GNU_TOOLS_DIR=$GNU_TOOLS_DIR \
ENABLE_PCSL=true \
PCSL_OUTPUT_DIR=$Output/pcsl \
JVMWorkSpace=$PFHOME/cldc \
JVMBuildSpace=$Output/cldc \
TOOLS_DIR=$PFHOME/tools \
TOOLS_OUTPUT_DIR=$Output/tools \
USE_DEBUG_ROMGEN=true \
USE_DEBUG_ROMGEN_SYMBOLS=true \
$1
if [ $? -ne 0 ]; then
echo "cldc_status=failed" >> $Log
else
echo "cldc_status=OK" >> $Log
fi
. $Scripts/teardown.sh

#build-midp.sh
#Copyright ?2008 Sun Microsystems, Inc. All rights reserved. SUN PROPRIETARY/CONFIDENTIAL.
. $PWD/setup.sh
make -C $PFHOME/midp/build/linux_fb_gcc \
GNU_TOOLS_DIR=$GNU_TOOLS_DIR \
JDK_DIR=$JDK_DIR \
PCSL_OUTPUT_DIR=$Output/pcsl \
CLDC_DIST_DIR=$Output/cldc/linux_arm/dist \
TOOLS_DIR=$PFHOME/tools \
TOOLS_OUTPUT_DIR=$Output/tools \
TARGET_CPU=arm \
MIDP_OUTPUT_DIR=$Output/midp \
$1
if [ $? -ne 0 ]; then
echo "sjwc_status=failed" >> $Log
else
echo "sjwc_status=OK" >> $Log
fi
make -C $PFHOME/midp/build/linux_fb_gcc docs_html \
TOOLS_DIR=$PFHOME/tools PCSL_OUTPUT_DIR=$Output/pcsl \
CLDC_OUTPUT_DIR=$Output/cldc \
CLDC_DIST_DIR=$Output/cldc/linux_arm/dist \
NETWORK_MODULE=bsd/generic \
TARGET_CPU=arm \
MIDP_OUTPUT_DIR=$Output/midp \
. $Scripts/teardown.sh

when I compile cldc ,I replace =HeapCapacity16M with e.g. =HeapCapacity80M in make rule in cldc/build/share/jvm.make( as danila said http://forums.java.net/jive/thread.jspa?threadID=67792&tstart=0).
I do not know whether this change make the error.

Except increase HeapCapacity and disable Werror I do not change anything in the files.
How can I fix this problem?
Excuse me my poor English.

Thanks!
ljm