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
Debian Stretch: zfs dkms module build fails with NR_FILE_PAGES in either node_stat_item or zone_stat_item: NOT FOUND
#7358
Comments
|
FWIW, I'm trying to upgrade from 0.7.3, where zfs-dkms built the same way worked fine. |
|
This is also criplling instalation on RHEL latest kernel-3.10.0-693.21.1.el7.x86_64 It works perfectly at kernel-3.10.0-693.5.2.el7.x86_64 |
Indeed, I could make it work! Still not sure about what the problem is, but what does not work is upgrading! I removed every instance of old kernel and kernel-devel from the new machine. Also, removed every .ko file from /lib/modules/3.10.0-693.21.1.el7.x86_64/weak-updates/ After this, yum reinstall spl-dkms && yum reinstall zfs-dkms, (or something like that, it was not straightforward) and now everything works... |
|
The same problem happens too with Debian Buster (Linux 4.15.0-2 [4.15.11]) |
|
The problem seems to be that the
|
|
Found it. Debian splits Linux header files in two folders: /usr/include/linux-headers-$kern_ver-common zfs-dkms seems configured to look for "include/linux/mmzone.h" inside the "-amd64" folder. One way to mitigate this is to symlink "include/linux" folder from "-common":
Now it compiles successfully. |
|
For Debian Stretch the files are in |
|
@creshal Sorry and thanks for fixing it :-) |
|
I experienced the issue @akorn encountered and found that at least for me it was an issue with the debian packaging: the It sounds like the issue @akorn and I encountered was separate from the one worked around by @turrini |
|
I agree, it was a separate issue. I also build my own packages based on the pkg-zfs repository. |
scripts/dkms.mkconf calls configure with
`--with-linux=${kernel_source_dir}`, but Debian puts it kernel source at
`/lib/modules/<version>/source`. This patch adds the same logic to the
DKMS file produced by `scripts/dkms.mkconf` that Debian has shipped in
its official ZFS packaging: at DKMS build time, it checks if the system
is a Debian system, and adjusts the path accordingly.
Signed-off-by: Antonio Russo <antonio.e.russo@gmail.com>
Closes openzfs#7358 openzfs#7540
|
I no longer get any useful error messages, but it still doesn't build. dkms output shows no error messages apart from "failed": |
The |
scripts/dkms.mkconf calls configure with
`--with-linux=${kernel_source_dir}`, but Debian puts it kernel source at
`/lib/modules/<version>/source`. This patch adds the same logic to the
DKMS file produced by `scripts/dkms.mkconf` that Debian has shipped in
its official ZFS packaging: at DKMS build time, it checks if the system
is a Debian system, and adjusts the path accordingly.
Signed-off-by: Antonio Russo <antonio.e.russo@gmail.com>
Closes openzfs#7358 openzfs#7540
|
Okay, patched dkms.mkconf the wrong way, properly patched it works. |
scripts/dkms.mkconf calls configure with
`--with-linux=${kernel_source_dir}`, but Debian puts it kernel source at
`/lib/modules/<version>/source`. This patch adds the same logic to the
DKMS file produced by `scripts/dkms.mkconf` that Debian has shipped in
its official ZFS packaging: at DKMS build time, it checks if the system
is a Debian system, and adjusts the path accordingly.
Reviewed-by: Brian Behlendorf <behlendorf1@llnl.gov>
Reviewed-by: George Melikov <mail@gmelikov.ru>
Signed-off-by: Antonio Russo <antonio.e.russo@gmail.com>
Closes openzfs#7358
Closes openzfs#7540
Closes openzfs#7554
scripts/dkms.mkconf calls configure with
`--with-linux=${kernel_source_dir}`, but Debian puts it kernel source at
`/lib/modules/<version>/source`. This patch adds the same logic to the
DKMS file produced by `scripts/dkms.mkconf` that Debian has shipped in
its official ZFS packaging: at DKMS build time, it checks if the system
is a Debian system, and adjusts the path accordingly.
Reviewed-by: Brian Behlendorf <behlendorf1@llnl.gov>
Reviewed-by: George Melikov <mail@gmelikov.ru>
Signed-off-by: Antonio Russo <antonio.e.russo@gmail.com>
Closes openzfs#7358
Closes openzfs#7540
Closes openzfs#7554
scripts/dkms.mkconf calls configure with
`--with-linux=${kernel_source_dir}`, but Debian puts it kernel source at
`/lib/modules/<version>/source`. This patch adds the same logic to the
DKMS file produced by `scripts/dkms.mkconf` that Debian has shipped in
its official ZFS packaging: at DKMS build time, it checks if the system
is a Debian system, and adjusts the path accordingly.
Reviewed-by: Brian Behlendorf <behlendorf1@llnl.gov>
Reviewed-by: George Melikov <mail@gmelikov.ru>
Signed-off-by: Antonio Russo <antonio.e.russo@gmail.com>
Closes openzfs#7358
Closes openzfs#7540
Closes openzfs#7554
System information
Describe the problem you're observing
dkms build zfs/0.7.7fails with:(Full log)
Describe how to reproduce the problem
autogen.sh && configure), build utils and dkms packages (make deb-utils deb-dkms)dkms build zfs/0.7.7to get to aforementioned error message.make deb-kmoddoesn't trigger any error fwiw and seems to build fine, but modprobe fails withIs this related, or a different issue?
The text was updated successfully, but these errors were encountered: