[LLVMdev] Error when building tutorial example

Alexia Benington alexbenington at gmail.com
Sun Sep 20 23:05:11 PDT 2009

Hi all,

I'm a new user to LLVM. Not really sure if this is the correct place
to post, since there isn't really any other forums around. Anyway, the
issue I'm encountering is that, I was trying out the first tutorial
(http://llvm.org/docs/tutorial/JITTutorial1.html). I attempted to do
this in another folder that was copied from llvm/projects/sample. I
created a new folder called "tut1" in sample/tools/ folder, and the
following Makefile.

LINK_COMPONENTS += --cxxflags
LINK_COMPONENTS += --ldflags
include $(LEVEL)/Makefile.common

However, I'm getting the following error on gmake.
gmake[2]: *** No rule to make target `-I/usr/src/llvm/include', needed
by `/sample/Release/bin/tut1'.  Stop.

I can get it to compile with the following command. But I want to make
sure I understand how the Makefiles integrate together.
g++ tut1.cpp `llvm-config --cxxflags --ldflags --libs core engine`

Really appreciate your help. Thank you.


More information about the llvm-dev mailing list