From owner-freebsd-toolchain@FreeBSD.ORG Tue Dec 16 16:04:19 2014 Return-Path: Delivered-To: freebsd-toolchain@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id 470AD7AC; Tue, 16 Dec 2014 16:04:19 +0000 (UTC) Received: from tensor.andric.com (tensor.andric.com [87.251.56.140]) (using TLSv1 with cipher DHE-RSA-CAMELLIA256-SHA (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 F3FFB695; Tue, 16 Dec 2014 16:04:18 +0000 (UTC) Received: from [IPv6:2001:7b8:3a7::949f:2cd4:f2b0:7a2d] (unknown [IPv6:2001:7b8:3a7:0:949f:2cd4:f2b0:7a2d]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by tensor.andric.com (Postfix) with ESMTPSA id C35CEB80A; Tue, 16 Dec 2014 17:04:09 +0100 (CET) Subject: Re: Migration to dynamic libs for llvm and clang Mime-Version: 1.0 (Mac OS X Mail 8.1 \(1993\)) Content-Type: multipart/signed; boundary="Apple-Mail=_5C008411-5CEB-4152-A2A4-0B24335EFDC1"; protocol="application/pgp-signature"; micalg=pgp-sha1 X-Pgp-Agent: GPGMail 2.5b3 From: Dimitry Andric In-Reply-To: <41F09A1C-01D6-42C9-B495-244DFC2B0364@FreeBSD.org> Date: Tue, 16 Dec 2014 17:04:06 +0100 Message-Id: References: <41F09A1C-01D6-42C9-B495-244DFC2B0364@FreeBSD.org> To: David Chisnall X-Mailer: Apple Mail (2.1993) Cc: freebsd-toolchain@freebsd.org X-BeenThere: freebsd-toolchain@freebsd.org X-Mailman-Version: 2.1.18-1 Precedence: list List-Id: Maintenance of FreeBSD's integrated toolchain List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 16 Dec 2014 16:04:19 -0000 --Apple-Mail=_5C008411-5CEB-4152-A2A4-0B24335EFDC1 Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset=us-ascii On 16 Dec 2014, at 16:58, David Chisnall wrote: > On 16 Dec 2014, at 15:46, Ed Maste wrote: >> One of goals for the toolchain prior to the FreeBSD 11 branch is to >> create a libllvm.so and libclang.so for use by all of the LLVM family >> tools installed in the base system. This message is just a heads-up = in >> case anyone has questions or comments on the idea. >>=20 >> We currently build a large number of static libs for the llvm and >> clang components, which are reused in a number of tools in the LLVM >> family. The resulting binaries end up quite large, and as a group >> require a lot of disk space. For example, LLDB includes a copy of >> Clang, used as its expression parser. As a result, on my desktop >> /usr/bin/clang and /usr/bin/lldb are both 27MB. >>=20 >> Over time we may add additional LLVM family tools (e.g., >> llvm-objdump), and this will help avoid excessive bloat as we do so. >>=20 >> I expect libllvm.so and libclang.so will go in /usr/lib/private. > Hi Ed, >=20 > Please can we have a name other than libclang, to avoid name = collisions and confusion with, uh, libclang? libcfe maybe? This is precisely why the libs should go into /usr/lib/private, so as to avoid collisions with any upstream libraries installed by e.g. ports (or when you manually run "make install" after building). I'm not sure we want to go the 'libbsdfoo.so' route again, as Baptiste tried this before, and seems to have reversed it again. :) That said, I agree with the general idea, but one of the first things we should decide is whether this will be optional or not. Having to maintain yet another WITH_CLANG_FOO option is burdensome... -Dimitry --Apple-Mail=_5C008411-5CEB-4152-A2A4-0B24335EFDC1 Content-Transfer-Encoding: 7bit Content-Disposition: attachment; filename=signature.asc Content-Type: application/pgp-signature; name=signature.asc Content-Description: Message signed with OpenPGP using GPGMail -----BEGIN PGP SIGNATURE----- Version: GnuPG/MacGPG2 v2.0.26 iEYEARECAAYFAlSQV/oACgkQsF6jCi4glqMVtQCgj7NSJe6VwmTHdGDWQW7qqUfY hSkAn1B6K8m9DrhECRHKXVsfWqgTqAM1 =NUpV -----END PGP SIGNATURE----- --Apple-Mail=_5C008411-5CEB-4152-A2A4-0B24335EFDC1--