From owner-freebsd-current@freebsd.org Mon Jan 15 17:11:37 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 41F9DEBBBC2 for ; Mon, 15 Jan 2018 17:11:37 +0000 (UTC) (envelope-from wlosh@bsdimp.com) Received: from mail-it0-x22c.google.com (mail-it0-x22c.google.com [IPv6:2607:f8b0:4001:c0b::22c]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (Client CN "smtp.gmail.com", Issuer "Google Internet Authority G2" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id AC96B82210 for ; Mon, 15 Jan 2018 17:11:36 +0000 (UTC) (envelope-from wlosh@bsdimp.com) Received: by mail-it0-x22c.google.com with SMTP id b77so1657261itd.0 for ; Mon, 15 Jan 2018 09:11:36 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=bsdimp-com.20150623.gappssmtp.com; s=20150623; h=mime-version:sender:in-reply-to:references:from:date:message-id :subject:to:cc; bh=Fm+fFaeYz1VLNqbMd17nRBVrKQHy6Veqlve/VquA+HQ=; b=XHJHm8AYjnUdcCuw5O4bTM3OEBkRDlhAmPVUdUjUf1ergTU3XtX3QzuEijwR9SECpa lesSGDhopX1+4d7ovtTZpfM0GGHMYsye4f4EYUxF3K1YgNED3uMe3JK7QIiz1gk4SiTG nRBR6oTHT0aT/G3G8lpS8b5Bc4tEOvCcZAo/sXOftVzqQcnMiAXcOL8F8lf1Aqn4yG7l TV8x6IJV+gET+9gdfuX30/wOtGxmTAsuqWeQTeMvbEPNohnZ00b4AYZMCeuGkyZ/fC5w TEwETRzZpA/JdWF5IaR4DlJ2T/7OsZRVi1ZPINloNim8QepERWZhirSWpHN6zVTpnkNs wUKg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:sender:in-reply-to:references:from :date:message-id:subject:to:cc; bh=Fm+fFaeYz1VLNqbMd17nRBVrKQHy6Veqlve/VquA+HQ=; b=PJOFaqfF6X4gtqXfQog+p4B9kGpg80cMPH15eV7LtJQSanGLc9cWjXnRu3jR9RmLZy Y+1jTYqWv5AyKmqLAlcYxaWw8UWbI56cv0tDCJBWJ9d3Ok5bHSiDaTk3dRNbV4XjcpiJ 7cmUz5LISQTKi1FTA6uIWC+mHywKuPgH7DXvIKpf8/PMjQEq4VDzCdW1Zk6QUR4gE0vn UrPLLu+0MoF0FEpV7TfcHihfbYjWPMiTdUaxIoZyPa2ZycsqLTLqxCRuyCDFJ/A2Pi3a RpQjr/Iu6/gO17AK8XwNRpUaRZjXYItrJHx7EHD2lYbSHXh5sdeuS8iwILx/jHEpHng2 r7zw== X-Gm-Message-State: AKwxytfQiNYCYVR3+u0jMhUdlxA5gVU+k/3ZDfn/n64ObD0tdM+btKY/ ZSghaRPgcU2lAGL8sOeU2LGCpEGDZDfjGQeCWl+DTw== X-Google-Smtp-Source: ACJfBouMrXBdhKX0qa3CtAKuWEiyM7gZvS+BP6KBLS2QWnGAasaFzYahuKD496NTQ+zRHSL8n/3KiKuSpjA/81+PQwc= X-Received: by 10.36.104.210 with SMTP id v201mr13878009itb.64.1516036295701; Mon, 15 Jan 2018 09:11:35 -0800 (PST) MIME-Version: 1.0 Sender: wlosh@bsdimp.com Received: by 10.79.199.131 with HTTP; Mon, 15 Jan 2018 09:11:34 -0800 (PST) X-Originating-IP: [50.253.99.174] In-Reply-To: <03DDFE7A-B5FE-4DE5-98D8-AF28EFDDFACF@FreeBSD.org> References: <20180115125756.37b803ba@kalimero.tijl.coosemans.org> <03DDFE7A-B5FE-4DE5-98D8-AF28EFDDFACF@FreeBSD.org> From: Warner Losh Date: Mon, 15 Jan 2018 10:11:34 -0700 X-Google-Sender-Auth: qJg9d7K90BeEKTIKjHKgaxMwQ6w Message-ID: Subject: Re: atomic in i386 Current after CLANG 6 upgrade To: David Chisnall Cc: Jan Beich , Ed Maste , Tijl Coosemans , Luca Pizzamiglio , FreeBSD Current , FreeBSD Ports Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Content-Filtered-By: Mailman/MimeDel 2.1.25 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:11:37 -0000 On Mon, Jan 15, 2018 at 10:08 AM, David Chisnall wrote: > On 15 Jan 2018, at 17:00, Jan Beich wrote: > > > > It wouldn't help (see below). Clang 6 accidentally made __atomic* work > > enough to satisfy configure check but not for the port to build. I gues= s, > > it also confuses configure in net/librdkafka and net-mgmt/netdata. > > > > Can we (by which I probably mean emaste@) push out an EN that adds the > atomic.c from compiler-rt to our libgcc_s? That should provide all of > these helper functions. Clang assumes that they exist because both > compiler-rt and vaguely recent libgcc_s provide them. Recent GCC will al= so > assume that they exist and so the correct fix is probably for us to make > them to exist. > > If this is difficult, then we can perhaps provide a port that compiles > atomic.c into libatomic_fudge.so or similar and provides a libgcc_s.so > that=E2=80=99s a linker script that forces linking to libatomic_fudge.so = and > libgcc_s.so. > So far clang 6 is just in -current. Let's at least get them there first before we talk about ENs :) Warner