From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1JskKu-0007mj-TU for qemu-devel@nongnu.org; Sun, 04 May 2008 15:57:28 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1JskKq-0007jP-Ee for qemu-devel@nongnu.org; Sun, 04 May 2008 15:57:27 -0400 Received: from [199.232.76.173] (port=41344 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1JskKq-0007jM-8U for qemu-devel@nongnu.org; Sun, 04 May 2008 15:57:24 -0400 Received: from wa-out-1112.google.com ([209.85.146.181]) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1JskKq-0002nP-DF for qemu-devel@nongnu.org; Sun, 04 May 2008 15:57:24 -0400 Received: by wa-out-1112.google.com with SMTP id j5so349933wah.18 for ; Sun, 04 May 2008 12:57:22 -0700 (PDT) Message-ID: Date: Sun, 4 May 2008 15:57:21 -0400 From: "Ben Taylor" Subject: Re: [Qemu-devel] Compilation broken in SVN version and a debug register question In-Reply-To: <481E1274.1060207@aurel32.net> MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Content-Disposition: inline References: <527518.23522.qm@web57011.mail.re3.yahoo.com> <481DF25D.8070009@wasp.net.au> <481E1274.1060207@aurel32.net> 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 On Sun, May 4, 2008 at 3:45 PM, Aurelien Jarno wrote= : > Ben Taylor a =E9crit : > > > On Sun, May 4, 2008 at 1:29 PM, Brad Campbell wrote: > >> Ben Taylor wrote: > >> > >>> On Wed, Apr 23, 2008 at 8:34 AM, Balazs Attila-Mihaly (Cd-MaN) > >>> wrote: > >>> > >>>> Hello all. > >>>> > >>>> I fail to compile the version 4242 from the SVN (which I checked o= ut ~1 > >> hour ago). On an Ubuntu 7.10 host with gcc-3.4 and ./configure > >> --target-list=3Di386-softmmu, I get the following error: > >>>> > >> > >> > >> > >> > >>> The following patch should fix the compilation of op.c and helper.c. > >>> > >>> This been tested on solaris x86 (32/64 bit) and Ubuntu 7.10 (32-bit)= . > >> When > >>> configuring on the 32-bit systems, I used --extra-cflags=3D"-march= =3Di686 > >>> -mtune=3Di686" > >>> and both spill errors in op.c and helper.c are gone, and the binarie= s > >>> will boot Milax (a Solaris based DamnSmallLinux clone) > >>> > >> On ubuntu... > >> apt-get remove gcc-3.4 > >> apt-get install gcc-3.3 > >> .. effectively worked around the issue for me. > > > > Tried that, but one of the maintainers thought that was not a reasonab= le > > solution. > > I also think this is a reasonable solution. Hardcoding the use of > gcc-3.3 in the Makefile is not. > > > > > I suppose I can modify the patch to check to see which gcc is being us= ed > > any invoke those changes if gcc revision < 3.4 I have another patch in to works that checks the gcc3 revision and appropri= ately applies the flags. As it turns out, -march and -mtune are not recognized b= y gcc-3.3 anyway, so it'll be a better solution. If I can figure out why it'= s not working on Solaris and not Ubuntu, I'll submit. Ben