Skip to main content

build error midp for arm-linux

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

Hi,
I build midp(MR4) for arm-linux with below command:

#Copyright ?2008 Sun Microsystems, Inc. All rights reserved. SUN PROPRIETARY/CONFIDENTIAL.
. setup.sh

make -C $HOME/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=$HOME/tools \
TOOLS_OUTPUT_DIR=$Output/tools \
TARGET_CPU=arm \
MIDP_OUTPUT_DIR=$Output/midp \
USE_DEBUG=true \
USE_DEBUG_ROMGEN=true \
USE_DEBUG_ROMGEN_SYMBOLS=true \
$1

if [ $? -ne 0 ]; then
echo "sjwc_status=failed" >> $Log
else
echo "sjwc_status=OK" >> $Log
fi

. $Scripts/teardown.sh

And I always get romgeneration error.

Even I increase the HeapCapacity like this

$(MIDP_OUTPUT_DIR)/ROMImage.cpp: $(MIDP_CLASSES_ZIP) \
$(ROMGEN_CMD) \
$(MIDP_DIR)/build/common/config/rom.config
@echo " ... generating $@" $(LOG)

@rm -f $(ROMGEN_CFG_LST);
@for f in $(ROMGEN_CFG_FILES); do \
echo "Include $$f" >> $(ROMGEN_CFG_LST); \
done

@echo $(ROMGEN_CMD) $(ROMGEN_ARGS) \
-cp $(MIDP_CLASSES_ZIP) \
-romize =HeapCapacity250M \
$(foreach path, $(ROMGEN_INCLUDE_PATHS), \
-romincludepath $(path)) $(LOG)

@cd $(MIDP_OUTPUT_DIR); \
$(ROMGEN_CMD) $(ROMGEN_ARGS) \
-cp $(MIDP_CLASSES_ZIP) \
-romize =HeapCapacity250M \
$(foreach path, $(ROMGEN_INCLUDE_PATHS), \
-romincludepath $(path)) $(LOG)

CLDC_JAVA_LANG_OBJECT_CLASS = $(CLASSBINDIR)/java/lang/Object.class
CLDC_TEST_REFLECT_CLASS = $(CLASSBINDIR)/com/sun/cldchi/test/Reflect.class

I still get the error result:

... generating /usr/wb/phoneme_feature/output/midp/ROMImage.cpp
/usr/wb/phoneme_feature/output/cldc/linux_arm/dist/bin/romgen -romconfig /usr/wb/phoneme_feature/output/midp/generated/rom_configs.lst +GenerateROMStructs +EnableROMCompilation +EnableAllROMOptimizations -cp /usr/wb/phoneme_feature/output/midp/classes.zip -romize =HeapCapacity250M -romincludepath /usr/wb/phoneme_feature/output/cldc/linux_arm/dist/lib -romincludepath /usr/wb/phoneme_feature/midp/build/linux_fb_gcc/../../build/common/config

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

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

[Thread: 0x40001000 *** CURRENT ***]
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
.....
[37] EntryFrame
[38] com/sun/cldchi/jvm/JVM.createSysImage bci=0
[39] EntryFrame
]

[Finished dumping all threads]
make: *** [/usr/wb/phoneme_feature/output/midp/ROMImage.cpp] Error 1
make: Leaving directory `/usr/wb/phoneme_feature/midp/build/linux_fb_gcc'
sjwc_status=failed

How can I fix this issue?
Thanks

dalina.I need you help please!

Message was edited by: ljmasdf