LLVM (4) built with LLVM_BUILD_LLVM_DYLIB instead BUILD_SHARED_LIBS finally passed all tests and got into Factory. Closing the bug as fixed.