qemu 0.7.2 and gcc 4
as most of you might already be aware, qemu 0.7.2 doesnt compile with gcc 4.
is there a patch available?
Signature · 3 lines
-- leonard "paniq" ritter -- http://www.mjoo.org -- http://www.paniq.org
Quoted 10 lines · Leonard paniq Ritter
as most of you might already be aware, qemu 0.7.2 doesnt compile with gcc 4.
is there a patch available?
Signature · 3 lines
-- 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.
Signature · 2 lines
Infinite complexity begets infinite beauty. Infinite precision begets infinite perfection.
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.
Quoted 15 lines · Jim C. Brown
Quoted 4 lines · Leonard paniq Ritter
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_64hosts (e.g. amd64 cpus running in 64bit mode) do work, though, and I'd imagine that x86 guests on ppc hosts work as well.
Signature · 3 lines
-- leonard "paniq" ritter -- http://www.mjoo.org -- http://www.paniq.org
Quoted 4 lines · Leonard paniq Ritter
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.
Quoted 23 lines · Jim C. Brown
Quoted 9 lines
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_64hosts (e.g. amd64 cpus running in 64bit mode) do work, though, and I'd imagine that x86 guests on ppc hosts work as well.Signature · 11 lines
-- leonard "paniq" ritter -- http://www.mjoo.org -- http://www.paniq.org _______________________________________________ Qemu-devel mailing list [email protected] http://lists.nongnu.org/mailman/listinfo/qemu-devel
Signature · 2 lines
Infinite complexity begets infinite beauty. Infinite precision begets infinite perfection.
Quoted 1 line · Jim C. Brown
A patch is already available, as noted below.
but where is it? :)
Quoted 4 lines
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?
Quoted 1 line
Signature · 3 lines
-- leonard "paniq" ritter -- http://www.mjoo.org -- http://www.paniq.org
Quoted 5 lines · Leonard paniq Ritter
Quoted 1 line · Jim C. Brown
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
Quoted 6 lines
Quoted 4 lines
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.
Quoted 2 lines
is the binary image on
fabrice.bellard.free.fr qemu enabled?
What binary image?
Quoted 8 lines
Quoted 2 lines
Signature · 3 lines
-- leonard "paniq" ritter -- http://www.mjoo.org -- http://www.paniq.org
Signature · 2 lines
Infinite complexity begets infinite beauty. Infinite precision begets infinite perfection.
Quoted 4 lines · Jim C. Brown
Quoted 2 lines
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.
Signature · 3 lines
-- leonard "paniq" ritter -- http://www.mjoo.org -- http://www.paniq.org