compile error with gcc 3.4.1
Hi,
When trying to compile from cvs i get the following error:
gcc -Wall -O2 -g -fno-strict-aliasing -fomit-frame-pointer -mpreferred-stack-boundary=2 -falign-functions=0 -fno-reorder-blocks -fno-optimize-sibling-calls -I. -I/home/iain/qemu/qemu/target-i386 -I/home/iain/qemu/qemu -D_GNU_SOURCE -I/home/iain/qemu/qemu/slirp -c -o op.o /home/iain/qemu/qemu/target-i386/op.c /home/iain/qemu/qemu/target-i386/ops_template_mem.h: In function `op_rolb_kernel_T0_T1_cc':/home/iain/qemu/qemu/softmmu_header.h:179: error: can't find a register in class GENERAL_REGS' while reloading asm'
make[1]: *** [op.o] Error 1
make[1]: Leaving directory `/home/iain/src/qemu/i386-softmmu'
if I reduce it to -O1 then there is no error and everything works ok.
Thanks,
Iain
Iain McFarlane wrote:
[...]
Quoted 3 lines
/home/iain/qemu/qemu/softmmu_header.h:179: error: can't find a register in classGENERAL_REGS' while reloadingasm' make[1]: *** [op.o] Error 1
make[1]: Leaving directory `/home/iain/src/qemu/i386-softmmu'
There is an opened bug that looks very similar:
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=15482
gcc 3.4.1 is still not out, it has just been frozen yesterday. Did you try with another version of gcc?
Laurent
Quoted 9 lines · Laurent Desnogues
Iain McFarlane wrote:
[...]
Quoted 4 lines
/home/iain/qemu/qemu/softmmu_header.h:179: error: can't find a register in classGENERAL_REGS' while reloadingasm'
make[1]: *** [op.o] Error 1
make[1]: Leaving directory `/home/iain/src/qemu/i386-softmmu'
Quoted 5 lines
There is an opened bug that looks very similar:
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=15482
gcc 3.4.1 is still not out, it has just been frozen yesterday.
A version of 3.4.1 has been in mandrake cooker for at least a week now - they've been updating the package from cvs
Quoted 1 line
Did you try with another version of gcc?
It used to work absolutely fine with 3.4.0 so I presume something in gcc has changed - there is a lot of comment about the new version in the cooker mailing lists. It is no big deal as I can still compile with -O1 but I think it will become more of an issue as people upgrade to gcc-3.4.1
Cheers
Iain
Quoted 1 line · Iain McFarlane
A version of 3.4.1 has been in mandrake cooker for at least a week now - they've been updating the package from cvs
This reminds me of the 2.96 version that never existed... Some showstoppers bugs were corrected for the forthcoming *official* 3.4.1 release, so if MDK did not update their build, using it looks dangerous to me.
Quoted 1 line
It is no big deal as I can still compile with -O1 but I think it will become more of an issue as people upgrade to gcc-3.4.1
You are not using 3.4.1, just a snapshot of it, so you can't extrapolate ;-)
Laurent
Quoted 3 lines · Iain McFarlane
Quoted 1 line
Did you try with another version of gcc?
It used to work absolutely fine with 3.4.0 so I presume something in gcc has changed
I have not been ever able to compile qemu by gcc3.4.0 -- haven't you make mistake by using 3.3.x?
Karel
--
Karel Gardas [email protected]
ObjectSecurity Ltd. http://www.objectsecurity.com