[LLVMdev] Compiling glibc on Linux

Reid Spencer rspencer at reidspencer.com
Tue May 8 19:33:40 PDT 2007


As its manual page (http://llvm.org/docs/CommandGuide/html/llvmc.html)
states, llvmc is an experimental tool:

llvmc is considered an experimental LLVM tool because it has these

Poor configuration support
        The support for configuring new languages, etc. is weak. There
        are many command line configurations that cannot be achieved
        with the current support. Furthermore the grammar is cumbersome
        for configuration files. Please see http://llvm.org/PR686 for
        further details.

That said, you should be able to get it to work with llvm-gcc.

Did you build llvm-gcc? Did you check the paths in the "c" config file?
Did you install the config files? 

All of these things need to be done in order for the standard config
file to work.


On Tue, 2007-05-08 at 18:40 -0700, Babak Salamat wrote:
>   Hi,
> I am trying to compile glibc on Linux using llvm. I need to do this  
> for a research project.
> The problem is that llvmc doesn't work, and I guess I have to set  
> CC=llvmc to get the glic compiled. For some reason llvmc complains  
> that it cannot find %llvmcc1%. I have this problem both on my Mac and  
> my Linux system. Other tools that I have tested including llvm-gcc  
> work without any problem.
> First, I appreciate it if you let me know what can cause this problem  
> and second, tell me if you think I have any chance to compile glibc  
> using LLVM.
> Thank you,
> Babak
> ---------------------------------------------------------------
> Babak Salamat
> PhD Student
> Department of Computer Science
> School of Information and Computer Sciences
> University of California, Irvine
> email: bsalamat at uci.edu
> web: www.ics.uci.edu/~bsalamat
> ---------------------------------------------------------------
> _______________________________________________
> LLVM Developers mailing list
> LLVMdev at cs.uiuc.edu         http://llvm.cs.uiuc.edu
> http://lists.cs.uiuc.edu/mailman/listinfo/llvmdev

More information about the llvm-dev mailing list