TIP: Click on subject to list as thread! ANSI
echo: linux
to: GERRIT KUEHN
from: MAURICE KINAL
date: 2020-02-07 20:36:00
subject: the eagle has landed

Hallo Gerrit!

 GK> https://www.phoronix.com/scan.php?page=news_item&px=Clang-Kernel-2018

I had no luck with this until I upgraded to the latest git version of llvm the
other day.  The default master is clang-11.0.0 which managed to compile
linux-5.5.2.  I haven't properly compared that to the same kernel compiled by
gcc-9.2.0 yet but plan to later.  I am somewhat distracted upgrading to the new
glibc-2.31 as shown below;

-={ ':read !/lib/libc.so.6' starts }=-
GNU C Library (GNU libc) stable release version 2.31.
Copyright (C) 2020 Free Software Foundation, Inc.
This is free software; see the source for copying conditions.
There is NO warranty; not even for MERCHANTABILITY or FITNESS FOR A
PARTICULAR PURPOSE.
Compiled by GNU CC version 9.2.0.
libc ABIs: UNIQUE IFUNC ABSOLUTE
For bug reporting instructions, please see:
.
-={ ':read !/lib/libc.so.6' ends }=-

As you can see I am booting to the glibc built by gcc and as of this writing
cannot get clang to compile glibc.  It (glibc-2.31 source) is currently failing
to configure using clang-11.0.0 as it claims the compiler is too old.  I
somehow doubt that is true.

 GK> https://en.wikipedia.org/wiki/OpenMandriva_Lx

2020-02-01 -> OpenMandrivaLx.4.1-plasma.x86_64.iso
The above is the current version and the site claims to have clang-9.0.1
working as well as offereing two kernel v5 up for grabs; one compiled with gcc
the other with clang.  I haven't booted OpenMandrivaLx.4.1-plasma.x86_64 as of
this writing and I don't see any indication of which version of glibc they are
using or if indeed they are using glibc at all.

As far as my customized x86_64-pc-linux-gnu is concerned I am still behind as
far as getting a llvm to work beyond compiling a kernel.  As for the latest
release (llvm-9.0.1) it fails to compile due to issues with glibc-2.31 and
somewhat works with 2.30 although I couldn't get that version to compile a
kernel, nevermind glibc any version.  Beats me exactly how OpenMandriva pulled
it off ... if indeed they did manage to pull it off.  I'll know more once I
boot OpenMandrivaLx.4.1-plasma.

Anyhow any REALLY USEFUL information you might be able to provide would be of
great help.  So far all I've found is hype with absolutely zero evidence to
support the claim of a working clang that can successfully compile glibc ...
with or without patching the crap out of it.  In the meantime I am still more
than content with gcc and friends so no real panic to get a llvm based linux
system up and running.  :-)

Het leven is goed,
Maurice

... Huil niet om mij, ik heb vi.
--- GNU bash, version 5.0.11(1)-release (x86_64-pc-linux-gnu)
* Origin: Little Mikey's EuroPoint - Ladysmith BC, Canada (2:280/464.113)

SOURCE: echomail via QWK@docsplace.org

Email questions or comments to sysop@ipingthereforeiam.com
All parts of this website painstakingly hand-crafted in the U.S.A.!
IPTIA BBS/MUD/Terminal/Game Server List, © 2025 IPTIA Consulting™.