[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Qemu-devel] Qemu won't compile on Fedora Core 4/X86_64
From: |
Joseph Miller |
Subject: |
Re: [Qemu-devel] Qemu won't compile on Fedora Core 4/X86_64 |
Date: |
Mon, 9 Jan 2006 08:01:38 -0500 |
User-agent: |
KMail/1.6.2 |
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
On Sunday 08 January 2006 9:43 am, Paolo Campegiani wrote:
> Hello guys,
>
> I've tried to compile qemu (version 0.8.0 from website and pulled from CVS)
> over a Fedora Core 4 on a X86_64. In both cases, I ran these commands:
>
> configure --cc=gcc32 --host-cc=gcc32
> make
>
> and after lots of warnings about casting to pointer from integer of
> different size, I finally ended up with this:
>
> In file included from /home/zefram/Desktop/qemu-0.8.0/translate-op.c:36:
> op.h: In function `dyngen_code':
> op.h:3759: syntax error before '.' token
> op.h:3761: syntax error before '.' token
> make[1]: *** [translate-op.o] Error 1
> make[1]: Leaving directory `/home/zefram/Desktop/qemu-0.8.0/sparc-user'
> make: *** [all] Error 1
>
> what GCC does not like is in the .LC64 here:
>
> case INDEX_op_fnegs: {
> extern void op_fnegs();
> extern char .LC64;
> memcpy(gen_code_ptr, (void *)((char *)&op_fnegs+0), 31);
> *(uint32_t *)(gen_code_ptr + 10) = (long)(&.LC64) - (long)(gen_code_ptr
> + 10) + -4;
> gen_code_ptr += 31;
> }
>
> If I comment these lines, compilation resumes until I get the same error
> over sparc-softmmu/op.h. If I "fix" it same way above, compilation
> terminates with no other errors.
>
> I can live without sparc emulation, but I was not able to install Windows
> XP with this qemu: the I/O seems a lot faster than 0.7.2/x86, but when the
> guest operating system restarts I have the splash screen saying to wait,
> and it does nothing (CPU usage for qemu is near zero) forever, so it seems
> to me that there are more problems than sparc-related.
>
> I'd be more than happy to test and try some fixes if someone will provide
> them to me, at least giving me a clue on what to do (I have understood that
> this .LC64 is something related to object file, but googling the Internet
> gave me no other information and the info gcc pages does not explicit
> report this symbol nor a more generic .LC, so I don't know what to search
> for).
>
> Also: would be possible to provide a _static_ binary for qemu on the site?
> the binary for i386 is dynamic and it does not run over a x86_64 system
> (complaints about missing libraries).
>
>
>
>
> -------------------------------------------------
>
>
>
> _______________________________________________
> Qemu-devel mailing list
> address@hidden
> http://lists.nongnu.org/mailman/listinfo/qemu-devel
I managed to get it to compile on FC4, but I took a slightly different
approach. I renamed gcc to gcc4 and I renamed gcc32 to gcc. So when
configure automatically finds gcc, it has the correct one without any
particular options. I don't see how this could be any different than using
- --cc=gcc32 --host-cc=gcc32 but I do know that it did compile on my machine.
- -Joseph
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.4 (GNU/Linux)
iD8DBQFDwl6zmXZROF+EADURAmF+AJkBx/A1FRUnDN61Ws1/sJWKA1585gCfZrJg
hY24h9YdYlFXBo/ozEzOCDw=
=gdzK
-----END PGP SIGNATURE-----