Linked by Thom Holwerda on Tue 26th Oct 2010 20:36 UTC, submitted by tyrione
Linux Clang can build a kernel now. "The kernel can successfully boot to runlevel 5 (aka X + networking) on the Macbook, both on bare metal and in Qemu. The kernel can successfully boot to runlevel 3 on a secondary test machine, a microATX desktop box (Intel Atom). I haven't tried to start X on this box yet. The kernel can self-host; I am currently running a 'fourth generation' self-hosted Linux kernel built by a 'fourth generation' Clang."
Thread beginning with comment 447299
To view parent comment, click here.
To read all comments associated with this story, please click here.
RE: Simply: Congratulations
by Neolander on Wed 27th Oct 2010 08:59 UTC in reply to "Simply: Congratulations"
Neolander
Member since:
2010-03-08

IMHO that's a major milestone. The next step would be a few distributors to switch to clang.

How about most major BSDs (including OSX) switching to it ?

Reply Parent Score: 2

RE[2]: Simply: Congratulations
by fithisux on Wed 27th Oct 2010 09:25 in reply to "RE: Simply: Congratulations"
fithisux Member since:
2006-01-22

"IMHO that's a major milestone. The next step would be a few distributors to switch to clang.

How about most major BSDs (including OSX) switching to it ?
"

How about resurrect PureDarwin and build it and debug (lldb) it with llvm/clang.

Reply Parent Score: 2

Also good news to me
by pica on Wed 27th Oct 2010 09:29 in reply to "RE: Simply: Congratulations"
pica Member since:
2005-07-10

But Linux is more popular -- I do neither write nor mean better -- than *BSD or Darwin.

pica

Reply Parent Score: 2

RE: Also good news to me
by Neolander on Wed 27th Oct 2010 19:25 in reply to "Also good news to me"
Neolander Member since:
2010-03-08

But Linux is more popular -- I do neither write nor mean better -- than *BSD or Darwin.

On the desktop, this is debatable. On the server, I can't tell since I don't know the market, but I've seen both debian and freebsd on university servers in my short student life.

Edited 2010-10-27 19:27 UTC

Reply Parent Score: 2

RE[2]: Simply: Congratulations
by phoenix on Wed 27th Oct 2010 23:36 in reply to "RE: Simply: Congratulations"
phoenix Member since:
2005-07-11

clang and llvm have been imported into the FreeBSD source tree, and it will be available as part of FreeBSD 9.0. It can build the entire FreeBSD OS (kernel, libs, boot loader, userland, toolchain), and can rebuild it all using the resulting system (ie, self-hosting). You can even build/run a FreeBSD system without GCC installed at all.

It's not currently possible to replace GCC for building apps via the ports tree. There are quite a few apps that fail if CC != cc (gcc). But, as these are reported, fixes are sent upstream, and (hopefully) things get better in the long-run. For those that don't build with clang, a version of GCC can be automatically installed via the ports tree, and that can be used to build the app.

Long-term, it's very likely that GCC will disappear from the FreeBSD base install and source tree.

Reply Parent Score: 2