From owner-freebsd-current@freebsd.org Mon Jan 15 17:37:50 2018 Return-Path: Delivered-To: freebsd-current@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 7927EEBD725; Mon, 15 Jan 2018 17:37:50 +0000 (UTC) (envelope-from dim@FreeBSD.org) Received: from tensor.andric.com (tensor.andric.com [87.251.56.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client CN "tensor.andric.com", Issuer "COMODO RSA Domain Validation Secure Server CA" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 3AC78A5E; Mon, 15 Jan 2018 17:37:49 +0000 (UTC) (envelope-from dim@FreeBSD.org) Received: from coleburn.home.andric.com (coleburn.home.andric.com [192.168.0.15]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by tensor.andric.com (Postfix) with ESMTPSA id 4123147464; Mon, 15 Jan 2018 18:37:47 +0100 (CET) From: Dimitry Andric Message-Id: <85AE8E52-FC6C-4522-B5B1-7423A163DDFE@FreeBSD.org> Content-Type: multipart/signed; boundary="Apple-Mail=_27AEB962-99CF-4F1E-B6E5-78994B427340"; protocol="application/pgp-signature"; micalg=pgp-sha1 Mime-Version: 1.0 (Mac OS X Mail 10.3 \(3273\)) Subject: Re: atomic in i386 Current after CLANG 6 upgrade Date: Mon, 15 Jan 2018 18:37:47 +0100 In-Reply-To: Cc: FreeBSD Current , FreeBSD Ports , Ed Maste To: Luca Pizzamiglio References: X-Mailer: Apple Mail (2.3273) X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.25 Precedence: list List-Id: Discussions about the use of FreeBSD-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 15 Jan 2018 17:37:50 -0000 --Apple-Mail=_27AEB962-99CF-4F1E-B6E5-78994B427340 Content-Transfer-Encoding: 7bit Content-Type: text/plain; charset=us-ascii On 15 Jan 2018, at 11:43, Luca Pizzamiglio wrote: > > I've already received a couple of messages from pkg-fallout about build > failure on head-i386-default [1] [2] both pointing to the same errors, > about missing intrinsic symbols related to __atomic_* > > The clang documentation about C11 atomic builtins [3] stats that __atomic_* > are GCC extension and Clang provides them. > > It seems to me that this specific GCC-compatible builtin are enabled on > amd64, but not on i386. > Is there a way to enable GCC compatible __atomic_ builtin also on i386? > Or should I provide patches to adopt _c11_atomic_* instead of __atomic_* > for every ports that need it ? There is some strangeness going on with an upstream bug fix [1], which has the unintended side effect of sometimes emitting libcalls to __atomic functions that we do not have on i386. I've commented on the upstream bug report, but I do not know an easy workaround at this point. -Dimitry [1] https://bugs.llvm.org/show_bug.cgi?id=34347 --Apple-Mail=_27AEB962-99CF-4F1E-B6E5-78994B427340 Content-Transfer-Encoding: 7bit Content-Disposition: attachment; filename=signature.asc Content-Type: application/pgp-signature; name=signature.asc Content-Description: Message signed with OpenPGP -----BEGIN PGP SIGNATURE----- Version: GnuPG/MacGPG2 v2.2 iF0EARECAB0WIQR6tGLSzjX8bUI5T82wXqMKLiCWowUCWlzm6wAKCRCwXqMKLiCW ozAWAJwME/2Ru4INV79uICryq3N6LHRnPACdF/rC1d4UyUc5q/vePu0Am4fZNpE= =Ebo4 -----END PGP SIGNATURE----- --Apple-Mail=_27AEB962-99CF-4F1E-B6E5-78994B427340--