From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED!not-for-mail From: ilove zfs 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: Sun, 19 Feb 2017 08:41:05 +0000 (GMT) Message-ID: <3a6373cd-2b5a-4974-963b-4e3d4dbc0048@me.com> NNTP-Posting-Host: blaine.gmane.org Mime-Version: 1.0 Content-Type: multipart/alternative; boundary="Boundary_(ID_oxrbN3ij0pNpGp01xK/FZg)" X-Trace: blaine.gmane.org 1487493734 20209 195.159.176.226 (19 Feb 2017 08:42:14 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Sun, 19 Feb 2017 08:42:14 +0000 (UTC) To: 25791@debbugs.gnu.org Original-X-From: bug-guile-bounces+guile-bugs=m.gmane.org@gnu.org Sun Feb 19 09:42:09 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 1cfN4K-0004m2-Ij for guile-bugs@m.gmane.org; Sun, 19 Feb 2017 09:42:08 +0100 Original-Received: from localhost ([::1]:32919 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1cfN4Q-0006VG-Dj for guile-bugs@m.gmane.org; Sun, 19 Feb 2017 03:42:14 -0500 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:53548) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1cfN4H-0006TT-70 for bug-guile@gnu.org; Sun, 19 Feb 2017 03:42:06 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1cfN4E-0008Ny-0u for bug-guile@gnu.org; Sun, 19 Feb 2017 03:42:05 -0500 Original-Received: from debbugs.gnu.org ([208.118.235.43]:47368) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1cfN4D-0008Np-Tq for bug-guile@gnu.org; Sun, 19 Feb 2017 03:42:01 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1cfN4D-0000Xu-O2 for bug-guile@gnu.org; Sun, 19 Feb 2017 03:42:01 -0500 X-Loop: help-debbugs@gnu.org Resent-From: ilove zfs Original-Sender: "Debbugs-submit" Resent-CC: bug-guile@gnu.org Resent-Date: Sun, 19 Feb 2017 08:42:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 25791 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.14874936872050 (code B ref -1); Sun, 19 Feb 2017 08:42:01 +0000 Original-Received: (at submit) by debbugs.gnu.org; 19 Feb 2017 08:41:27 +0000 Original-Received: from localhost ([127.0.0.1]:45567 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1cfN3f-0000X0-1k for submit@debbugs.gnu.org; Sun, 19 Feb 2017 03:41:27 -0500 Original-Received: from eggs.gnu.org ([208.118.235.92]:34271) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1cfN3d-0000Wo-4U for submit@debbugs.gnu.org; Sun, 19 Feb 2017 03:41:25 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1cfN3W-000889-P0 for submit@debbugs.gnu.org; Sun, 19 Feb 2017 03:41:20 -0500 Original-Received: from lists.gnu.org ([2001:4830:134:3::11]:40373) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1cfN3W-00087t-Kz for submit@debbugs.gnu.org; Sun, 19 Feb 2017 03:41:18 -0500 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:53470) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1cfN3V-0005tI-2T for bug-guile@gnu.org; Sun, 19 Feb 2017 03:41:18 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1cfN3R-00086o-Sf for bug-guile@gnu.org; Sun, 19 Feb 2017 03:41:17 -0500 Original-Received: from st11p00im-asmtp003.me.com ([17.172.80.97]:55630) by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1cfN3R-000864-O2 for bug-guile@gnu.org; Sun, 19 Feb 2017 03:41:13 -0500 Original-Received: from process-dkim-sign-daemon.st11p00im-asmtp003.me.com by st11p00im-asmtp003.me.com (Oracle Communications Messaging Server 7.0.5.38.0 64bit (built Feb 26 2016)) id <0OLM00J005CEKV00@st11p00im-asmtp003.me.com> for bug-guile@gnu.org; Sun, 19 Feb 2017 08:41:06 +0000 (GMT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=icloud.com; s=4d515a; t=1487493666; bh=SQH/pMBvA2JTC6ZiojmsQn4mRJaydtoX3C04UVxhOxI=; h=MIME-version:Content-type:To:From:Subject:Date:Message-id; b=f+/jKyLWwgRvaFT9oWV5AOMQsXKpYlIu5WLh7gD20ERfb5Jxs1VSnK9QP7/3Llvo+ R2uGV9azuoUW6zbwD6fxrnGuE4wXDDLKHi+ElRmI+y7m0We/U+IrWjMeajPekqS5m7 ODZ972L1APw0acXOybVGlBCeRpaoc+VxkAnNmBMpqX/l3407TgazXhqtxWCWit/ce+ bAxQUDwpqd5089TJw+FwHNu/HgxwMXk6khPJuEfsFSU0evRtlAN70+kLx4bVmA64Nj XNJJANlVLyoYDAi5MtnWA3FLJTFcIX8Txd9Y0io5fryCBXptM4SnyLgs4Iy66SiVd8 E8XOcDJmnBZ4A== Original-Received: from pv33p04im-spool002.me.com ([17.143.181.41]) by st11p00im-asmtp003.me.com (Oracle Communications Messaging Server 7.0.5.38.0 64bit (built Feb 26 2016)) with ESMTP id <0OLM00HVJ5GH8530@st11p00im-asmtp003.me.com> for bug-guile@gnu.org; Sun, 19 Feb 2017 08:41:06 +0000 (GMT) X-Proofpoint-Virus-Version: vendor=fsecure engine=2.50.10432:,, definitions=2017-02-19_08:,, signatures=0 X-Proofpoint-Spam-Details: rule=notspam policy=default score=0 spamscore=0 clxscore=1034 suspectscore=1 malwarescore=0 phishscore=0 adultscore=0 bulkscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.0.1-1603290000 definitions=main-1702190089 Original-Received: from localhost ([17.143.181.83]) by pv33p04im-spool002.mac.com (Oracle Communications Messaging Server 7.0.5.38.0 64bit (built Feb 26 2016)) with ESMTP id <0OLM00L8D5GH7L30@pv33p04im-spool002.mac.com> for bug-guile@gnu.org; Sun, 19 Feb 2017 08:41:05 +0000 (GMT) X-Mailer: iCloud MailClient17AProject113 MailServer17A64.25820-16A-1674-d2878f132b2c X-Originating-IP: [50.168.32.161] X-detected-operating-system: by eggs.gnu.org: GNU/Linux 3.x [fuzzy] X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6.x 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:8552 Archived-At: --Boundary_(ID_oxrbN3ij0pNpGp01xK/FZg) Content-type: text/plain; charset=utf-8; format=flowed Content-transfer-encoding: quoted-printable On macOS 10.11 and 10.12 building with Xcode 8, guile 2.1.7 fails to compi= le 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_std= atomic_h=3Dno.=0A=0A=0A=0ABuild logs here:=0Ahttps://gist.github.com/ilove= zfs/b18b7e6160e0a4c5da297cc430961f63=0Ahttps://gist.github.com/57e1513e03e= de26dc97c0f63eaad3a98=0A=0ABuild failure is=0A```=0A=C2=A0 CC=C2=A0=C2=A0=C2= =A0=C2=A0=C2=A0=C2=A0 libguile_2.2_la-arrays.lo=0A=C2=A0 CC=C2=A0=C2=A0=C2= =A0=C2=A0=C2=A0=C2=A0 libguile_2.2_la-async.lo=0AIn file included from asy= nc.c:27:=0A../libguile/atomics-internal.h:37:10: error: address argument t= o atomic operation must be a pointer to _Atomic type ('gl_uint32_t *' (aka= 'unsigned int *') invalid)=0A=C2=A0 return atomic_fetch_sub (loc, arg);=0A= =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 ~= ~~=0A/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xc= toolchain/usr/bin/../lib/clang/8.0.0/include/stdatomic.h:149:43: note: exp= anded from macro 'atomic_fetch_sub'=0A#define atomic_fetch_sub(object, ope= rand) __c11_atomic_fetch_sub(object, operand, __ATOMIC_SEQ_CST)=0A```=0Aan= d several similar errors.=0A=0APreviously (as of guile 2.1.4) I had been a= ble to work around the issue without setting ac_cv_header_stdatomic_h=3Dno= with this patch:=0Ahttps://raw.githubusercontent.com/ilovezfs/formula-pat= ches/d2798a468346a7a28fbcd1c8aa3c1ccd5627b03f/guile/guile-atomic-type.patc= h=0A=0AHowever, the patch is no longer sufficient since now void** is one = the types needing _Atomic, which isn't allowed.=0A=0A=0A= --Boundary_(ID_oxrbN3ij0pNpGp01xK/FZg) Content-type: multipart/related; boundary="Boundary_(ID_5qEN3H/uqGVIn5i4VZtSJA)"; type="text/html" --Boundary_(ID_5qEN3H/uqGVIn5i4VZtSJA) Content-type: text/html; CHARSET=US-ASCII Content-transfer-encoding: quoted-printable
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 m= ust be a pointer to _Atomic type." I can avoid this by setting ac_cv_heade= r_stdatomic_h=3Dno.

Build logs here:
https://gist.github.com/ilovezf= s/b18b7e6160e0a4c5da297cc430961f63
https://gist.github.com/57e1513e03ede= 26dc97c0f63eaad3a98

Build failu= re is
```
  CC       libgu= ile_2.2_la-arrays.lo
  CC       libg= uile_2.2_la-async.lo
In file included from async.c:27:
../libguile/a= tomics-internal.h:37:10: error: address argument to atomic operation must = be a pointer to _Atomic type ('gl_uint32_t *' (aka 'unsigned int *') inval= id)
  return atomic_fetch_sub (loc, arg);
   &nb= sp;     ^       &nb= sp;         ~~~
/Applications/X= code.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/..= /lib/clang/8.0.0/include/stdatomic.h:149:43: note: expanded from macro 'at= omic_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 aro= und the issue without setting ac_cv_header_stdatomic_h=3Dno with this patc= h:
= https://raw.githubusercontent.com/ilovezfs/formula-patches/d2798a468346a7a= 28fbcd1c8aa3c1ccd5627b03f/guile/guile-atomic-type.patch

However= , the patch is no longer sufficient since now void** is one the types need= ing _Atomic, which isn't allowed.

<= /div>
= --Boundary_(ID_5qEN3H/uqGVIn5i4VZtSJA)-- --Boundary_(ID_oxrbN3ij0pNpGp01xK/FZg)--