[LLVMdev] llvm-config --libs failed

Wojciech DaniƂo wojtek.danilo.ml at gmail.com
Thu Nov 8 10:41:17 PST 2012


Hi!
I'm trying to use the LLVMProject toolchain (according to this page:
http://llvm.org/docs/Projects.html).
I created a project "test" with kaleidoscope example source code from:
http://llvm.org/docs/tutorial/LangImpl3.html
It compiles successfully with: clang++ -g -O3 toy.cpp `llvm-config
--cppflags --ldflags --libs core` -o toy

according to the project documentation, my Makefile inside the source of
the project contains (it is in llvm/src/projects/test/tools/test/Makefile):

LEVEL=../..
TOOLNAME=luna
LINK_COMPONENTS = all
include $(LEVEL)/Makefile.common


And while executing make in build directory I get error:
/home/[...]/dev/llvm/src/projects/test/build/../Makefile.llvm.rules:963:
*** llvm-config --libs failed.  Stop.

[...] - I deleted this part

What is interesting, if I run llvm-config --libs in termial, I get:
-lLLVMAsmParser -lLLVMInstrumentation -lLLVMLinker -lLLVMArchive [...]
-lLLVMSupport (and a lot more)

What should I do to fix this issue?
Thank you!
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-dev/attachments/20121108/1a4fa8c5/attachment.html>


More information about the llvm-dev mailing list