Kristina Brooks via llvm-dev
unread,Dec 23, 2018, 3:24:54 PM12/23/18Sign in to reply to author
Sign in to forward
You do not have permission to delete messages in this group
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to blubee blubeeme, barbaro...@gmail.com, llvm-dev, xuru...@huawei.com
Such is the case for most compilers, Clang supports extensions such as blocks for example, which IIRC date
back to before C++11 lambdas or around the same time. There's a lot of other implementation specific differences
for example in attributes.
Anyway, skipping that point, Glibc upstream isn't actively trying to work with Clang compliant unlike mainline Linux,
as you may guess from the name Glibc is a GNU libc, aimed to work and be built by the GNU Compiler Collection aka
GCC. If we look at a non-GNU libc such as, say, Bionic, currently it's built with a Clang based toolchain.
If you want a starting point for building Glibc forks with Clang, I mentioned one already, if the documentation
is correct, it has decent Clang support but YMMV.
On 23/12/2018 18:53, blubee blubeeme wrote:
> GNU likes to use non standard extensions for convenience while LLVM/Clang would like stick to the standards.
>
> Unless GNU adopts a more standards compliant behavior OR LLVM decides to relax their adherence to the standards
> the tools will always be somewhat incompatible w/o major work.
>
> For example recent changes to the Linux Kernel adopted GNU goto asm; which means that Clang will not compile
> the kernel;
>
> I am not sure how far LLVM is willing to bend over to please the GNU nor am I certain GNU will become more
> standards complaint anytime soon.
>
> You might try the route of patching glibc but that might not be the best use of your time.
> There are other c implementations out there.
>
> Best
>
> On Mon, Dec 24, 2018 at 12:01 AM Alberto Barbaro via llvm-dev <
llvm...@lists.llvm.org <mailto:
llvm...@lists.llvm.org>>
> wrote:
>
> Hi,
> Could you keep us posted, or at least me? I'm interested to compile glibc as well and obtain the bitcode.
>
> Would you consider to use
https://www.musl-libc.org in the meantime?
>
> Thanks
>
> On Sun, Dec 23, 2018, 12:00 Kristina Brooks via llvm-dev <
llvm...@lists.llvm.org <mailto:
llvm...@lists.llvm.org>
> >>
llvm...@lists.llvm.org <mailto:
llvm...@lists.llvm.org>
>
llvm...@lists.llvm.org <mailto:
llvm...@lists.llvm.org>
>
llvm...@lists.llvm.org <mailto:
llvm...@lists.llvm.org>
>
http://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-dev
>