On Mon, Jul 30, 2018 at 10:21 AM, Mark Rutland wrote: > Do any released versions of clang (e.g. 6.0.1) build a working kernel? > I was able to build recent Linux v4.14.y kernels with several "clang-7 trunk" which needs some additional patches. Matthias offers a patchset [1] with Linux v4.14 vanilla as base. Some of the patches are in linux-stable-4.14.y and obsolete now. If you use a higher clang version like 5 or 6, the patches labeled with "CLANG-3" and CLANG-4" are not needed. AFAICS the patches labeled with "UPSTREAM" are of interest. My 4.14.54-1-iniza-llvmlinux kernel boots on bare metal as an example (dmesg attached). - Sedat - [1] https://chromium.googlesource.com/chromiumos/third_party/kernel/+log/sandbox/mka/llvm/v4.14_ext