Skip to content
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

dkms fails on CentOS 7.9 kernel-lt #12264

Closed
NRGadmin opened this issue Jun 22, 2021 · 2 comments
Closed

dkms fails on CentOS 7.9 kernel-lt #12264

NRGadmin opened this issue Jun 22, 2021 · 2 comments
Labels
Status: Stale No recent activity for issue Status: Understood The root cause of the issue is known

Comments

@NRGadmin
Copy link

System information

Type Version/Name
Distribution Name Centos
Distribution Version 7.9.2009
Linux Kernel 5.4.127-1.el7.elrepo.x86_64
Architecture amd64
ZFS Version 2.0.4-1
SPL Version n/a

Describe the problem you're observing

dkms fails to build the zfs module on both 0.8.6-1 and 2.0.4-1

Loading new zfs-2.0.4 DKMS files...
Building for 5.4.127-1.el7.elrepo.x86_64
Building initial module for 5.4.127-1.el7.elrepo.x86_64
configure: error:
        *** Unable to build an empty module.

scripts/Makefile.clean:15: /var/lib/dkms/zfs/2.0.4/build/Makefile: No such file or directory
make[2]: *** No rule to make target `/var/lib/dkms/zfs/2.0.4/build/Makefile'.  Stop.
make[1]: *** [_clean_/var/lib/dkms/zfs/2.0.4/build] Error 2
make: *** [sub-make] Error 2
Error! Bad return status for module build on kernel: 5.4.127-1.el7.elrepo.x86_64 (x86_64)
Consult /var/lib/dkms/zfs/2.0.4/build/make.log for more information.

# cat /var/lib/dkms/zfs/2.0.4/build/make.log
DKMS make.log for zfs-2.0.4 for kernel 5.4.127-1.el7.elrepo.x86_64 (x86_64)
Tue Jun 22 09:21:52 CDT 2021
make: *** No targets specified and no makefile found.  Stop.

Running ./configure in /var/lib/dkms/zfs/2.0.4/build ends with:

checking kernel source directory... /usr/src/kernels/5.4.127-1.el7.elrepo.x86_64
checking kernel build directory... /usr/src/kernels/5.4.127-1.el7.elrepo.x86_64
checking kernel source version... 5.4.127-1.el7.elrepo.x86_64
checking kernel file name for module symbols... Module.symvers
checking whether modules can be built... no
configure: error:
        *** Unable to build an empty module.

config.log attached.
config.log

Describe how to reproduce the problem

# yum install https://www.elrepo.org/elrepo-release-7.el7.elrepo.noarch.rpm
# yum erase kernel-tools-libs kernel-debug-devel
# /usr/bin/yum -y swap -- erase kernel kernel-devel kernel-headers kernel-tools kernel-tools-lib -- install kernel-lt kernel-lt-devel kernel-lt-headers
# reboot
# yum install https://zfsonlinux.org/epel/zfs-release.el7_9.noarch.rpm
# yum-config-manager --disable zfs
# yum-config-manager --enable zfs-testing
# yum install zfs 

Include any warning/errors/backtraces from the system logs

No system logs.

@NRGadmin NRGadmin added Status: Triage Needed New issue which needs to be triaged Type: Defect Incorrect behavior (e.g. crash, hang) labels Jun 22, 2021
@rincebrain
Copy link
Contributor

rincebrain commented Jun 22, 2021

#11745 says hello.

Here's an explanation - tldr these builds of 5.4 and newer need gcc 9 or newer for building against them to do something reasonable, but for whatever ungodly reason elrepo's kernels don't have a dependency marked for this.

@stale
Copy link

stale bot commented Jun 24, 2022

This issue has been automatically marked as "stale" because it has not had any activity for a while. It will be closed in 90 days if no further activity occurs. Thank you for your contributions.

@stale stale bot added the Status: Stale No recent activity for issue label Jun 24, 2022
@stale stale bot closed this as completed Sep 22, 2022
@behlendorf behlendorf added Status: Understood The root cause of the issue is known and removed Type: Defect Incorrect behavior (e.g. crash, hang) Status: Triage Needed New issue which needs to be triaged labels Sep 23, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Status: Stale No recent activity for issue Status: Understood The root cause of the issue is known
Projects
None yet
Development

No branches or pull requests

3 participants