HardBirch

Memo for Explanting KVM to ARM-Linux

时间:09-09-24 栏目:系统技术篇 作者:鲁智森也有文化 评论:0 点击: 2,527 次

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

 

 

 

 

声明: 本文由( 鲁智森也有文化 )原创编译,转载请保留链接: Memo for Explanting KVM to ARM-Linux

Memo for Explanting KVM to ARM-Linux:等您坐沙发呢!

发表评论


QQ群互动

Linux系统与内核学习群:194051772

WP建站技术学习交流群:194062106

魔豆之路QR

魔豆的Linux内核之路

魔豆的Linux内核之路

优秀工程师当看优秀书籍

优秀程序员,要看优秀书!

赞助商广告

友荐云推荐