You are not logged in.

#1 2022-01-17 00:37:24

mhill8
Member
Registered: 2020-11-10
Posts: 6

[SOLVED] Build of nvidia-dkms 470.74-1 fails: stdarg.h

I updated my system today.  The nvidia.ko driver did not get built; I tried building manually and got build errors.  Checking the pacman.log, I found it had also logged a build error.

Excerpt from /var/log/pacman.log:

[2022-01-16T16:29:52-0700] [ALPM-SCRIPTLET] ==> dkms install --no-depmod nvidia/470.74 -k 5.16.0-zen1-1-zen
[2022-01-16T16:29:58-0700] [ALPM-SCRIPTLET] Error! Bad return status for module build on kernel: 5.16.0-zen1-1-zen (x86_64)
[2022-01-16T16:29:58-0700] [ALPM-SCRIPTLET] Consult /var/lib/dkms/nvidia/470.74/build/make.log for more information.
[2022-01-16T16:29:58-0700] [ALPM-SCRIPTLET] ==> WARNING: `dkms install --no-depmod nvidia/470.74 -k 5.16.0-zen1-1-zen' exited 10

Errors from the make.log referenced above include:

DKMS make.log for nvidia-470.74 for kernel 5.16.0-zen1-1-zen (x86_64)
Sun Jan 16 04:38:49 PM MST 2022
make[1]: Entering directory '/usr/lib/modules/5.16.0-zen1-1-zen/build'
warning: the compiler differs from the one used to build the kernel
  The kernel was built by: gcc (GCC) 11.1.0
  You are using:           cc (GCC) 11.1.0
  SYMLINK /var/lib/dkms/nvidia/470.74/build/nvidia/nv-kernel.o
  SYMLINK /var/lib/dkms/nvidia/470.74/build/nvidia-modeset/nv-modeset-kernel.o
 CONFTEST: hash__remap_4k_pfn
[...]
 CONFTEST: ib_peer_memory_symbols
  CC [M]  /var/lib/dkms/nvidia/470.74/build/nvidia/nv.o
  CC [M]  /var/lib/dkms/nvidia/470.74/build/nvidia/nv-pci.o
  CC [M]  /var/lib/dkms/nvidia/470.74/build/nvidia/nv-acpi.o
  CC [M]  /var/lib/dkms/nvidia/470.74/build/nvidia/nv-cray.o
  CC [M]  /var/lib/dkms/nvidia/470.74/build/nvidia/nv-dma.o
  CC [M]  /var/lib/dkms/nvidia/470.74/build/nvidia/nv-i2c.o
  CC [M]  /var/lib/dkms/nvidia/470.74/build/nvidia/nv-mmap.o
  CC [M]  /var/lib/dkms/nvidia/470.74/build/nvidia/nv-p2p.o
  CC [M]  /var/lib/dkms/nvidia/470.74/build/nvidia/nv-pat.o
  CC [M]  /var/lib/dkms/nvidia/470.74/build/nvidia/nv-procfs.o
  CC [M]  /var/lib/dkms/nvidia/470.74/build/nvidia/nv-procfs-utils.o
In file included from /var/lib/dkms/nvidia/470.74/build/nvidia/nv.c:12:
/var/lib/dkms/nvidia/470.74/build/common/inc/os-interface.h:27:10: fatal error: stdarg.h: No such file or directory
   27 | #include <stdarg.h>
      |          ^~~~~~~~~~
compilation terminated.
In file included from /var/lib/dkms/nvidia/470.74/build/nvidia/nv-acpi.c:13:
/var/lib/dkms/nvidia/470.74/build/common/inc/os-interface.h:27:10: fatal error: stdarg.h: No such file or directory
   27 | #include <stdarg.h>
      |          ^~~~~~~~~~
compilation terminated.
[...]
make[2]: *** [scripts/Makefile.build:287: /var/lib/dkms/nvidia/470.74/build/nvidia/nv-vm.o] Error 1
In file included from /var/lib/dkms/nvidia/470.74/build/common/inc/nv-linux.h:15,
                 from /var/lib/dkms/nvidia/470.74/build/common/inc/nv-pci.h:15,
                 from /var/lib/dkms/nvidia/470.74/build/nvidia/nv-pci.c:13:
/var/lib/dkms/nvidia/470.74/build/common/inc/nv.h:22:12: fatal error: stddef.h: No such file or directory
   22 |   #include <stddef.h>     // NULL
      |            ^~~~~~~~~~
compilation terminated.
[etc.]

There is no /usr/include/stdarg.h , but there is /usr/lib/gcc/x86_64-pc-linux-gnu/11.1.0/include/stdarg.h .  The files /usr/include/linux/stddef.h and /usr/lib/gcc/x86_64-pc-linux-gnu/11.1.0/include/stddef.h exist.

The main reason for the problem is that I cannot upgrade the NVidia drivers past 470.74 because my video card is old (and I can't afford a decent modern one because of the crypto mining frenzy).

Here is this morning's list of updates (it actually updated about 134 packages):


alsa-card-profiles 1:0.3.42-2 -> 1:0.3.43-1
alsa-plugins 1:1.2.6-1 -> 1:1.2.6-2
amd-ucode 20211027.1d00989-1 -> 20211216.f682ecb-1
android-tools 31.0.3-2 -> 31.0.3-3
android-udev 20210501-1 -> 20220102-1
archlinux-keyring 20211028-1 -> 20220114-1
asio 1.18.2-1 -> 1.20.0-1
bash 5.1.012-1 -> 5.1.016-1
benchmark 1.6.0-1 -> 1.6.1-1
bind 9.16.23-3 -> 9.16.24-1
bluez-libs 5.62-1 -> 5.63-1
btrfs-progs 5.15.1-3 -> 5.16-1
ca-certificates-mozilla 3.73.1-1 -> 3.74-1
containerd 1.5.8-1 -> 1.5.9-2
copyq 5.0.0-1 -> 6.0.1-1
cpupower 5.15-2 -> 5.16-1
cryptsetup 2.4.2-3 -> 2.4.3-1
cups-filters 1.28.10-2 -> 1.28.11-1
curl 7.80.0-1 -> 7.81.0-1
ding-libs 0.6.1-3 -> 0.6.1-4
docker-compose 2.2.2-1 -> 2.2.3-2
double-conversion 3.1.7-1 -> 3.2.0-1
duf 0.6.2-3 -> 0.7.0-1
efivar 37-4 -> 38-1
evolution-data-server 3.42.2-1 -> 3.42.3-1
firefox 95.0.2-1 -> 96.0.1-1
fmt 8.0.1-2 -> 8.1.1-1
freerdp 2:2.4.1-2 -> 2:2.5.0-1
gjs 2:1.70.0-1 -> 2:1.70.0-3
glib2 2.70.2-1 -> 2.70.2-2
glu 9.0.2-1 -> 9.0.2-2
gnome-desktop 1:41.2-1 -> 1:41.3-1
gnuplot 5.4.2-1 -> 5.4.3-1
gobject-introspection-runtime 1.70.0-4 -> 1.70.0-5
hidapi 0.11.0-1 -> 0.11.2-1
iana-etc 20211203-1 -> 20220110-1
iproute2 5.15.0-2 -> 5.16.0-1
ipython 7.30.1-3 -> 7.31.0-1
iso-codes 4.8.0-1 -> 4.9.0-1
jack2 1.9.19-2 -> 1.9.20-2
js78 78.15.0-1 -> 78.15.0-2
kconfig 5.89.0-1 -> 5.90.0-1
kcoreaddons 5.89.0-1 -> 5.90.0-1
kitty 0.23.1-2 -> 0.24.1-1
kitty-terminfo 0.23.1-2 -> 0.24.1-1
knotifications 5.89.0-1 -> 5.90.0-1
kwindowsystem 5.89.0-1 -> 5.90.0-1
lib32-curl 7.80.0-1 -> 7.81.0-1
lib32-glu 9.0.2-1 -> 9.0.2-2
lib32-jack2 1.9.19-2 -> 1.9.20-1
lib32-libgusb 0.3.8-1 -> 0.3.10-1
lib32-libunwind 1.5.0-1 -> 1.6.2-1
lib32-mesa 21.3.3-1 -> 21.3.4-1
lib32-nss 3.73.1-1 -> 3.74-1
lib32-sqlite 3.37.0-1 -> 3.37.2-1
lib32-systemd 250-1 -> 250.2-1
libbpf 0.6.0-1 -> 0.6.1-1
libcurl-gnutls 7.80.0-1 -> 7.81.0-1
libgusb 0.3.8-1 -> 0.3.10-1
libnautilus-extension 41.1-2 -> 41.2-1
libnm 1.32.12-2 -> 1.34.0-1
libnumbertext 1.0.7-1 -> 1.0.8-1
libosinfo 1.9.0-1 -> 1.9.0-2
libpipeline 1.5.4-1 -> 1.5.5-1
libreoffice-still 7.1.8-3 -> 7.1.8-5
libsigsegv 2.13-1 -> 2.14-1
libsoup 2.74.2-1 -> 2.74.2-2
libsoup3 3.0.3-1 -> 3.0.4-2
libspeechd 0.11.0-1 -> 0.11.1-1
liburcu 0.13.0-1 -> 0.13.1-1
linux-firmware 20211027.1d00989-1 -> 20211216.f682ecb-1
linux-zen 5.15.12.zen1-1 -> 5.16.zen1-1
linux-zen-headers 5.15.12.zen1-1 -> 5.16.zen1-1
logrotate 3.18.1-1 -> 3.19.0-1
lshw B.02.19.2-3 -> B.02.19.2-4
lutris 0.5.9.1-3 -> 0.5.9.1-4
mdadm 4.1-2 -> 4.2-1
mercurial 6.0-3 -> 6.0.1-1
mesa 21.3.3-2 -> 21.3.4-1
mpv 1:0.34.0-4 -> 1:0.34.1-1
ndctl 72-1 -> 72.1-1
nss 3.73.1-1 -> 3.74-1
pacman 6.0.1-2 -> 6.0.1-3
pciutils 3.7.0-1 -> 3.7.0-2
perf 5.15-2 -> 5.16-1
perl-file-which 1.24-2 -> 1.27-1
poppler 21.11.0-1 -> 22.01.0-1
poppler-glib 21.11.0-1 -> 22.01.0-1
poppler-qt5 21.11.0-1 -> 22.01.0-1
postfix 3.6.3-3 -> 3.6.4-1
protobuf 3.19.1-1 -> 3.19.2-1
python-charset-normalizer 2.0.4-3 -> 2.0.10-1
python-distlib 0.3.3-4 -> 0.3.4-1
python-dulwich 0.20.26-3 -> 0.20.30-1
python-paramiko 2.7.2-5 -> 2.9.2-1
python-pillow 8.4.0-3 -> 9.0.0-1
python-pipenv 2021.11.23-3 -> 2022.1.8-2
python-psutil 5.8.0-4 -> 5.9.0-1
python-pygments 2.11.1-1 -> 2.11.2-1
python-setuptools 1:57.4.0-6 -> 1:59.1.0-1
python-tomli 1.2.2-4 -> 1.2.3-1
qt5-base 5.15.2+kde+r268-1 -> 5.15.2+kde+r291-1
qt5-declarative 5.15.2+kde+r41-1 -> 5.15.2+kde+r43-1
qt5-script 5.15.7-1 -> 5.15.8-2
qt5-svg 5.15.2+kde+r13-1 -> 5.15.2+kde+r16-1
qt5-wayland 5.15.2+kde+r38-1 -> 5.15.2+kde+r41-1
rtmpdump 1:2.4.r96.fa8646d-6 -> 1:2.4.r99.f1b83c1-1
rust 1:1.57.0-1 -> 1:1.58.0-1
scummvm 2.5.0-4 -> 2.5.1-1
sdl2 2.0.18-3 -> 2.0.20-1
soundtouch 2.3.0-1 -> 2.3.0-2
sqlite 3.37.0-1 -> 3.37.2-1
strace 5.15-1 -> 5.16-1
systemd 250-4 -> 250.2-2
systemd-libs 250-4 -> 250.2-2
systemd-sysvcompat 250-4 -> 250.2-2
usbutils 014-1 -> 014-2
util-linux 2.37.2-4 -> 2.37.2-5
util-linux-libs 2.37.2-4 -> 2.37.2-5
whois 5.5.10-1 -> 5.5.11-1
wine 7.0rc3-1 -> 7.0rc5-1
wxgtk-common 3.0.5.1-2 -> 3.0.5.1-3
wxgtk2 3.0.5.1-2 -> 3.0.5.1-3
wxgtk3 3.0.5.1-2 -> 3.0.5.1-3
xorg-server 21.1.2-2 -> 21.1.3-1
xorg-server-common 21.1.2-2 -> 21.1.3-1

Last edited by mhill8 (2022-01-17 04:13:24)

Offline

#2 2022-01-17 00:40:18

V1del
Forum Moderator
Registered: 2012-10-16
Posts: 21,740

Re: [SOLVED] Build of nvidia-dkms 470.74-1 fails: stdarg.h

You shouldn't need a manually downgraded driver, switch to the current set from the AUR, current is 470.94: https://aur.archlinux.org/packages/?O=0 … _Search=Go

Moving to AUR issues.

Last edited by V1del (2022-01-17 00:43:51)

Offline

#3 2022-01-17 04:12:14

mhill8
Member
Registered: 2020-11-10
Posts: 6

Re: [SOLVED] Build of nvidia-dkms 470.74-1 fails: stdarg.h

Okay, I was able to switch that and several other packages to the AUR versions and X works again.  Initially DRM wasn't working; it turned out nvidia_drm didn't get loaded, but I was able to load it manually.  I don't know if there's a problem with the way AUR set it up; I'll check if it loads next time I reboot, and add a loader manually if necessary.  Thank you, V1del!

Offline

Board footer

Powered by FluxBB