Skip to main content

problem building cldc

9 replies [Last post]
greathendry
Offline
Joined: 2007-08-22
Points: 0

C:\phoneME\broadcom\phoneme_feature>set MEHOME=C:/phoneME/broadcom/phoneme_featu
re

C:\phoneME\broadcom\phoneme_feature>set BUILD_OUTPUT_DIR=C:/phoneME/broadcom/pho
neme_feature/build_output

C:\phoneME\broadcom\phoneme_feature>set JDK_DIR=C:/Program Files/Java/jdk1.6.0_0
1

C:\phoneME\broadcom\phoneme_feature>set CYG4ME=c:/cyg4me

C:\phoneME\broadcom\phoneme_feature>set PATH=c:/cyg4me/bin;C:/Program Files/Java
/jdk1.6.0_01/bin;c:/cyg4me/bin;C:/Program Files/Java/jdk1.6.0_01/bin;c:/cyg4me/b
in;C:/Program Files/Java/jdk1.6.0_01/bin;C:\Nokia\Carbide_j_1_5\bin;C:\ARM\ADSv1
_2\bin;C:\ARM\ADSv1_2\Include;C:\ARM\ADSv1_2\Lib;C:\WINDOWS\system32;C:\WINDOWS;
C:\WINDOWS\System32\Wbem;C:\Program Files\QuickTime\QTSystem\;C:\Cygwin;C:\Perfo
rce;C:\Program Files\IDM Computer Solutions\UltraEdit-32;C:\Nokia\Update_Manager
\bin;C:\Python25;C:\Program Files\MathWorks\MATLAB Component Runtime\v73\runtime
\win32;C:\VXIPNP\WinNT\Bin

C:\phoneME\broadcom\phoneme_feature>set JVMWorkSpace=C:/phoneME/broadcom/phoneme
_feature/cldc

C:\phoneME\broadcom\phoneme_feature>set JVMBuildSpace=C:/phoneME/broadcom/phonem
e_feature/build_output/cldc

C:\phoneME\broadcom\phoneme_feature>cd cldc/build/javacall_i386_vc

C:\phoneME\broadcom\phoneme_feature\cldc\build\javacall_i386_vc>make ENABLE_PCSL
=true PCSL_OUTPUT_DIR=%BUILD_OUTPUT_DIR%/pcsl ENABLE_ISOLATES=true JAVACALL_OUTP
UT_DIR=%BUILD_OUTPUT_DIR%/javacall
test: Files/Java/jdk1.6.0_01/jre/lib/rt.jar: unknown operand
==================================
JVMBuildSpace = C:/phoneME/broadcom/phoneme_feature/build_output/cldc
JVMWorkSpace = C:/phoneME/broadcom/phoneme_feature/cldc
ROMIZING = true
SHELL = c:/cyg4me/bin/sh.exe
ENABLE_ISOLATES = true
ENABLE_MONET =
==================================
==============================
creating build tools...
==============================
make[1]: Entering directory `C:/phoneME/broadcom/phoneme_feature/build_output/cl
dc/javacall_i386_vc/tools'
make[1]: Nothing to be done for `default'.
make[1]: Leaving directory `C:/phoneME/broadcom/phoneme_feature/build_output/cld
c/javacall_i386_vc/tools'
done
==============================
creating ASM loop generator in debug mode
build flags: NO_DEBUG_SYMBOLS=true
==============================
make[1]: Entering directory `C:/phoneME/broadcom/phoneme_feature/build_output/cl
dc/javacall_i386_vc/loopgen/app'
generating ../generated/Dependencies ...
C:/Program: not found
make[1]: *** [../generated/Dependencies.timestamp] Error 127
make[1]: Leaving directory `C:/phoneME/broadcom/phoneme_feature/build_output/cld
c/javacall_i386_vc/loopgen/app'
make: *** [_loopgen] Error 2

Reply viewing options

Select your preferred way to display the comments and click "Save settings" to activate your changes.
terrencebarr
Offline
Joined: 2004-03-04
Points: 0

Hi,

There is a wiki entry on the topic. Please check here and feel free to update the instructions as useful:

http://wiki.java.net/bin/view/Mobileandembedded/PhoneMEBuilding

Hope this help. Cheers,

-- Terrence

Terrence Barr
Evangelist, Java Mobile & Embedded Community
Sun Microsystems, Germany
www.mobileandembedded.org

greathendry
Offline
Joined: 2007-08-22
Points: 0

Thanks. I browsed this wiki entry. The code I'm using is phoneme_feature-mr2-rel-src-b23-08_may-2007.zip. Some fixes already there I guess, also new issue may come up.

greathendry
Offline
Joined: 2007-08-22
Points: 0

I guess so. I have problem when building PCSL.

C:\phoneME\broadcom\phoneme_feature>set PCSL_OUTPUT_DIR=C:/phoneME/broadcom/phon
eme_feature/build_output/pcsl

C:\phoneME\broadcom\phoneme_feature>set PCSL_PLATFORM=javacall_i386_vc

C:\phoneME\broadcom\phoneme_feature>cd pcsl

C:\phoneME\broadcom\phoneme_feature\pcsl>make JAVACALL_OUTPUT_DIR=%BUILD_OUTPUT_
DIR%/javacall
makefiles/top.gmk:43: C:/phoneME/broadcom/phoneme_feature/pcsl/makefiles/platfor
ms/javacall_i386_vc: No such file or directory
makefiles/top.gmk:43: .gmk: No such file or directory
make: *** No rule to make target `.gmk'. Stop.

top .gmk line 43 is:
include $(PCSL_DIR)/makefiles/platforms/$(PCSL_PLATFORM).gmk

javacall_i386_vc.gmk do exist in C:\phoneME\broadcom\phoneme_feature\pcsl\makefiles\platforms

danila
Offline
Joined: 2006-09-25
Points: 0

Try to pass PCSL_PLATFORM as a make command argument, not as an env variable:
> make PCSL_PLATFORM=javacall_i386_vc ...

greathendry
Offline
Joined: 2007-08-22
Points: 0

OK. I have to inbstall MASM. But I continue to have new problem.

C:\phoneME\broadcom\phoneme_feature\cldc\src\vm\share\runtime\OsFile.cpp(42) : f
atal error C1083: Cannot open include file: 'pcsl_file.h': No such file or direc
tory
make[1]: *** [OsFile.obj] Error 2
make[1]: Leaving directory `C:/phoneME/broadcom/phoneme_feature/build_output/cld
c/javacall_i386_vc/target/debug'
make: *** [_debug] Error 2

danila
Offline
Joined: 2006-09-25
Points: 0

Please check that PCSL is built and PCSL_OUTPUT_DIR variable points to the correct location.

greathendry
Offline
Joined: 2007-08-22
Points: 0

It looks much better. But I still has some errors when the build process may about to close.
..............................
Throwable.cpp
Timer.cpp
TypeArray.cpp
TypeArrayClass.cpp
TypeSymbol.cpp
Universe.cpp
VMEvent.cpp
VSFMergeTest.cpp
Value.cpp
Verifier.cpp
VerifierFrame.cpp
VerifyMethodCodes.cpp
VirtualStackFrame.cpp
VirtualStackFrame_i386.cpp
WTKProfiler.cpp
WeakReference.cpp
jvmspi.cpp
kni.cpp
kvmcompat.cpp
sni.cpp
InterpreterSkeleton.cpp
OopMapsSkeleton.cpp
Generating debug assembly code: ... Interpreter_i386.asm
Generating oopmaps
make[2]: Entering directory `C:/phoneME/broadcom/phoneme_feature/build_output/cl
dc/javacall_i386_vc/romgen/app'
ml.exe: not found
make[2]: *** [Interpreter_i386.obj] Error 127
make[2]: Leaving directory `C:/phoneME/broadcom/phoneme_feature/build_output/cld
c/javacall_i386_vc/romgen/app'
make[1]: *** [../../romgen/app/romgen.exe] Error 2
make[1]: Leaving directory `C:/phoneME/broadcom/phoneme_feature/build_output/cld
c/javacall_i386_vc/romgen/app'
make: *** [_romgen] Error 2

greathendry
Offline
Joined: 2007-08-22
Points: 0

OK. jdk should not locate at "Program Files" folder. But it still has problem.

C:\phoneME\broadcom\phoneme_feature>set MEHOME=C:/phoneME/broadcom/phoneme_featu
re

C:\phoneME\broadcom\phoneme_feature>set BUILD_OUTPUT_DIR=C:/phoneME/broadcom/pho
neme_feature/build_output

C:\phoneME\broadcom\phoneme_feature>set JDK_DIR=C:/j2sdk1.4.2_15

C:\phoneME\broadcom\phoneme_feature>set CYG4ME=c:/cyg4me

C:\phoneME\broadcom\phoneme_feature>set PATH=c:/cyg4me/bin;C:/j2sdk1.4.2_15/bin;
C:\Nokia\Carbide_j_1_5\bin;C:\ARM\ADSv1_2\bin;C:\ARM\ADSv1_2\Include;C:\ARM\ADSv
1_2\Lib;C:\WINDOWS\system32;C:\WINDOWS;C:\WINDOWS\System32\Wbem;C:\Program Files
\QuickTime\QTSystem\;C:\Cygwin;C:\Perforce;C:\Program Files\IDM Computer Solutio
ns\UltraEdit-32;C:\Nokia\Update_Manager\bin;C:\Python25;C:\Program Files\MathWor
ks\MATLAB Component Runtime\v73\runtime\win32;C:\VXIPNP\WinNT\Bin

C:\phoneME\broadcom\phoneme_feature>set JVMWorkSpace=C:/phoneME/broadcom/phoneme
_feature/cldc

C:\phoneME\broadcom\phoneme_feature>set JVMBuildSpace=C:/phoneME/broadcom/phonem
e_feature/build_output/cldc

C:\phoneME\broadcom\phoneme_feature>cd cldc/build/javacall_i386_vc

C:\phoneME\broadcom\phoneme_feature\cldc\build\javacall_i386_vc>make ENABLE_PCSL

make: *** No rule to make target `ENABLE_PCSL'. Stop.

C:\phoneME\broadcom\phoneme_feature\cldc\build\javacall_i386_vc>=true PCSL_OUTPU
T_DIR=%BUILD_OUTPUT_DIR%/pcsl ENABLE_ISOLATES=true JAVACALL_OUTP

C:\phoneME\broadcom\phoneme_feature\cldc\build\javacall_i386_vc>UT_DIR=%BUILD_OU
TPUT_DIR%/javacall
'UT_DIR' is not recognized as an internal or external command,
operable program or batch file.

C:\phoneME\broadcom\phoneme_feature\cldc\build\javacall_i386_vc>make ENABLE_PCSL
=true PCSL_OUTPUT_DIR=%BUILD_OUTPUT_DIR%/pcsl ENABLE_ISOLATES=true JAVACALL_OUTP
UT_DIR=%BUILD_OUTPUT_DIR%/javacall
==================================
JVMBuildSpace = C:/phoneME/broadcom/phoneme_feature/build_output/cldc
JVMWorkSpace = C:/phoneME/broadcom/phoneme_feature/cldc
ROMIZING = true
SHELL = c:/cyg4me/bin/sh.exe
ENABLE_ISOLATES = true
ENABLE_MONET =
==================================
==============================
creating build tools...
==============================
make[1]: Entering directory `C:/phoneME/broadcom/phoneme_feature/build_output/cl
dc/javacall_i386_vc/tools'
make[1]: Nothing to be done for `default'.
make[1]: Leaving directory `C:/phoneME/broadcom/phoneme_feature/build_output/cld
c/javacall_i386_vc/tools'
done
==============================
creating ASM loop generator in debug mode
build flags: NO_DEBUG_SYMBOLS=true
==============================
make[1]: Entering directory `C:/phoneME/broadcom/phoneme_feature/build_output/cl
dc/javacall_i386_vc/loopgen/app'
generating ../generated/Dependencies ...
Exception in thread "main" java.lang.UnsupportedClassVersionError: BuildTool (Un
supported major.minor version 50.0)
at java.lang.ClassLoader.defineClass0(Native Method)
at java.lang.ClassLoader.defineClass(ClassLoader.java:539)
at java.security.SecureClassLoader.defineClass(SecureClassLoader.java:12
3)
at java.net.URLClassLoader.defineClass(URLClassLoader.java:251)
at java.net.URLClassLoader.access$100(URLClassLoader.java:55)
at java.net.URLClassLoader$1.run(URLClassLoader.java:194)
at java.security.AccessController.doPrivileged(Native Method)
at java.net.URLClassLoader.findClass(URLClassLoader.java:187)
at java.lang.ClassLoader.loadClass(ClassLoader.java:289)
at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:274)
at java.lang.ClassLoader.loadClass(ClassLoader.java:235)
at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:302)
make[1]: *** [../generated/Dependencies.timestamp] Error 1
make[1]: Leaving directory `C:/phoneME/broadcom/phoneme_feature/build_output/cld
c/javacall_i386_vc/loopgen/app'
make: *** [_loopgen] Error 2

danila
Offline
Joined: 2006-09-25
Points: 0

Try to make a clean build.
Clean the ouput directory, C:/phoneME/broadcom/phoneme_feature/build_output/cldc and rerun the build.

Also note that your make command is split into several lines, it should be on a single line

> make ENABLE_PCSL=true PCSL_OUTPUT_DIR=%BUILD_OUTPUT_DIR%/pcsl ...