LLVM/Clang - Default compiler in FreeBSD 9?

1a. Is LLVM/Clang the default C/C++ compiler for FreeBSD 9 (amd64)?

1b. If so, how do I envoke the llvm compiler, meaning - what's the equivalent of running "gcc ..."?

2. Was all of FreeBSD 9 (amd64) built using LLVM/Clang solely (no GCC)?

3. Is GCC completely removed from FreeBSD 9 (amd64)?
 
1. No
2. Search 'clang build' on wiki.freebsd.org for details about how to employ 'llvm/clang' while compile things.
3. For kernel and base system, yes. for the ports system, no. Many ports need patches to be built with clang. And some won't compile if clang is used.
4. No
 
frooyo said:
What's the current planned date to complete replace GCC with LLVM/Clang?

That status page doesn't make it clear.

Just to add here a few things. The main issue with this replacement is not with FreeBSD world & kernel. At least on i386 and amd64 architectures. The problem is getting ports to successfully compile. You can get some clues here:

http://wiki.freebsd.org/PortsAndClang
 
oleglelchuk said:
So, gcc 4.2.1 will be removed from the base system of FreeBSD 10? That's good news.

Well, as long as base system and ports cant be comfortably built with Clang, GCC will be there ... once that problem is gone, yeah, GCC 4.2 will be killed wih fire from base system and if a ports depends on it, well, it will depend on the gcc-4.2 (or a newer) port x'3
Here's the actual status of all this:

http://wiki.freebsd.org/BuildingFreeBSDWithClang
http://wiki.freebsd.org/GPLinBase
http://wiki.freebsd.org/PortsAndClang
 
Beastie said:
It's still relatively early but already looking quite promising. Over 18,000 is not that bad!

Well, the fact that they build doesn't mean that they work, they may fail at runtime.
But it's a promising number indeed
 
Back
Top