<div dir="ltr"><span style="font-family:arial,sans-serif;font-size:13px">Hi,</span><div style="font-family:arial,sans-serif;font-size:13px"><br></div><div style="font-family:arial,sans-serif;font-size:13px">I get the follwing error when trying to compile llgo (LLVM bindings for Go) on my mac:</div>
<div style="font-family:arial,sans-serif;font-size:13px"><br></div><div style="font-family:arial,sans-serif;font-size:13px"><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex">
<b>Scanning dependencies of target clang<br></b>[ 98%] [100%] [100%] Building CXX object tools/driver/CMakeFiles/clang.dir/driver.cpp.o<br>Building CXX object tools/driver/CMakeFiles/clang.dir/cc1_main.cpp.o<br>Building CXX object tools/driver/CMakeFiles/clang.dir/cc1as_main.cpp.o<br>
<b>Linking CXX executable ../../bin/clang</b></blockquote><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex">
Undefined symbols for architecture x86_64:<br> "_AnnotateHappensAfter", referenced from:<br> llvm::Statistic::init() in libclangStaticAnalyzerFrontend.a(AnalysisConsumer.cpp.o)<br> llvm::Statistic::init() in libclangStaticAnalyzerCore.a(CoreEngine.cpp.o)<br>
llvm::Statistic::init() in libclangStaticAnalyzerCore.a(ExprEngineCallAndReturn.cpp.o)<br> llvm::Statistic::init() in libclangStaticAnalyzerCore.a(ExprEngine.cpp.o)<br> llvm::Statistic::init() in libclangStaticAnalyzerCore.a(BugReporter.cpp.o)<br>
llvm::Statistic::init() in libclangStaticAnalyzerCheckers.a(AnalyzerStatsChecker.cpp.o)<br> llvm::Statistic::init() in libclangAnalysis.a(CallGraph.cpp.o)<br> ...<br> "llvm::isCurrentDebugType(char const*)", referenced from:<br>
llvm::sys::UnicodeCharSet::rangesAreValid() const in libclangLex.a(Lexer.cpp.o)<br> "llvm::DebugFlag", referenced from:<br> llvm::sys::UnicodeCharSet::rangesAreValid() const in libclangLex.a(Lexer.cpp.o)<br>
ld: symbol(s) not found for architecture x86_64<br>clang: error: linker command failed with exit code 1 (use -v to see invocation)<br>make[4]: *** [bin/clang-3.6] Error 1<br>make[3]: *** [tools/driver/CMakeFiles/clang.dir/all] Error 2<br>
make[2]: *** [tools/driver/CMakeFiles/clang.dir/rule] Error 2<br>make[1]: *** [clang] Error 2<br>make: *** [workdir/.update-clang-stamp] Error 2</blockquote><div><br></div><div>Can you help me fix this ?</div><div><br></div>
<div>Thanks </div></div></div>