[LLVMdev] llvm-config --libs failed

Óscar Fuentes ofv at wanadoo.es
Thu Nov 8 10:51:50 PST 2012


Wojciech Daniło <wojtek.danilo.ml at gmail.com> writes:

> 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?

First of all, execute make like this:

make VERBOSE=1

to see the actual command that is being executed. Doing that will show
what's wrong with the command. If you can't figure out the problem,
post to this thread with the output of make VERBOSE=1 




More information about the llvm-dev mailing list