The Project To Compile The Linux Kernel With LLVM Clang Is Still Alive

Written by Michael Larabel in LLVM on 10 February 2016 at 08:00 AM EST. 12 Comments
LLVM
While for years there has been ongoing work to build the Linux kernel with Clang, in 2015 there wasn't much progress to report and the mainline LLVM Clang compiler still can't build the mainline Linux kernel tree successfully. What's going on?

The effort of building the Linux kernel with Clang as an alternative to GCC has been pushed under the LLVMLinux initiative, which is hosted by the Linux Foundation. However, over the past number of months it has been very quiet and we haven't been seeing many Clang-related patches in recent Linux kernel cycles.

Given how quiet it's been, not seeing many new patches, and the LLVMLinux site not seeing much in the way of updates since 2014, I reached out to Behan Webster. Behan has presented at Linux conferences several times on the prospects of compiling the Linux kernel with Clang, the patches they carry in their tree to achieve this feat, etc. He explained the situation in an email to me as:
Theoretically yes [being involved with the project]. The issue is that most of the people involved got busy with other things in 2015. I'm hoping we can find more time in 2016.

Honestly he just got a lot less press in 2014, and simultaneously the project lost steam. A bunch of our day jobs changed at the end of 2014 which is the major reason.
It would be lovely to see the mainline LLVM Clang compiler able to compile the mainline Linux kernel for x86_64 and ARM, let's hope that this will be the year when it can finally happen!
Related News
About The Author
Michael Larabel

Michael Larabel is the principal author of Phoronix.com and founded the site in 2004 with a focus on enriching the Linux hardware experience. Michael has written more than 20,000 articles covering the state of Linux hardware support, Linux performance, graphics drivers, and other topics. Michael is also the lead developer of the Phoronix Test Suite, Phoromatic, and OpenBenchmarking.org automated benchmarking software. He can be followed via Twitter, LinkedIn, or contacted via MichaelLarabel.com.

Popular News This Week