Re:FreeBSD has removed GCC from its base system
by Someone on Tuesday March 03, 2020 @08:46AM
(#22474363)
Building the kernel with clang has been possible or a while. https://releases.llvm.org/9.0.0/tools/clang/docs/ReleaseNote...:
"With support for asm goto, the mainline Linux kernel for x86_64 is now buildable (and bootable) with Clang 9. Other architectures that don’t require CONFIG_JUMP_LABEL=y such as arm, aarch64, ppc32, ppc64le, (and possibly mips) have been supported with older releases of Clang (Clang 4 was first used with aarch64).
The Android and ChromeOS Linux distributions have moved to building their Linux kernels with Clang, and Google is currently testing Clang built kernels for their production Linux kernels."
That was in September 2019
Re:FreeBSD has removed GCC from its base system
by ComputerGuru on Tuesday March 03, 2020 @09:05AM
(#22474489)
Yes, I consider within the past year to qualify as "now," but I've updated my post :)
Re:FreeBSD has removed GCC from its base system
by ndesaulniers on Tuesday March 03, 2020 @07:06PM
(#22480009)
Within the past year is more nuanced. Clang was building working kernels since clang-4. X86 developers decided to require asm goto around Linux 4.20, which regressed clang builds for one architecture, until clang-9 implemented it. You could still build LTS kernels without asm goto.
Re:FreeBSD has removed GCC from its base system
by tyingq on Tuesday March 03, 2020 @08:42AM
(#22474334)
That's part of why I ask. As of late last year, clang can compile x86_64 Linux 5.x kernels.
It is primarily non-GPL platforms/systems/companies that are switching to clang for it's much friendlier license.
Edit: "~now" rather than "now"