From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Jack Howarth Newsgroups: gmane.lisp.guile.bugs Subject: bug#15807: guile-2.0.9 doesn't handle Apple clang < 5 or llvm.org clang < 3.3 properly Date: Mon, 4 Nov 2013 19:51:36 -0500 Message-ID: <20131105005136.GA25087@bromo.med.uc.edu> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: ger.gmane.org 1383612793 11973 80.91.229.3 (5 Nov 2013 00:53:13 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Tue, 5 Nov 2013 00:53:13 +0000 (UTC) To: 15807@debbugs.gnu.org Original-X-From: bug-guile-bounces+guile-bugs=m.gmane.org@gnu.org Tue Nov 05 01:53:17 2013 Return-path: Envelope-to: guile-bugs@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1VdUtR-0004H0-6R for guile-bugs@m.gmane.org; Tue, 05 Nov 2013 01:53:17 +0100 Original-Received: from localhost ([::1]:52687 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1VdUtQ-0007NO-O4 for guile-bugs@m.gmane.org; Mon, 04 Nov 2013 19:53:16 -0500 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:48567) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1VdUtI-0007Lm-Eo for bug-guile@gnu.org; Mon, 04 Nov 2013 19:53:14 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1VdUtC-0004A3-Kl for bug-guile@gnu.org; Mon, 04 Nov 2013 19:53:08 -0500 Original-Received: from debbugs.gnu.org ([140.186.70.43]:49046) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1VdUtC-00049z-Gv for bug-guile@gnu.org; Mon, 04 Nov 2013 19:53:02 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.80) (envelope-from ) id 1VdUtC-0006Vl-5g for bug-guile@gnu.org; Mon, 04 Nov 2013 19:53:02 -0500 X-Loop: help-debbugs@gnu.org Resent-From: Jack Howarth Original-Sender: "Debbugs-submit" Resent-CC: bug-guile@gnu.org Resent-Date: Tue, 05 Nov 2013 00:53:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 15807 X-GNU-PR-Package: guile X-GNU-PR-Keywords: X-Debbugs-Original-To: bug-guile@gnu.org Original-Received: via spool by submit@debbugs.gnu.org id=B.138361272324950 (code B ref -1); Tue, 05 Nov 2013 00:53:02 +0000 Original-Received: (at submit) by debbugs.gnu.org; 5 Nov 2013 00:52:03 +0000 Original-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 Original-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 Original-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 Original-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 Original-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 Original-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 Original-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 Original-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) Original-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 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-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.15 Precedence: list X-detected-operating-system: by eggs.gnu.org: GNU/Linux 3.x X-Received-From: 140.186.70.43 X-BeenThere: bug-guile@gnu.org List-Id: "Bug reports for GUILE, GNU's Ubiquitous Extension Language" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-guile-bounces+guile-bugs=m.gmane.org@gnu.org Original-Sender: bug-guile-bounces+guile-bugs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.lisp.guile.bugs:7332 Archived-At: 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