Bug#976638: still impossible to build module with 5.0.9-4
orl at ammd.net
orl at ammd.net
Sun Dec 13 08:08:17 GMT 2020
Hi!
Just upgraded from buster to bullseye yesterday, and it fails on
building nvidia kernel module due to some conf file missing in
linux-headers-5.0.9-4-amd64.
(selected) Output of
/var/lib/dkms/nvidia-legacy-340xx/340.108/build/make.log:
make -f /usr/src/linux-headers-5.9.0-4-common/scripts/Makefile.modpost
sed 's/ko$/o/'
/var/lib/dkms/nvidia-legacy-340xx/340.108/build/modules.order |
scripts/mod/modpost -m -o /var/lib/dkms/nv
idia-legacy-340xx/340.108/build/Module.symvers -e -i Module.symvers -T
-
ERROR: modpost: "drm_legacy_pci_exit"
[/var/lib/dkms/nvidia-legacy-340xx/340.108/build/nvidia.ko] undefined!
ERROR: modpost: "drm_legacy_pci_init"
[/var/lib/dkms/nvidia-legacy-340xx/340.108/build/nvidia.ko] undefined!
make[3]: ***
[/usr/src/linux-headers-5.9.0-4-common/scripts/Makefile.modpost:111 :
/var/lib/dkms/nvidia-legacy-340xx/340.108/build/Module.symvers] Erreur 1
make[3]: *** Suppression du fichier
« /var/lib/dkms/nvidia-legacy-340xx/340.108/build/Module.symvers »
make[2]: *** [/usr/src/linux-headers-5.9.0-4-common/Makefile:1709 :
modules] Erreur 2
make[2] : on quitte le répertoire
« /usr/src/linux-headers-5.9.0-4-amd64 »
make[1]: *** [Makefile:185 : __sub-make] Erreur 2
make[1] : on quitte le répertoire
« /usr/src/linux-headers-5.9.0-4-common »
make: *** [Makefile:209 : nvidia.ko] Erreur 2
make : on entre dans le répertoire
« /var/lib/dkms/nvidia-legacy-340xx/340.108/build/uvm »
cd ./..; make module SYSSRC=/lib/modules/5.9.0-4-amd64/source
SYSOUT=/lib/modules/5.9.0-4-amd64/build KBUILD_EXTMOD=./..
make[1] : on entre dans le répertoire
« /var/lib/dkms/nvidia-legacy-340xx/340.108/build »
NVIDIA: calling KBUILD...
make NV_MODULE_SUFFIX= KBUILD_OUTPUT=/lib/modules/5.9.0-4-amd64/build
KERNEL_SOURCES=/lib/modules/5.9.0-4-amd64/source
KERNEL_OUTPUT=/lib/modules/5.9.0-4-amd64/build KBUILD_VERBOSE=1 -C
/lib/modules/5.9.0-4-amd64/source
M=/var/lib/dkms/nvidia-legacy-340xx/340.108/build ARCH=x86_64 modules
make[2] : on entre dans le répertoire
« /usr/src/linux-headers-5.9.0-4-common »
make -C /usr/src/linux-headers-5.9.0-4-amd64 -f
/usr/src/linux-headers-5.9.0-4-common/Makefile modules
make[3] : on entre dans le répertoire
« /usr/src/linux-headers-5.9.0-4-amd64 »
test -e include/generated/autoconf.h -a -e include/config/auto.conf || (
\
echo >&2; \
echo >&2 " ERROR: Kernel configuration is invalid."; \
echo >&2 " include/generated/autoconf.h or
include/config/auto.conf are missing.";\
echo >&2 " Run 'make oldconfig && make prepare' on kernel src to
fix it."; \
echo >&2 ; \
/bin/false)
make -f /usr/src/linux-headers-5.9.0-4-common/scripts/Makefile.build
obj=.. \
single-build= \
need-builtin=1 need-modorder=1
/usr/src/linux-headers-5.9.0-4-common/scripts/Makefile.build:44:
/usr/src/linux-headers-5.9.0-4-common/../Makefile: Aucun fichier ou
dossier de ce type
make[4]: *** Aucune règle pour fabriquer la cible
« /usr/src/linux-headers-5.9.0-4-common/../Makefile ». Arrêt.
make[3]: *** [/usr/src/linux-headers-5.9.0-4-common/Makefile:1796 : ..]
Erreur 2
make[3] : on quitte le répertoire
« /usr/src/linux-headers-5.9.0-4-amd64 »
make[2]: *** [Makefile:185 : __sub-make] Erreur 2
make[2] : on quitte le répertoire
« /usr/src/linux-headers-5.9.0-4-common »
make[1]: *** [Makefile:209 : nvidia.ko] Erreur 2
make[1] : on quitte le répertoire
« /var/lib/dkms/nvidia-legacy-340xx/340.108/build »
make: *** [Makefile:225 : ../Module.symvers] Erreur 2
make : on quitte le répertoire
« /var/lib/dkms/nvidia-legacy-340xx/340.108/build/uvm »
When trying to run 'make oldconfig && make prepare' on kernel src to fix
it, I get:
$> make oldconfig && make prepare
sh: 0: cannot open
/usr/src/linux-headers-5.9.0-4-common/scripts/mkmakefile: No such file
make[1]: *** [/usr/src/linux-headers-5.9.0-4-common/Makefile:552 :
outputmakefile] Erreur 2
make: *** [/usr/src/linux-headers-5.9.0-4-common/Makefile:185 :
__sub-make] Erreur 2
If need be, I can send you my whole config (don't want to spam the
answers with it)
Thanks.
Aurélien
More information about the pkg-nvidia-devel
mailing list