LLVM/Clang - Default compiler in FreeBSD 9?

frooyo

New Member


Messages: 18

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)?
 

darcsis

Member

Reaction score: 10
Messages: 57

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
 

wblock@

Administrator
Staff member
Administrator
Moderator
Developer

Reaction score: 3,639
Messages: 13,850

Probably no date, just "when it's ready".
 

gkontos

Daemon

Reaction score: 480
Messages: 2,151

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
 

vertexSymphony

Member

Reaction score: 13
Messages: 79

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
 

vertexSymphony

Member

Reaction score: 13
Messages: 79

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
 
Top