FS#47499 - [nvidia-340xx-dkms] errors out while building the module

Attached to Project: Arch Linux
Opened by Vincent Van Houtte (zenlord) - Tuesday, 22 December 2015, 20:50 GMT
Last edited by Sven-Hendrik Haase (Svenstaro) - Sunday, 28 February 2016, 07:16 GMT
Task Type Bug Report
Category Packages: Extra
Status Closed
Assigned To Sven-Hendrik Haase (Svenstaro)
Felix Yan (felixonmars)
Architecture All
Severity Low
Priority Normal
Reported Version
Due in Version Undecided
Due Date Undecided
Percent Complete 100%
Votes 0
Private No

Details

Description:
Building the nvidia-340xx throws the following error and fails:

--
# cat /var/lib/dkms/nvidia/340.96/build/make.log
DKMS make.log for nvidia-340.96 for kernel 4.2.5-1-ARCH (x86_64)
di dec 22 21:43:49 CET 2015

gcc-version-check failed:

The compiler used to compile the kernel (gcc
5.2) does not exactly match the current compiler
(gcc 5.3). 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! ***

nvidia-modules-common.mk:201: recept voor doel 'build-sanity-checks' is mislukt
make: *** [build-sanity-checks] Fout 1
make: Map '/var/lib/dkms/nvidia/340.96/build/uvm' wordt binnengegaan
cd ./..; make module SYSSRC=/lib/modules/4.2.5-1-ARCH/build SYSOUT=/lib/modules/4.2.5-1-ARCH/build KBUILD_EXTMOD=./..
make[1]: Map '/var/lib/dkms/nvidia/340.96/build' wordt binnengegaan
NVIDIA: calling KBUILD...
make[2]: Map '/usr/lib/modules/4.2.5-1-ARCH/build' wordt binnengegaan
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: Bestand of map bestaat niet
make[3]: *** Er is geen regel om doel '../Makefile' te maken. Gestopt.
Makefile:1386: recept voor doel '_module_./..' is mislukt
make[2]: *** [_module_./..] Fout 2
make[2]: Map '/usr/lib/modules/4.2.5-1-ARCH/build' wordt verlaten
NVIDIA: left KBUILD.
nvidia.ko failed to build!
Makefile:184: recept voor doel 'nvidia.ko' is mislukt
make[1]: *** [nvidia.ko] Fout 1
make[1]: Map '/var/lib/dkms/nvidia/340.96/build' wordt verlaten
Makefile:219: recept voor doel '../Module.symvers' is mislukt
make: *** [../Module.symvers] Fout 2
make: Map '/var/lib/dkms/nvidia/340.96/build/uvm' wordt verlaten
--

Steps to reproduce:
pacman -S nvidia-340xx-dkms
dkms autoinstall
This task depends upon

Closed by  Sven-Hendrik Haase (Svenstaro)
Sunday, 28 February 2016, 07:16 GMT
Reason for closing:  No response
Additional comments about closing:  Request reopen if issue remains.
Comment by Sven-Hendrik Haase (Svenstaro) - Saturday, 13 February 2016, 20:26 GMT
Pinging Felix
Comment by Felix Yan (felixonmars) - Sunday, 14 February 2016, 02:09 GMT
4.2.5-1-ARCH is really outdated. Please either update the kernel, re-compile the kernel, or follow the given instructions to set IGNORE_CC_MISMATCH=1.

Loading...