<html><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; ">Hi, <br><div><br></div><div>Anybody has an opinion would it be good thing  to add support for llvm-gcc to be able to be built with existing llvm installation? </div><div><br></div><div>Right now building works with llvm installation also, but only if llvm libs and includes are installed under the same prefix, even though this seems to be unintended functionality.  </div><div><br></div><div>So after support for building llvm-gcc without llvm sources it would be possible to build e.g. llvm-gcc cross compilers with globally installed llvm package.</div><div><br></div><div>Mikael Lepistö</div><div><br><div>Begin forwarded message:</div><br class="Apple-interchange-newline"><blockquote type="cite"><div><div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; "><font face="Helvetica" size="3" color="#000000" style="font: 12.0px Helvetica; color: #000000"><b>From: </b></font><font face="Helvetica" size="3" style="font: 12.0px Helvetica">Mikael Lepistö <<a href="mailto:mikael.lepisto@tut.fi">mikael.lepisto@tut.fi</a>></font></div><div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; "><font face="Helvetica" size="3" color="#000000" style="font: 12.0px Helvetica; color: #000000"><b>Date: </b></font><font face="Helvetica" size="3" style="font: 12.0px Helvetica">5. syyskuuta 2009 klo 20.16.48</font></div><div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; "><font face="Helvetica" size="3" color="#000000" style="font: 12.0px Helvetica; color: #000000"><b>To: </b></font><font face="Helvetica" size="3" style="font: 12.0px Helvetica">Commit Messages and Patches for LLVM <<a href="mailto:llvm-commits@cs.uiuc.edu">llvm-commits@cs.uiuc.edu</a>></font></div><div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; "><font face="Helvetica" size="3" color="#000000" style="font: 12.0px Helvetica; color: #000000"><b>Subject: </b></font><font face="Helvetica" size="3" style="font: 12.0px Helvetica"><b>Re: [llvm-commits] [PATCH] Building llvm-gcc with llvm-2.5 debian packages</b></font></div><div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; min-height: 14px; "><br></div> </div><div 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></div>_______________________________________________<br>llvm-commits mailing list<br><a href="mailto:llvm-commits@cs.uiuc.edu">llvm-commits@cs.uiuc.edu</a><br>http://lists.cs.uiuc.edu/mailman/listinfo/llvm-commits<br></blockquote></div><br></body></html>