<div style="color:rgb(34,34,34);font-family:arial,sans-serif;font-size:13px;background-color:rgb(255,255,255)">Thank you, now it is more clear whats going on. There is a line:</div><div style="color:rgb(34,34,34);font-family:arial,sans-serif;font-size:13px;background-color:rgb(255,255,255)">
/bin/sh: /home/wdanilo/dev/llvm/src/projects/Debug+Asserts/bin/llvm-config: No such file or directory</div><div style="color:rgb(34,34,34);font-family:arial,sans-serif;font-size:13px;background-color:rgb(255,255,255)"><br>
</div><div style="color:rgb(34,34,34);font-family:arial,sans-serif;font-size:13px;background-color:rgb(255,255,255)">but why it is searching for it in that directory? (all makefile configs, are default configs)</div><div style="color:rgb(34,34,34);font-family:arial,sans-serif;font-size:13px;background-color:rgb(255,255,255)">
Below, there is full output of make:</div><div style="color:rgb(34,34,34);font-family:arial,sans-serif;font-size:13px;background-color:rgb(255,255,255)"><br></div><div style="color:rgb(34,34,34);font-family:arial,sans-serif;font-size:13px;background-color:rgb(255,255,255)">
>> make VERBOSE=1</div><div style="color:rgb(34,34,34);font-family:arial,sans-serif;font-size:13px;background-color:rgb(255,255,255)">for dir in lib tools; do \</div><div style="color:rgb(34,34,34);font-family:arial,sans-serif;font-size:13px;background-color:rgb(255,255,255)">
  if ([ ! -f $dir/Makefile ] || \</div><div style="color:rgb(34,34,34);font-family:arial,sans-serif;font-size:13px;background-color:rgb(255,255,255)">      command test $dir/Makefile -ot /home/username/dev/llvm/src/projects/test/$dir/Makefile ); then \</div>
<div style="color:rgb(34,34,34);font-family:arial,sans-serif;font-size:13px;background-color:rgb(255,255,255)">    /home/username/dev/llvm/src/projects/test/build/../autoconf/mkinstalldirs $dir; \</div><div style="color:rgb(34,34,34);font-family:arial,sans-serif;font-size:13px;background-color:rgb(255,255,255)">
    /usr/bin/cp /home/username/dev/llvm/src/projects/test/$dir/Makefile $dir/Makefile; \</div><div style="color:rgb(34,34,34);font-family:arial,sans-serif;font-size:13px;background-color:rgb(255,255,255)">  fi; \</div><div style="color:rgb(34,34,34);font-family:arial,sans-serif;font-size:13px;background-color:rgb(255,255,255)">
  (make -C $dir all ) || exit 1; \</div><div style="color:rgb(34,34,34);font-family:arial,sans-serif;font-size:13px;background-color:rgb(255,255,255)">done</div><div style="color:rgb(34,34,34);font-family:arial,sans-serif;font-size:13px;background-color:rgb(255,255,255)">
make[1]: Entering directory `/home/username/dev/llvm/src/projects/test/build/lib'</div><div style="color:rgb(34,34,34);font-family:arial,sans-serif;font-size:13px;background-color:rgb(255,255,255)">for dir in sample; do \</div>
<div style="color:rgb(34,34,34);font-family:arial,sans-serif;font-size:13px;background-color:rgb(255,255,255)">  if ([ ! -f $dir/Makefile ] || \</div><div style="color:rgb(34,34,34);font-family:arial,sans-serif;font-size:13px;background-color:rgb(255,255,255)">
      command test $dir/Makefile -ot /home/username/dev/llvm/src/projects/test/lib/$dir/Makefile ); then \</div><div style="color:rgb(34,34,34);font-family:arial,sans-serif;font-size:13px;background-color:rgb(255,255,255)">
    /home/username/dev/llvm/src/projects/test/build/../autoconf/mkinstalldirs $dir; \</div><div style="color:rgb(34,34,34);font-family:arial,sans-serif;font-size:13px;background-color:rgb(255,255,255)">    /usr/bin/cp /home/username/dev/llvm/src/projects/test/lib/$dir/Makefile $dir/Makefile; \</div>
<div style="color:rgb(34,34,34);font-family:arial,sans-serif;font-size:13px;background-color:rgb(255,255,255)">  fi; \</div><div style="color:rgb(34,34,34);font-family:arial,sans-serif;font-size:13px;background-color:rgb(255,255,255)">
  (make -C $dir all ) || exit 1; \</div><div style="color:rgb(34,34,34);font-family:arial,sans-serif;font-size:13px;background-color:rgb(255,255,255)">done</div><div style="color:rgb(34,34,34);font-family:arial,sans-serif;font-size:13px;background-color:rgb(255,255,255)">
make[2]: Entering directory `/home/username/dev/llvm/src/projects/test/build/lib/sample'</div><div style="color:rgb(34,34,34);font-family:arial,sans-serif;font-size:13px;background-color:rgb(255,255,255)">make[2]: Nothing to be done for `all'.</div>
<div style="color:rgb(34,34,34);font-family:arial,sans-serif;font-size:13px;background-color:rgb(255,255,255)">make[2]: Leaving directory `/home/username/dev/llvm/src/projects/test/build/lib/sample'</div><div style="color:rgb(34,34,34);font-family:arial,sans-serif;font-size:13px;background-color:rgb(255,255,255)">
make[1]: Leaving directory `/home/username/dev/llvm/src/projects/test/build/lib'</div><div style="color:rgb(34,34,34);font-family:arial,sans-serif;font-size:13px;background-color:rgb(255,255,255)">make[1]: Entering directory `/home/username/dev/llvm/src/projects/test/build/tools'</div>
<div style="color:rgb(34,34,34);font-family:arial,sans-serif;font-size:13px;background-color:rgb(255,255,255)">for dir in luna; do \</div><div style="color:rgb(34,34,34);font-family:arial,sans-serif;font-size:13px;background-color:rgb(255,255,255)">
  if ([ ! -f $dir/Makefile ] || \</div><div style="color:rgb(34,34,34);font-family:arial,sans-serif;font-size:13px;background-color:rgb(255,255,255)">      command test $dir/Makefile -ot /home/username/dev/llvm/src/projects/test/tools/$dir/Makefile ); then \</div>
<div style="color:rgb(34,34,34);font-family:arial,sans-serif;font-size:13px;background-color:rgb(255,255,255)">    /home/username/dev/llvm/src/projects/test/build/../autoconf/mkinstalldirs $dir; \</div><div style="color:rgb(34,34,34);font-family:arial,sans-serif;font-size:13px;background-color:rgb(255,255,255)">
    /usr/bin/cp /home/username/dev/llvm/src/projects/test/tools/$dir/Makefile $dir/Makefile; \</div><div style="color:rgb(34,34,34);font-family:arial,sans-serif;font-size:13px;background-color:rgb(255,255,255)">  fi; \</div>
<div style="color:rgb(34,34,34);font-family:arial,sans-serif;font-size:13px;background-color:rgb(255,255,255)">  (make -C $dir all ) || exit 1; \</div><div style="color:rgb(34,34,34);font-family:arial,sans-serif;font-size:13px;background-color:rgb(255,255,255)">
done</div><div style="color:rgb(34,34,34);font-family:arial,sans-serif;font-size:13px;background-color:rgb(255,255,255)">/bin/sh: /home/username/dev/llvm/src/projects/Debug+Asserts/bin/llvm-config: No such file or directory</div>
<div style="color:rgb(34,34,34);font-family:arial,sans-serif;font-size:13px;background-color:rgb(255,255,255)">make[2]: Entering directory `/home/username/dev/llvm/src/projects/test/build/tools/luna'</div><div style="color:rgb(34,34,34);font-family:arial,sans-serif;font-size:13px;background-color:rgb(255,255,255)">
/home/username/dev/llvm/src/projects/test/build/../Makefile.llvm.rules:963: *** llvm-config --libs failed.  Stop.</div><div style="color:rgb(34,34,34);font-family:arial,sans-serif;font-size:13px;background-color:rgb(255,255,255)">
make[2]: Leaving directory `/home/username/dev/llvm/src/projects/test/build/tools/luna'</div><div style="color:rgb(34,34,34);font-family:arial,sans-serif;font-size:13px;background-color:rgb(255,255,255)">make[1]: *** [all] Error 1</div>
<div style="color:rgb(34,34,34);font-family:arial,sans-serif;font-size:13px;background-color:rgb(255,255,255)">make[1]: Leaving directory `/home/username/dev/llvm/src/projects/test/build/tools'</div><div style="color:rgb(34,34,34);font-family:arial,sans-serif;font-size:13px;background-color:rgb(255,255,255)">
make: *** [all] Error 1</div><br><div class="gmail_quote">2012/11/8 Óscar Fuentes <span dir="ltr"><<a href="mailto:ofv@wanadoo.es" target="_blank">ofv@wanadoo.es</a>></span><br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<div class="HOEnZb"><div class="h5">Wojciech Dani³o <<a href="mailto:wojtek.danilo.ml@gmail.com">wojtek.danilo.ml@gmail.com</a>> writes:<br>
<br>
> Hi!<br>
> I'm trying to use the LLVMProject toolchain (according to this page:<br>
> <a href="http://llvm.org/docs/Projects.html" target="_blank">http://llvm.org/docs/Projects.html</a>).<br>
> I created a project "test" with kaleidoscope example source code from:<br>
> <a href="http://llvm.org/docs/tutorial/LangImpl3.html" target="_blank">http://llvm.org/docs/tutorial/LangImpl3.html</a><br>
> It compiles successfully with: clang++ -g -O3 toy.cpp `llvm-config<br>
> --cppflags --ldflags --libs core` -o toy<br>
><br>
> according to the project documentation, my Makefile inside the source of<br>
> the project contains (it is in llvm/src/projects/test/tools/test/Makefile):<br>
><br>
> LEVEL=../..<br>
> TOOLNAME=luna<br>
> LINK_COMPONENTS = all<br>
> include $(LEVEL)/Makefile.common<br>
><br>
><br>
> And while executing make in build directory I get error:<br>
> /home/[...]/dev/llvm/src/projects/test/build/../Makefile.llvm.rules:963:<br>
> *** llvm-config --libs failed.  Stop.<br>
><br>
> [...] - I deleted this part<br>
><br>
> What is interesting, if I run llvm-config --libs in termial, I get:<br>
> -lLLVMAsmParser -lLLVMInstrumentation -lLLVMLinker -lLLVMArchive [...]<br>
> -lLLVMSupport (and a lot more)<br>
><br>
> What should I do to fix this issue?<br>
<br>
</div></div>First of all, execute make like this:<br>
<br>
make VERBOSE=1<br>
<br>
to see the actual command that is being executed. Doing that will show<br>
what's wrong with the command. If you can't figure out the problem,<br>
post to this thread with the output of make VERBOSE=1<br>
<br>
_______________________________________________<br>
LLVM Developers mailing list<br>
<a href="mailto:LLVMdev@cs.uiuc.edu">LLVMdev@cs.uiuc.edu</a>         <a href="http://llvm.cs.uiuc.edu" target="_blank">http://llvm.cs.uiuc.edu</a><br>
<a href="http://lists.cs.uiuc.edu/mailman/listinfo/llvmdev" target="_blank">http://lists.cs.uiuc.edu/mailman/listinfo/llvmdev</a><br>
</blockquote></div><br>