From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED!not-for-mail From: Andy Wingo Newsgroups: gmane.lisp.guile.bugs Subject: bug#25791: address argument to atomic operation must be a pointer to _Atomic type with 2.1.7 on macOS Date: Tue, 14 Mar 2017 13:06:39 +0100 Message-ID: <8760jc83lc.fsf@pobox.com> References: <3a6373cd-2b5a-4974-963b-4e3d4dbc0048@me.com> <87efyhdk20.fsf@pobox.com> NNTP-Posting-Host: blaine.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-Trace: blaine.gmane.org 1489493256 21070 195.159.176.226 (14 Mar 2017 12:07:36 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Tue, 14 Mar 2017 12:07:36 +0000 (UTC) User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/25.1 (gnu/linux) Cc: 25791-done@debbugs.gnu.org To: ilove zfs Original-X-From: bug-guile-bounces+guile-bugs=m.gmane.org@gnu.org Tue Mar 14 13:07:29 2017 Return-path: Envelope-to: guile-bugs@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by blaine.gmane.org with esmtp (Exim 4.84_2) (envelope-from ) id 1cnlET-0003b6-W0 for guile-bugs@m.gmane.org; Tue, 14 Mar 2017 13:07:18 +0100 Original-Received: from localhost ([::1]:58330 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1cnlEa-0000VB-0X for guile-bugs@m.gmane.org; Tue, 14 Mar 2017 08:07:24 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:35068) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1cnlEI-0000Lo-5h for bug-guile@gnu.org; Tue, 14 Mar 2017 08:07:07 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1cnlEF-0007hf-0r for bug-guile@gnu.org; Tue, 14 Mar 2017 08:07:06 -0400 Original-Received: from debbugs.gnu.org ([208.118.235.43]:56753) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1cnlEE-0007hM-Pi for bug-guile@gnu.org; Tue, 14 Mar 2017 08:07:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1cnlEE-0004R1-Ds for bug-guile@gnu.org; Tue, 14 Mar 2017 08:07:02 -0400 Resent-From: Andy Wingo Original-Sender: "Debbugs-submit" Resent-To: bug-guile@gnu.org Resent-Date: Tue, 14 Mar 2017 12:07:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: cc-closed 25791 X-GNU-PR-Package: guile X-GNU-PR-Keywords: Mail-Followup-To: 25791@debbugs.gnu.org, wingo@pobox.com, ilovezfs@icloud.com Original-Received: via spool by 25791-done@debbugs.gnu.org id=D25791.148949321717030 (code D ref 25791); Tue, 14 Mar 2017 12:07:02 +0000 Original-Received: (at 25791-done) by debbugs.gnu.org; 14 Mar 2017 12:06:57 +0000 Original-Received: from localhost ([127.0.0.1]:54952 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1cnlE4-0004QU-Fy for submit@debbugs.gnu.org; Tue, 14 Mar 2017 08:06:57 -0400 Original-Received: from pb-sasl2.pobox.com ([64.147.108.67]:52709 helo=sasl.smtp.pobox.com) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1cnlE3-0004QM-6O for 25791-done@debbugs.gnu.org; Tue, 14 Mar 2017 08:06:51 -0400 Original-Received: from sasl.smtp.pobox.com (unknown [127.0.0.1]) by pb-sasl2.pobox.com (Postfix) with ESMTP id A86826912C; Tue, 14 Mar 2017 08:06:47 -0400 (EDT) DKIM-Signature: v=1; a=rsa-sha1; c=relaxed; d=pobox.com; h=from:to:cc :subject:references:date:in-reply-to:message-id:mime-version :content-type:content-transfer-encoding; s=sasl; bh=+lU3qDKqCAzy pjyzaoXx+A1vOQ4=; b=Yz21KK8r8fH7kfSO6GBJxAKtRq6WxojaN+D6pBSuYTL8 UV+TUTtWHO1O0smUHQcEmn2Y4Jb4ErqUlIUSnXWvSGpHUwHN3hrGmFkoWNsLpQEh rlUMooqdRH1TUAHIzGdR0vgu8LndS0mXag0ZqTJWxCr/BeZI7AmF2R2QFGWeJ7o= DomainKey-Signature: a=rsa-sha1; c=nofws; d=pobox.com; h=from:to:cc :subject:references:date:in-reply-to:message-id:mime-version :content-type:content-transfer-encoding; q=dns; s=sasl; b=DBcjQu 99GdM6yjuwlmotnkg5vPHQ5ct9kag7ASdC546Pnhp8TFWFbUuOenZUbi7vz9T3xj Sw22k7FEOPonKkGFgqyTSV1JSlhuImBzwAfn1qw+gBALjH1I44wlMjND5rqrxE6Q YswFMXn+NePZVCnW+6LnkqiRuarONOK9dDZUM= Original-Received: from pb-sasl2.nyi.icgroup.com (unknown [127.0.0.1]) by pb-sasl2.pobox.com (Postfix) with ESMTP id A22CE6912A; Tue, 14 Mar 2017 08:06:47 -0400 (EDT) Original-Received: from clucks (unknown [88.160.190.192]) (using TLSv1 with cipher ECDHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by pb-sasl2.pobox.com (Postfix) with ESMTPSA id 9B1C369129; Tue, 14 Mar 2017 08:06:46 -0400 (EDT) In-Reply-To: <87efyhdk20.fsf@pobox.com> (Andy Wingo's message of "Wed, 01 Mar 2017 17:43:35 +0100") X-Pobox-Relay-ID: B27260F8-08AE-11E7-841B-85AB91A0D1B0-02397024!pb-sasl2.pobox.com X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 208.118.235.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" Xref: news.gmane.org gmane.lisp.guile.bugs:8681 Archived-At: On Wed 01 Mar 2017 17:43, Andy Wingo writes: > On Sun 19 Feb 2017 09:41, ilove zfs writes: > >> On macOS 10.11 and 10.12 building with Xcode 8, guile 2.1.7 fails to >> compile with several errors saying "address argument to atomic >> operation must be a pointer to _Atomic type." I >> can avoid this by setting ac_cv_header_stdatomic_h=3Dno. >> >> Build logs here: >> https://gist.github.com/ilovezfs/b18b7e6160e0a4c5da297cc430961f63 >> https://gist.github.com/57e1513e03ede26dc97c0f63eaad3a98 >> >> Build failure is >> ``` >> =C2=A0 CC=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 libguile_2.2_la-arrays.lo >> =C2=A0 CC=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 libguile_2.2_la-async.lo >> In file included from async.c:27: >> ../libguile/atomics-internal.h:37:10: error: address argument to >> atomic operation must be a pointer to _Atomic type ('gl_uint32_t *' >> (aka 'unsigned int *') invalid) >> =C2=A0 return atomic_fetch_sub (loc, arg); >> =C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 ^=C2=A0=C2=A0=C2=A0=C2= =A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0= ~~~ >> /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoo= lchain/usr/bin/../lib/clang/8.0.0/include/stdatomic.h:149:43: >> note: expanded from macro 'atomic_fetch_sub' >> #define atomic_fetch_sub(object, operand) __c11_atomic_fetch_sub(object,= operand, __ATOMIC_SEQ_CST) >> ``` >> and several similar errors. >> >> Previously (as of guile 2.1.4) I had been able to work around the issue = without setting ac_cv_header_stdatomic_h=3Dno with this patch: >> https://raw.githubusercontent.com/ilovezfs/formula-patches/d2798a468346a= 7a28fbcd1c8aa3c1ccd5627b03f/guile/guile-atomic-type.patch >> >> However, the patch is no longer sufficient since now void** is one the t= ypes needing _Atomic, which isn't allowed. > > Any ideas here? Sure would be nice to release a Guile with atomics that > compiles with clang. Fixed in 2.1.8 I think. Andy