Skip to main content

Error Building a CLDC Reference Port on Windows..

3 replies [Last post]
gaganmalik
Offline
Joined: 2008-06-11

Hi,
I'm getting the following "VM Error, assertion failure" while building CLDC Reference Port.

At first I was getting "ml.exe not found". After that I downloaded ml.exe, ml.err & link.exe from http://www.scs.carleton.ca/~sivarama/asm_book_web/free_MASM.html

ml.exe error got resolved but then it says: "romgen.exe has encountered a problem" along with the following error message:

---------------------------------------------------------------------------------------------------
==============================
starting DEBUG build
==============================
make[1]: Entering directory `C:/phoneME_feature/build_output/cldc/javacall_i386_vc/target/debug'
make[1]: Nothing to be done for `dependencies'.
make[1]: Leaving directory `C:/phoneME_feature/build_output/cldc/javacall_i386_vc/target/debug'
make[1]: Entering directory `C:/phoneME_feature/build_output/cldc/javacall_i386_vc/target/debug'
../../romgen/app/romgen.exe -cp C:/phoneME_feature/build_output/cldc/classes.zip =HeapCapacity16M -romconfig C:/phoneME_feature/cldc/src/vm/cldctest_
rom.cfg -romincludepath C:/phoneME_feature/cldc/src/vm +RewriteROMConstantPool +EnableAllROMOptimizations -romize

#
# VM Error, assertion failure
#
# Error ID: C:\phoneME_feature\cldc\src\vm\share\runtime\JVM.cpp, 322
#
# assert(JVMAssemblerLoopFlags::GeneratedInterpreterLoop(), "Must have a real interpreter loop")
#
** Unhandled exception 0x80000003 (STATUS_BREAKPOINT) at 0x448d27 **
Register SegCs = 0x 1b
Register SegEs = 0x 23
Register SegDs = 0x 23
Register SegGs = 0x 0
Register SegFs = 0x 3b
Register SegSs = 0x 23
Register Eax = 0x 1
Register Ebx = 0x7ffdf000
Register Ecx = 0x 12ed54
Register Edx = 0x 12ed60
Register Edi = 0x 0
Register Esi = 0x 0
Register Ebp = 0x 12feac
Register Esp = 0x 12feac
Register Eip = 0x 448d27
Register EFlags = 0x 206
[Dumping all threads]

Active threads:

#
# VM Error, assertion failure
#
# Error ID: C:\phoneME_feature\cldc\src\vm\share\runtime\Task.cpp, 598
#
# assert(!tlist.is_null(), "Task must exist")
#
make[1]: *** [../generated/ROMImage.cpp] Error -2147483645
make[1]: Leaving directory `C:/phoneME_feature/build_output/cldc/javacall_i386_vc/target/debug'
make: *** [_debug] Error 2
---------------------------------------------------------------------------------------------------

I'm trying to build this on Windows XP SP2

Thank you in advance..

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

Hi,

please make sure you set all the build and make variables as required:
https://phoneme.dev.java.net/content/mr2/cldc_feature.html#win32

Also try a clean rebuild of CLDC component.

Danila

gaganmalik
Offline
Joined: 2008-06-11

I tried it over and over again.. but its still not helping.
I'm getting the same error :(

What can i do?

gaganmalik
Offline
Joined: 2008-06-11

Solved..
The problems seemed to be with ml.exe, link.exe and other windows tools setup.
I was using Visual Studio 6.0

Here's what I did:

>> Installed Service Pack 5
http://msdn.microsoft.com/en-us/vstudio/aa718363.aspx

>> Installed Service Pack 6
http://www.microsoft.com/downloads/details.aspx?FamilyId=A8494EDB-2E89-4...

>> Modified the registry entry to reflect the service pack as 5
http://support.microsoft.com/kb/872907

>> Installed Visual C++ 6.0 Processor Pack
http://download.microsoft.com/download/vb60ent/update/6/w9x2kxp/en-us/vc...

>> Did a clean build of CLDC component!

I hope it works for anyone else facing the same problem too.. :)
Good luck.

(Building any ystem software on a Linux system is much cleaner, easier, and better)