Skip to main content

fail to build phoneME Feature

2 replies [Last post]
jakmax520
Offline
Joined: 2010-04-29
Points: 0

hi I am a new user of the phoneME Feature software. I am using MR4 for PC_linux
i do the following steps but i have error while build phoneME for PC_linux

export JDK_DIR=/usr/j2sdk1.4.2_19

export COMPONENTS_DIR=/home/liuyanqing/QTWorkspace/New_JVM/phoneME_feature
export GCC_DIR=/usr

export MIDP_DIR=$COMPONENTS_DIR/midp
export VARIABLE=value
export ENABLE_COMPILATION_WARNINGS=true
export USE_DEBUG_ROMGEN=true
export USE_DEBUG_ROMGEN_SYMBOLS=true

export TARGET_CPU=linux_i386
export JAVACALL_PLATFORM=linux_i386_gcc
export PCSL_PLATFORM=linux_i386_gcc
export GNU_TOOLS_DIR=$GCC_DIR

export AS=${GNU_TOOLS_PREFIX}as
export CC=${GNU_TOOLS_PREFIX}gcc
export CPP=${GNU_TOOLS_PREFIX}g++
export LD=${GNU_TOOLS_PREFIX}gcc
export AR=${GNU_TOOLS_PREFIX}ar
export ENABLE_PCSL=true
export ENABLE_ISOLATES=true

export COMPONENTS_DIR=`pwd`/phoneme_feature

export BUILD_OUTPUT_DIR=$COMPONENTS_DIR/build_output
export MIDP_OUTPUT_DIR=$BUILD_OUTPUT_DIR/midp
export PCSL_OUTPUT_DIR=$BUILD_OUTPUT_DIR/pcsl
export CLDC_OUTPUT_DIR=$BUILD_OUTPUT_DIR/cldc
export CLDC_DIST_DIR=$CLDC_OUTPUT_DIR/$TARGET_CPU/dist
export JVMWorkSpace=$COMPONENTS_DIR/cldc
export JVMBuildSpace=$COMPONENTS_DIR/cldc
export JAVACALL_DIR=$COMPONENTS_DIR/javacall
export PROJECT_JAVACALL_DIR=$COMPONENTS_DIR/javacall-com
export JAVACALL_OUTPUT_DIR=$COMPONENTS_DIR/javacall
export TOOLS_DIR=$COMPONENTS_DIR/tools
export TOOLS_OUTPUT_DIR=$COMPONENTS_DIR/tools

### building PCSL
make $COMPONENTS_DIR/pcsl clean
make -C $COMPONENTS_DIR/pcsl NETWORK_MODULE=bsd/generic
if [ 0 -ne $? ]; then
echo "##################??????? make pcsl error ??????###############"
exit 1
fi

### building CLDC

make -C $COMPONENTS_DIR/cldc/build/$TARGET_CPU clean

make -C $COMPONENTS_DIR/cldc/build/$TARGET_CPU debug
if [ 0 -ne $? ]; then
echo "##################??????? make CLDC error ??????###########"
exit 1
fi

build error:
Generating debug assembly code: ... Interpreter_i386.s
Generating oopmaps
`/home/liuyanqing/QTWorkspace/New_JVM/phoneme_feature/cldc/linux_i386/romgen/app'
ASMing Interpreter_i386.s
/home/liuyanqing/QTWorkspace/New_JVM/phoneme_feature/cldc/linux_i386/romgen/app/Interpreter_i386.s: Assembler messages:
/home/liuyanqing/QTWorkspace/New_JVM/phoneme_feature/cldc/linux_i386/romgen/app/Interpreter_i386.s:3327: Error: `fstcw' is not supported on `i486'
/home/liuyanqing/QTWorkspace/New_JVM/phoneme_feature/cldc/linux_i386/romgen/app/Interpreter_i386.s:3329: Error: `fstcw' is not supported on `i486'
/home/liuyanqing/QTWorkspace/New_JVM/phoneme_feature/cldc/linux_i386/romgen/app/Interpreter_i386.s:3333: Error: `fldcw' is not supported on `i486'
/home/liuyanqing/QTWorkspace/New_JVM/phoneme_feature/cldc/linux_i386/romgen/app/Interpreter_i386.s:3334: Error: `fld' is not supported on `i486'
/home/liuyanqing/QTWorkspace/New_JVM/phoneme_feature/cldc/linux_i386/romgen/app/Interpreter_i386.s:3335: Error: `fld' is not supported on `i486'
/home/liuyanqing/QTWorkspace/New_JVM/phoneme_feature/cldc/linux_i386/romgen/app/Interpreter_i386.s:3336: Error: `faddp' is not supported on `i486'
/home/liuyanqing/QTWorkspace/New_JVM/phoneme_feature/cldc/linux_i386/romgen/app/Interpreter_i386.s:3338: Error: `fstp' is not supported on `i486'
/home/liuyanqing/QTWorkspace/New_JVM/phoneme_feature/cldc/linux_i386/romgen/app/Interpreter_i386.s:3340: Error: `fstp' is not supported on `i486'
.........
make[2]: *** [Interpreter_i386.o] error 1

Reply viewing options

Select your preferred way to display the comments and click "Save settings" to activate your changes.
davyp
Offline
Joined: 2007-01-03
Points: 0

I have encountered this problem before. My guess is that you are using binutils 2.20.
Either revert back to an older version, or apply the following changes:

replace i486 with i586 in:

cldc/src/vm/cpu/c/AsmStubs_i386.s
cldc/src/vm/cpu/i386/SourceAssembler_i386.cpp

and any other source file where you get this problem

Cheers,
Davy

jakmax520
Offline
Joined: 2010-04-29
Points: 0

Thanks,but i has next question.

I build midp error,like this:

make -C $COMPONENTS_DIR/midp/build/linux_fb_gcc
if [ 0 -ne $? ]; then
echo "################## make midp error ########################"
exit 1
fi

RROR INFO:

make:'/home/liuyanqing/QTWorkspace/New_JVM/phoneme_feature/midp/build/linux_fb_gcc'
grep: /home/liuyanqing/QTWorkspace/New_JVM/phoneme_feature/build_output/cldc/linux_i386/dist/lib/cldc_vm.make: do not have this file or Directory
ERROR: TARGET_CPU (i386) mismatch with VM_arch in /home/liuyanqing/QTWorkspace/New_JVM/phoneme_feature/build_output/cldc/linux_i386/dist/lib/cldc_vm.make
exit: 1: Illegal number: -1
make: *** [CLDC_DIST_DIR] error 2
make:“/home/liuyanqing/QTWorkspace/New_JVM/phoneme_feature/midp/build/linux_fb_gcc”