LWN.net Logo

Clang builds a working 2.6.36 Kernel

Clang builds a working 2.6.36 Kernel

Posted Oct 26, 2010 14:57 UTC (Tue) by wash (guest, #70825)
In reply to: Clang builds a working 2.6.36 Kernel by clugstj
Parent article: Clang builds a working 2.6.36 Kernel

No offense, but I'm not really interested in your opinion. This is a project I am working on in my spare time; I made a post about it to a development list. Parties unknown to me (who obviously felt it was of some significance - note that I do not particularly agree with them, as this is just one of many milestones Clang has recently passed) decided to publicize this.

A lot of people have put many hours of work into getting Clang to this stage. I am not one of them; I'm relatively new to the Clang community. In particular, Alp Toker from Nuanti and his team should be recognized for all the work they've been doing on this.

Anyways, the Linux Kernel can now be built entirely by Clang. Loadable modules work, the crypto and network stacks are fully functional, and SELinux is supported. I am now building with the Clang integrated assembler; the only part of the GNU toolchain still involved in the process is the GNU linker. I have been unable to find any other linker (which is not derived from GNU's), so for now, this toolchain will use ld.

The version source code for my local copies of Clang/LLVM and Linux will be put up on Github later this week, as well as instructions for building.


(Log in to post comments)

Clang builds a working 2.6.36 Kernel

Posted Oct 26, 2010 15:33 UTC (Tue) by loevborg (guest, #51779) [Link]

FWIW I thought this piece was newsworthy and interesting. Thanks for your impressive work with clang!

Clang builds a working 2.6.36 Kernel

Posted Oct 26, 2010 15:55 UTC (Tue) by jwakely (subscriber, #60262) [Link]

the obvious other linker to try is gold, although of course that's part of GNU binutils too ... there is a reason why people call it GNU/Linux, y'know ;)

Clang builds a working 2.6.36 Kernel

Posted Oct 26, 2010 16:53 UTC (Tue) by MisterIO (guest, #36192) [Link]

Isn't gold still unable to link usable kernels? Or is it just something that debian folks have fun writing?:)

Clang builds a working 2.6.36 Kernel

Posted Oct 26, 2010 18:34 UTC (Tue) by rriggs (subscriber, #11598) [Link]

Clang builds a working 2.6.36 Kernel

Posted Oct 26, 2010 17:05 UTC (Tue) by nteon (subscriber, #53899) [Link]

As of a couple of months ago, gold was unable to link a working kernel for me. Seems to still be the case: http://fedoraproject.org/wiki/Features/GoldLinkerDefault

Clang builds a working 2.6.36 Kernel

Posted Oct 27, 2010 4:29 UTC (Wed) by Lefty (guest, #51528) [Link]

I agree that this is both interesting and newsworthy. Clang is making excellent progress, and this is a very significant milestone.

Copyright © 2013, Eklektix, Inc.
Comments and public postings are copyrighted by their creators.
Linux is a registered trademark of Linus Torvalds