qemu-devel.nongnu.org archive mirror
 help / color / mirror / Atom feed
* [Qemu-devel] qemu 0.7.2 and gcc 4
@ 2005-10-25 21:46 Leonard "paniq" Ritter
  2005-10-26  0:50 ` Jim C. Brown
  0 siblings, 1 reply; 7+ messages in thread
From: Leonard "paniq" Ritter @ 2005-10-25 21:46 UTC (permalink / raw)
  To: qemu-devel

as most of you might already be aware, qemu 0.7.2 doesnt compile with
gcc 4. 

is there a patch available?

-- 
-- leonard "paniq" ritter
-- http://www.mjoo.org
-- http://www.paniq.org

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

* Re: [Qemu-devel] qemu 0.7.2 and gcc 4
  2005-10-25 21:46 [Qemu-devel] qemu 0.7.2 and gcc 4 Leonard "paniq" Ritter
@ 2005-10-26  0:50 ` Jim C. Brown
  2005-10-29 15:39   ` Leonard "paniq" Ritter
  0 siblings, 1 reply; 7+ messages in thread
From: Jim C. Brown @ 2005-10-26  0:50 UTC (permalink / raw)
  To: qemu-devel

On Tue, Oct 25, 2005 at 11:46:00PM +0200, Leonard paniq Ritter wrote:
> as most of you might already be aware, qemu 0.7.2 doesnt compile with
> gcc 4. 
> 
> is there a patch available?
> 
> -- 
> -- leonard "paniq" ritter
> -- http://www.mjoo.org
> -- http://www.paniq.org
> 

Yes, but I caution you before using it. You shouldn't use the patch unless you
know what you are doing, and why you have to do it.

Also keep in mind that even with the patch, qemu doesn't always compile.
x86 guests on x86 hosts don't work because of another bug that causes
gcc to run out of registers, so it still won't compile. x86 guests on
x86_64 hosts (e.g. amd64 cpus running in 64bit mode) do work, though, and
I'd imagine that x86 guests on ppc hosts work as well.

-- 
Infinite complexity begets infinite beauty.
Infinite precision begets infinite perfection.

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

* Re: [Qemu-devel] qemu 0.7.2 and gcc 4
  2005-10-26  0:50 ` Jim C. Brown
@ 2005-10-29 15:39   ` Leonard "paniq" Ritter
  2005-10-29 17:10     ` Jim C. Brown
  0 siblings, 1 reply; 7+ messages in thread
From: Leonard "paniq" Ritter @ 2005-10-29 15:39 UTC (permalink / raw)
  To: qemu-devel


hm i see. well, when will gcc 4 be working with qemu? i'm asking because
my distribution switched to gcc 4 a while ago.

On Tue, 2005-10-25 at 20:50 -0400, Jim C. Brown wrote:
> On Tue, Oct 25, 2005 at 11:46:00PM +0200, Leonard paniq Ritter wrote:
> > as most of you might already be aware, qemu 0.7.2 doesnt compile with
> > gcc 4. 
> > 
> > is there a patch available?

> Yes, but I caution you before using it. You shouldn't use the patch unless you
> know what you are doing, and why you have to do it.
> 
> Also keep in mind that even with the patch, qemu doesn't always compile.
> x86 guests on x86 hosts don't work because of another bug that causes
> gcc to run out of registers, so it still won't compile. x86 guests on
> x86_64 hosts (e.g. amd64 cpus running in 64bit mode) do work, though, and
> I'd imagine that x86 guests on ppc hosts work as well.
> 
-- 
-- leonard "paniq" ritter
-- http://www.mjoo.org
-- http://www.paniq.org

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

* Re: [Qemu-devel] qemu 0.7.2 and gcc 4
  2005-10-29 15:39   ` Leonard "paniq" Ritter
@ 2005-10-29 17:10     ` Jim C. Brown
  2005-10-29 23:05       ` Leonard "paniq" Ritter
  0 siblings, 1 reply; 7+ messages in thread
From: Jim C. Brown @ 2005-10-29 17:10 UTC (permalink / raw)
  To: Leonard paniq Ritter; +Cc: qemu-devel

On Sat, Oct 29, 2005 at 05:39:48PM +0200, Leonard paniq Ritter wrote:
> 
> hm i see. well, when will gcc 4 be working with qemu? i'm asking because
> my distribution switched to gcc 4 a while ago.
> 

A patch is already available, as noted below.

My understanding of the register allocation problem is that it is technically
a bug of gcc, not qemu. So can't say when it will be fixed.

A long term solution, called qops, that replaces the part of qemu that is gcc3
dependant, called dyngen, is in the works. This does not have the register allocation
issue that the gcc 4 patch has, but is not complete yet. (Feel free to help out!)

In any case, most distros allow one to use gcc33 or something to compile
programs. I think a 'make CC=gcc33' would do the trick, if you have that
compiler installed.

> On Tue, 2005-10-25 at 20:50 -0400, Jim C. Brown wrote:
> > Yes, but I caution you before using it. You shouldn't use the patch unless you
> > know what you are doing, and why you have to do it.
> > 
> > Also keep in mind that even with the patch, qemu doesn't always compile.
> > x86 guests on x86 hosts don't work because of another bug that causes
> > gcc to run out of registers, so it still won't compile. x86 guests on
> > x86_64 hosts (e.g. amd64 cpus running in 64bit mode) do work, though, and
> > I'd imagine that x86 guests on ppc hosts work as well.
> > 
> -- 
> -- leonard "paniq" ritter
> -- http://www.mjoo.org
> -- http://www.paniq.org
> 
> 
> 
> 
> _______________________________________________
> Qemu-devel mailing list
> Qemu-devel@nongnu.org
> http://lists.nongnu.org/mailman/listinfo/qemu-devel
> 

-- 
Infinite complexity begets infinite beauty.
Infinite precision begets infinite perfection.

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

* Re: [Qemu-devel] qemu 0.7.2 and gcc 4
  2005-10-29 17:10     ` Jim C. Brown
@ 2005-10-29 23:05       ` Leonard "paniq" Ritter
  2005-10-30  0:20         ` Jim C. Brown
  0 siblings, 1 reply; 7+ messages in thread
From: Leonard "paniq" Ritter @ 2005-10-29 23:05 UTC (permalink / raw)
  To: Jim C. Brown; +Cc: qemu-devel

On Sat, 2005-10-29 at 13:10 -0400, Jim C. Brown wrote:
> A patch is already available, as noted below.

but where is it? :)

> 
> In any case, most distros allow one to use gcc33 or something to compile
> programs. I think a 'make CC=gcc33' would do the trick, if you have that
> compiler installed.

nope, dont have it installed. is the binary image on
fabrice.bellard.free.fr qemu enabled?

> 
-- 
-- leonard "paniq" ritter
-- http://www.mjoo.org
-- http://www.paniq.org

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

* Re: [Qemu-devel] qemu 0.7.2 and gcc 4
  2005-10-29 23:05       ` Leonard "paniq" Ritter
@ 2005-10-30  0:20         ` Jim C. Brown
  2005-10-30  1:03           ` Leonard "paniq" Ritter
  0 siblings, 1 reply; 7+ messages in thread
From: Jim C. Brown @ 2005-10-30  0:20 UTC (permalink / raw)
  To: Leonard paniq Ritter; +Cc: qemu-devel

On Sun, Oct 30, 2005 at 01:05:09AM +0200, Leonard paniq Ritter wrote:
> On Sat, 2005-10-29 at 13:10 -0400, Jim C. Brown wrote:
> > A patch is already available, as noted below.
> 
> but where is it? :)
> 

If you had bothered to search the archives you could have found it yourself.

There is a link to both the gcc 4 patch and to qops here:
http://lilly.csoft.net/~jeffryj/cgi-bin/moin.cgi/FrequentlyAskedQuestions

> > 
> > In any case, most distros allow one to use gcc33 or something to compile
> > programs. I think a 'make CC=gcc33' would do the trick, if you have that
> > compiler installed.
> 
> nope, dont have it installed.

Well all the popular distros have it as a package you can install.

Failing that, there are probably quite a few places that offer precompiled
gcc binaries in tar.gz or tar.bz2 format. I know because I found several.

> is the binary image on
> fabrice.bellard.free.fr qemu enabled?

What binary image?

> 
> > 
> -- 
> -- leonard "paniq" ritter
> -- http://www.mjoo.org
> -- http://www.paniq.org
> 
> 

-- 
Infinite complexity begets infinite beauty.
Infinite precision begets infinite perfection.

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

* Re: [Qemu-devel] qemu 0.7.2 and gcc 4
  2005-10-30  0:20         ` Jim C. Brown
@ 2005-10-30  1:03           ` Leonard "paniq" Ritter
  0 siblings, 0 replies; 7+ messages in thread
From: Leonard "paniq" Ritter @ 2005-10-30  1:03 UTC (permalink / raw)
  To: Jim C. Brown; +Cc: qemu-devel

On Sat, 2005-10-29 at 20:20 -0400, Jim C. Brown wrote:

> > is the binary image on
> > fabrice.bellard.free.fr qemu enabled?
> 
> What binary image?

If you had bothered to search the website you could have found it
yourself.

it is on the downloads page. I tried it and it works... it is also kqemu
enabled. I'm happy :)

Thank you for the help so far.

-- 
-- leonard "paniq" ritter
-- http://www.mjoo.org
-- http://www.paniq.org

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

end of thread, other threads:[~2005-10-30  1:03 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2005-10-25 21:46 [Qemu-devel] qemu 0.7.2 and gcc 4 Leonard "paniq" Ritter
2005-10-26  0:50 ` Jim C. Brown
2005-10-29 15:39   ` Leonard "paniq" Ritter
2005-10-29 17:10     ` Jim C. Brown
2005-10-29 23:05       ` Leonard "paniq" Ritter
2005-10-30  0:20         ` Jim C. Brown
2005-10-30  1:03           ` Leonard "paniq" Ritter

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).