Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 28 Jan 2015 19:47:00 +0000
From:      Brooks Davis <brooks@freebsd.org>
To:        Tijl Coosemans <tijl@FreeBSD.org>
Cc:        Benjamin Kaduk <bjkfbsd@gmail.com>, svn-src-projects@freebsd.org, "src-committers@freebsd.org" <src-committers@freebsd.org>, Dimitry Andric <dim@FreeBSD.org>, Alexander Kabaev <kabaev@gmail.com>
Subject:   Re: svn commit: r277803 - projects/clang360-import/lib/clang/include
Message-ID:  <20150128194700.GA6522@spindle.one-eyed-alien.net>
In-Reply-To: <20150128203407.23eadf62@kalimero.tijl.coosemans.org>
References:  <201501271925.t0RJPem3010417@svn.freebsd.org> <CAJ5_RoAvww7xFsSTBMPDThYsbpVbxOs11nWE=eEXpJRFx_kyww@mail.gmail.com> <20150127191134.4fe3a17f@kan> <F7477A20-BC56-4CF9-8520-77F7BFD4B72E@FreeBSD.org> <20150128091457.1b0ea3a7@kan> <2DA71591-EE38-42F9-983F-8E711CA36A75@FreeBSD.org> <20150128133946.7243a0fc@kan> <20150128202422.52016f68@kalimero.tijl.coosemans.org> <0129A21C-D178-49D9-9729-A94D30AACE48@FreeBSD.org> <20150128203407.23eadf62@kalimero.tijl.coosemans.org>

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

--HcAYCG3uE/tztfnV
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline
Content-Transfer-Encoding: quoted-printable

On Wed, Jan 28, 2015 at 08:34:07PM +0100, Tijl Coosemans wrote:
> On Wed, 28 Jan 2015 20:28:06 +0100 Dimitry Andric <dim@FreeBSD.org> wrote:
> > On 28 Jan 2015, at 20:24, Tijl Coosemans <tijl@freebsd.org> wrote:
> >> That said, this commit breaks compiling with "cc -ffreestanding
> >> -nostdinc -I`cc -print-file-name=3Dinclude`" because clang versions of
> >> std*.h headers aren't installed on FreeBSD which is yet another
> >> thing that FreeBSD does differently.  Maybe now is a good time to fix
> >> that as well?
> >=20
> > We never installed any internal clang headers that were named the same
> > as our own headers, because they used to cause conflicts.  I will have
> > a look if those conflicts have now been resolved, then we could install
> > them for use in freestanding environments.
>=20
> You may need to add something like this to some headers:
>=20
> #if __STDC_HOSTED__ && __has_include_next(<stddef.h>)
> #include_next <stddef.h>
> #else
> ....
> #endif
>=20
> The stdint.h header already seems to have that.

The std*.h headers in clang clash with ours currently.  The errors about
different redefintions will need to be resolved before they can be
included in the base.  Doing that would be really useful as it would
simplify the clang ports and make life easier for those of us who build
their own clang and use it from the build directory.  Currently, the
build process for all the SRI/Cambridge variants of clang ends up with
some variant of:

ninja && rm lib/clang/3.6.0/include/std*.h

-- Brooks

--HcAYCG3uE/tztfnV
Content-Type: application/pgp-signature

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

iEYEARECAAYFAlTJPLMACgkQXY6L6fI4GtSUOwCfe4ThrGPqxxF3yWIdpJnToxb5
u1kAn3dS4qqhLPmVooidhlveNX6nI8Wo
=nYB8
-----END PGP SIGNATURE-----

--HcAYCG3uE/tztfnV--



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