[LLVMdev] Compiling glibc with clang/LLVM

Brian Faull bfaull at cog-e.com
Tue Sep 30 07:00:04 PDT 2014


Another C library possibility is "musl" -- http://www.musl-libc.org .  Not trying to sell it, and don't mean to start a "whats your favorite library" discussion either. :)

That said, musl seems to compile and work.  Aimed at being lightweight but full-featured.  Targeted at Linux systems for several common architectures.  Uses "permissive MIT license".

Hope it works for you or helps,
Brian




> Date: Mon, 29 Sep 2014 14:31:09 -0700
> From: Kostya Serebryany <kcc at google.com>
> To: Alexey Samsonov <vonosmas at gmail.com>
> Cc: "llvmdev at cs.uiuc.edu" <llvmdev at cs.uiuc.edu>
> Subject: Re: [LLVMdev] Compiling glibc with clang/LLVM
> Message-ID:
> 	<CAN=P9phVhnN70-agrbtcSsY6BK9JeR2ODK8UeYNhRHHFSL_pbw at mail.gmail.com>
> Content-Type: text/plain; charset="utf-8"
> 
> On Mon, Sep 29, 2014 at 11:38 AM, Alexey Samsonov <vonosmas at gmail.com>
> wrote:
> 
>> +kcc
>> 
>> AFAIU there are recent improvements in building glibc with Clang. Kostya,
>> what is the current status of building upstream glibc?
>> 
> 
> glibc still doesn't build with clang, but the number of reasons is becoming
> less.
> No ETA yet, I am doing this work in background.
> 
> --kcc
> 
> 
> 
>> 
>> On Mon, Sep 29, 2014 at 9:33 AM, Sahoo, Swarup Kumar <ssahoo2 at illinois.edu
>>> wrote:
>> 
>>> Hi Joshua,
>>> 
>>>     uClibc can be compiled with clang. You can try to use it if it works
>>> for you.
>>> 
>>> Thanks,
>>> Swarup.
>>> 
>>> ------------------------------
>>> *From:* llvmdev-bounces at cs.uiuc.edu [llvmdev-bounces at cs.uiuc.edu] on
>>> behalf of Joshua Tuttle [jtuttle at i-a-i.com]
>>> *Sent:* Monday, September 29, 2014 9:28 AM
>>> *To:* llvmdev at cs.uiuc.edu
>>> *Subject:* [LLVMdev] Compiling glibc with clang/LLVM
>>> 
>>>  Hey all,
>>> 
>>> 
>>> 
>>> 
>>> I was wondering if clang/LLVM has support to compile glibc in its
>>> entirety? The only thing I could find of recent was this thread saying the
>>> only way it could really be done is to use the dragonegg plugin with gcc...
>>> 
>>> https://groups.google.com/forum/#!topic/llvm-dev/pmZYVNTrVYQ
>>> 
>>> 
>>> 
>>> 
>>> 
>>> 





More information about the llvm-dev mailing list