If this is your first visit, be sure to
check out the FAQ by clicking the
link above. You may have to register
before you can post: click the register link above to proceed. To start viewing messages,
select the forum that you want to visit from the selection below.

Decoupling GCC From Debian By Using LLVM/Clang

07-11-2012, 02:30 PM

Phoronix: Decoupling GCC From Debian By Using LLVM/Clang

Back in March it was shared that LLVM's Clang compiler can build much of the Debian archive. This week at DebConf a status update was shared on using LLVM/Clang as an alternative compiler to GCC within Debian...

Comment

Which 12% won't build? Is it possible to build a system that boots and is functional with just Clang?

Is it even possible to build Debian from source code as an end user?

GRUB makes heavy use of nested functions, which makes it impossible to build with Clang without doing a complete rewrite. Then there are other issues with glibc and a few other core packages. This is from my experience with Gentoo.

GRUB makes heavy use of nested functions, which makes it impossible to build with Clang without doing a complete rewrite. Then there are other issues with glibc and a few other core packages. This is from my experience with Gentoo.

GRUB makes heavy use of nested functions, which makes it impossible to build with Clang without doing a complete rewrite. Then there are other issues with glibc and a few other core packages. This is from my experience with Gentoo.

If Clang can't handle deeply nested functions that sounds like a bug to me and that the LLVM/Clang developers should address that issue as well as meshing with the existing glibc or providing the necessary patches to glibc that allow LLVM/Clang to build it yet not prevent other compilers from building it

Comment

If Clang can't handle deeply nested functions that sounds like a bug to me and that the LLVM/Clang developers should address that issue as well as meshing with the existing glibc or providing the necessary patches to glibc that allow LLVM/Clang to build it yet not prevent other compilers from building it

The fact that there is nesting is the issue, not the depth of it. The issue is that nested functions are illegal in both C and C++.