Skip to main content

Problem compiling CLDC for WinCE/ARM

2 replies [Last post]
nickcxt
Offline
Joined: 2007-07-23

I've been able to successfully compile Javacall and PCSL for WinCE ARM (phoneme_feature-mr2-dev-b23), but I'm running into some problems with CLDC (wince_arm)

If anyone could help me out on the below error, I would appreciate it. Thanks.

==================================
JVMBuildSpace = c:/build/out/work/cldc
JVMWorkSpace = c:/phoneme/phoneme/builds/phoneme_feature-mr2-dev-b23/cldc
ROMIZING = true
SHELL = C:/cygwin/bin/sh.exe
ENABLE_ISOLATES = true
ENABLE_MONET =
==================================
==============================
creating build tools...
==============================
make.exe[1]: Entering directory `c:/build/out/work/cldc/wince_arm/tools'

make.exe[1]: Nothing to be done for `default'.

make.exe[1]: Leaving directory `c:/build/out/work/cldc/wince_arm/tools'

done
==============================
creating ASM loop generator in debug mode
build flags: NO_DEBUG_SYMBOLS=true
==============================
make.exe[1]: Entering directory `c:/build/out/work/cldc/wince_arm/loopgen/app'

make.exe[1]: Nothing to be done for `dependencies'.

make.exe[1]: Leaving directory `c:/build/out/work/cldc/wince_arm/loopgen/app'

make.exe[1]: Entering directory `c:/build/out/work/cldc/wince_arm/loopgen/app'

InterpreterGenerator_arm.cpp

c:\phoneme\phoneme\builds\phoneme_feature-mr2-dev-b23\cldc\src\vm\cpu\arm\InterpreterGenerator_arm.cpp(925) : error C2628: 'JVMInterpreterGenerator::JVMSourceMacros::JVMSourceAssembler::Label' followed by 'char' is illegal (did you forget a ';'?)

c:\phoneme\phoneme\builds\phoneme_feature-mr2-dev-b23\cldc\src\vm\cpu\arm\InterpreterGenerator_arm.cpp(925) : error C2143: syntax error : missing ';' before ','

c:\phoneme\phoneme\builds\phoneme_feature-mr2-dev-b23\cldc\src\vm\cpu\arm\InterpreterGenerator_arm.cpp(925) : error C2143: syntax error : missing ';' before ','

c:\phoneme\phoneme\builds\phoneme_feature-mr2-dev-b23\cldc\src\vm\cpu\arm\InterpreterGenerator_arm.cpp(944) : error C2144: syntax error : missing ')' before type 'char'

c:\phoneme\phoneme\builds\phoneme_feature-mr2-dev-b23\cldc\src\vm\cpu\arm\InterpreterGenerator_arm.cpp(944) : error C2661: 'b' : no overloaded function takes 0 parameters

c:\phoneme\phoneme\builds\phoneme_feature-mr2-dev-b23\cldc\src\vm\cpu\arm\InterpreterGenerator_arm.cpp(944) : error C2059: syntax error : ')'

c:\phoneme\phoneme\builds\phoneme_feature-mr2-dev-b23\cldc\src\vm\cpu\arm\InterpreterGenerator_arm.cpp(949) : error C2065: 'check_2byte_aligned' : undeclared identifier

c:\phoneme\phoneme\builds\phoneme_feature-mr2-dev-b23\cldc\src\vm\cpu\arm\InterpreterGenerator_arm.cpp(950) : error C2065: 'align_loop' : undeclared identifier

c:\phoneme\phoneme\builds\phoneme_feature-mr2-dev-b23\cldc\src\vm\cpu\arm\InterpreterGenerator_arm.cpp(953) : error C2065: 'four_aligned' : undeclared identifier

c:\phoneme\phoneme\builds\phoneme_feature-mr2-dev-b23\cldc\src\vm\cpu\arm\InterpreterGenerator_arm.cpp(957) : error C2065: 'done' : undeclared identifier

c:\phoneme\phoneme\builds\phoneme_feature-mr2-dev-b23\cldc\src\vm\cpu\arm\InterpreterGenerator_arm.cpp(964) : error C2065: 'small_nonzero' : undeclared identifier

c:\phoneme\phoneme\builds\phoneme_feature-mr2-dev-b23\cldc\src\vm\cpu\arm\InterpreterGenerator_arm.cpp(966) : error C2065: 'two_aligned' : undeclared identifier

c:\phoneme\phoneme\builds\phoneme_feature-mr2-dev-b23\cldc\src\vm\cpu\arm\InterpreterGenerator_arm.cpp(976) : error C2065: 'two_aligned_loop' : undeclared identifier

c:\phoneme\phoneme\builds\phoneme_feature-mr2-dev-b23\cldc\src\vm\cpu\arm\InterpreterGenerator_arm.cpp(980) : error C2065: 'neq_2' : undeclared identifier

c:\phoneme\phoneme\builds\phoneme_feature-mr2-dev-b23\cldc\src\vm\cpu\arm\InterpreterGenerator_arm.cpp(987) : error C2144: syntax error : missing ')' before type 'char'

c:\phoneme\phoneme\builds\phoneme_feature-mr2-dev-b23\cldc\src\vm\cpu\arm\InterpreterGenerator_arm.cpp(987) : error C2661: 'b' : no overloaded function takes 0 parameters

c:\phoneme\phoneme\builds\phoneme_feature-mr2-dev-b23\cldc\src\vm\cpu\arm\InterpreterGenerator_arm.cpp(987) : error C2059: syntax error : ')'

c:\phoneme\phoneme\builds\phoneme_feature-mr2-dev-b23\cldc\src\vm\cpu\arm\InterpreterGenerator_arm.cpp(991) : error C2144: syntax error : missing ')' before type 'char'

c:\phoneme\phoneme\builds\phoneme_feature-mr2-dev-b23\cldc\src\vm\cpu\arm\InterpreterGenerator_arm.cpp(991) : error C2661: 'b' : no overloaded function takes 0 parameters

c:\phoneme\phoneme\builds\phoneme_feature-mr2-dev-b23\cldc\src\vm\cpu\arm\InterpreterGenerator_arm.cpp(991) : error C2059: syntax error : ')'

c:\phoneme\phoneme\builds\phoneme_feature-mr2-dev-b23\cldc\src\vm\cpu\arm\InterpreterGenerator_arm.cpp(993) : error C2065: 'four_aligned_loop' : undeclared identifier

c:\phoneme\phoneme\builds\phoneme_feature-mr2-dev-b23\cldc\src\vm\cpu\arm\InterpreterGenerator_arm.cpp(998) : error C2065: 'neq_4' : undeclared identifier

c:\phoneme\phoneme\builds\phoneme_feature-mr2-dev-b23\cldc\src\vm\cpu\arm\InterpreterGenerator_arm.cpp(1003) : error C2144: syntax error : missing ')' before type 'char'

c:\phoneme\phoneme\builds\phoneme_feature-mr2-dev-b23\cldc\src\vm\cpu\arm\InterpreterGenerator_arm.cpp(1003) : error C2661: 'bind' : no overloaded function takes 0 parameters

c:\phoneme\phoneme\builds\phoneme_feature-mr2-dev-b23\cldc\src\vm\cpu\arm\InterpreterGenerator_arm.cpp(1003) : error C2059: syntax error : ')'

c:\phoneme\phoneme\builds\phoneme_feature-mr2-dev-b23\cldc\src\vm\cpu\arm\InterpreterGenerator_arm.cpp(1011) : error C2065: 'small_loop2' : undeclared identifier

c:\phoneme\phoneme\builds\phoneme_feature-mr2-dev-b23\cldc\src\vm\cpu\arm\InterpreterGenerator_arm.cpp(1012) : error C2065: 'small_loop' : undeclared identifier

make.exe[1]: *** [InterpreterGenerator_arm.obj] Error 2

make.exe[1]: Leaving directory `c:/build/out/work/cldc/wince_arm/loopgen/app'

C:\cygwin\bin\make.exe: *** [_loopgen] Error 2

Reply viewing options

Select your preferred way to display the comments and click "Save settings" to activate your changes.
paragv
Offline
Joined: 2007-05-31

> I've been able to successfully compile Javacall and
> PCSL for WinCE ARM (phoneme_feature-mr2-dev-b23), but
> I'm running into some problems with CLDC (wince_arm)
>
> If anyone could help me out on the below error, I
> would appreciate it. Thanks.
>
> ==================================
> JVMBuildSpace = c:/build/out/work/cldc
> JVMWorkSpace =
> c:/phoneme/phoneme/builds/phoneme_feature-mr2-dev-b23/
> cldc
> ROMIZING = true
> SHELL = C:/cygwin/bin/sh.exe
> ENABLE_ISOLATES = true
> ENABLE_MONET =
> ==================================
> ==============================
> creating build tools...
> ==============================
> make.exe[1]: Entering directory
> `c:/build/out/work/cldc/wince_arm/tools'
>
> make.exe[1]: Nothing to be done for `default'.
>
> make.exe[1]: Leaving directory
> `c:/build/out/work/cldc/wince_arm/tools'
>
> done
> ==============================
> creating ASM loop generator in debug mode
> build flags: NO_DEBUG_SYMBOLS=true
> ==============================
> make.exe[1]: Entering directory
> `c:/build/out/work/cldc/wince_arm/loopgen/app'
>
> make.exe[1]: Nothing to be done for `dependencies'.
>
> make.exe[1]: Leaving directory
> `c:/build/out/work/cldc/wince_arm/loopgen/app'
>
> make.exe[1]: Entering directory
> `c:/build/out/work/cldc/wince_arm/loopgen/app'
>
> InterpreterGenerator_arm.cpp
>
> c:\phoneme\phoneme\builds\phoneme_feature-mr2-dev-b23\
> cldc\src\vm\cpu\arm\InterpreterGenerator_arm.cpp(925)
> : error C2628:
> 'JVMInterpreterGenerator::JVMSourceMacros::JVMSourceAs
> sembler::Label' followed by 'char' is illegal (did
> you forget a ';'?)
>
> c:\phoneme\phoneme\builds\phoneme_feature-mr2-dev-b23\
> cldc\src\vm\cpu\arm\InterpreterGenerator_arm.cpp(925)
> : error C2143: syntax error : missing ';' before ','
>
> c:\phoneme\phoneme\builds\phoneme_feature-mr2-dev-b23\
> cldc\src\vm\cpu\arm\InterpreterGenerator_arm.cpp(925)
> : error C2143: syntax error : missing ';' before ','
>
> c:\phoneme\phoneme\builds\phoneme_feature-mr2-dev-b23\
> cldc\src\vm\cpu\arm\InterpreterGenerator_arm.cpp(944)
> : error C2144: syntax error : missing ')' before type
> 'char'
>
> c:\phoneme\phoneme\builds\phoneme_feature-mr2-dev-b23\
> cldc\src\vm\cpu\arm\InterpreterGenerator_arm.cpp(944)
> : error C2661: 'b' : no overloaded function takes 0
> parameters
>
> c:\phoneme\phoneme\builds\phoneme_feature-mr2-dev-b23\
> cldc\src\vm\cpu\arm\InterpreterGenerator_arm.cpp(944)
> : error C2059: syntax error : ')'
>
> c:\phoneme\phoneme\builds\phoneme_feature-mr2-dev-b23\
> cldc\src\vm\cpu\arm\InterpreterGenerator_arm.cpp(949)
> : error C2065: 'check_2byte_aligned' : undeclared
> identifier
>
> c:\phoneme\phoneme\builds\phoneme_feature-mr2-dev-b23\
> cldc\src\vm\cpu\arm\InterpreterGenerator_arm.cpp(950)
> : error C2065: 'align_loop' : undeclared identifier
>
> c:\phoneme\phoneme\builds\phoneme_feature-mr2-dev-b23\
> cldc\src\vm\cpu\arm\InterpreterGenerator_arm.cpp(953)
> : error C2065: 'four_aligned' : undeclared
> identifier
>
> c:\phoneme\phoneme\builds\phoneme_feature-mr2-dev-b23\
> cldc\src\vm\cpu\arm\InterpreterGenerator_arm.cpp(957)
> : error C2065: 'done' : undeclared identifier
>
> c:\phoneme\phoneme\builds\phoneme_feature-mr2-dev-b23\
> cldc\src\vm\cpu\arm\InterpreterGenerator_arm.cpp(964)
> : error C2065: 'small_nonzero' : undeclared
> identifier
>
> c:\phoneme\phoneme\builds\phoneme_feature-mr2-dev-b23\
> cldc\src\vm\cpu\arm\InterpreterGenerator_arm.cpp(966)
> : error C2065: 'two_aligned' : undeclared identifier
>
> c:\phoneme\phoneme\builds\phoneme_feature-mr2-dev-b23\
> cldc\src\vm\cpu\arm\InterpreterGenerator_arm.cpp(976)
> : error C2065: 'two_aligned_loop' : undeclared
> identifier
>
> c:\phoneme\phoneme\builds\phoneme_feature-mr2-dev-b23\
> cldc\src\vm\cpu\arm\InterpreterGenerator_arm.cpp(980)
> : error C2065: 'neq_2' : undeclared identifier
>
> c:\phoneme\phoneme\builds\phoneme_feature-mr2-dev-b23\
> cldc\src\vm\cpu\arm\InterpreterGenerator_arm.cpp(987)
> : error C2144: syntax error : missing ')' before type
> 'char'
>
> c:\phoneme\phoneme\builds\phoneme_feature-mr2-dev-b23\
> cldc\src\vm\cpu\arm\InterpreterGenerator_arm.cpp(987)
> : error C2661: 'b' : no overloaded function takes 0
> parameters
>
> c:\phoneme\phoneme\builds\phoneme_feature-mr2-dev-b23\
> cldc\src\vm\cpu\arm\InterpreterGenerator_arm.cpp(987)
> : error C2059: syntax error : ')'
>
> c:\phoneme\phoneme\builds\phoneme_feature-mr2-dev-b23\
> cldc\src\vm\cpu\arm\InterpreterGenerator_arm.cpp(991)
> : error C2144: syntax error : missing ')' before type
> 'char'
>
> c:\phoneme\phoneme\builds\phoneme_feature-mr2-dev-b23\
> cldc\src\vm\cpu\arm\InterpreterGenerator_arm.cpp(991)
> : error C2661: 'b' : no overloaded function takes 0
> parameters
>
> c:\phoneme\phoneme\builds\phoneme_feature-mr2-dev-b23\
> cldc\src\vm\cpu\arm\InterpreterGenerator_arm.cpp(991)
> : error C2059: syntax error : ')'
>
> c:\phoneme\phoneme\builds\phoneme_feature-mr2-dev-b23\
> cldc\src\vm\cpu\arm\InterpreterGenerator_arm.cpp(993)
> : error C2065: 'four_aligned_loop' : undeclared
> identifier
>
> c:\phoneme\phoneme\builds\phoneme_feature-mr2-dev-b23\
> cldc\src\vm\cpu\arm\InterpreterGenerator_arm.cpp(998)
> : error C2065: 'neq_4' : undeclared identifier
>
> c:\phoneme\phoneme\builds\phoneme_feature-mr2-dev-b23\
> cldc\src\vm\cpu\arm\InterpreterGenerator_arm.cpp(1003)
> : error C2144: syntax error : missing ')' before type
> 'char'
>
> c:\phoneme\phoneme\builds\phoneme_feature-mr2-dev-b23\
> cldc\src\vm\cpu\arm\InterpreterGenerator_arm.cpp(1003)
> : error C2661: 'bind' : no overloaded function takes
> 0 parameters
>
> c:\phoneme\phoneme\builds\phoneme_feature-mr2-dev-b23\
> cldc\src\vm\cpu\arm\InterpreterGenerator_arm.cpp(1003)
> : error C2059: syntax error : ')'
>
> c:\phoneme\phoneme\builds\phoneme_feature-mr2-dev-b23\
> cldc\src\vm\cpu\arm\InterpreterGenerator_arm.cpp(1011)
> : error C2065: 'small_loop2' : undeclared identifier
>
> c:\phoneme\phoneme\builds\phoneme_feature-mr2-dev-b23\
> cldc\src\vm\cpu\arm\InterpreterGenerator_arm.cpp(1012)
> : error C2065: 'small_loop' : undeclared identifier
>
> make.exe[1]: *** [InterpreterGenerator_arm.obj] Error
> 2
>
> make.exe[1]: Leaving directory
> `c:/build/out/work/cldc/wince_arm/loopgen/app'
>
> C:\cygwin\bin\make.exe: *** [_loopgen] Error 2

hi,
you need to just rename
Label small to some other variable which will solve ur prob
you also need to rename all entries of that variable in that file.

- Parag

danila
Offline
Joined: 2006-09-25

It looks like your compiler doesn't support the variable definitions of the kind:

C a, b;

where C is a user-defined type.
It complains about the following :

Label small, small_loop, small_loop2, small_nonzero,
align_loop, check_2byte_aligned, done, neq_2, neq_4,
four_aligned_loop, four_aligned,
two_aligned_loop, two_aligned;

As a workaround you can try replacing it with a set of individual definitions:

Label small;
Label small_loop;
[...]