Trouble build LLVM and Clang

Hello,

I’ve pull latest LLVM and clang code from the git mirrors, but am unable to build via CMAKE due to the following error:

Linking CXX shared library …/…/…/…/lib/clang/3.4/lib/darwin/libclang_rt.asan_iossim_dynamic.dylib
ld: building for iOS Simulator, but linking against dylib built for MacOSX file ‘/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.8.sdk/usr/lib/libSystem.dylib’ for architecture x86_64
clang: error: linker command failed with exit code 1 (use -v to see invocation)
make[2]: *** [lib/clang/3.4/lib/darwin/libclang_rt.asan_iossim_dynamic.dylib] Error 1
make[1]: *** [projects/compiler-rt/lib/asan/CMakeFiles/clang_rt.asan_iossim_dynamic.dir/all] Error 2
make: *** [all] Error 2

I’m running latest Mavericks OS.

Any help would be appreciated!

Cameron

Turns out that building using autoconf works fine, so this is something fishy with the CMAKE build work flow…

I think this is because of commit r194820, and Alexander is already looking into it.Should be fix soon.

Hi all,

This should be unrelated to r194820, since that change only changes
the driver's behavior for iossim builds.
The corresponding CMake bits have been landed a couple of weeks before.
I'll look into that.