-
Notifications
You must be signed in to change notification settings - Fork 107
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Fail to compile with newer kernels >= 4.19 #31
Comments
Hello, |
This issue clearly states that this project does NOT compile any-longer on kernels >= v.4.19. The compile error you get is due to something else, but once you fix that (by running make headers_install in kernel rootdir) then you are going to hit the issue I desc above, so why are you going this... |
Sorry the confused by me.I think the error log is another type. |
After applying the patch, now I get other errors (kernel 5.6): error: expected '(' after 'asm' |
The BPF samples/bpf/ in this repo does NOT compile against newer kernel (according to Yoel: kernels >= 4.19).
This is caused by the kernel source changed, and added more use-cases of asm_volatile_goto (ASM GOTO), which is not supported by clang. This was initially worked around in this kernel commit b1ae32dbab50ed, and in this repo commit fca18b6. Unfortunately more ASM GOTO use-cases were added, again causing compile failures.
The upstream kernel address this in commit 6bf3bbe1f4d4c, by creating a include file asm_goto_workaround.h that redefines asm_volatile_goto. This is kind of workaround seems hackish...
TODO: Try to comeup with a better solution...
The text was updated successfully, but these errors were encountered: