4 ms·
The kernel is not built with clang as that only works with ARM architectures right now (the Android kernel supports it, but the mainline kernel does not).
by Conan_Kudo 7y ago
The kernel is not built with clang as that only works with ARM architectures right now (the Android kernel supports it, but the mainline kernel does not).
- ndesaulniers 7y agoFalse! Mainline builds cleanly for most arches with clang.
- Conan_Kudo 7y agoNot with any released version of clang, but yes, it works with snapshots of git master...
- ndesaulniers 7y agoAgain, false! This is highly dependent on: 1. What arch are you targeting. 2. What version of Linux are you trying to build? Mainline, stable, next? 3. What configs are you trying. 4. What version of clang are you using. For example, pixel 2 kernel is arm64, 4.4 stable kernel, limited configs, and clang-4. Things for the most part are pretty green with released versions of clang. There are some long tail configs or combos of the above, but it's pretty minimal and we have a good handle on them.
- Conan_Kudo 7y agoI'm mainly working off our experience in OpenMandriva, so at least for your standard general-purpose Linux distribution, it doesn't work yet.
- BurningCycles 7y agoBut is the result stable ? I remember bulding it with some patches a year or two ago, and while it compile fine, it crashed horribly when booting.