Skip to main content

error: 'JVMSourceObjectWriter' has not been declared

12 replies [Last post]
asif_kalim
Offline
Joined: 2007-11-30
Points: 0

hi,
i am trying to build cldc for phoneME feature on ubuntu 6.10 using [ make debug ] and i get following error, need assistance.

/phoneME_feature/cldc/src/vm/share/ROM/SourceROMWriter.hpp:99: error: 'JVMSourceObjectWriter' has not been declared
...
...
make[1]: *** [_MergedSrc003.o] Error 1

thanks in advance,
asif

Reply viewing options

Select your preferred way to display the comments and click "Save settings" to activate your changes.
asif_kalim
Offline
Joined: 2007-11-30
Points: 0

hi pavel,
i have done with the cldc and pcsl build process for linux_i386, please help me to resolve another problem that i am facing in the build process of midp (im using latest source for pcsl, cldc and midp)

[b]/phoneME_feature/midp/build/linux_fb_gcc/../../build/common/makefiles/cldc_vm.gmk:181: *** target pattern contains no `%'. Stop.[/b]

--------------------------------------------- sh file to run build process ---------------------------------------------
export PCSL_PLATFORM=linux_i386_gcc
export NETWORK_MODULE=bsd/generic
export PCSL_OUTPUT_DIR=output/pcsl_output
export GNU_TOOLS_DIR=/usr
export JVMWorkSpace=mr1_source/phoneME_feature/cldc
export JVMBuildSpace=output/cldc_output
export PATH=$PATH:/usr
export JDK_DIR=/usr/local/jdk1.6.0_03
export CLDC_DIST_DIR=$JVMBuildSpace:/linux_i386/dist
export ENABLE_PCSL=true
export ENABLE_ISOLATES=true
export USE_MULTIPLE_ISOLATES=true
export MIDP_OUTPUT_DIR=output/midp_output
export TOOLS_DIR=/usr
export TARGET_CPU=i386

cd /home/asif/Titan/mr1_source/phoneME_feature/midp/build/linux_fb_gcc

make
-------------------------------------------------- end of sh file -----------------------------------------------------

thanks,
asif

Message was edited by: asif_kalim

pavelp
Offline
Joined: 2006-09-29
Points: 0

Hi Asif,

I'm sorry for delay. JDK 1.6 is not supported officially yet. Please try to use JDK 1.4 instead. And please also fix CLDC_DIST_DIR: there is an extra ":" before /linux_i386/dist and let me know the results.

Regards,
Pavel

asif_kalim
Offline
Joined: 2007-11-30
Points: 0

hi Pavel,
thanks for the reply, now the problem is with TOOLS_DIR variable, as per my understanding it must point to the tools generated in the build, im trying to build linux_i386, what should be the value of this variable in my case. Either it is the cldc build tools directory or it should point to the source files tools directory.

and also, im using jdk1.4.2.16

thanks again,
asif

Message was edited by: asif_kalim

pavelp
Offline
Joined: 2006-09-29
Points: 0

Hi Asif,

TOOLS_DIR should point to the tools workspace. You can take if from https://phoneme.dev.java.net/svn/phoneme/components/tools/trunk.

Regards,
Pavel

asif_kalim
Offline
Joined: 2007-11-30
Points: 0

hi pavel,
i already tried this with the TOOLS_DIR pointing to the tools workspace as mentioned by you, but i get the following error, what could be the reason. I have tested cldc_vm_g by exeuting a class file and it was ok.
[i]
grep: /output/mr2/cldc_output/linux_i386/dist/lib/cldc_vm.make: No such file or directory
ERROR: TARGET_CPU (i386) mismatch with VM_arch in /output/mr2/cldc_output/linux_i386/dist/lib/cldc_vm.make
exit: 1: Illegal number: -1
make: *** [CLDC_DIST_DIR] Error 2[/i]

i have gcc 4.1.2 version.

thanks and regards,
asif

pavelp
Offline
Joined: 2006-09-29
Points: 0

Hi Asif,

As you are building CLDC VM in debug mode, you should set USE_DEBUG=true when building MIDP. If you want to build the product configuration you should build 'product' target for CLDC VM and set USE_DEBUG=false (default value) for MIDP.

Regards,
Pavel

asif_kalim
Offline
Joined: 2007-11-30
Points: 0

hi pavel,
i've completed midp build, there was another linker issue during compiling, i refer to the thread [http://forums.java.net/jive/thread.jspa?messageID=242136𻇘], commented out line 122 ( Extra_CFLAGS += - Werror) of gcc.gmk and the build was successful. If any concerns, please let me know.

bundle of thanks,
asif :)

pavelp
Offline
Joined: 2006-09-29
Points: 0

Hi Asif,

Can you please confirm that you are using the latest source base taken from trunk and building the linux_i386 configuration? Can you please also try the clean build (make clean debug)?

Thanks,
Pavel

asif_kalim
Offline
Joined: 2007-11-30
Points: 0

Hi Pavel,
Thanks for your input, Below is the information that you asked about..

I am trying to build cldc based on linux_arm configuration, for linux_i386 configuration i get different error, look like this
-----------------------------------------------------------------------------------------------------------------
... FloatSupport_i386.cpp
/home/asif/mr1_source/phoneME_feature/cldc/src/vm/cpu/i386/FloatSupport_i386.cpp:90: error: extra qualification 'JVMFPUControl::' on member 'restore'
/home/asif/mr1_source/phoneME_feature/cldc/src/vm/cpu/i386/FloatSupport_i386.cpp:95: error: extra qualification 'JVMFPUControl::' on member 'set_fpu_control_word'
make[1]: *** [FloatSupport_i386.o] Error 1
-----------------------------------------------------------------------------------------------------------------
also tried clean build, same error,

and i get the source from the url and file mentioned below
(url) https://phoneme.dev.java.net/downloads_page.html
(file) phoneme_feature-mr1-rel-src-b04-09_nov_2006.zip
please guide me from where can i get latest source base if this is not the latest one

thanks again!
asif

pavelp
Offline
Joined: 2006-09-29
Points: 0

Hi Asif,

Please try the latest CLDC source code taken from https://phoneme.dev.java.net/svn/phoneme/components/cldc/trunk (refer to https://phoneme.dev.java.net/source/browse/phoneme/ for more details). Please let me know the results.

BTW, what toolchain are you using to build linux_arm configuration?

Thanks,
Pavel

asif_kalim
Offline
Joined: 2007-11-30
Points: 0

Hi Pavel,
First of all sorry! for the late reply,

I tried building with the code taken from trunk for linux_i386 it was successful. For linux_arm i get some error message of some invalid location of GNU_TOOLS_DIR, its using some default value that contains red hat tools directory path.

For your second concern, to build cldc, i am setting PATH=$PATH:/usr (using ubuntu) :D as i don't have any toolchain right now. But i will get a toolchain from the vendor that they are using and its not montavista adk. If you think that it can be done with some other way, please guide me.

thanks again!
asif

pavelp
Offline
Joined: 2006-09-29
Points: 0

Hi Asif,

To build phoneME Feature VM for linux_arm platform GNU_TOOLS_DIR should point to a valid cross platform toolchain. Once you get the tools from you vendor you should set GNU_TOOLS_DIR to where you install the toolchain. For now you can try any other ARM cross platform toolchains, for example http://www.codesourcery.com/gnu_toolchains/arm/download.html, if there are any available for your platforms.

Regards,
Pavel