FreeBSD to Adopt Clang as Default Compiler from November 4, Dropping GCC

By Saturday, September 15, 2012 0 , , , Permalink 0

FreeBSD has also revealed that it intends to ship the version 10.0 with Clang as the default compiler on x86 as well as amd64 bit platforms. Brooks Davis wrote, “We intend to ship FreeBSD 10.0 with Clang as the default compiler on i386 and amd64 platforms.”

A couple of things needs to be noted if you are a developer. First after this change when you build world, /usr/bin/cc, /cpp and /c++ will be links to clang. Second, the initial phases of buildworld and the ‘old style’ kernel compilation will be using Clang and not GCC. Third, according to Davis, all the major ports are known to work but, quite a few are broken or blocked. Further information about that can be obtained here.

There are still issues like GCC to Clang transition, Ports compiler selection infrastructure that need to be tackled but, FreeBSD is working towards resolving those. Davis is urging developers to adopt this early thereby helping to find bugs.