This repository has been archived by the owner on Mar 7, 2021. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 120
Build fails on v5.0+ against kernels built with gcc #123
Labels
build-system
Bugs or features related to building modules
Comments
Good news and bad news:
|
@geofft I think this got fixed somewhere along the way, I'm definitely building on 5.x kernels. |
Oh hey thanks for the reminder, I definitely regressed this last night while trying to get rid of kernel-cflags-finder and this probably explains why. |
@alex so, there is one particular case still broken - clang 9+ and kernel <5 (my last bullet point above). Do we want to open a ticket for the new-clang-old-kernel case and see if it's solvable, or do we just want to document it as a restriction? |
Just consider it a restriction I think.
…On Sun, Aug 9, 2020 at 3:49 PM Geoffrey Thomas ***@***.***> wrote:
@alex <https://github.com/alex> so, there is one particular case still
broken - clang 9+ and kernel <5 (my last bullet point above).
https://travis-ci.com/github/fishinabarrel/linux-kernel-module-rust/builds/179047119
clang 9+ and kernel >=5 is fine. (clang <9 and kernel >=5 definitely won't
work because of lack of asm goto support.)
Do we want to open a ticket for the new-clang-old-kernel case and see if
it's solvable, or do we just want to document it as a restriction?
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
<#123 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AAAAGBDGE4KZDOMHHJLWPXTR734WPANCNFSM4IMRLYVA>
.
--
All that is necessary for evil to succeed is for good people to do nothing.
|
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Since torvalds/linux@e9666d1, detection for
asm goto
(which gcc supports and clang does not) got moved from a check at each build to a check in the kernel config, so a kernel built with gcc will have CONFIG_CC_HAS_ASM_GOTO, which breaks the build with clang / breaks bindgen's ability to parse the code with clang. (I haven't tested it, but I expect a kernel built with clang to work fine.)See discussion in lizhuohua/linux-kernel-module-rust#1.
The text was updated successfully, but these errors were encountered: