From debbugs-submit-bounces@debbugs.gnu.org Mon Nov 04 19:52:03 2013 Received: (at submit) by debbugs.gnu.org; 5 Nov 2013 00:52:03 +0000 Received: from localhost ([127.0.0.1]:34832 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1VdUsE-0006UM-ME for submit@debbugs.gnu.org; Mon, 04 Nov 2013 19:52:03 -0500 Received: from eggs.gnu.org ([208.118.235.92]:46518) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1VdUsB-0006To-Hi for submit@debbugs.gnu.org; Mon, 04 Nov 2013 19:52:00 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1VdUs0-00041i-GV for submit@debbugs.gnu.org; Mon, 04 Nov 2013 19:51:54 -0500 X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on eggs.gnu.org X-Spam-Level: X-Spam-Status: No, score=0.8 required=5.0 tests=BAYES_50 autolearn=disabled version=3.3.2 Received: from lists.gnu.org ([2001:4830:134:3::11]:44028) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1VdUs0-00041e-D8 for submit@debbugs.gnu.org; Mon, 04 Nov 2013 19:51:48 -0500 Received: from eggs.gnu.org ([2001:4830:134:3::10]:48222) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1VdUrv-0007Db-5B for bug-guile@gnu.org; Mon, 04 Nov 2013 19:51:48 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1VdUrq-00040n-5D for bug-guile@gnu.org; Mon, 04 Nov 2013 19:51:43 -0500 Received: from bromo.med.uc.edu ([129.137.3.146]:58517) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1VdUrq-00040e-0z for bug-guile@gnu.org; Mon, 04 Nov 2013 19:51:38 -0500 Received: from bromo.med.uc.edu (localhost.localdomain [127.0.0.1]) by bromo.med.uc.edu (Postfix) with ESMTP id BB9A3B0041 for ; Mon, 4 Nov 2013 19:51:36 -0500 (EST) Received: (from howarth@localhost) by bromo.med.uc.edu (8.14.3/8.14.3/Submit) id rA50paaC025155 for bug-guile@gnu.org; Mon, 4 Nov 2013 19:51:36 -0500 Date: Mon, 4 Nov 2013 19:51:36 -0500 From: Jack Howarth To: bug-guile@gnu.org Subject: guile-2.0.9 doesn't handle Apple clang < 5 or llvm.org clang < 3.3 properly Message-ID: <20131105005136.GA25087@bromo.med.uc.edu> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.5.18 (2008-05-17) X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-detected-operating-system: by eggs.gnu.org: Error: Malformed IPv6 address (bad octet value). X-Received-From: 2001:4830:134:3::11 X-Spam-Score: -5.0 (-----) X-Debbugs-Envelope-To: submit X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -5.0 (-----) The guile 2.0.9 sources incorrectly assumes that sll clang compilers support the noreturn attribute which was only added in llvm.org clang 3.3 and Apple clang 5.0. In fink, we have fixed this with the following patch... --- guile-2.0.9/libguile/__scm.h.orig 2013-11-01 22:57:06.000000000 -0400 +++ guile-2.0.9/libguile/__scm.h 2013-11-01 23:07:03.000000000 -0400 @@ -76,7 +76,10 @@ * Examples: * 1) int foo (char arg) SCM_NORETURN; */ -#ifdef __GNUC__ + +#if (defined(__apple_build_version__) && (__clang_major__ < 5)) || ((__clang_major__ < 3) && (__clang_minor__ < 3)) +#define SCM_NORETURN +#elif defined(__GNUC__) #define SCM_NORETURN __attribute__ ((noreturn)) #else #define SCM_NORETURN Since the environmentals for __clang__, __clang_major__ and __clang_minor are common to both Apple and llvm.org clang, the (defined(__apple_build_version__) is used to limit the first test on (__clang_major__ < 5) to Apple clang. the second test for ((__clang_major__ < 3) && (__clang_minor__ < 3)) requires no additional restriction since it is valid for both Apple and llvm clang in that version range. Without this patch, builds on Xcode 4.6.3, which uses Apple clang 4.2 that lacks noreturn attribute support will fail. Jack From debbugs-submit-bounces@debbugs.gnu.org Mon Nov 04 22:02:16 2013 Received: (at 15807) by debbugs.gnu.org; 5 Nov 2013 03:02:16 +0000 Received: from localhost ([127.0.0.1]:34878 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1VdWuG-00019i-2U for submit@debbugs.gnu.org; Mon, 04 Nov 2013 22:02:16 -0500 Received: from world.peace.net ([96.39.62.75]:34034 ident=hope6) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1VdWuD-00019c-S5 for 15807@debbugs.gnu.org; Mon, 04 Nov 2013 22:02:14 -0500 Received: from 209-6-91-212.c3-0.smr-ubr1.sbo-smr.ma.cable.rcn.com ([209.6.91.212] helo=yeeloong) by world.peace.net with esmtpsa (TLS1.0:DHE_RSA_AES_128_CBC_SHA1:16) (Exim 4.72) (envelope-from ) id 1VdWu6-0002IT-UD; Mon, 04 Nov 2013 22:02:07 -0500 From: Mark H Weaver To: Jack Howarth Subject: Re: bug#15807: guile-2.0.9 doesn't handle Apple clang < 5 or llvm.org clang < 3.3 properly References: <20131105005136.GA25087@bromo.med.uc.edu> Date: Mon, 04 Nov 2013 22:00:36 -0500 In-Reply-To: <20131105005136.GA25087@bromo.med.uc.edu> (Jack Howarth's message of "Mon, 4 Nov 2013 19:51:36 -0500") Message-ID: <87iow7mu23.fsf@netris.org> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.3 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain X-Spam-Score: 0.0 (/) X-Debbugs-Envelope-To: 15807 Cc: 15807@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: 0.0 (/) Jack Howarth writes: > The guile 2.0.9 sources incorrectly assumes that sll clang compilers support > the noreturn attribute which was only added in llvm.org clang 3.3 and Apple clang 5.0. > In fink, we have fixed this with the following patch... > > --- guile-2.0.9/libguile/__scm.h.orig 2013-11-01 22:57:06.000000000 -0400 > +++ guile-2.0.9/libguile/__scm.h 2013-11-01 23:07:03.000000000 -0400 > @@ -76,7 +76,10 @@ > * Examples: > * 1) int foo (char arg) SCM_NORETURN; > */ > -#ifdef __GNUC__ > + > +#if (defined(__apple_build_version__) && (__clang_major__ < 5)) || ((__clang_major__ < 3) && (__clang_minor__ < 3)) The logic of these comparisons is incorrect. Presumably you wanted the test to be true for clang < 3.3. However, it will be false for clang versions 3.2 and 2.3. Anyway, I don't want to include this complex version comparison logic into __scm.h. If we need to add something, it should be via an autoconf test. > +#define SCM_NORETURN > +#elif defined(__GNUC__) > #define SCM_NORETURN __attribute__ ((noreturn)) > #else > #define SCM_NORETURN So clang is pretending to be GCC (by defining __GNUC__), and then breaks if we use the noreturn attribute which has been supported in GCC since version 2.5 (released in 1993) ? If so, I consider that a bug in clang. For now, I've changed "__attribute__ ((noreturn))" to "__attribute__ ((__noreturn__))", on the theory that the actual problem here is that 'noreturn' is being defined to _Noreturn by stdnoreturn.h. Can you please try it and see if it fixes the problem? Just because clang doesn't support the ((noreturn)) attribute doesn't mean that it necessarily aborts compilation if it sees it. Please let us know how it goes. Thanks, Mark From debbugs-submit-bounces@debbugs.gnu.org Thu Nov 28 14:38:50 2013 Received: (at 15807) by debbugs.gnu.org; 28 Nov 2013 19:38:50 +0000 Received: from localhost ([127.0.0.1]:49155 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1Vm7QH-0000vn-GI for submit@debbugs.gnu.org; Thu, 28 Nov 2013 14:38:49 -0500 Received: from mail2-relais-roc.national.inria.fr ([192.134.164.83]:38353) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1Vm7QE-0000v8-97 for 15807@debbugs.gnu.org; Thu, 28 Nov 2013 14:38:47 -0500 X-IronPort-AV: E=Sophos;i="4.93,792,1378850400"; d="scan'208";a="45963323" Received: from reverse-83.fdn.fr (HELO pluto) ([80.67.176.83]) by mail2-relais-roc.national.inria.fr with ESMTP/TLS/AES128-SHA; 28 Nov 2013 20:38:40 +0100 From: ludo@gnu.org (Ludovic =?utf-8?Q?Court=C3=A8s?=) To: Mark H Weaver Subject: Re: bug#15807: guile-2.0.9 doesn't handle Apple clang < 5 or llvm.org clang < 3.3 properly References: <20131105005136.GA25087@bromo.med.uc.edu> <87iow7mu23.fsf@netris.org> X-URL: http://www.fdn.fr/~lcourtes/ X-Revolutionary-Date: 8 Frimaire an 222 de la =?utf-8?Q?R=C3=A9volution?= X-PGP-Key-ID: 0xEA52ECF4 X-PGP-Key: http://www.fdn.fr/~lcourtes/ludovic.asc X-PGP-Fingerprint: 83C4 F8E5 10A3 3B4C 5BEA D15D 77DD 95E2 EA52 ECF4 X-OS: x86_64-unknown-linux-gnu Date: Thu, 28 Nov 2013 20:38:39 +0100 In-Reply-To: <87iow7mu23.fsf@netris.org> (Mark H. Weaver's message of "Mon, 04 Nov 2013 22:00:36 -0500") Message-ID: <87y548z58g.fsf@gnu.org> User-Agent: Gnus/5.130007 (Ma Gnus v0.7) Emacs/24.3 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-Spam-Score: -4.0 (----) X-Debbugs-Envelope-To: 15807 Cc: 15807@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -4.0 (----) Mark H Weaver skribis: > So clang is pretending to be GCC (by defining __GNUC__), and then breaks > if we use the noreturn attribute which has been supported in GCC since > version 2.5 (released in 1993) ? If so, I consider that a bug in clang. Agreed. As long as Clang defines __GNUC__, we should ignore any such probl= em. Ludo=E2=80=99. From debbugs-submit-bounces@debbugs.gnu.org Wed Dec 04 23:06:08 2013 Received: (at control) by debbugs.gnu.org; 5 Dec 2013 04:06:08 +0000 Received: from localhost ([127.0.0.1]:58709 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1VoQCV-0004jf-DO for submit@debbugs.gnu.org; Wed, 04 Dec 2013 23:06:07 -0500 Received: from world.peace.net ([96.39.62.75]:37878) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1VoQCS-0004jW-NH for control@debbugs.gnu.org; Wed, 04 Dec 2013 23:06:05 -0500 Received: from 209-6-91-212.c3-0.smr-ubr1.sbo-smr.ma.cable.rcn.com ([209.6.91.212] helo=yeeloong) by world.peace.net with esmtpsa (TLS1.0:DHE_RSA_AES_128_CBC_SHA1:16) (Exim 4.72) (envelope-from ) id 1VoQCN-0003Jl-5V; Wed, 04 Dec 2013 23:05:59 -0500 From: Mark H Weaver To: control@debbugs.gnu.org Date: Wed, 04 Dec 2013 23:04:57 -0500 Message-ID: <874n6okknq.fsf@netris.org> MIME-Version: 1.0 Content-Type: text/plain X-Spam-Score: 2.0 (++) X-Spam-Report: Spam detection software, running on the system "debbugs.gnu.org", has identified this incoming email as possible spam. The original message has been attached to this so you can view it (if it isn't spam) or label similar future email. If you have any questions, see the administrator of that system for details. Content preview: close 14141 tags 15807 moreinfo tags 14550 moreinfo tags 14421 moreinfo tags 14042 moreinfo tags 13205 moreinfo tags 15470 wontfix severity 14109 wishlist retitle 15065 VM stack overflows sometimes cause an abort (Guile 2.0) thanks [...] Content analysis details: (2.0 points, 10.0 required) pts rule name description ---- ---------------------- -------------------------------------------------- 1.8 MISSING_SUBJECT Missing Subject: header 0.2 NO_SUBJECT Extra score for no subject X-Debbugs-Envelope-To: control X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: 2.0 (++) X-Spam-Report: Spam detection software, running on the system "debbugs.gnu.org", has identified this incoming email as possible spam. The original message has been attached to this so you can view it (if it isn't spam) or label similar future email. If you have any questions, see the administrator of that system for details. Content preview: close 14141 tags 15807 moreinfo tags 14550 moreinfo tags 14421 moreinfo tags 14042 moreinfo tags 13205 moreinfo tags 15470 wontfix severity 14109 wishlist retitle 15065 VM stack overflows sometimes cause an abort (Guile 2.0) thanks [...] Content analysis details: (2.0 points, 10.0 required) pts rule name description ---- ---------------------- -------------------------------------------------- 1.8 MISSING_SUBJECT Missing Subject: header 0.2 NO_SUBJECT Extra score for no subject close 14141 tags 15807 moreinfo tags 14550 moreinfo tags 14421 moreinfo tags 14042 moreinfo tags 13205 moreinfo tags 15470 wontfix severity 14109 wishlist retitle 15065 VM stack overflows sometimes cause an abort (Guile 2.0) thanks From debbugs-submit-bounces@debbugs.gnu.org Wed Jan 15 15:14:35 2014 Received: (at 15807-close) by debbugs.gnu.org; 15 Jan 2014 20:14:35 +0000 Received: from localhost ([127.0.0.1]:52394 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1W3WrC-0005Fv-VL for submit@debbugs.gnu.org; Wed, 15 Jan 2014 15:14:35 -0500 Received: from world.peace.net ([96.39.62.75]:50090) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1W3WrB-0005Fl-1E for 15807-close@debbugs.gnu.org; Wed, 15 Jan 2014 15:14:33 -0500 Received: from 209-6-91-212.c3-0.smr-ubr1.sbo-smr.ma.cable.rcn.com ([209.6.91.212] helo=yeeloong) by world.peace.net with esmtpsa (TLS1.0:DHE_RSA_AES_128_CBC_SHA1:16) (Exim 4.72) (envelope-from ) id 1W3Wr4-0004Jo-QS; Wed, 15 Jan 2014 15:14:26 -0500 From: Mark H Weaver To: ludo@gnu.org (Ludovic =?utf-8?Q?Court=C3=A8s?=) Subject: Re: bug#15807: guile-2.0.9 doesn't handle Apple clang < 5 or llvm.org clang < 3.3 properly References: <20131105005136.GA25087@bromo.med.uc.edu> <87iow7mu23.fsf@netris.org> <87y548z58g.fsf@gnu.org> Date: Wed, 15 Jan 2014 15:12:09 -0500 In-Reply-To: <87y548z58g.fsf@gnu.org> ("Ludovic \=\?utf-8\?Q\?Court\=C3\=A8s\=22'\?\= \=\?utf-8\?Q\?s\?\= message of "Thu, 28 Nov 2013 20:38:39 +0100") Message-ID: <87lhyht36u.fsf@netris.org> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.3 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-Spam-Score: 0.0 (/) X-Debbugs-Envelope-To: 15807-close Cc: 15807-close@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: 0.0 (/) ludo@gnu.org (Ludovic Court=C3=A8s) writes: > Mark H Weaver skribis: > >> So clang is pretending to be GCC (by defining __GNUC__), and then breaks >> if we use the noreturn attribute which has been supported in GCC since >> version 2.5 (released in 1993) ? If so, I consider that a bug in clang. > > Agreed. As long as Clang defines __GNUC__, we should ignore any such pro= blem. I'm closing this bug now, since we've not heard from the original reporter since he filed the bug, and I believe the problem is already now fixed (by changing "noreturn" to "__noreturn__" in Guile). Mark From unknown Sun Jun 22 20:58:14 2025 Received: (at fakecontrol) by fakecontrolmessage; To: internal_control@debbugs.gnu.org From: Debbugs Internal Request Subject: Internal Control Message-Id: bug archived. Date: Thu, 13 Feb 2014 12:24:03 +0000 User-Agent: Fakemail v42.6.9 # This is a fake control message. # # The action: # bug archived. thanks # This fakemail brought to you by your local debbugs # administrator