Hello I unfortunately have a problem since the kernel current stable update.
Kernel: 5.10.102-1-MANJARO
The nvidia-340xx-dkms I can build more.
:: Installation fortsetzen? [J/n] j
(1/1) Schlüssel im Schlüsselbund werden geprüft [##########################################] 100%
(1/1) Paket-Integrität wird überprüft [##########################################] 100%
(1/1) Paket-Dateien werden geladen [##########################################] 100%
(1/1) Auf Dateikonflikte wird geprüft [##########################################] 100%
(1/1) Verfügbarer Festplattenspeicher wird ermittelt [##########################################] 100%
:: Pre-transaction-Hooks werden gestartet …
(1/1) Remove upgraded DKMS modules
==> dkms remove nvidia/340.108
:: Paketänderungen werden verarbeitet …
(1/1) Herunterstufung läuft nvidia-340xx-dkms [##########################################] 100%
:: Post-transaction-Hooks werden gestartet …
(1/2) Arming ConditionNeedsUpdate...
(2/2) Install DKMS modules
==> dkms install --no-depmod nvidia/340.108 -k 5.10.102-1-MANJARO
Error! Bad return status for module build on kernel: 5.10.102-1-MANJARO (x86_64)
Consult /var/lib/dkms/nvidia/340.108/build/make.log for more information.
==> WARNING: `dkms install --no-depmod nvidia/340.108 -k 5.10.102-1-MANJARO' exited 10
And that is the make log.
DKMS make.log for nvidia-340.108 for kernel 5.10.102-1-MANJARO (x86_64)
Sa 5. Mär 15:04:58 CET 2022
gcc-version-check failed:
The compiler used to compile the kernel (gcc
11.1) does not exactly match the current compiler
(gcc 11.2). The Linux 2.6 kernel module loader
rejects kernel modules built with a version of gcc
that does not exactly match that of the compiler
used to build the running kernel.
If you know what you are doing and want to override
the gcc version check, you can do so by setting the
IGNORE_CC_MISMATCH environment variable to "1".
In any other case, set the CC environment variable
to the name of the compiler that was used to compile
the kernel.
*** Failed CC version check. Bailing out! ***
make: *** [nvidia-modules-common.mk:201: build-sanity-checks] Fehler 1
make: Verzeichnis „/var/lib/dkms/nvidia/340.108/build/uvm“ wird betreten
cd ./..; make module SYSSRC=/lib/modules/5.10.102-1-MANJARO/build SYSOUT=/lib/modules/5.10.102-1-MANJARO/build KBUILD_EXTMOD=./..
make[1]: Verzeichnis „/var/lib/dkms/nvidia/340.108/build“ wird betreten
NVIDIA: calling KBUILD...
make[2]: Verzeichnis „/usr/lib/modules/5.10.102-1-MANJARO/build“ wird betreten
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 ./scripts/Makefile.build obj=.. \
single-build= \
need-builtin=1 need-modorder=1
scripts/Makefile.build:44: ../Makefile: Datei oder Verzeichnis nicht gefunden
make[3]: *** Keine Regel, um „../Makefile“ zu erstellen. Schluss.
make[2]: *** [Makefile:1822: ..] Fehler 2
make[2]: Verzeichnis „/usr/lib/modules/5.10.102-1-MANJARO/build“ wird verlassen
NVIDIA: left KBUILD.
nvidia.ko failed to build!
make[1]: *** [Makefile:202: nvidia.ko] Fehler 1
make[1]: Verzeichnis „/var/lib/dkms/nvidia/340.108/build“ wird verlassen
make: *** [Makefile:222: ../Module.symvers] Fehler 2
make: Verzeichnis „/var/lib/dkms/nvidia/340.108/build/uvm“ wird verlassen
Have you also the problem and possibly already a solution?
thanks for the tip.
I tried now to build the package nvidia-340xx-dkms with the LANG=C makepkg -si.
The build of the package worked as before but during the installation I got the same error again.
Oh sorry. You see I am a beginner as of package building. You could also say clueless.
:: 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 upgraded DKMS modules
==> dkms remove nvidia/340.108
:: Processing package changes...
(1/1) reinstalling nvidia-340xx-dkms [##########################################] 100%
:: Running post-transaction hooks...
(1/2) Arming ConditionNeedsUpdate...
(2/2) Install DKMS modules
==> dkms install --no-depmod nvidia/340.108 -k 5.10.102-1-MANJARO
Error! Bad return status for module build on kernel: 5.10.102-1-MANJARO (x86_64)
Consult /var/lib/dkms/nvidia/340.108/build/make.log for more information.
==> WARNING: `dkms install --no-depmod nvidia/340.108 -k 5.10.102-1-MANJARO' exited 10
/var/lib/dkms/nvidia/340.108/build/make.log:
DKMS make.log for nvidia-340.108 for kernel 5.10.102-1-MANJARO (x86_64)
Sat Mar 5 16:34:46 CET 2022
gcc-version-check failed:
The compiler used to compile the kernel (gcc
11.1) does not exactly match the current compiler
(gcc 11.2). The Linux 2.6 kernel module loader
rejects kernel modules built with a version of gcc
that does not exactly match that of the compiler
used to build the running kernel.
If you know what you are doing and want to override
the gcc version check, you can do so by setting the
IGNORE_CC_MISMATCH environment variable to "1".
In any other case, set the CC environment variable
to the name of the compiler that was used to compile
the kernel.
*** Failed CC version check. Bailing out! ***
make: *** [nvidia-modules-common.mk:201: build-sanity-checks] Error 1
make: Entering directory '/var/lib/dkms/nvidia/340.108/build/uvm'
cd ./..; make module SYSSRC=/lib/modules/5.10.102-1-MANJARO/build SYSOUT=/lib/modules/5.10.102-1-MANJARO/build KBUILD_EXTMOD=./..
make[1]: Entering directory '/var/lib/dkms/nvidia/340.108/build'
NVIDIA: calling KBUILD...
make[2]: Entering directory '/usr/lib/modules/5.10.102-1-MANJARO/build'
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 ./scripts/Makefile.build obj=.. \
single-build= \
need-builtin=1 need-modorder=1
scripts/Makefile.build:44: ../Makefile: No such file or directory
make[3]: *** No rule to make target '../Makefile'. Stop.
make[2]: *** [Makefile:1822: ..] Error 2
make[2]: Leaving directory '/usr/lib/modules/5.10.102-1-MANJARO/build'
NVIDIA: left KBUILD.
nvidia.ko failed to build!
make[1]: *** [Makefile:202: nvidia.ko] Error 1
make[1]: Leaving directory '/var/lib/dkms/nvidia/340.108/build'
make: *** [Makefile:222: ../Module.symvers] Error 2
make: Leaving directory '/var/lib/dkms/nvidia/340.108/build/uvm'