Closed torvic9 closed 2 years ago
Here is a rebased version (based on Linus' tree): https://gitlab.com/torvic9/linux513-vd/-/blob/master/unused/Kbuild-add-option-for-choosing-a-ThinLTO-cache-direc.patch
Feel free to test and report.$
EDIT: major oops! I accidently removed a line. Do not use this, I will put up a rectified version.
Fixed patch (as a gist): https://gist.github.com/torvic9/17c6a86ca4345d62e7907c96231c2775
I sent dkms a patch.
This should be fixed as of DKMS 3.0.2. https://github.com/dell/dkms/commit/6ddb09145930b03c88e63f5930e718a33501024d
Note: there's also a requirement for dkms that clang
be accesible from a $PATH
allowlist.
https://github.com/dell/dkms/issues/124#issuecomment-955194338
https://github.com/dell/dkms/blob/41efbd50f635af0ec230478525e5be56d6003896/dkms.in#L2163-L2164
Hi,
I don't know where to report this, but...let me try :) feel free to close if it's the wrong place.
So I finally managed to build current 5.7.10 kernel with
LLVM=1 LLVM_IAS=1
with clang11 from therelease/11.x
branch, and the IAS related patches I found (among others) here: https://github.com/ClangBuiltLinux/linux/issues/1049 , and which I assembled together here: https://github.com/torvic9/linux57-vd/blob/master/0006-clang-llvm-ias-support.patchThe problem is that I cannot build the VBox host modules using
CC=clang LD=ld.lld
. I get the following errors:and many more of the same type.
Compiling the kernel with clang10 and without LLVM_IAS results in working VBox modules.
Is this an issue with the fact that I used LLVM_IAS for the kernel? Or is it rather related to using clang11 instead of clang10?
Thanks!