-
Notifications
You must be signed in to change notification settings - Fork 1.8k
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
Unable to build ZFS release branch against 5.4 kernels #9755
Comments
I think that problem can be avoided by applying this patch locally: c587b2c |
Unfortunately updating the info in META hasn't worked. Followed the same procedure as before. When doing the Edit: You can also find the
|
I'm also seeing the same with 5.4 mainline kernels and the new 5.5 kernel on Ubuntu 18.04, when built using master. |
Are you able to build with 0.8.3? |
@tonyhutter Unfortunately not
|
@Rid I'm able to reproduce this with Ubuntu 18.0.4 using the 5.4.16-050416-generic kernel as you suggested. Here's where it's failing in configure:
This appears to be a bug in the kernel headers or GCC. Other external modules are hitting the issue with the 5.4 kernel: One of the threads suggested installing GCC9 to fix it. Maybe try running though the steps here to get GCC9 installed? (totally untested by me) https://linuxize.com/post/how-to-install-gcc-compiler-on-ubuntu-18-04/ |
Thanks @tonyhutter I can confirm it does indeed compile with gcc-9:
|
@Rid thanks, I'll close the issue as a GCC bug. |
Thanks for identifying the issue. Can confirm that using stock gcc 8 on Ubuntu 18.04 resolved the issue. Steps to achieve this were:
After this the latest zfs-0.8-release branch (0.8.3-1) built successfully against linux 5.4.17. |
This comes up on EL8 when using mainline 5.4.x kernel. [root@orcone /usr/src/zfs-0.8.4]# gcc --version I tried installing gcc9, but the same error comes up when running configure with CC set to gcc9: I think an alternative fix ix required. Edit: 4.9.x works fine. |
System information
Describe the problem you're observing
DKMS fails to build the stable branch against linux 5.4.5.
linux 5.3.18 has been announced to be the last of the 5.3 branch. See https://lwn.net/Articles/807636/
Attempt to build from master appears to build 0.8.0, and therefore wasn't fully tested as part of this and there's already a ticket for it: #9754
Describe how to reproduce the problem
On Ubuntu 18.04, using Ukuu, install the latest mainline kernel from https://kernel.ubuntu.com/~kernel-ppa/mainline/
Then get the latest ZFS 0.8-release branch. Build and install.
During DKMS package installation the modules are build for the current kernel (5.3.18), however fail for 5.4.5:
The referenced log file contains:
Include any warning/errors/backtraces from the system logs
Error message as returned by DKMS build (also pasted above).
The text was updated successfully, but these errors were encountered: