Memo for Explanting KVM to ARM-Linux

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

 

 

 

 

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包

打赏作者

do2jiang

你的鼓励将是我创作的最大动力

¥1 ¥2 ¥4 ¥6 ¥10 ¥20
扫码支付:¥1
获取中
扫码支付

您的余额不足,请更换扫码支付或充值

打赏作者

实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值