Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 7 Mar 2016 15:42:06 +0000
From:      Brooks Davis <brooks@freebsd.org>
To:        "Kevin P. Neal" <kpn@neutralgood.org>
Cc:        freebsd-stable@freebsd.org
Subject:   Re: Newer clang than comes with install?
Message-ID:  <20160307154206.GE39399@spindle.one-eyed-alien.net>
In-Reply-To: <20160304145308.GA45362@neutralgood.org>
References:  <20160303134505.GB26990@neutralgood.org> <20160304142226.GC39399@spindle.one-eyed-alien.net> <20160304145308.GA45362@neutralgood.org>

next in thread | previous in thread | raw e-mail | index | archive | help

--RYJh/3oyKhIjGcML
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline
Content-Transfer-Encoding: quoted-printable

On Fri, Mar 04, 2016 at 09:53:08AM -0500, 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.
> > >=20
> > > 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?
> > >=20
> > > IOW, can I just download from llvm.org the clang+llvm source, compile
> > > it on FreeBSD, and then use it safely?
> >=20
> > It should.  The ports don't include many patches.
>=20
> Yeah, I was just looking at the patches we do include. One of them it loo=
ks
> like causes some of the llvm.org-provided includes to not be installed.
>=20
> 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.
>=20
> Am I correct about the include files? 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?

The std*.h include files included with clang are broken on FreeBSD.  On
one has stepped forward to fix them so you will have to chose between
installing them and bening able build FreeBSD.  In practice, you should
still be able to cross compile if you have a working sysroot for your
target.

-- Brooks

--RYJh/3oyKhIjGcML
Content-Type: application/pgp-signature; name="signature.asc"

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1

iQEcBAEBAgAGBQJW3aFNAAoJEKzQXbSebgfAisYH/2mBqcxsgSfCPUC2hHzz/RJ+
M+ke0mM7xYjd1EUHFVf3wRw3ittPkhly5dHS2ZqRQbPWsF7bZuYiRBW+nbFakFQU
1wDapJzGibvES8bOjDIDRR5Jd2u9Vcx+Lu+Ohvc2esP6jnhQ8nQxHR6f9Fk9PJ48
Fwt8khHW28mmF5yk/oYKP54rh9wW9yjzRHFmkZnjxdv4hLk0JrTetYpiRh3lgkV0
jK5q7c4F+6AxJ8kDE/z3TV449qDXthWDP0SOW9LAr11SEgS5wDzJWZx4T3M9iTGv
w4afGnk2dcBNVoxPmLs3NxsWkcgT5DBFL5vLF79Q/MbFtqr5QN5o0DYT5lEwGkU=
=Ja1n
-----END PGP SIGNATURE-----

--RYJh/3oyKhIjGcML--



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20160307154206.GE39399>