CMake Build Broken on Mac?

Is the current Clang ToT broken for CMake builds on Mac? I usually build LLVM and Clang together, and as of this morning the build is not working on Mac for me, but does work on Linux. Everything is fine if I build LLVM without Clang.

Linking CXX shared library …/…/…/…/lib/libclang.dylib
cd /Users/jholewinski/data/projects/llvm-work/build-make/tools/clang/tools/libclang && “/Applications/CMake 2.8-4.app/Contents/bin/cmake” -E cmake_link_script CMakeFiles/libclang.dir/link.txt --verbose=1
/usr/bin/c++ -fPIC -fno-common -Woverloaded-virtual -Wcast-qual -fno-strict-aliasing -pedantic -Wno-long-long -Wall -W -Wno-unused-parameter -Wwrite-strings -fno-rtti -O2 -g -dynamiclib -Wl,-headerpad_max_install_names -Wl,-compatibility_version -Wl,1; -Wl,-dead_strip -Wl,-seg1addr -Wl,0xE0000000 -current_version 3.0.0 -o …/…/…/…/lib/libclang.3.0.dylib -install_name /Users/jholewinski/data/projects/llvm-work/build-make/lib/libclang.3.0.dylib CMakeFiles/libclang.dir/CIndex.cpp.o CMakeFiles/libclang.dir/CIndexCXX.cpp.o CMakeFiles/libclang.dir/CIndexCodeCompletion.cpp.o CMakeFiles/libclang.dir/CIndexDiagnostic.cpp.o CMakeFiles/libclang.dir/CIndexInclusionStack.cpp.o CMakeFiles/libclang.dir/CIndexUSRs.cpp.o CMakeFiles/libclang.dir/CIndexer.cpp.o CMakeFiles/libclang.dir/CXCursor.cpp.o CMakeFiles/libclang.dir/CXString.cpp.o CMakeFiles/libclang.dir/CXType.cpp.o …/…/…/…/lib/libclangFrontend.a …/…/…/…/lib/libclangDriver.a …/…/…/…/lib/libclangSerialization.a …/…/…/…/lib/libclangIndex.a …/…/…/…/lib/libclangSema.a …/…/…/…/lib/libclangAST.a …/…/…/…/lib/libclangLex.a …/…/…/…/lib/libclangBasic.a …/…/…/…/lib/libLLVMMC.a …/…/…/…/lib/libLLVMSupport.a -lpthread …/…/…/…/lib/libclangParse.a …/…/…/…/lib/libclangSema.a …/…/…/…/lib/libclangAnalysis.a …/…/…/…/lib/libclangIndex.a …/…/…/…/lib/libclangAST.a …/…/…/…/lib/libclangLex.a …/…/…/…/lib/libclangBasic.a …/…/…/…/lib/libLLVMMC.a …/…/…/…/lib/libLLVMSupport.a -lpthread
ld: malformed version number: 1;
collect2: ld returned 1 exit status
make[2]: *** [lib/libclang.3.0.dylib] Error 1
make[1]: *** [tools/clang/tools/libclang/CMakeFiles/libclang.dir/all] Error 2
make: *** [all] Error 2

Note the parameters: -Wl,-compatibility_version -Wl,1;

There seems to be an extra semi-colon on the link line.

Just to be safe, I did a clean git clone of both LLVM and Clang and the problem was still there.

Justin Holewinski
<justin.holewinski@gmail.com> writes:

[snip]

Note the parameters: -Wl,-compatibility_version -Wl,1;

There seems to be an extra semi-colon on the link line.

My fault. Please update and try again.

[snip]

Justin Holewinski
<justin.holewinski@gmail.com> writes:

[snip]

Note the parameters: -Wl,-compatibility_version -Wl,1;

There seems to be an extra semi-colon on the link line.

My fault. Please update and try again.

Looks good! Thanks!