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: Wed, 01 Mar 2017 17:43:35 +0100 Message-ID: <87efyhdk20.fsf@pobox.com> References: <3a6373cd-2b5a-4974-963b-4e3d4dbc0048@me.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 1488386666 20231 195.159.176.226 (1 Mar 2017 16:44:26 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Wed, 1 Mar 2017 16:44:26 +0000 (UTC) User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/25.1 (gnu/linux) Cc: 25791@debbugs.gnu.org To: ilove zfs Original-X-From: bug-guile-bounces+guile-bugs=m.gmane.org@gnu.org Wed Mar 01 17:44:16 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 1cj7ML-0003oY-BJ for guile-bugs@m.gmane.org; Wed, 01 Mar 2017 17:44:13 +0100 Original-Received: from localhost ([::1]:47579 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1cj7MP-0008Ob-NX for guile-bugs@m.gmane.org; Wed, 01 Mar 2017 11:44:17 -0500 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:35477) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1cj7MF-0008MJ-WD for bug-guile@gnu.org; Wed, 01 Mar 2017 11:44:09 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1cj7MA-0002tl-3H for bug-guile@gnu.org; Wed, 01 Mar 2017 11:44:08 -0500 Original-Received: from debbugs.gnu.org ([208.118.235.43]:36457) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1cj7M9-0002tb-VN for bug-guile@gnu.org; Wed, 01 Mar 2017 11:44:02 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1cj7M9-0004GD-KL for bug-guile@gnu.org; Wed, 01 Mar 2017 11:44:01 -0500 X-Loop: help-debbugs@gnu.org Resent-From: Andy Wingo Original-Sender: "Debbugs-submit" Resent-CC: bug-guile@gnu.org Resent-Date: Wed, 01 Mar 2017 16:44:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 25791 X-GNU-PR-Package: guile X-GNU-PR-Keywords: Original-Received: via spool by 25791-submit@debbugs.gnu.org id=B25791.148838663216338 (code B ref 25791); Wed, 01 Mar 2017 16:44:01 +0000 Original-Received: (at 25791) by debbugs.gnu.org; 1 Mar 2017 16:43:52 +0000 Original-Received: from localhost ([127.0.0.1]:34652 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1cj7Lv-0004FK-OZ for submit@debbugs.gnu.org; Wed, 01 Mar 2017 11:43:52 -0500 Original-Received: from pb-sasl2.pobox.com ([64.147.108.67]:52207 helo=sasl.smtp.pobox.com) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1cj7Lt-0004FC-Db for 25791@debbugs.gnu.org; Wed, 01 Mar 2017 11:43:46 -0500 Original-Received: from sasl.smtp.pobox.com (unknown [127.0.0.1]) by pb-sasl2.pobox.com (Postfix) with ESMTP id 07BEC65FC8; Wed, 1 Mar 2017 11:43:44 -0500 (EST) 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=8CNJ4TO/TbsV STZ646qoTrxap6s=; b=fxhUVSzom1KBYvpxLS+rnYgtNXNnQ7/r8FQaifEtKX89 nHS/hVSwW4XMcuSRsf9a3flvlnV/U/vE34FuryProqdG19ZCbpK+DN3WdjeTT1QC YNtuK5tyxuWeunwJFVba9sxcv0cdoAXPRwsZ1PQWM/TxNZfK3l2+c8JK4FZp/dc= 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=e9tIrk QUDlW+m2qL3Qk65n9nWfT4vLkcE0rBW4bg5/AkGLKzK5kLivPl3xQjaMVSQelFlL JJVppThGEOJA+bgXfTkAmkvSgo3jHqn9IYwRHxM5Upu1T679KX5ZNw0/dVGxHpYB o3qM4sXk9whJsIHhGuBky+8hgsOSPybJloaVY= Original-Received: from pb-sasl2.nyi.icgroup.com (unknown [127.0.0.1]) by pb-sasl2.pobox.com (Postfix) with ESMTP id 01B6665FC7; Wed, 1 Mar 2017 11:43:44 -0500 (EST) Original-Received: from clucks (unknown [109.190.228.233]) (using TLSv1 with cipher ECDHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by pb-sasl2.pobox.com (Postfix) with ESMTPSA id 0F14B65FC6; Wed, 1 Mar 2017 11:43:42 -0500 (EST) In-Reply-To: <3a6373cd-2b5a-4974-963b-4e3d4dbc0048@me.com> (ilove zfs's message of "Sun, 19 Feb 2017 08:41:05 +0000 (GMT)") X-Pobox-Relay-ID: 3B312804-FE9E-11E6-83B2-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:8636 Archived-At: 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 comp= ile with several errors saying "address argument to atomic operation must b= e 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 o= peration 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.xctool= chain/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 w= ithout setting ac_cv_header_stdatomic_h=3Dno with this patch: > https://raw.githubusercontent.com/ilovezfs/formula-patches/d2798a468346a7= a28fbcd1c8aa3c1ccd5627b03f/guile/guile-atomic-type.patch > > However, the patch is no longer sufficient since now void** is one the ty= pes needing _Atomic, which isn't allowed. Any ideas here? Sure would be nice to release a Guile with atomics that compiles with clang. Andy