After re-cmaking and rebuilding everything from scratch, I'm seeing failures in MCJIT. It this something known or expected? I build LLVM/clang with pre-packaged clang-3.7.0, with "-stdlib=libc++".
I am on Ubuntu 14.04.
I am building ToT: llvm, clang, polly, lld, compiler-rt, libcxx, libcxxabi.
The build compiler is: clang+llvm-3.7.0-x86_64-linux-gnu-ubuntu-14.04
The failures show up during "make check-all".
I recognize these failures, and I think they should be fixed when building with clang 3.8. IIRC the cause of the errors is that libc++abi.so linked to the wrong unwinding libraries pre-3.8. I believe the relevant commit is r255559 (http://reviews.llvm.org/rL255559).
PS. You should use -DLLVM_ENABLE_LIBCXX=ON instead of -DCMAKE_CXX_FLAGS=‘-stdlib=libc++’.