Skip to main content

[HELP]Building error for C interpreter

1 reply [Last post]
max_mu
Offline
Joined: 2006-11-15

Hi,
I'm starting a MIPS target porting which is lack of JIT supporting, so I started from a C interpreter building. However, the latest CLDC workspace is corrupt when set arch to c. I tried cygwin_c and win32_c building, and failed both at romgen building stage. The error log is below:
------------------------------------------------------------------------
Generating _build_pch_visCPP.obj ...
_build_pch_visCPP.cpp
/projects/phoneME/cldc/src/vm/share/handles/CallInfo.hpp(180) : error C2653: 'JVMRelocation' : is not a class or namespace name
/projects/phoneME/cldc/src/vm/share/handles/CallInfo.hpp(180) : error C2065: 'offset_width' : undeclared identifier
/projects/phoneME/cldc/src/vm/share/handles/CallInfo.hpp(180) : error C2057: expected constant expression
/projects/phoneME/cldc/src/vm/share/handles/CallInfo.hpp(181) : error C2653: 'JVMRelocation' : is not a class or namespace name
/projects/phoneME/cldc/src/vm/share/handles/CallInfo.hpp(181) : error C2065: 'type_width' : undeclared identifier
/projects/phoneME/cldc/src/vm/share/handles/CallInfo.hpp(181) : error C2057: expected constant expression
/projects/phoneME/cldc/src/vm/share/handles/Method.hpp(615) : error C2143: syntax error : missing ';' before '*'
/projects/phoneME/cldc/src/vm/share/handles/Method.hpp(615) : error C2501: 'CompilerByteArray' : missing storage-class or type specifiers
/projects/phoneME/cldc/src/vm/share/handles/Method.hpp(615) : error C2501: 'entry_counts' : missing storage-class or type specifiers
/projects/phoneME/cldc/src/vm/share/handles/Method.hpp(617) : error C2143: syntax error : missing ';' before '*'
/projects/phoneME/cldc/src/vm/share/handles/Method.hpp(617) : error C2501: 'CompilerByteArray' : missing storage-class or type specifiers
/projects/phoneME/cldc/src/vm/share/handles/Method.hpp(617) : error C2501: 'bci_flags' : missing storage-class or type specifiers
-------------------------------------------------------

Well, the first 6 error of Callinfo.hpp looks caused by recently change of adding this file, which missed a #if condition at line 32. Should it be "#if ENABLE_COMPILER && ENABLE_APPENDED_CALLINFO" instead of "#if ENABLE_APPENDED_CALLINFO"? BTW, why same callinfo.hpp/cpp still exist in another directory after these 2 new files added?

The errors of Method.hpp are introduced by its latest change too.
Looks C interpreter buildings are not tested well for recent changes of CLDC, isn't it?

Reply viewing options

Select your preferred way to display the comments and click "Save settings" to activate your changes.
danila
Offline
Joined: 2006-09-25

The build failure is fixed. Please verify