<div dir="ltr"><div>Are you compiling the actual Kaleidoscope in the llvm 3.8 directory? Or a version from a different version of LLVM? <br><br>--<br></div>Mats<br></div><div class="gmail_extra"><br><div class="gmail_quote">On 16 February 2016 at 13:48, vivek pandya via llvm-dev <span dir="ltr"><<a href="mailto:llvm-dev@lists.llvm.org" target="_blank">llvm-dev@lists.llvm.org</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr">Hello ,<div><br></div><div>I have build llvm from release_38 branch ( only llvm and clang ) and install it. My DYLD_LIBRARY_PATH points to installation-directory/lib. </div><div><br></div><div>I am compiling example files for Kaleidoscope with following command :</div><div><br></div><div><div>clang++ -g toy.cpp -std=c++11 `llvm-config --cxxflags --ldflags --system-libs --libs core mcjit native` -O3 -o toy</div><div><br></div><div>but it fails with following error:</div><div>Undefined symbols for architecture x86_64:</div><div> <font face="monospace, monospace"> "llvm::CmpInst::CmpInst(llvm::Type*, llvm::Instruction::OtherOps, llvm::CmpInst::Predicate, llvm::Value*, llvm::Value*, llvm::Twine const&, llvm::Instruction*)", referenced from:</font></div><div><font face="monospace, monospace">      llvm::IRBuilder<true, llvm::ConstantFolder, llvm::IRBuilderDefaultInserter<true> >::CreateFCmp(llvm::CmpInst::Predicate, llvm::Value*, llvm::Value*, llvm::Twine const&, llvm::MDNode*) in toy-1f302b.o</font></div><div><font face="monospace, monospace">  "llvm::DIBuilder::createFunction(llvm::DIScope*, llvm::StringRef, llvm::StringRef, llvm::DIFile*, unsigned int, llvm::DISubroutineType*, bool, bool, unsigned int, unsigned int, bool, llvm::MDTupleTypedArrayWrapper<llvm::DITemplateParameter>, llvm::DISubprogram*)", referenced from:</font></div><div><font face="monospace, monospace">      (anonymous namespace)::FunctionAST::codegen() in toy-1f302b.o</font></div><div><font face="monospace, monospace">  "vtable for llvm::PHINode", referenced from:</font></div><div><font face="monospace, monospace">      llvm::IRBuilder<true, llvm::ConstantFolder, llvm::IRBuilderDefaultInserter<true> >::CreatePHI(llvm::Type*, unsigned int, llvm::Twine const&) in toy-1f302b.o</font></div><div><font face="monospace, monospace">  NOTE: a missing vtable usually means the first non-inline virtual member function has no definition.</font></div><div><font face="monospace, monospace">ld: symbol(s) not found for architecture x86_64</font></div><div><font face="monospace, monospace">clang-3.8: error: linker command failed with exit code 1 (use -v to see invocation)</font></div></div><div><br></div><div>With previous version 3.8.0svn it used to build successfully. Can someone help me what I am doing wrong ?</div><div><br></div><div>Sincerely,</div><div><div><div><div dir="ltr"><div><div dir="ltr"><i><font face="monospace, monospace" size="2"><b>Vivek Pandya</b></font></i><div><br></div></div></div></div></div></div>
</div></div>
<br>_______________________________________________<br>
LLVM Developers mailing list<br>
<a href="mailto:llvm-dev@lists.llvm.org">llvm-dev@lists.llvm.org</a><br>
<a href="http://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-dev" rel="noreferrer" target="_blank">http://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-dev</a><br>
<br></blockquote></div><br></div>