public inbox for kvm@vger.kernel.org
 help / color / mirror / Atom feed
* error: PIC register 'ebx' clobbered in 'asm'
@ 2008-12-18 20:45 Serge Leschinsky
  2008-12-24 10:19 ` Avi Kivity
  0 siblings, 1 reply; 2+ messages in thread
From: Serge Leschinsky @ 2008-12-18 20:45 UTC (permalink / raw)
  To: kvm

Hello,

I tried to compile kvm and got the following error:
"PIC register 'ebx' clobbered in 'asm'"

Could you please explain me how to fix it?

kvm-81,
linux-2.6.27.9,
gcc -v:
	i686-pc-linux-gnu
	Thread model: posix
	gcc version 4.1.2


make[1]: Entering directory `/data/build/tmp/kvm-81/user'
gcc  -D__i386__ -I /data/build/tmp/kvm-81/kernel/include -m32 -O1 -MMD -MF
test/x86/.vmexit.d -g -fomit-frame-pointer -Wall  -fno-stack-protector   -I
../libkvm -std=gnu99 -ffreestanding -I test/lib -I test/lib/x86   -c -o
test/x86/vmexit.o test/x86/vmexit.c
test/x86/vmexit.c: In function 'main':
test/x86/vmexit.c:30: warning: implicit declaration of function 'printf'
test/x86/vmexit.c:28: error: PIC register 'ebx' clobbered in 'asm'
make[1]: *** [test/x86/vmexit.o] Error 1
make[1]: Leaving directory `/data/build/tmp/kvm-81/user'
make: *** [user] Error 2

Thanks

--
Serge

^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: error: PIC register 'ebx' clobbered in 'asm'
  2008-12-18 20:45 error: PIC register 'ebx' clobbered in 'asm' Serge Leschinsky
@ 2008-12-24 10:19 ` Avi Kivity
  0 siblings, 0 replies; 2+ messages in thread
From: Avi Kivity @ 2008-12-24 10:19 UTC (permalink / raw)
  To: Serge Leschinsky; +Cc: kvm

Serge Leschinsky wrote:
> Hello,
>
> I tried to compile kvm and got the following error:
> "PIC register 'ebx' clobbered in 'asm'"
>
> Could you please explain me how to fix it?
>
>   

Just comment out the entire for loop; it's a unit test not used during 
runtime.  I've committed a real fix.

-- 
error compiling committee.c: too many arguments to function


^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2008-12-24 10:19 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2008-12-18 20:45 error: PIC register 'ebx' clobbered in 'asm' Serge Leschinsky
2008-12-24 10:19 ` Avi Kivity

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox