Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1IbyXO-00060l-N3 for qemu-devel@nongnu.org; Sun, 30 Sep 2007 09:08:46 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1IbyXM-0005xr-Sx for qemu-devel@nongnu.org; Sun, 30 Sep 2007 09:08:46 -0400 Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1IbyXM-0005xa-LW for qemu-devel@nongnu.org; Sun, 30 Sep 2007 09:08:44 -0400 Received: from fmmailgate01.web.de ([217.72.192.221]) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1IbyXM-0003k2-4m for qemu-devel@nongnu.org; Sun, 30 Sep 2007 09:08:44 -0400 Received: from smtp07.web.de (fmsmtp07.dlan.cinetic.de [172.20.5.215]) by fmmailgate01.web.de (Postfix) with ESMTP id 5C3A7A298D04 for ; Sun, 30 Sep 2007 15:08:43 +0200 (CEST) Received: from [91.18.86.153] (helo=[10.0.1.1]) by smtp07.web.de with asmtp (TLSv1:AES128-SHA:128) (WEB.DE 4.108 #197) id 1IbyXK-0004cw-00 for qemu-devel@nongnu.org; Sun, 30 Sep 2007 15:08:43 +0200 Mime-Version: 1.0 (Apple Message framework v752.2) In-Reply-To: <1191154622.29900.118.camel@rapid> References: <9DF95EE0-A0EB-443E-850F-881F2A7B3318@web.de> <1191152728.29900.102.camel@rapid> <494D52E6-D90D-4426-A866-8D413F9333B6@web.de> <1191154622.29900.118.camel@rapid> Content-Type: multipart/mixed; boundary=Apple-Mail-3-249637373 Message-Id: <5CD94FD2-E210-4C08-8CBA-11B0EFDC0AA4@web.de> From: =?ISO-8859-1?Q?Andreas_F=E4rber?= Subject: Re: [Qemu-devel] Build failure on OS X Date: Sun, 30 Sep 2007 15:08:38 +0200 Sender: andreas.faerber@web.de 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 --Apple-Mail-3-249637373 Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset=ISO-8859-1; delsp=yes; format=flowed Am 30.09.2007 um 14:17 schrieb J. Mayer: > On Sun, 2007-09-30 at 14:05 +0200, Andreas F=E4rber wrote: >> Hi, >> >> Am 30.09.2007 um 13:45 schrieb J. Mayer: >> >>>> Anyone any idea what might've caused this build failure? I'm fairly >>>> certain I haven't messed with or updated the system headers. >>> >>> have you just updated your CVS co ? >> >> Yes. >> >>> Please try to comment the "always_inline" definition in vl.h / >>> exec-all.h. >>> If this is what's breaking your build, I'll revert this definition. >> >> It is, thanks for the pointer! (The source file itself didn't appear >> to have been updated.) >> >>>> With line 284 of math.h reading: >>>> static __inline__ int __inline_isfinitef (float = ) >>>> __MATH_H_ALWAYS_INLINE__; >>> >>> The fact the error mentions "__attribute__" and ALWAYS_INLINE =20 >>> make me >>> think the always_inline defintion is the suspect here.... >> >> I believe Apple's GCC in general has a problem with the __attribute__ >> notation. The ppc*-softmmu fail to build for some time due to its use >> for aliasing in hw/ppc.c. Maybe we could add a configure check for >> this feature to have a conditional define? That would allow a more >> elegant fix than the one I use locally and had previously suggested. > > Sorry for introducing this problem... > Would this new definition solve the compilation failure ? > > #ifndef always_inline > #if (__GNUC__ < 3) || defined(__APPLE__) > #define always_inline inline > #else > #define always_inline __attribute__ (( always_inline )) inline > #endif > #endif It does. I've updated my patch accordingly with __APPLE__, what do you think? =20 I have no idea what alias does exactly, should we just use a #define =20 on the Mac? Regards, Andreas --Apple-Mail-3-249637373 Content-Transfer-Encoding: 7bit Content-Type: application/octet-stream; x-unix-mode=0644; name=ppc.c-2007-09-30.diff Content-Disposition: attachment; filename=ppc.c-2007-09-30.diff Index: hw/ppc.c =================================================================== RCS file: /sources/qemu/qemu/hw/ppc.c,v retrieving revision 1.27 diff -r1.27 ppc.c 740a741,745 > #ifdef __APPLE__ > { > cpu_ppc_store_tbu(env, value); > } > #else 741a747 > #endif 743a750,754 > #ifdef __APPLE__ > { > return cpu_ppc_load_tbu(env); > } > #else 744a756 > #endif --Apple-Mail-3-249637373--