From owner-freebsd-stable@freebsd.org Sat Mar 5 12:18:19 2016 Return-Path: Delivered-To: freebsd-stable@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 2F3FFA0ABF6 for ; Sat, 5 Mar 2016 12:18:19 +0000 (UTC) (envelope-from dimitry@andric.com) 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 E9FF5E05; Sat, 5 Mar 2016 12:18:18 +0000 (UTC) (envelope-from dimitry@andric.com) Received: from [IPv6:2001:7b8:3a7::801c:51b8:cf22:6fdb] (unknown [IPv6:2001:7b8:3a7:0:801c:51b8:cf22:6fdb]) (using TLSv1 with cipher ECDHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by tensor.andric.com (Postfix) with ESMTPSA id C5675AB77; Sat, 5 Mar 2016 13:18:16 +0100 (CET) Subject: Re: Newer clang than comes with install? Mime-Version: 1.0 (Mac OS X Mail 9.2 \(3112\)) Content-Type: multipart/signed; boundary="Apple-Mail=_C57AA55E-84F5-472D-8BDA-37E407D1FB1A"; protocol="application/pgp-signature"; micalg=pgp-sha1 X-Pgp-Agent: GPGMail 2.6b2 (ebbf3ef) From: Dimitry Andric In-Reply-To: <20160304145308.GA45362@neutralgood.org> Date: Sat, 5 Mar 2016 13:18:16 +0100 Cc: Brooks Davis , freebsd-stable@freebsd.org Message-Id: <8290960F-2DCB-4135-8C2E-8026CF02F5FA@andric.com> References: <20160303134505.GB26990@neutralgood.org> <20160304142226.GC39399@spindle.one-eyed-alien.net> <20160304145308.GA45362@neutralgood.org> To: "Kevin P. Neal" X-Mailer: Apple Mail (2.3112) X-BeenThere: freebsd-stable@freebsd.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: Production branch of FreeBSD source code List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 05 Mar 2016 12:18:19 -0000 --Apple-Mail=_C57AA55E-84F5-472D-8BDA-37E407D1FB1A Content-Transfer-Encoding: 7bit Content-Type: text/plain; charset=us-ascii On 04 Mar 2016, at 15:53, Kevin P. Neal wrote: > > On Fri, Mar 04, 2016 at 02:22:26PM +0000, Brooks Davis wrote: >> On Thu, Mar 03, 2016 at 08:45:05AM -0500, kpneal@pobox.com wrote: >>> I notice on 10.2 we're using "FreeBSD clang version 3.4.1". But there are >>> bugs in this version of clang that I'm having trouble with. >>> >>> Is compiling a newer (say, 3.7.1) version of clang to target FreeBSD >>> supported? I have no desire to replace any of the libraries, just the >>> compiler itself. Is that supposed to work _without_ going through the >>> ports/pkgs system? >>> >>> IOW, can I just download from llvm.org the clang+llvm source, compile >>> it on FreeBSD, and then use it safely? >> >> It should. The ports don't include many patches. > > Yeah, I was just looking at the patches we do include. One of them it looks > like causes some of the llvm.org-provided includes to not be installed. > > I'm not sure I can, well, not install them because I also need to use the > same install to do cross compiles. A quick check shows that those includes > are used when targetting cross and native. > > Am I correct about the include files? I am not entirely sure what you mean, but if you mean that we don't install a number of internal clang headers which conflict with FreeBSD system headers, then yes. > And, if so, are there plans to > upstream patches so the llvm.org includes will work out of the box for > FreeBSD-hosted-and-targetted compiles? It is on my TODO list, but not very much near the top. The first thing is to get the 3.8.0 release imported now. -Dimitry --Apple-Mail=_C57AA55E-84F5-472D-8BDA-37E407D1FB1A 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.29 iEYEARECAAYFAlbazogACgkQsF6jCi4glqO8MgCgi/LDszQ35gMnb5dga4raUaFW 6e0An0MqOhRewD+IKJ9SBNp1pgtRPkgt =ehfh -----END PGP SIGNATURE----- --Apple-Mail=_C57AA55E-84F5-472D-8BDA-37E407D1FB1A--