EH failures in MCJIT

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++".

Example failure:

/w/bld/org/./bin/lli -remote-mcjit -mcjit-remote-process=/w/bld/org/./bin/lli-child-target /w/src/

Hi Krzysztof,

If I understand correctly you’re building LLVM top-of-tree with 3.7.0?
Or is this a bug in 3.7.0?

What operating system are you on?


Hi Lang,

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".

My cmake command was:

cmake -G 'Unix Makefiles'
   -DCMAKE_EXE_LINKER_FLAGS='-lc++ -lc++abi'
   -DCMAKE_SHARED_LINKER_FLAGS='-lc++ -lc++abi'


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 linked to the wrong unwinding libraries pre-3.8. I believe the relevant commit is r255559 (

PS. You should use -DLLVM_ENABLE_LIBCXX=ON instead of -DCMAKE_CXX_FLAGS=‘-stdlib=libc++’.


Thanks. I'll switch to 3.8 once it's released.


You don’t even have to switch to a full 3.8 stack. You just have to install a new, which you can build with 3.7.

Thanks very much Eric. :slight_smile:

I have replaced and .a in my 3.7.0 installation with the ones from ToT and everything is clean again.

Thanks for help!