I have noticed that I was installing LLVM according to: <a href="http://llvm.org/docs/GettingStarted.html#getting-started">http://llvm.org/docs/GettingStarted.html#getting-started</a><div>so it was no the 3.1 but the 3.2 version from svn (trunk 167573).</div>
<div>Maybe in the svn, not stable version, there is a bug?<br><br><div class="gmail_quote">2012/11/9 Wojciech Daniło <span dir="ltr"><<a href="mailto:wojtek.danilo.ml@gmail.com" target="_blank">wojtek.danilo.ml@gmail.com</a>></span><br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Does anybody have Idea why I get such error? The LLVM is compiled from source - is is the newest version (3.1) from <a href="http://llvm.org/releases/" target="_blank">http://llvm.org/releases/</a> (from 22 may 2012)<div>
I created project in llvmsrc/projects/test (as copy of sample project) and I get these errors while attaching LLVM lbraries :(</div><div class="HOEnZb"><div class="h5">
<div><br><br><div class="gmail_quote">2012/11/8 Wojciech Daniło <span dir="ltr"><<a href="mailto:wojtek.danilo.ml@gmail.com" target="_blank">wojtek.danilo.ml@gmail.com</a>></span><br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">

<div><div><div style="color:rgb(34,34,34);font-size:13px;font-family:arial,sans-serif">Thank you, now it is more clear whats going on. There is a line:</div><div style="color:rgb(34,34,34);font-size:13px;font-family:arial,sans-serif">


/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-size:13px;font-family:arial,sans-serif"><br>
</div><div style="color:rgb(34,34,34);font-size:13px;font-family:arial,sans-serif">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-size:13px;font-family:arial,sans-serif">


Below, there is full output of make:</div><div style="color:rgb(34,34,34);font-size:13px;font-family:arial,sans-serif"><br></div><div style="color:rgb(34,34,34);font-size:13px;font-family:arial,sans-serif">
>> make VERBOSE=1</div><div style="color:rgb(34,34,34);font-size:13px;font-family:arial,sans-serif">for dir in lib tools; do \</div><div style="color:rgb(34,34,34);font-size:13px;font-family:arial,sans-serif">
  if ([ ! -f $dir/Makefile ] || \</div><div style="color:rgb(34,34,34);font-size:13px;font-family:arial,sans-serif">      command test $dir/Makefile -ot /home/username/dev/llvm/src/projects/test/$dir/Makefile ); then \</div>


<div style="color:rgb(34,34,34);font-size:13px;font-family:arial,sans-serif">    /home/username/dev/llvm/src/projects/test/build/../autoconf/mkinstalldirs $dir; \</div><div style="color:rgb(34,34,34);font-size:13px;font-family:arial,sans-serif">


    /usr/bin/cp /home/username/dev/llvm/src/projects/test/$dir/Makefile $dir/Makefile; \</div><div style="color:rgb(34,34,34);font-size:13px;font-family:arial,sans-serif">  fi; \</div><div style="color:rgb(34,34,34);font-size:13px;font-family:arial,sans-serif">


  (make -C $dir all ) || exit 1; \</div><div style="color:rgb(34,34,34);font-size:13px;font-family:arial,sans-serif">done</div><div style="color:rgb(34,34,34);font-size:13px;font-family:arial,sans-serif">
make[1]: Entering directory `/home/username/dev/llvm/src/projects/test/build/lib'</div><div style="color:rgb(34,34,34);font-size:13px;font-family:arial,sans-serif">for dir in sample; do \</div>
<div style="color:rgb(34,34,34);font-size:13px;font-family:arial,sans-serif">  if ([ ! -f $dir/Makefile ] || \</div><div style="color:rgb(34,34,34);font-size:13px;font-family:arial,sans-serif">
      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-size:13px;font-family:arial,sans-serif">
    /home/username/dev/llvm/src/projects/test/build/../autoconf/mkinstalldirs $dir; \</div><div style="color:rgb(34,34,34);font-size:13px;font-family:arial,sans-serif">    /usr/bin/cp /home/username/dev/llvm/src/projects/test/lib/$dir/Makefile $dir/Makefile; \</div>


<div style="color:rgb(34,34,34);font-size:13px;font-family:arial,sans-serif">  fi; \</div><div style="color:rgb(34,34,34);font-size:13px;font-family:arial,sans-serif">
  (make -C $dir all ) || exit 1; \</div><div style="color:rgb(34,34,34);font-size:13px;font-family:arial,sans-serif">done</div><div style="color:rgb(34,34,34);font-size:13px;font-family:arial,sans-serif">
make[2]: Entering directory `/home/username/dev/llvm/src/projects/test/build/lib/sample'</div><div style="color:rgb(34,34,34);font-size:13px;font-family:arial,sans-serif">make[2]: Nothing to be done for `all'.</div>


<div style="color:rgb(34,34,34);font-size:13px;font-family:arial,sans-serif">make[2]: Leaving directory `/home/username/dev/llvm/src/projects/test/build/lib/sample'</div><div style="color:rgb(34,34,34);font-size:13px;font-family:arial,sans-serif">


make[1]: Leaving directory `/home/username/dev/llvm/src/projects/test/build/lib'</div><div style="color:rgb(34,34,34);font-size:13px;font-family:arial,sans-serif">make[1]: Entering directory `/home/username/dev/llvm/src/projects/test/build/tools'</div>


<div style="color:rgb(34,34,34);font-size:13px;font-family:arial,sans-serif">for dir in luna; do \</div><div style="color:rgb(34,34,34);font-size:13px;font-family:arial,sans-serif">
  if ([ ! -f $dir/Makefile ] || \</div><div style="color:rgb(34,34,34);font-size:13px;font-family:arial,sans-serif">      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-size:13px;font-family:arial,sans-serif">    /home/username/dev/llvm/src/projects/test/build/../autoconf/mkinstalldirs $dir; \</div><div style="color:rgb(34,34,34);font-size:13px;font-family:arial,sans-serif">


    /usr/bin/cp /home/username/dev/llvm/src/projects/test/tools/$dir/Makefile $dir/Makefile; \</div><div style="color:rgb(34,34,34);font-size:13px;font-family:arial,sans-serif">  fi; \</div>
<div style="color:rgb(34,34,34);font-size:13px;font-family:arial,sans-serif">  (make -C $dir all ) || exit 1; \</div><div style="color:rgb(34,34,34);font-size:13px;font-family:arial,sans-serif">
done</div><div style="color:rgb(34,34,34);font-size:13px;font-family:arial,sans-serif">/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-size:13px;font-family:arial,sans-serif">make[2]: Entering directory `/home/username/dev/llvm/src/projects/test/build/tools/luna'</div><div style="color:rgb(34,34,34);font-size:13px;font-family:arial,sans-serif">


/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-size:13px;font-family:arial,sans-serif">
make[2]: Leaving directory `/home/username/dev/llvm/src/projects/test/build/tools/luna'</div><div style="color:rgb(34,34,34);font-size:13px;font-family:arial,sans-serif">make[1]: *** [all] Error 1</div>
<div style="color:rgb(34,34,34);font-size:13px;font-family:arial,sans-serif">make[1]: Leaving directory `/home/username/dev/llvm/src/projects/test/build/tools'</div><div style="color:rgb(34,34,34);font-size:13px;font-family:arial,sans-serif">


make: *** [all] Error 1</div><br></div></div><div><div><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><div>Wojciech Daniło <<a href="mailto:wojtek.danilo.ml@gmail.com" target="_blank">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" target="_blank">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>
</div></div></blockquote></div><br></div>
</div></div></blockquote></div><br></div>