Building clang-trunk fails

​Hi all,

I don’t know what has happened, though a few days ago I’ve noticed that clang-trunk no longer compiles on my system.
Since the error is in system headers, I guess it has to do with my system.
I’m building clang-trunk on an Ubuntu 14.04 (64bit), making use of clang-3.6 and I’m using the distributed libc++. As build system I’m using CMake.

I barely have any changes and the ones I do have are to work around CMake issues or build problems:

  • Replace #include by #include <stddef.h> Otherwise offsetof is not known
  • Remove LLVM_IS_FINAL define in type_traits since it just does not work
  • Define GTEST_HAS_RTTI as 0, cause gtest-port.h gives issues
    I doubt any of these have anything to do with this, though especially the first one looks suspicious.

Can anyone tell me what I have to change to get this fixed, or just fix it in trunk?

JVApen

This seems to be an old libc++ bug. It was fixed in r229696 (http://reviews.llvm.org/D7573).
The relevant bug report is http://llvm.org/PR20084.

I would suggest upgrading your libc++ version. You can find more information about building and using libc++ here: http://libcxx.llvm.org/docs/#getting-started-with-libc

/Eric