<html><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; "><div><div style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; "><div>I forgot reply to all setting so here is the mail to list also...</div><div><br><blockquote type="cite"><div><font class="Apple-style-span" color="#000000"><br></font></div><div>Hi Mikael,<br><br><blockquote type="cite">Patch fixes the problem in a way that it asks with llvm-config --includedir where include files really should be found.<br></blockquote><br>I don't get it.  The llvm-gcc build should not be used the installed<br>llvm at all - you shouldn't need to install llvm in order to build<br>llvm-gcc, only build it.  </div></blockquote><div><br></div><div>It's not obligatory to install llvm to be able to compile llvm-gcc. Still it's perfectly possible to compile llvm-gcc towards llvm installation, if you don't want to compile your llvm from sources. I.e. it is possible to compile llvm gcc with installed llvm or with an llvm source tree, where llvm has been built.</div><div><br></div>However if it is not even intended behavior that llvm-gcc is may be compiled with llvm installation tree then the patch is obsolete.</div><div><br><blockquote type="cite"><div>So asking llvm-config where it was installed<br>is just wrong. </div></blockquote><div><br></div><div>If llvm-config is ran from llvm-source-tree/Release/bin the --includedir switch actually returns include directory of the source tree, so basically we are not asking for installed headers, but just any place where includes should be looked for.</div><div><br></div><div>e.g. on my work computer i got following results for running lvm-config in source dirctory</div><div><br></div><div>elhigu@mr-lenovo:~/stow_sources/llvm-svn$ Debug/bin/llvm-config --includedir</div><div><div>/home/elhigu/stow_sources/llvm-svn/include</div><div><br></div><div><div>and from install directory.</div><div></div><div><br></div><div>elhigu@mr-lenovo:~/stow_sources/llvm-svn$ ~/stow_installs/bin/llvm-config --includedir</div><div>/home/elhigu/stow_installs/include</div><div><br></div></div></div><blockquote type="cite"><div> It sounds like the real problem is that LLVMOBJDIR and<br>LLVMSRCDIR are pointing to the wrong places.  What did you pass to<br>--enable-llvm when you configured llvm-gcc?<font class="Apple-style-span" color="#000000"><font class="Apple-style-span" color="#144FAE"><br></font></font></div></blockquote><div><br></div>When I compile llvm-gcc with llvm installation without llvm sources I pass 'llvm-config --prefix' for --enable-llvm when I build llvm-gcc towards llvm source tree I pass 'llvm-config --src-root'.<br><div><br></div><div>-Mikael</div></div></div></div><br></body></html>