Hi!<div>I'm trying to use the LLVMProject toolchain (according to this page: <a href="http://llvm.org/docs/Projects.html">http://llvm.org/docs/Projects.html</a>).</div><div>I created a project "test" with kaleidoscope example source code from: <a href="http://llvm.org/docs/tutorial/LangImpl3.html">http://llvm.org/docs/tutorial/LangImpl3.html</a></div>
<div>It compiles successfully with: clang++ -g -O3 toy.cpp `llvm-config --cppflags --ldflags --libs core` -o toy</div><div><br></div><div>according to the project documentation, my Makefile inside the source of the project contains (it is in llvm/src/projects/test/tools/test/Makefile):</div>
<div><div><br></div><div>LEVEL=../..</div><div>TOOLNAME=luna</div><div>LINK_COMPONENTS = all</div><div>include $(LEVEL)/Makefile.common</div></div><div><br></div><div><br></div><div>And while executing make in build directory I get error:</div>
<div><div>/home/[...]/dev/llvm/src/projects/test/build/../Makefile.llvm.rules:963: *** llvm-config --libs failed.  Stop.</div></div><div><br></div><div>[...] - I deleted this part</div><div><br></div><div>What is interesting, if I run llvm-config --libs in termial, I get:</div>
<div>-lLLVMAsmParser -lLLVMInstrumentation -lLLVMLinker -lLLVMArchive [...] -lLLVMSupport (and a lot more)</div><div><br></div><div>What should I do to fix this issue?</div><div>Thank you!</div>