1.First,export PLATFORM=linux
2.modify Makefile, CC=arm-linux-gcc
3.error:
kvm/VmUnix/src/runtime_md.c: In function `InitializeFloatingPoint’
Compiler do not support float compute
Modify runtime_md.c file as follow:
void InitializeFloatingPoint() {
#if defined(LINUX) && PROCESSOR_ARCHITECTURE_X86
/* Set the precision FPU to double precision */
// fpu_control_t cw = (_FPU_DEFAULT & ~_FPU_EXTENDED) | _FPU_DOUBLE;
// _FPU_SETCW(cw);
#endif
4.ERROR:
sh:do not found command javac
you need install j2sdk_<version>.bin to Linux
5.ERROR:
../tools/preverifier/build/linux/preverify -d classes tmpclasses
/bin/sh: line 1: 8440 段错误
you need to set as follow:
export LANG=en_US.ISO8859.1
6.ERROR:
verifierUtil.c: In function 'verifyClass':
../../../kvm/VmCommon/src/verifierUtil.c:547: error: invalid storage class for
function 'Vfy_verifyMethod'
../../../kvm/VmCommon/src/verifierUtil.c:571: warning: implicit declaration of
function 'Vfy_verifyMethod'
../../../kvm/VmCommon/src/verifierUtil.c: At top level:
../../../kvm/VmCommon/src/verifierUtil.c:1595: error: static declaration of
'Vfy_verifyMethod' follows non-static declaration
../../../kvm/VmCommon/src/verifierUtil.c:571: error: previous implicit
declaration of 'Vfy_verifyMethod' was here
../../../kvm/VmCommon/src/verifierUtil.c: In function 'Vfy_verifyMethod':
../../../kvm/VmCommon/src/verifierUtil.c:1598: error: invalid storage class
for function 'Vfy_checkNewInstructions'
../../../kvm/VmCommon/src/verifierUtil.c:1633: warning: implicit declaration
of function 'Vfy_checkNewInstructions'
../../../kvm/VmCommon/src/verifierUtil.c: At top level:
../../../kvm/VmCommon/src/verifierUtil.c:1671: error: conflicting types for
'Vfy_checkNewInstructions'
../../../kvm/VmCommon/src/verifierUtil.c:1633: error: previous implicit
declaration of 'Vfy_checkNewInstructions' was here
make: *** [obj/verifierUtil.o] Error 1
you need to use gcc-2.95.3 or gcc-3.3 to compile