Skip to main content

Error Building CLDC

7 replies [Last post]
puneet464
Offline
Joined: 2008-12-09

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

#################################
Generating debug assembly code: ... Interpreter_arm.asm

#
# VM Error, assertion failure
#
# Error ID: build/win32_javacall_arm_min/..
/../cldc/src/vm/cpu/arm/Assembler_arm.hpp, 601
#
# assert((reg_set & set(pc)) == 0 || 1 == 0, "we should not load pc to avoid jumps without mode switching")
#
** Unhandled exception 0x80000003 (STATUS_BREAKPOINT) at 0x445208 **
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 = 0x 0
Register Ecx = 0xbc43c7ea
Register Edx = 0x781c3c58
Register Edi = 0x 12ece8
Register Esi = 0x 8200
Register Ebp = 0x 1
Register Esp = 0x 12ca54
Register Eip = 0x 445208
Register EFlags = 0x 212
[Dumping all threads]

Active threads:

#
# VM Error, assertion failure
#
# Error ID: \cldc\src\vm\share\runtime\Task.cpp, 585
#
# assert(!tlist.is_null(), "Task must exist")
#
make[2]: *** [Interpreter_arm.asm] Error 3
make[2]: Leaving directory `/CodeBase/g400_cc/ShpKJava/MVM/MVM/buildwin32_javac
all_arm_min/cldc/javacall_arm_ads/target/debug'
make[1]: *** [_debug] Error 2
make[1]: Leaving directory `/CodeBase/g400_cc/ShpKJava/MVM/MVM/cldc/build/javaca
ll_arm_ads'
make: *** [cldc] Error 2
Press any key to continue . . .

##############################

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.
pavelp
Offline
Joined: 2006-09-29

Hi puneet464,

What toolchain are you using to build the port?

--
Regards,
Pavel

puneet464
Offline
Joined: 2008-12-09

Hello Pavel,
I am using Microsoft VS 2005.

-Puneet

pavelp
Offline
Joined: 2006-09-29

Hi Puneet,

Where did you get the source from? Is the problem reproduced on the latest codebase?

Regards,
Pavel

puneet464
Offline
Joined: 2008-12-09

Hello Pavel,
Yes this is the latest CLDC code.
I am trying to build for ARM 11 cpu with JAZELLE enabled.
Without enabling JAZELLE, it is not giving me any error. But I need to build with JAZELLE.

-Puneet

pavelp
Offline
Joined: 2006-09-29

Hi Puneet,

According to the error log your sources differ from the latest codebase (https://phoneme.dev.java.net/svn/phoneme/components/cldc/trunk). So can you please give the full instructions on how to reproduce the failure: from where to take the sources, how to build it (including all the build flags).

Thank you.

--
Regards,
Pavel

puneet464
Offline
Joined: 2008-12-09

Hello Pavel,
As I informed in the last post, i am using building for ARM 11 using RVDS 2.2.1
the only difference between a successful build and the error case is the flag ENABLE_JAZELLE = true

There are no specific steps to reproduce this. Every time i build with JAZELLE, i get this error.

Thanks,
Puneet

danila
Offline
Joined: 2006-09-25

Hello Puneet,
it seems you build the VM with both ENABLE_JAZELLE and ENABLE_THUMB_VM set to true, don't you?
Note that this combination is not supported by the current implementation,
you can set at most one of these flags for your build.
Let me know if you need to build the VM that leverages both thumb and jazelle support.
You'll have to modify the VM interpreter and compiler accordingly.

Thanks,
Danila