[llvm-commits] [PATCH] Building llvm-gcc with llvm-2.5 debian packages

Mikael Lepistö mikael.lepisto at tut.fi
Sat Sep 5 10:16:48 PDT 2009


I forgot reply to all setting so here is the mail to list also...

>
> Hi Mikael,
>
>> Patch fixes the problem in a way that it asks with llvm-config -- 
>> includedir where include files really should be found.
>
> I don't get it.  The llvm-gcc build should not be used the installed
> llvm at all - you shouldn't need to install llvm in order to build
> llvm-gcc, only build it.

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.

However if it is not even intended behavior that llvm-gcc is may be  
compiled with llvm installation tree then the patch is obsolete.

> So asking llvm-config where it was installed
> is just wrong.

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.

e.g. on my work computer i got following results for running lvm- 
config in source dirctory

elhigu at mr-lenovo:~/stow_sources/llvm-svn$ Debug/bin/llvm-config -- 
includedir
/home/elhigu/stow_sources/llvm-svn/include

and from install directory.

elhigu at mr-lenovo:~/stow_sources/llvm-svn$ ~/stow_installs/bin/llvm- 
config --includedir
/home/elhigu/stow_installs/include

>  It sounds like the real problem is that LLVMOBJDIR and
> LLVMSRCDIR are pointing to the wrong places.  What did you pass to
> --enable-llvm when you configured llvm-gcc?

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'.

-Mikael

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20090905/000ec808/attachment.html>


More information about the llvm-commits mailing list