FS#59546 - [linux-hardened] nvidia-dkms failed at building module

Attached to Project: Arch Linux
Opened by Andri (nobodyiswatching) - Tuesday, 07 August 2018, 02:02 GMT
Last edited by Doug Newgard (Scimmia) - Wednesday, 08 August 2018, 15:51 GMT
Task Type Bug Report
Category Packages: Extra
Status Closed
Assigned To Levente Polyak (anthraxx)
Architecture x86_64
Severity Medium
Priority Normal
Reported Version
Due in Version Undecided
Due Date Undecided
Percent Complete 100%
Votes 0
Private No

Details

Description:
nvidia-dkms failed at building module during pacman -Syu; went without a hitch with the newly minted linux-4.17.12.arch1-1-x86_64

Additional info:
linux-hardened 4.17.12.a-1-hardened
nvidia-dkms-396.45-5
vanilla config files

Steps to reproduce:
1. pacman -Syu
2. dkms-ing with linux-hardened failed; unresolvable with nvidia-dkms reinstallation
This task depends upon

Closed by  Doug Newgard (Scimmia)
Wednesday, 08 August 2018, 15:51 GMT
Reason for closing:  Fixed
Additional comments about closing:  linux-hardened 4.17.13.a-1
Comment by Doug Newgard (Scimmia) - Tuesday, 07 August 2018, 03:10 GMT
Without any kind of logs, this ticket is useless.
Comment by Andri (nobodyiswatching) - Tuesday, 07 August 2018, 06:36 GMT
warning: nvidia-dkms-396.45-5 is up to date -- reinstalling
resolving dependencies...
looking for conflicting packages...

Packages (1) nvidia-dkms-396.45-5

Total Installed Size: 24.09 MiB
Net Upgrade Size: 0.00 MiB

:: Proceed with installation? [Y/n] y
(1/1) checking keys in keyring [#############################################################################] 100%
(1/1) checking package integrity [#############################################################################] 100%
(1/1) loading package files [#############################################################################] 100%
(1/1) checking for file conflicts [#############################################################################] 100%
(1/1) checking available disk space [#############################################################################] 100%
:: Running pre-transaction hooks...
(1/1) Remove DKMS modules
==> dkms remove nvidia/396.45 -k 4.17.12-arch1-1-ARCH
:: Processing package changes...
(1/1) reinstalling nvidia-dkms [#############################################################################] 100%
:: Running post-transaction hooks...
(1/3) Install DKMS modules
==> dkms install nvidia/396.45 -k 4.17.12.a-1-hardened
Error! Bad return status for module build on kernel: 4.17.12.a-1-hardened (x86_64)
Consult /var/lib/dkms/nvidia/396.45/build/make.log for more information.
==> dkms install nvidia/396.45 -k 4.17.12-arch1-1-ARCH
(2/3) Update nvidia module in initcpio
==> Building image from preset: /etc/mkinitcpio.d/linux-hardened.preset: 'default'
-> -k /boot/vmlinuz-linux-hardened -c /etc/mkinitcpio.conf -g /boot/initramfs-linux-hardened.img
==> Starting build: 4.17.12.a-1-hardened
-> Running build hook: [base]
-> Running build hook: [udev]
-> Running build hook: [autodetect]
-> Running build hook: [keyboard]
-> Running build hook: [keymap]
-> Running build hook: [modconf]
-> Running build hook: [block]
-> Running build hook: [encrypt]
-> Running build hook: [filesystems]
-> Running build hook: [fsck]
==> ERROR: module not found: `nvidia'
==> ERROR: module not found: `nvidia_modeset'
==> ERROR: module not found: `nvidia_uvm'
==> ERROR: module not found: `nvidia_drm'
==> Generating module dependencies
==> Creating lz4-compressed initcpio image: /boot/initramfs-linux-hardened.img
==> WARNING: errors were encountered during the build. The image may not be complete.
==> Building image from preset: /etc/mkinitcpio.d/linux-hardened.preset: 'fallback'
-> -k /boot/vmlinuz-linux-hardened -c /etc/mkinitcpio.conf -g /boot/initramfs-linux-hardened-fallback.img -S autodetect
==> Starting build: 4.17.12.a-1-hardened
-> Running build hook: [base]
-> Running build hook: [udev]
-> Running build hook: [keyboard]
-> Running build hook: [keymap]
-> Running build hook: [modconf]
-> Running build hook: [block]
==> WARNING: Possibly missing firmware for module: aic94xx
==> WARNING: Possibly missing firmware for module: wd719x
-> Running build hook: [encrypt]
-> Running build hook: [filesystems]
-> Running build hook: [fsck]
==> ERROR: module not found: `nvidia'
==> ERROR: module not found: `nvidia_modeset'
==> ERROR: module not found: `nvidia_uvm'
==> ERROR: module not found: `nvidia_drm'
==> Generating module dependencies
==> Creating lz4-compressed initcpio image: /boot/initramfs-linux-hardened-fallback.img
==> WARNING: errors were encountered during the build. The image may not be complete.
==> Building image from preset: /etc/mkinitcpio.d/linux.preset: 'default'
-> -k /boot/vmlinuz-linux -c /etc/mkinitcpio.conf -g /boot/initramfs-linux.img
==> Starting build: 4.17.12-arch1-1-ARCH
-> Running build hook: [base]
-> Running build hook: [udev]
-> Running build hook: [autodetect]
-> Running build hook: [keyboard]
-> Running build hook: [keymap]
-> Running build hook: [modconf]
-> Running build hook: [block]
-> Running build hook: [encrypt]
-> Running build hook: [filesystems]
-> Running build hook: [fsck]
==> Generating module dependencies
==> Creating lz4-compressed initcpio image: /boot/initramfs-linux.img
==> Image generation successful
==> Building image from preset: /etc/mkinitcpio.d/linux.preset: 'fallback'
-> -k /boot/vmlinuz-linux -c /etc/mkinitcpio.conf -g /boot/initramfs-linux-fallback.img -S autodetect
==> Starting build: 4.17.12-arch1-1-ARCH
-> Running build hook: [base]
-> Running build hook: [udev]
-> Running build hook: [keyboard]
-> Running build hook: [keymap]
-> Running build hook: [modconf]
-> Running build hook: [block]
==> WARNING: Possibly missing firmware for module: aic94xx
==> WARNING: Possibly missing firmware for module: wd719x
-> Running build hook: [encrypt]
-> Running build hook: [filesystems]
-> Running build hook: [fsck]
==> Generating module dependencies
==> Creating lz4-compressed initcpio image: /boot/initramfs-linux-fallback.img
==> Image generation successful
error: command failed to execute correctly
(3/3) Arming ConditionNeedsUpdate...

The problem arose when I tried to access /var/lib/dkms/nvidia/396.45/build/make.log; there isn't anything there, so this is the only relevant log I can get my hands on.
Comment by Juha Ristimäki (juristi) - Tuesday, 07 August 2018, 06:56 GMT
I had the same issue and found the make.log. The problem for me at least was that kernel 4.17.12.a-1-hardened was built with GCC 8.1.1 and the system had version 8.2 automatically installed by pacman.

After downgrading gcc and gcc-libs to version 8.1.1+20180531-1 and successfully rebuilding the nvidia-dkms, I no longer have got the problematic make.log. Sorry.

This bug will probably disappear when a new hardened kernel release is made with the newer 8.2 gcc. Is there some kind of gcc release check list that would prompt for stabilizing new kernel packages at the same time?

Loading...