LLVM's Clang Is Onto Building The Linux Kernel

发布于 2022-09-08 22:44:03 字数 1948 浏览 11 评论 2

In February of this year the Clang C/C++ compiler for LLVM hit the milestone of self-hosting itself after Clang's C support was declared production ready (with the recently released LLVM 2.8, the C++ support is now deemed feature-complete) just last October. In April another achievement was reached for LLVM/Clang and that was building much of FreeBSD's base operating system. Today another milestone has been hit and that's building the Linux kernel for Debian to the point that it's functional and can run the X.Org Server both on bare metal and this can also be done within a QEMU virtualized environment.

Right now it's at least successfully building and hitting run-level five on an Apple MacBook running Debian GNU/Linux both on the hardware itself and virtualized. The kernel that this is being done with is Linux 2.6.36 using the x86_64 architecture with SMP. This build can also self-host itself with the developer reporting he's running a fourth-generation self-hosted Linux kernel built by LLVM/Clang and that the compiler build is also onto its fourth-generation build.

While kernel sub-systems like NUMA, SMP, the IPv4 networking stack, graphics drivers, and other drivers/firmware are being built, there still though are some things being left out of this Clang Linux kernel build. Some of the items not building right now are SELinux, POSIX ACLs, eCrypt, IPv6, anything using the crypto API, and Xen virtualization. The other huge caveat right now to this Linux kernel built by CLang is that kernel module loading is completely broken.

Bryce Lelbach, the developer announcing this work, is hoping to have the kernel in a much more Clang-friendly state in the coming months to the point that it could be considered production quality if using his Git repository that will contain these patches for Clang building.

The announcement of achieving this feat can be found in this email.

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(2

俯瞰星空 2022-09-19 11:45:35

路过,留个脚印

趁年轻赶紧闹 2022-09-19 06:10:26

Good news.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文