* KVM-16 compiled against GCC 4
@ 2007-03-19 15:18 David Duardo
[not found] ` <45FEA9AE.5090206-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org>
0 siblings, 1 reply; 3+ messages in thread
From: David Duardo @ 2007-03-19 15:18 UTC (permalink / raw)
To: kvm-devel-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f
There seems to be a bug in the generated file qemu/i386-softmmu/op.h
when compiling kvm-16 against GCC 4.
If you apply the two GCC 4 patches to the kvm-16 source:
1) http://www.busybox.net/downloads/qemu/qemu-gcc-4-all.patch
2) http://www.kju-app.org/proj/browser/trunk/patches/qemu-0.9.0-gcc4.patch
and try to compile against GCC 4 you'll get a symbol redefinition error.
The solution is to remove all "extern char mempy;" lines in
qemu/i386-softmmu/op.h
So far kvm has been running very stable with the only problem being the
known reboot bug.
My question is where exactly is qemu/i386-softmmu/op.h being generated?
I want to patch the problem before it gets generated.
-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys-and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: KVM-16 compiled against GCC 4
[not found] ` <45FEA9AE.5090206-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org>
@ 2007-03-19 15:32 ` Anthony Liguori
[not found] ` <45FEAD12.2020604-rdkfGonbjUSkNkDKm+mE6A@public.gmane.org>
0 siblings, 1 reply; 3+ messages in thread
From: Anthony Liguori @ 2007-03-19 15:32 UTC (permalink / raw)
To: David Duardo; +Cc: kvm-devel-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f
David Duardo wrote:
> There seems to be a bug in the generated file qemu/i386-softmmu/op.h
> when compiling kvm-16 against GCC 4.
>
> If you apply the two GCC 4 patches to the kvm-16 source:
>
> 1) http://www.busybox.net/downloads/qemu/qemu-gcc-4-all.patch
> 2) http://www.kju-app.org/proj/browser/trunk/patches/qemu-0.9.0-gcc4.patch
>
> and try to compile against GCC 4 you'll get a symbol redefinition error.
>
> The solution is to remove all "extern char mempy;" lines in
> qemu/i386-softmmu/op.h
>
> So far kvm has been running very stable with the only problem being the
> known reboot bug.
>
> My question is where exactly is qemu/i386-softmmu/op.h being generated?
> I want to patch the problem before it gets generated.
>
dyngen generates op.h from ops.o
One thing I was thinking about last night, was that there is really no
reason why i386-softmmu/op.h cannot be put into version control.
That would eliminate the need for gcc-3 while also not sacrificing
functionality. You would only need gcc-3 if you wanted to hack directly
on the code translator (which is presumably few people).
Of course, this is only useful for KVM (since it can assume an i386
host) but it's less invasive than my previous approach.
Regards,
Anthony Liguori
> -------------------------------------------------------------------------
> Take Surveys. Earn Cash. Influence the Future of IT
> Join SourceForge.net's Techsay panel and you'll get the chance to share your
> opinions on IT & business topics through brief surveys-and earn cash
> http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
> _______________________________________________
> kvm-devel mailing list
> kvm-devel-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f@public.gmane.org
> https://lists.sourceforge.net/lists/listinfo/kvm-devel
>
>
-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys-and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: KVM-16 compiled against GCC 4
[not found] ` <45FEAD12.2020604-rdkfGonbjUSkNkDKm+mE6A@public.gmane.org>
@ 2007-03-19 15:48 ` Anthony Liguori
0 siblings, 0 replies; 3+ messages in thread
From: Anthony Liguori @ 2007-03-19 15:48 UTC (permalink / raw)
Cc: kvm-devel-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f
Anthony Liguori wrote:
> David Duardo wrote:
>> There seems to be a bug in the generated file qemu/i386-softmmu/op.h
>> when compiling kvm-16 against GCC 4.
>>
>> If you apply the two GCC 4 patches to the kvm-16 source:
>>
>> 1) http://www.busybox.net/downloads/qemu/qemu-gcc-4-all.patch
>> 2)
>> http://www.kju-app.org/proj/browser/trunk/patches/qemu-0.9.0-gcc4.patch
>>
>> and try to compile against GCC 4 you'll get a symbol redefinition error.
>>
>> The solution is to remove all "extern char mempy;" lines in
>> qemu/i386-softmmu/op.h
>>
>> So far kvm has been running very stable with the only problem being the
>> known reboot bug.
>>
>> My question is where exactly is qemu/i386-softmmu/op.h being generated?
>> I want to patch the problem before it gets generated.
>>
>
> dyngen generates op.h from ops.o
>
> One thing I was thinking about last night, was that there is really no
> reason why i386-softmmu/op.h cannot be put into version control.
Scratch that. We would still need op.o.
Regards,
Anthony Liguori
> That would eliminate the need for gcc-3 while also not sacrificing
> functionality. You would only need gcc-3 if you wanted to hack
> directly on the code translator (which is presumably few people).
>
> Of course, this is only useful for KVM (since it can assume an i386
> host) but it's less invasive than my previous approach.
>
> Regards,
>
> Anthony Liguori
>
>> -------------------------------------------------------------------------
>>
>> Take Surveys. Earn Cash. Influence the Future of IT
>> Join SourceForge.net's Techsay panel and you'll get the chance to
>> share your
>> opinions on IT & business topics through brief surveys-and earn cash
>> http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
>>
>> _______________________________________________
>> kvm-devel mailing list
>> kvm-devel-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f@public.gmane.org
>> https://lists.sourceforge.net/lists/listinfo/kvm-devel
>>
>>
>
>
-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys-and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2007-03-19 15:48 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2007-03-19 15:18 KVM-16 compiled against GCC 4 David Duardo
[not found] ` <45FEA9AE.5090206-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org>
2007-03-19 15:32 ` Anthony Liguori
[not found] ` <45FEAD12.2020604-rdkfGonbjUSkNkDKm+mE6A@public.gmane.org>
2007-03-19 15:48 ` Anthony Liguori
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox