compile with clang-5.0, clang-6.0 or Debian's unstable clang-7#12
compile with clang-5.0, clang-6.0 or Debian's unstable clang-7#12
Conversation
As compiling the kernel with clang is a recent development, we may observe different failures between the clang compiler versions. Some kernel configurations may fail with the stable version 5.0 due to clang compiler shortcomings, that have been resolved in the later version 6.0 or in the svn tree of the clang development. Hence, this commit provides dedicated Docker containers with clang-6.0 and clang-7 from Debian's unstable distribution, and extends the scripts select among those clang compiler versions. Signed-off-by: Lukas Bulwahn <lukas.bulwahn@gmail.com>
|
@phongt Would you be interested to review my proposed feature in this pull request? I am certainly interested in your expert opinion on my proposal. |
|
@bulwahn About the clang-7, I tested the patch with stable tree (linux-4.16.y), there is a compile error with clang-7 (Debian distro repo) As report the issue was resolved by Bug 36674. I propose that installation clang-7 (development branch) from Details information can be found here . I performed an experiment with clang-7 from repo of llvm.org. some pkgs have to install like gnupg-utils, wget (for import the key), then add the llvm.org repo in sources.list update the apt-cache and install the clang-7. Result kernel can compile successfully. Hope this is informative. |
|
Thanks for that hint. I think I just tested v4.14.y and did not notice that issue. I agree that getting a snapshot is probably the best solution for the clang development version. We just need to make sure that the docker container is tagged with the specific commit; otherwise, it will not be possible to produce reproducible runs and reports about issues that we identify. |
311dbc1 to
2b43ad0
Compare
As compiling the kernel with clang is a recent development, we may observe different failures between the clang compiler versions.
Some kernel configurations may fail with the stable version 5.0 due to clang compiler shortcomings, that have been resolved in the later version 6.0 or in the svn tree of the clang development.
Hence, this commit provides dedicated Docker containers with clang-6.0 and clang-7 from Debian's unstable distribution, and extends the scripts select among those clang compiler versions.