[cfe-dev] clang on darwin broken since r212689

Ismail Pazarbasi ismail.pazarbasi at gmail.com
Fri Jul 18 10:32:57 PDT 2014


On Fri, Jul 18, 2014 at 5:48 PM, Jack Howarth
<howarth.mailing.lists at gmail.com> wrote:
>     I haven't seen this discussed outside of my bug report…
>
> http://llvm.org/bugs/show_bug.cgi?id=20326
>
> and the later comments on…
>
> http://reviews.llvm.org/D3908
>
> but the commit of r212689…
>
> https://www.mail-archive.com/cfe-commits@cs.uiuc.edu/msg100897.html
>
> has broken the darwin targets for clang via blockage of the proper use of
> the
> system _stdint.h and _types.h headers by the newly added clang versions.
> This should be a release blocker for branching 3.5 until it is resolved, no?
> Deleting the installed /sw/opt/llvm-3.5.0/lib/clang/3.5.0/include/_stdint.h
> and
> /sw/opt/llvm-3.5.0/lib/clang/3.5.0/include/_types.h files eliminates the
> breakage
> so perhaps the best solution is not to have those files installed at all
> outside
> of the freebsd target.
> Jack
>
> _______________________________________________
> cfe-dev mailing list
> cfe-dev at cs.uiuc.edu
> http://lists.cs.uiuc.edu/mailman/listinfo/cfe-dev
>

Great timing, I was planning to write about this just a few minutes
ago. I didn't investigate which commit broke it. I have prepared a
tiny patch that I applied locally. basically, on top of the header
file:

#if defined(__APPLE__)
#include_next<_types.h>
#endif

I guess we can address this issue either with something like my patch
or by skipping installation on darwin.




More information about the cfe-dev mailing list