Sylvestre Ledru: Some clang rebuild results (8.0.1, 9.0.1 & 10rc2)
Raw logs are published on github: https://github.com/opencollab/clang.debian.net/tree/master/logs Since my last blog post on the subject (August 2017), Clang is more and more present in the tech ecosystem. It is now the compiler used to build Firefox and Chrome upstream binaries on all the supported architectures/operating systems. More architectures are supported, it has a new linker (lld), a new hybrid IR (MLIR), a lot of checkers in clang-tidy, cross-language linking with Rust, etc.
Results
Now, about Debian results, we rebuilt using 8.0.1, 9.0.1 and 10.0rc2. Results are pretty similar to what we had with previous versions: between 4 to 5% of packages are failing when gcc is replaced by clang.
Even if most of the software are still using gcc as compiler, we can see that clang has a positive effect on code quality. With many different kinds of errors and warnings found clang over the years, we noticed a steady decline of the number of errors. For example, the number of incorrect C/C++ main declarations has been decreasing years after years:
Errors found
The biggest offender is still the qmake changes which doesn't allow the used workaround (replacing /usr/bin/gcc by /usr/bin/clang) - about 250 errors. Most of these packages would probably compile fine with clang. More on the Qt bug tracker. The workaround proposed in the bug isn't applicable for us as we use the dropped-in replacement of the
The second error is still some differences in symbol generation. Unlike gcc, it seems that clang doesn't generate some symbols (or adds some). As a bunch of Debian packages are checking the list of symbols in the library (for ABI management), the build fails on purpose. For example, with libcec, the symbol _ZN10P8PLATFORM14CConditionImplD1Ev@Base 3.1.0 isn't generated anymore. I am not expecting this to be a big deal: the generated libraries probably works most of the time. More on C++ symbol management in Debian.
Current status
As previously said in a blog post, I don't think there is a strong intensive to go away from gcc for most of the Linux distributions. The big reason for BSD was the license (even if the move to the Apache 2 license wasn't received positively by some of them).
While the LLVM/clang ecosystem clearly won the tooling battle, as a C/C++ compiler, gcc is still an excellent compiler which supports more architecture and more languages.
In term of new warnings and checks, as the clang community moved the efforts in clang-tidy (which requires more complex tooling), out of the box, gcc provides a better experience (as example, see the Firefox meta bug to build with -Werror with the default warnings using gcc 9, gcc 10 and clang trunk for example).
Next steps
I see some potential next steps to decrease the number of failure:
- Workaround the Qt/Qmake issue
- Fix the objective-c header include issues (
echo "#include <objc/objc.h>" > foo.m && clang -c foo.m is currently failing)
- Identify why clang generates more/less symbols that gcc in the library and try to fix that
- Rebuild the archive with clang-7 - Seems that I have some data problem
Many thanks to Lucas Nussbaum for the rebuilds.
The biggest offender is still the qmake changes which doesn't allow the used workaround (replacing /usr/bin/gcc by /usr/bin/clang) - about 250 errors. Most of these packages would probably compile fine with clang. More on the Qt bug tracker. The workaround proposed in the bug isn't applicable for us as we use the dropped-in replacement of the
The second error is still some differences in symbol generation. Unlike gcc, it seems that clang doesn't generate some symbols (or adds some). As a bunch of Debian packages are checking the list of symbols in the library (for ABI management), the build fails on purpose. For example, with libcec, the symbol
_ZN10P8PLATFORM14CConditionImplD1Ev@Base 3.1.0 isn't generated anymore. I am not expecting this to be a big deal: the generated libraries probably works most of the time. More on C++ symbol management in Debian.Current status
As previously said in a blog post, I don't think there is a strong intensive to go away from gcc for most of the Linux distributions. The big reason for BSD was the license (even if the move to the Apache 2 license wasn't received positively by some of them).
While the LLVM/clang ecosystem clearly won the tooling battle, as a C/C++ compiler, gcc is still an excellent compiler which supports more architecture and more languages.
In term of new warnings and checks, as the clang community moved the efforts in clang-tidy (which requires more complex tooling), out of the box, gcc provides a better experience (as example, see the Firefox meta bug to build with -Werror with the default warnings using gcc 9, gcc 10 and clang trunk for example).
Next steps
I see some potential next steps to decrease the number of failure:
- Workaround the Qt/Qmake issue
- Fix the objective-c header include issues (
echo "#include <objc/objc.h>" > foo.m && clang -c foo.m is currently failing)
- Identify why clang generates more/less symbols that gcc in the library and try to fix that
- Rebuild the archive with clang-7 - Seems that I have some data problem
Many thanks to Lucas Nussbaum for the rebuilds.
I see some potential next steps to decrease the number of failure:
- Workaround the Qt/Qmake issue
- Fix the objective-c header include issues (
echo "#include <objc/objc.h>" > foo.m && clang -c foo.mis currently failing) - Identify why clang generates more/less symbols that gcc in the library and try to fix that
- Rebuild the archive with clang-7 - Seems that I have some data problem
Many thanks to Lucas Nussbaum for the rebuilds.
Hey folks,
This is a quick blog post to tell you Bandcamp is
A new release 0.4.16 of
One of the recent updates in Debian swept in changes so that mate-terminal couldn t highlight URLs anymore (
Most of us IT people should be in home office by now. If not, make sure you'll arrange that with your employers, cooperation partners, contractors, etc. Please help flatten the curve.
X2Go as your Home Office solution
If your computer at work runs a GNU/Linux desktop and you can SSH into it, then it might be time for you to try out X2Go [1]. Remote desktop access under GNU/Linux.
Free Support for simple Client-Server Setups
If your daily work is related to health care, municipal work, medical research, etc. (all those fields that are currently working under very high demands), please join the
The fourth maintenance release 1.0.4 of
From time to time, we get questions in Debian about our official channels of
communication and questions about the Debian status of who may own similarly
named websites.
The main Debian website
Mini-Disclaimer: I ll be talking about
Control freaks. You may have called people like this. Or you may have been called one
yourself. Maybe you got angry. Or, on the contrary, you felt like being a
control freak is a feature, because who would notice all these little details
that are not exactly perfect if not you? This post is an attempt to deconstruct
the term.
Etymological considerations
Control - from latin contra- rotulus - refers to the
copy of an account register as a means of verification of the original
register. So control is about keeping track, not making mistakes, i.e. it's
about doing a perfect calculation. The meaning of control in our society is
linked to authority, or to policing like in crowd control. What English
calls an inspector, is a Kontrolleur in German or
contr leur in French. The word is also linked to manufacturing, as in
quality control. We also talk about being in control, which
is linked to the desire of being autonomous, to be able to act on one's own
account. Being in control can also designate a need to preserve one's own
integrity: if I have integrity (in the sense of feeling whole), I can
self-determine, which is the most fundamental requirement for having one's own
identity.
Freak - refers to someone who does not fit the norm. Calling someone a
freak is per se problematic, because it blames a person for being
atypical, abnormal. Freak is a word that, while pointing a finger at
difference, at the same time denies people the right to be different and
diverse. People can reappropriate such words to make it clear that not fitting
the norm is a wanted expression of their diversity we can see that if
we follow the history of the word 