You are not logged in.

#1 2016-09-16 08:22:12

abyth
Member
Registered: 2016-09-16
Posts: 2

[solved] nvidia-340xx-dkms not able to compile (gcc version)

Hello everyone,

this morning one of my older machines had issues updating to the new kernel 4.7.3.2. The package nvidia-340xx-dkms was not able to built due to a version conflict with the system gcc and the one used for the kernel build. Here is the make.log

DKMS make.log for nvidia-340.96 for kernel 4.7.3-2-ARCH (x86_64)
Fr 16. Sep 10:15:19 CEST 2016

gcc-version-check failed:

The compiler used to compile the kernel (gcc
6.1) does not exactly match the current compiler
(gcc 6.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.96/build/uvm“ wird betreten
cd ./..; make module SYSSRC=/lib/modules/4.7.3-2-ARCH/build SYSOUT=/lib/modules/4.7.3-2-ARCH/build KBUILD_EXTMOD=./..
make[1]: Verzeichnis „/var/lib/dkms/nvidia/340.96/build“ wird betreten
NVIDIA: calling KBUILD...
make[2]: Verzeichnis „/usr/lib/modules/4.7.3-2-ARCH/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)
mkdir -p ./../.tmp_versions ; rm -f ./../.tmp_versions/*
make -f ./scripts/Makefile.build obj=./..
scripts/Makefile.build:44: ../Makefile: Datei oder Verzeichnis nicht gefunden
make[3]: *** Keine Regel, um „../Makefile“ zu erstellen.  Schluss.
make[2]: *** [Makefile:1457: _module_./..] Fehler 2
make[2]: Verzeichnis „/usr/lib/modules/4.7.3-2-ARCH/build“ wird verlassen
NVIDIA: left KBUILD.
nvidia.ko failed to build!
make[1]: *** [Makefile:185: nvidia.ko] Fehler 1
make[1]: Verzeichnis „/var/lib/dkms/nvidia/340.96/build“ wird verlassen
make: *** [Makefile:219: ../Module.symvers] Fehler 2
make: Verzeichnis „/var/lib/dkms/nvidia/340.96/build/uvm“ wird verlassen

Last edited by abyth (2016-10-13 07:38:56)

Offline

#2 2016-09-16 18:43:13

Lone_Wolf
Member
From: Netherlands, Europe
Registered: 2005-10-04
Posts: 11,868

Re: [solved] nvidia-340xx-dkms not able to compile (gcc version)

linux 4.7.4-1 was just released into core , try with that one.


Disliking systemd intensely, but not satisfied with alternatives so focusing on taming systemd.


(A works at time B)  && (time C > time B ) ≠  (A works at time C)

Offline

#3 2016-10-13 07:28:33

abyth
Member
Registered: 2016-09-16
Posts: 2

Re: [solved] nvidia-340xx-dkms not able to compile (gcc version)

One of the newer kernel images solved the issue, thank you very much

Offline

Board footer

Powered by FluxBB