This question has been asked occasionally with no positive responses. Has anybody had success compiling glib with clang/llvm? If so, can you share any details? If not, are there any good libc replacements with more complete functionality than newlib? Thanks, dave -------------- next part -------------- An HTML attachment was scrubbed... URL: <http://lists.llvm.org/pipermail/llvm-dev/attachments/20130605/5c4f2b9c/attachment.html>
Roland says the main blocker for now is support for nested functions, he thinks the rest should be straightforward. There was apparently a post to the glibc mailing list about this. On Jun 5, 2013 11:37 AM, "Dave Buehmann" <db.llvm at gmail.com> wrote:> This question has been asked occasionally with no positive responses. > > Has anybody had success compiling glib with clang/llvm? If so, can you > share any details? > > If not, are there any good libc replacements with more complete > functionality than newlib? > > Thanks, dave > > _______________________________________________ > LLVM Developers mailing list > LLVMdev at cs.uiuc.edu http://llvm.cs.uiuc.edu > http://lists.cs.uiuc.edu/mailman/listinfo/llvmdev > >-------------- next part -------------- An HTML attachment was scrubbed... URL: <http://lists.llvm.org/pipermail/llvm-dev/attachments/20130605/cea5387b/attachment.html>
Here's a clang bug I filed long ago for it that was closed wontfix: http://llvm.org/bugs/show_bug.cgi?id=9206 On Wed, Jun 5, 2013 at 3:05 PM, JF Bastien <jfb at google.com> wrote:> Roland says the main blocker for now is support for nested functions, he > thinks the rest should be straightforward. > > There was apparently a post to the glibc mailing list about this. > On Jun 5, 2013 11:37 AM, "Dave Buehmann" <db.llvm at gmail.com> wrote: > >> This question has been asked occasionally with no positive responses. >> >> Has anybody had success compiling glib with clang/llvm? If so, can you >> share any details? >> >> If not, are there any good libc replacements with more complete >> functionality than newlib? >> >> Thanks, dave >> >> _______________________________________________ >> LLVM Developers mailing list >> LLVMdev at cs.uiuc.edu http://llvm.cs.uiuc.edu >> http://lists.cs.uiuc.edu/mailman/listinfo/llvmdev >> >> > _______________________________________________ > LLVM Developers mailing list > LLVMdev at cs.uiuc.edu http://llvm.cs.uiuc.edu > http://lists.cs.uiuc.edu/mailman/listinfo/llvmdev > >-------------- next part -------------- An HTML attachment was scrubbed... URL: <http://lists.llvm.org/pipermail/llvm-dev/attachments/20130605/0bbce0fd/attachment.html>
On Wed, Jun 05, 2013 at 12:34:41PM -0600, Dave Buehmann wrote:> This question has been asked occasionally with no positive responses. > > Has anybody had success compiling glib with clang/llvm? If so, can you > share any details? > > If not, are there any good libc replacements with more complete > functionality than newlib?It is (almost) possible to compile glibc using DragonEgg -- there are only a handful of patches required (for LLVM and DragonEgg), most of which are now up for review. It builds, and most of glibc's test suite currently passes, except for some tests that deal with floating point arithmetic, and some tests which use very obscure GNU as features which I haven't seen used outside the glibc test suite. Hopefully within a month or so everything should be upstreamed, but if you're itching for something that works now I can try to find some time to send some WIP patches and instructions. Thanks, -- Peter
Thanks Peter, I'll try that path and follow up with you for the patches when I get to that point Best, dave -- View this message in context: http://llvm.1065342.n5.nabble.com/clang-llvm-with-glibc-tp58309p58336.html Sent from the LLVM - Dev mailing list archive at Nabble.com.
> It is (almost) possible to compile glibc using DragonEgg -- there > are only a handful of patches required (for LLVM and DragonEgg), > most of which are now up for review. > > It builds, and most of glibc's test suite currently passes, except > for some tests that deal with floating point arithmetic, and some > tests which use very obscure GNU as features which I haven't seen > used outside the glibc test suite. > > Hopefully within a month or so everything should be upstreamed, but > if you're itching for something that works now I can try to find some > time to send some WIP patches and instructions.This is amazing! What are you guys doing about -fno-toplevel-reorder? Cheers, Rafael