Skip to main content

problems during compiling phonme_feature mr2 uner linux

1 reply [Last post]
myzhangyuan
Offline
Joined: 2006-12-13

dear all,
thanks for your time,

my phonme version: phoneme_feature-mr2-dev-src-b10-28_mar_2007

my compile environment:
linux: fedora 4
gcc:4.0.0
qt:3.3.4

environment variables setting:

# set global environment variables
export HOME=/root/phoneme_feature2
export BUILD_OUTPUT_DIR=$HOME/build_output
export JDK_DIR=/home/j2sdk1.4.2_12/
export QTDIR=/usr/lib/qt3
export PATH=$PATH:$QTDIR/bin
export TOOLS_DIR=$HOME/tools

# set pcsl environment variables
export PCSL_PLATFORM=linux_i386_gcc
export PCSL_OUTPUT_DIR=$BUILD_OUTPUT_DIR/pcsl
export NETWORK_MODULE=bsd/generic

#set cldc environment variables
export JVMWorkSpace=$HOME/cldc
export JVMBuildSpace=$BUILD_OUTPUT_DIR/cldc
export ENABLE_PCSL=true
export ENABLE_ISOLATES=false

# set MIDP environment variables
export MIDP_DIR=$HOME/midp
export MIDP_OUTPUT_DIR=$BUILD_OUTPUT_DIR/midp
export CLDC_DIST_DIR=$BUILD_OUTPUT_DIR/cldc/linux_i386/dist
export TARGET_CPU=i386
export USE_MULTIPELE_ISOLATES=false
export USE_PCSL=true

when I compiling pcsl, cldc, there is a linking error:
linking ../bin/cldc_vm_g ...
/usr/bin/ld: /root/phone_feature2/build_output/pcsl/linux_i386/lib/libpcsl_memory.a(pcsl_chunkmmap_linux.o): Relocations in generic ELF(EM:40)
/root/phoneme_feature2/build_output/pcsl/linux_i386/lib/libpcsl_memory.a: could not read symbols: File in wrong format
colloect2: ld returned 1 exit status
make[1]: *** [../bin/cldc_vm_g] Error 1

could you please give me some suggestion?

thanks in advance.

Message was edited by: myzhangyuan

Reply viewing options

Select your preferred way to display the comments and click "Save settings" to activate your changes.
stuart_marks
Offline
Joined: 2006-08-24

The "File in wrong format" seems very strange. Could it be that you were compiling PCSL for a different architecture (say, ARM) beforehand? I'd suggest doing a "make clean" in both PCSL and CLDC and then rebuilding.

Also, we've released a final version of the MR2 milestone release; it's much newer than b10. I recommend you upgrade to it. However, this is probably independent of the problem you're seeing. You should still be able to build b10.

s'marks