Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1EvxwD-0001SK-1l for qemu-devel@nongnu.org; Mon, 09 Jan 2006 09:23:57 -0500 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1Evwnu-0001Ey-8F for qemu-devel@nongnu.org; Mon, 09 Jan 2006 08:11:34 -0500 Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1EvwdA-0007bw-J0 for qemu-devel@nongnu.org; Mon, 09 Jan 2006 08:00:14 -0500 Received: from [69.69.215.43] (helo=mail.premiumoperatingsystems.net) by monty-python.gnu.org with esmtp (TLS-1.0:DHE_RSA_3DES_EDE_CBC_SHA:24) (Exim 4.34) id 1EvwfR-0002FN-QF for qemu-devel@nongnu.org; Mon, 09 Jan 2006 08:02:33 -0500 Received: from mail.premiumoperatingsystems.net (mail.premiumoperatingsystems.net [192.168.1.11]) by mail.premiumoperatingsystems.net (8.12.11/8.12.11) with ESMTP id k09D1f6K030326 for ; Mon, 9 Jan 2006 08:01:41 -0500 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 References: <1136731428.43c12524cb7ab@webmail.scuolaiad.it> In-Reply-To: <1136731428.43c12524cb7ab@webmail.scuolaiad.it> MIME-Version: 1.0 Content-Disposition: inline Content-Type: Text/Plain; charset="iso-8859-15" Content-Transfer-Encoding: quoted-printable Message-Id: <200601090801.41015.joseph@tidetamerboatlifts.com> Reply-To: qemu-devel@nongnu.org List-Id: qemu-devel.nongnu.org List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: qemu-devel@nongnu.org =2D----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 CV= S) > over a Fedora Core 4 on a X86_64. In both cases, I ran these commands: > > configure --cc=3Dgcc32 --host-cc=3Dgcc32 > 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) =3D (long)(&.LC64) - (long)(gen_code= _ptr > + 10) + -4; > gen_code_ptr +=3D 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 th= at > 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 > Qemu-devel@nongnu.org > http://lists.nongnu.org/mailman/listinfo/qemu-devel I managed to get it to compile on FC4, but I took a slightly different=20 approach. I renamed gcc to gcc4 and I renamed gcc32 to gcc. So when=20 configure automatically finds gcc, it has the correct one without any=20 particular options. I don't see how this could be any different than using= =20 =2D --cc=3Dgcc32 --host-cc=3Dgcc32 but I do know that it did compile on my = machine. =2D -Joseph =2D----BEGIN PGP SIGNATURE----- Version: GnuPG v1.2.4 (GNU/Linux) iD8DBQFDwl6zmXZROF+EADURAmF+AJkBx/A1FRUnDN61Ws1/sJWKA1585gCfZrJg hY24h9YdYlFXBo/ozEzOCDw=3D =3DgdzK =2D----END PGP SIGNATURE-----