[SOLVED] Unable to build the NVIDIA kernel module. Driver: Legacy GPU Version 173.14.39, OS: Ubuntu

Error: Unable to build the NVIDIA kernel module.
Driver: Legacy GPU Version 173.14.39,
OS: Ubuntu 16 x86_64,
Card: GeForce GTX780 Ti

At first I tried installing with the latest drivers supporting the GTX780 Ti, I believed was 352.63. It gave me the following warning:The NVIDIA GeForce FX 5500 GPU installed in this system is supported through the NVIDIA 173.14.xx legacy Linux graphics drivers. – So I downloaded that version.

Trying to install the Legacy GPU Version 173.14.39 drivers, and it fails… telling me “Unable to build the NVIDIA kernel module.”

Below is the very long nvidia-installer.log:

nvidia-installer log file ‘/var/log/nvidia-installer.log’
creation time: Sat Aug 6 17:39:42 2016
installer version: 1.0.7

PATH: /usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin

option status:
license pre-accepted : false
update : false
force update : false
expert : false
uninstall : false
driver info : false
precompiled interfaces : true
no ncurses color : false
query latest version : false
OpenGL header files : true
no questions : false
silent : false
no recursion : false
no backup : false
kernel module only : false
sanity : false
add this kernel : false
no runlevel check : false
no network : false
no ABI note : false
no RPMs : false
no kernel module : false
force SELinux : default
no X server check : false
no cc version check : false
run distro scripts : true
no nouveau check : false
run nvidia-xconfig : false
sigwinch work around : true
force tls : (not specified)
force compat32 tls : (not specified)
X install prefix : (not specified)
X library install path : (not specified)
X module install path : (not specified)
OpenGL install prefix : (not specified)
OpenGL install libdir : (not specified)
compat32 install chroot : (not specified)
compat32 install prefix : (not specified)
compat32 install libdir : (not specified)
utility install prefix : (not specified)
utility install libdir : (not specified)
installer prefix : (not specified)
doc install prefix : (not specified)
kernel name : (not specified)
kernel include path : (not specified)
kernel source path : (not specified)
kernel output path : (not specified)
kernel install path : (not specified)
precompiled kernel interfaces path : (not specified)
precompiled kernel interfaces url : (not specified)
proc mount point : /proc
ui : (not specified)
tmpdir : /tmp
ftp mirror : ftp://download.nvidia.com
RPM file list : (not specified)
selinux chcon type : (not specified)

Using: nvidia-installer ncurses user interface
→ License accepted.
→ Installing NVIDIA driver version 173.14.39.
→ Performing CC sanity check with CC=“cc”.
→ Performing CC version check with CC=“cc”.
→ Kernel source path: ‘/lib/modules/4.4.0-31-generic/build’
→ Kernel output path: ‘/lib/modules/4.4.0-31-generic/build’
→ Performing rivafb check.
→ Performing nvidiafb check.
→ Performing Xen check.
→ Cleaning kernel module build directory.
executing: ‘cd ./usr/src/nv; make clean’…
→ Building kernel module:
executing: ‘cd ./usr/src/nv; make module SYSSRC=/lib/modules/4.4.0-31-generi
c/build SYSOUT=/lib/modules/4.4.0-31-generic/build’…
NVIDIA: calling KBUILD…
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/selfgz26324/NVIDIA-Linux-x86_64-173.14.39-pkg2/usr/src/nv/.tmp
versions ; rm -f /tmp/selfgz26324/NVIDIA-Linux-x86_64-173.14.39-pkg2/usr/sr
c/nv/.tmp_versions/*
make -f ./scripts/Makefile.build obj=/tmp/selfgz26324/NVIDIA-Linux-x86_64-17
3.14.39-pkg2/usr/src/nv
cc -Wp,-MD,/tmp/selfgz26324/NVIDIA-Linux-x86_64-173.14.39-pkg2/usr/src/nv/
.nv.o.d -nostdinc -isystem /usr/lib/gcc/x86_64-linux-gnu/5/include -I./arc
h/x86/include -Iarch/x86/include/generated/uapi -Iarch/x86/include/generated
-Iinclude -I./arch/x86/include/uapi -Iarch/x86/include/generated/uapi -I./i
nclude/uapi -Iinclude/generated/uapi -include ./include/linu
x/kconfig.h -Iubuntu/include -D__KERNEL
_ -fno-pie -Wall -Wundef -Wstrict-p
rototypes -Wno-trigraphs -fno-strict-aliasing -fno-common -Werror-implicit-f
unction-declaration -Wno-format-security -std=gnu89 -fno-pie -no-pie -mno-ss
e -mno-mmx -mno-sse2 -mno-3dnow -mno-avx -m64 -falign-jumps=1 -falign-loops=
1 -mno-80387 -mno-fp-ret-in-387 -mpreferred-stack-boundary=3 -mskip-rax-setu
p -mtune=generic -mno-red-zone -mcmodel=kernel -funit-at-a-time -maccumulate
-outgoing-args -DCONFIG_X86_X32_ABI -DCONFIG_AS_CFI=1 -DCONFIG_AS_CFI_SIGNAL
FRAME=1 -DCONFIG_AS_CFI_SECTIONS=1 -DCONFIG_AS_FXSAVEQ=1 -DCONFIG_AS_SSSE3=
1 -DCONFIG_AS_CRC32=1 -DCONFIG_AS_AVX=1 -DCONFIG_AS_AVX2=1 -DCONFIG_AS_SHA1

NI=1 -DCONFIG_AS_SHA256_NI=1 -pipe -Wno-sign-compare -fno-asynchronous-unwin
d-tables -fno-delete-null-pointer-checks -O2 --param=allow-store-data-races=
0 -Wframe-larger-than=1024 -fstack-protector-strong -Wno-unused-but-set-vari
able -fno-omit-frame-pointer -fno-optimize-sibling-calls -fno-var-tracking-a
ssignments -pg -mfentry -DCC_USING_F
ENTRY -Wdeclaration-after-statement -Wno-pointer-sign -fno-strict-overflow -
fconserve-stack -Werror=implicit-int -Werror=strict-prototypes -Werror=date-
time -DCC_HAVE_ASM_GOTO -I/tmp/selfgz26324/NVIDIA-Linux-x86_64-173.14.39-pkg
2/usr/src/nv -Wall -Wimplicit -Wreturn-type -Wswitch -Wformat -Wchar-subscri
pts -Wparentheses -Wpointer-arith -Wno-multichar -Werror -mcmodel=kernel -mn
o-red-zone -MD -Wsign-compare -Wno-cast-qual -Wno-error -D__KERNEL__ -DMODUL
E -DNVRM -DNV_VERSION_STRING="173.14.39" -UDEBUG -U_DEBUG -DNDEBUG -DMODU
LE -D"KBUILD_STR(s)=#s” -D"KBUILD_BASENAME=KBUILD_STR(nv)" -D"KBUILD_MODNA
ME=KBUILD_STR(nvidia)" -c -o /tmp/selfgz26324/NVIDIA-Linux-x86_64-173.14.39-
pkg2/usr/src/nv/.tmp_nv.o /tmp/selfgz26324/NVIDIA-Linux-x86_64-173.14.39-pkg
2/usr/src/nv/nv.c
In file included from /tmp/selfgz26324/NVIDIA-Linux-x86_64-173.14.39-pkg2/us
r/src/nv/nv-linux.h:16:0,
from /tmp/selfgz26324/NVIDIA-Linux-x86_64-173.14.39-pkg2/us
r/src/nv/nv.c:13:
/tmp/selfgz26324/NVIDIA-Linux-x86_64-173.14.39-pkg2/usr/src/nv/conftest.h:42
:2: error: #error acpi_walk_namespace() conftest failed!
#error acpi_walk_namespace() conftest failed!
^
/tmp/selfgz26324/NVIDIA-Linux-x86_64-173.14.39-pkg2/usr/src/nv/conftest.h:43
:2: error: #error acpi_os_wait_events_complete() conftest failed!
#error acpi_os_wait_events_complete() conftest failed!
^
In file included from include/linux/bitops.h:36:0,
from include/linux/kernel.h:10,
from include/linux/sched.h:17,
from include/linux/utsname.h:5,
from /tmp/selfgz26324/NVIDIA-Linux-x86_64-173.14.39-pkg2/us
r/src/nv/nv-linux.h:25,
from /tmp/selfgz26324/NVIDIA-Linux-x86_64-173.14.39-pkg2/us
r/src/nv/nv.c:13:
./arch/x86/include/asm/bitops.h: In function ‘set_bit’:
./arch/x86/include/asm/bitops.h:53:61: warning: pointer of type ‘void *’
used in arithmetic [-Wpointer-arith]
#define CONST_MASK_ADDR(nr, addr) BITOP_ADDR((void )(addr) + ((nr)>>3))
^
./arch/x86/include/asm/bitops.h:43:49: note: in definition of macro ‘BITOP
_ADDR’
#define BITOP_ADDR(x) “+m” (
(volatile long *) (x))
^
./arch/x86/include/asm/bitops.h:76:6: note: in expansion of macro ‘CONST_M
ASK_ADDR’
: CONST_MASK_ADDR(nr, addr)
^
./arch/x86/include/asm/bitops.h: In function ‘clear_bit’:
./arch/x86/include/asm/bitops.h:53:61: warning: pointer of type ‘void *’
used in arithmetic [-Wpointer-arith]
#define CONST_MASK_ADDR(nr, addr) BITOP_ADDR((void )(addr) + ((nr)>>3))
^
./arch/x86/include/asm/bitops.h:43:49: note: in definition of macro ‘BITOP
_ADDR’
#define BITOP_ADDR(x) “+m” (
(volatile long *) (x))
^
./arch/x86/include/asm/bitops.h:114:6: note: in expansion of macro ‘CONST_
MASK_ADDR’
: CONST_MASK_ADDR(nr, addr)
^
./arch/x86/include/asm/bitops.h: In function ‘change_bit’:
./arch/x86/include/asm/bitops.h:53:61: warning: pointer of type ‘void *’
used in arithmetic [-Wpointer-arith]
#define CONST_MASK_ADDR(nr, addr) BITOP_ADDR((void )(addr) + ((nr)>>3))
^
./arch/x86/include/asm/bitops.h:43:49: note: in definition of macro ‘BITOP
_ADDR’
#define BITOP_ADDR(x) “+m” (
(volatile long *) (x))
^
./arch/x86/include/asm/bitops.h:187:6: note: in expansion of macro ‘CONST_
MASK_ADDR’
: CONST_MASK_ADDR(nr, addr)
^
In file included from include/linux/list.h:6:0,
from include/linux/preempt.h:10,
from include/linux/spinlock.h:50,
from include/linux/seqlock.h:35,
from include/linux/time.h:5,
from include/uapi/linux/timex.h:56,
from include/linux/timex.h:56,
from include/linux/sched.h:19,
from include/linux/utsname.h:5,
from /tmp/selfgz26324/NVIDIA-Linux-x86_64-173.14.39-pkg2/us
r/src/nv/nv-linux.h:25,
from /tmp/selfgz26324/NVIDIA-Linux-x86_64-173.14.39-pkg2/us
r/src/nv/nv.c:13:
include/linux/list.h: In function ‘list_del’:
include/linux/poison.h:22:39: warning: pointer of type ‘void *’ used in
arithmetic [-Wpointer-arith]
#define LIST_POISON1 ((void *) 0x100 + POISON_POINTER_DELTA)
^
include/linux/list.h:108:16: note: in expansion of macro ‘LIST_POISON1’
entry->next = LIST_POISON1;
^
include/linux/poison.h:23:39: warning: pointer of type ‘void *’ used in
arithmetic [-Wpointer-arith]
#define LIST_POISON2 ((void *) 0x200 + POISON_POINTER_DELTA)
^
include/linux/list.h:109:16: note: in expansion of macro ‘LIST_POISON2’
entry->prev = LIST_POISON2;
^
include/linux/list.h: In function ‘hlist_del’:
include/linux/poison.h:22:39: warning: pointer of type ‘void *’ used in
arithmetic [-Wpointer-arith]
#define LIST_POISON1 ((void *) 0x100 + POISON_POINTER_DELTA)
^
include/linux/list.h:627:12: note: in expansion of macro ‘LIST_POISON1’
n->next = LIST_POISON1;
^
include/linux/poison.h:23:39: warning: pointer of type ‘void *’ used in
arithmetic [-Wpointer-arith]
#define LIST_POISON2 ((void *) 0x200 + POISON_POINTER_DELTA)
^
include/linux/list.h:628:13: note: in expansion of macro ‘LIST_POISON2’
n->pprev = LIST_POISON2;
^
In file included from include/uapi/linux/stddef.h:1:0,
from include/linux/stddef.h:4,
from ./include/uapi/linux/posix_types.h:4,
from include/uapi/linux/types.h:13,
from include/linux/types.h:5,
from include/uapi/linux/capability.h:16,
from include/linux/capability.h:15,
from include/linux/sched.h:15,
from include/linux/utsname.h:5,
from /tmp/selfgz26324/NVIDIA-Linux-x86_64-173.14.39-pkg2/us
r/src/nv/nv-linux.h:25,
from /tmp/selfgz26324/NVIDIA-Linux-x86_64-173.14.39-pkg2/us
r/src/nv/nv.c:13:
include/asm-generic/qrwlock.h: In function ‘queued_write_trylock’:
include/asm-generic/qrwlock.h:93:36: warning: comparison between signed and
unsigned integer expressions [-Wsign-compare]
cnts, cnts | QW_LOCKED) == cnts);
^
include/linux/compiler.h:165:40: note: in definition of macro ‘likely’
# define likely(x) builtin_expect(!!(x), 1)
^
In file included from include/linux/list.h:6:0,
from include/linux/preempt.h:10,
from include/linux/spinlock.h:50,
from include/linux/seqlock.h:35,
from include/linux/time.h:5,
from include/uapi/linux/timex.h:56,
from include/linux/timex.h:56,
from include/linux/sched.h:19,
from include/linux/utsname.h:5,
from /tmp/selfgz26324/NVIDIA-Linux-x86_64-173.14.39-pkg2/us
r/src/nv/nv-linux.h:25,
from /tmp/selfgz26324/NVIDIA-Linux-x86_64-173.14.39-pkg2/us
r/src/nv/nv.c:13:
include/linux/rculist.h: In function ‘list_del_rcu’:
include/linux/poison.h:23:39: warning: pointer of type ‘void *’ used in
arithmetic [-Wpointer-arith]
#define LIST_POISON2 ((void *) 0x200 + POISON_POINTER_DELTA)
^
include/linux/rculist.h:132:16: note: in expansion of macro ‘LIST_POISON2â
€™
entry->prev = LIST_POISON2;
^
include/linux/rculist.h: In function ‘list_replace_rcu’:
include/linux/poison.h:23:39: warning: pointer of type ‘void *’ used in
arithmetic [-Wpointer-arith]
#define LIST_POISON2 ((void *) 0x200 + POISON_POINTER_DELTA)
^
include/linux/rculist.h:178:14: note: in expansion of macro ‘LIST_POISON2â
€™
old->prev = LIST_POISON2;
^
include/linux/rculist.h: In function ‘hlist_del_rcu’:
include/linux/poison.h:23:39: warning: pointer of type ‘void *’ used in
arithmetic [-Wpointer-arith]
#define LIST_POISON2 ((void *) 0x200 + POISON_POINTER_DELTA)
^
include/linux/rculist.h:343:13: note: in expansion of macro ‘LIST_POISON2â
€™
n->pprev = LIST_POISON2;
^
include/linux/rculist.h: In function ‘hlist_replace_rcu’:
include/linux/poison.h:23:39: warning: pointer of type ‘void *’ used in
arithmetic [-Wpointer-arith]
#define LIST_POISON2 ((void *) 0x200 + POISON_POINTER_DELTA)
^
include/linux/rculist.h:363:15: note: in expansion of macro ‘LIST_POISON2â
€™
old->pprev = LIST_POISON2;
^
In file included from ./arch/x86/include/asm/preempt.h:5:0,
from include/linux/preempt.h:59,
from include/linux/spinlock.h:50,
from include/linux/seqlock.h:35,
from include/linux/time.h:5,
from include/uapi/linux/timex.h:56,
from include/linux/timex.h:56,
from include/linux/sched.h:19,
from include/linux/utsname.h:5,
from /tmp/selfgz26324/NVIDIA-Linux-x86_64-173.14.39-pkg2/us
r/src/nv/nv-linux.h:25,
from /tmp/selfgz26324/NVIDIA-Linux-x86_64-173.14.39-pkg2/us
r/src/nv/nv.c:13:
include/linux/percpu-refcount.h: In function ‘percpu_ref_get_many’:
./arch/x86/include/asm/percpu.h:130:31: warning: comparison between signed a
nd unsigned integer expressions [-Wsign-compare]
((val) == 1 || (val) == -1)) ?
^
./arch/x86/include/asm/percpu.h:419:34: note: in expansion of macro ‘percp
u_add_op’
#define this_cpu_add_1(pcp, val) percpu_add_op((pcp), val)
^
include/linux/percpu-defs.h:364:11: note: in expansion of macro ‘this_cpu

add_1’
case 1: stem##1(variable, VA_ARGS);break;
^
include/linux/percpu-defs.h:496:33: note: in expansion of macro ‘__pcpu_si
ze_call’
#define this_cpu_add(pcp, val) pcpu_size_call(this_cpu_add, pcp, val)
^
include/linux/percpu-refcount.h:177:3: note: in expansion of macro ‘this_c
pu_add’
this_cpu_add(*percpu_count, nr);
^
./arch/x86/include/asm/percpu.h:130:31: warning: comparison between signed a
nd unsigned integer expressions [-Wsign-compare]
((val) == 1 || (val) == -1)) ?
^
./arch/x86/include/asm/percpu.h:420:34: note: in expansion of macro ‘percp
u_add_op’
#define this_cpu_add_2(pcp, val) percpu_add_op((pcp), val)
^
include/linux/percpu-defs.h:365:11: note: in expansion of macro ‘this_cpu

add_2’
case 2: stem##2(variable, VA_ARGS);break;
^
include/linux/percpu-defs.h:496:33: note: in expansion of macro ‘__pcpu_si
ze_call’
#define this_cpu_add(pcp, val) pcpu_size_call(this_cpu_add, pcp, val)
^
include/linux/percpu-refcount.h:177:3: note: in expansion of macro ‘this_c
pu_add’
this_cpu_add(*percpu_count, nr);
^
./arch/x86/include/asm/percpu.h:130:31: warning: comparison between signed a
nd unsigned integer expressions [-Wsign-compare]
((val) == 1 || (val) == -1)) ?
^
./arch/x86/include/asm/percpu.h:421:34: note: in expansion of macro ‘percp
u_add_op’
#define this_cpu_add_4(pcp, val) percpu_add_op((pcp), val)
^
include/linux/percpu-defs.h:366:11: note: in expansion of macro ‘this_cpu

add_4’
case 4: stem##4(variable, VA_ARGS);break;
^
include/linux/percpu-defs.h:496:33: note: in expansion of macro ‘__pcpu_si
ze_call’
#define this_cpu_add(pcp, val) pcpu_size_call(this_cpu_add, pcp, val)
^
include/linux/percpu-refcount.h:177:3: note: in expansion of macro ‘this_c
pu_add’
this_cpu_add(*percpu_count, nr);
^
./arch/x86/include/asm/percpu.h:130:31: warning: comparison between signed a
nd unsigned integer expressions [-Wsign-compare]
((val) == 1 || (val) == -1)) ?
^
./arch/x86/include/asm/percpu.h:478:35: note: in expansion of macro ‘percp
u_add_op’
#define this_cpu_add_8(pcp, val) percpu_add_op((pcp), val)
^
include/linux/percpu-defs.h:367:11: note: in expansion of macro ‘this_cpu

add_8’
case 8: stem##8(variable, VA_ARGS);break;
^
include/linux/percpu-defs.h:496:33: note: in expansion of macro ‘__pcpu_si
ze_call’
#define this_cpu_add(pcp, val) pcpu_size_call(this_cpu_add, pcp, val)
^
include/linux/percpu-refcount.h:177:3: note: in expansion of macro ‘this_c
pu_add’
this_cpu_add(*percpu_count, nr);
^
include/linux/percpu-refcount.h: In function ‘percpu_ref_put_many’:
./arch/x86/include/asm/percpu.h:130:31: warning: comparison between signed a
nd unsigned integer expressions [-Wsign-compare]
((val) == 1 || (val) == -1)) ?
^
./arch/x86/include/asm/percpu.h:419:34: note: in expansion of macro ‘percp
u_add_op’
#define this_cpu_add_1(pcp, val) percpu_add_op((pcp), val)
^
include/linux/percpu-defs.h:364:11: note: in expansion of macro ‘this_cpu

add_1’
case 1: stem##1(variable, VA_ARGS);break;
^
include/linux/percpu-defs.h:496:33: note: in expansion of macro ‘__pcpu_si
ze_call’
#define this_cpu_add(pcp, val) pcpu_size_call(this_cpu_add, pcp, val)
^
include/linux/percpu-defs.h:506:33: note: in expansion of macro ‘this_cpu

add’
#define this_cpu_sub(pcp, val) this_cpu_add(pcp, -(typeof(pcp))(val))
^
include/linux/percpu-refcount.h:276:3: note: in expansion of macro ‘this_c
pu_sub’
this_cpu_sub(*percpu_count, nr);
^
./arch/x86/include/asm/percpu.h:130:31: warning: comparison between signed a
nd unsigned integer expressions [-Wsign-compare]
((val) == 1 || (val) == -1)) ?
^
./arch/x86/include/asm/percpu.h:420:34: note: in expansion of macro ‘percp
u_add_op’
#define this_cpu_add_2(pcp, val) percpu_add_op((pcp), val)
^
include/linux/percpu-defs.h:365:11: note: in expansion of macro ‘this_cpu

add_2’
case 2: stem##2(variable, VA_ARGS);break;
^
include/linux/percpu-defs.h:496:33: note: in expansion of macro ‘__pcpu_si
ze_call’
#define this_cpu_add(pcp, val) pcpu_size_call(this_cpu_add, pcp, val)
^
include/linux/percpu-defs.h:506:33: note: in expansion of macro ‘this_cpu

add’
#define this_cpu_sub(pcp, val) this_cpu_add(pcp, -(typeof(pcp))(val))
^
include/linux/percpu-refcount.h:276:3: note: in expansion of macro ‘this_c
pu_sub’
this_cpu_sub(*percpu_count, nr);
^
./arch/x86/include/asm/percpu.h:130:31: warning: comparison between signed a
nd unsigned integer expressions [-Wsign-compare]
((val) == 1 || (val) == -1)) ?
^
./arch/x86/include/asm/percpu.h:421:34: note: in expansion of macro ‘percp
u_add_op’
#define this_cpu_add_4(pcp, val) percpu_add_op((pcp), val)
^
include/linux/percpu-defs.h:366:11: note: in expansion of macro ‘this_cpu

add_4’
case 4: stem##4(variable, VA_ARGS);break;
^
include/linux/percpu-defs.h:496:33: note: in expansion of macro ‘__pcpu_si
ze_call’
#define this_cpu_add(pcp, val) pcpu_size_call(this_cpu_add, pcp, val)
^
include/linux/percpu-defs.h:506:33: note: in expansion of macro ‘this_cpu

add’
#define this_cpu_sub(pcp, val) this_cpu_add(pcp, -(typeof(pcp))(val))
^
include/linux/percpu-refcount.h:276:3: note: in expansion of macro ‘this_c
pu_sub’
this_cpu_sub(*percpu_count, nr);
^
./arch/x86/include/asm/percpu.h:130:31: warning: comparison between signed a
nd unsigned integer expressions [-Wsign-compare]
((val) == 1 || (val) == -1)) ?
^
./arch/x86/include/asm/percpu.h:478:35: note: in expansion of macro ‘percp
u_add_op’
#define this_cpu_add_8(pcp, val) percpu_add_op((pcp), val)
^
include/linux/percpu-defs.h:367:11: note: in expansion of macro ‘this_cpu_
add_8’
case 8: stem##8(variable, VA_ARGS);break;
^
include/linux/percpu-defs.h:496:33: note: in expansion of macro ‘__pcpu_si
ze_call’
#define this_cpu_add(pcp, val) pcpu_size_call(this_cpu_add, pcp, val)
^
include/linux/percpu-defs.h:506:33: note: in expansion of macro ‘this_cpu

add’
#define this_cpu_sub(pcp, val) this_cpu_add(pcp, -(typeof(pcp))(val))
^
include/linux/percpu-refcount.h:276:3: note: in expansion of macro ‘this_c
pu_sub’
this_cpu_sub(*percpu_count, nr);
^
In file included from include/linux/utsname.h:5:0,
from /tmp/selfgz26324/NVIDIA-Linux-x86_64-173.14.39-pkg2/us
r/src/nv/nv-linux.h:25,
from /tmp/selfgz26324/NVIDIA-Linux-x86_64-173.14.39-pkg2/us
r/src/nv/nv.c:13:
include/linux/sched.h: In function ‘object_is_on_stack’:
include/linux/sched.h:2832:41: warning: pointer of type ‘void *’ used in
arithmetic [-Wpointer-arith]
return (obj >= stack) && (obj < (stack + THREAD_SIZE));
^
In file included from include/linux/list.h:6:0,
from include/linux/preempt.h:10,
from include/linux/spinlock.h:50,
from include/linux/seqlock.h:35,
from include/linux/time.h:5,
from include/uapi/linux/timex.h:56,
from include/linux/timex.h:56,
from include/linux/sched.h:19,
from include/linux/utsname.h:5,
from /tmp/selfgz26324/NVIDIA-Linux-x86_64-173.14.39-pkg2/us
r/src/nv/nv-linux.h:25,
from /tmp/selfgz26324/NVIDIA-Linux-x86_64-173.14.39-pkg2/us
r/src/nv/nv.c:13:
include/linux/list_bl.h: In function ‘hlist_bl_del’:
include/linux/poison.h:22:39: warning: pointer of type ‘void *’ used in
arithmetic [-Wpointer-arith]
#define LIST_POISON1 ((void *) 0x100 + POISON_POINTER_DELTA)
^
include/linux/list_bl.h:107:12: note: in expansion of macro ‘LIST_POISON1â
€™
n->next = LIST_POISON1;
^
include/linux/poison.h:23:39: warning: pointer of type ‘void *’ used in
arithmetic [-Wpointer-arith]
#define LIST_POISON2 ((void *) 0x200 + POISON_POINTER_DELTA)
^
include/linux/list_bl.h:108:13: note: in expansion of macro ‘LIST_POISON2â
€™
n->pprev = LIST_POISON2;
^
include/linux/rculist_bl.h: In function ‘hlist_bl_del_rcu’:
include/linux/poison.h:23:39: warning: pointer of type ‘void *’ used in
arithmetic [-Wpointer-arith]
#define LIST_POISON2 ((void *) 0x200 + POISON_POINTER_DELTA)
^
include/linux/rculist_bl.h:76:13: note: in expansion of macro ‘LIST_POISON
2’
n->pprev = LIST_POISON2;
^
In file included from include/uapi/linux/stddef.h:1:0,
from include/linux/stddef.h:4,
from ./include/uapi/linux/posix_types.h:4,
from include/uapi/linux/types.h:13,
from include/linux/types.h:5,
from include/uapi/linux/capability.h:16,
from include/linux/capability.h:15,
from include/linux/sched.h:15,
from include/linux/utsname.h:5,
from /tmp/selfgz26324/NVIDIA-Linux-x86_64-173.14.39-pkg2/us
r/src/nv/nv-linux.h:25,
from /tmp/selfgz26324/NVIDIA-Linux-x86_64-173.14.39-pkg2/us
r/src/nv/nv.c:13:
./arch/x86/include/asm/uaccess.h: In function ‘copy_from_user’:
./arch/x86/include/asm/uaccess.h:717:26: warning: comparison between signed
and unsigned integer expressions [-Wsign-compare]
if (likely(sz < 0 || sz >= n))
^
include/linux/compiler.h:165:40: note: in definition of macro ‘likely’
# define likely(x) __builtin_expect(!!(x), 1)
^
./arch/x86/include/asm/uaccess.h: In function ‘copy_to_user’:
./arch/x86/include/asm/uaccess.h:735:26: warning: comparison between signed
and unsigned integer expressions [-Wsign-compare]
if (likely(sz < 0 || sz >= n))
^
include/linux/compiler.h:165:40: note: in definition of macro ‘likely’
# define likely(x) _builtin_expect(!!(x), 1)
^
In file included from include/linux/dmapool.h:14:0,
from include/linux/pci.h:1228,
from /tmp/selfgz26324/NVIDIA-Linux-x86_64-173.14.39-pkg2/us
r/src/nv/nv-linux.h:102,
from /tmp/selfgz26324/NVIDIA-Linux-x86_64-173.14.39-pkg2/us
r/src/nv/nv.c:13:
include/linux/scatterlist.h: In function ‘sg_virt’:
include/linux/scatterlist.h:241:35: warning: pointer of type ‘void *’ us
ed in arithmetic [-Wpointer-arith]
return page_address(sg_page(sg)) + sg->offset;
^
In file included from ./arch/x86/include/asm/dma-mapping.h:49:0,
from include/linux/dma-mapping.h:87,
from include/asm-generic/pci-dma-compat.h:7,
from ./arch/x86/include/asm/pci.h:124,
from include/linux/pci.h:1502,
from /tmp/selfgz26324/NVIDIA-Linux-x86_64-173.14.39-pkg2/us
r/src/nv/nv-linux.h:102,
from /tmp/selfgz26324/NVIDIA-Linux-x86_64-173.14.39-pkg2/us
r/src/nv/nv.c:13:
include/asm-generic/dma-mapping-common.h: In function ‘dma_map_page’:
include/asm-generic/dma-mapping-common.h:84:48: warning: pointer of type ‘
void *’ used in arithmetic [-Wpointer-arith]
kmemcheck_mark_initialized(page_address(page) + offset, size);
^
In file included from ./arch/x86/include/asm/hardirq.h:5:0,
from include/linux/hardirq.h:8,
from include/linux/interrupt.h:12,
from /tmp/selfgz26324/NVIDIA-Linux-x86_64-173.14.39-pkg2/us
r/src/nv/nv-linux.h:103,
from /tmp/selfgz26324/NVIDIA-Linux-x86_64-173.14.39-pkg2/us
r/src/nv/nv.c:13:
include/linux/irq.h: In function ‘irq_reg_writel’:
include/linux/irq.h:923:36: warning: pointer of type ‘void *’ used in ar
ithmetic [-Wpointer-arith]
gc->reg_writel(val, gc->reg_base + reg_offset);
^
include/linux/irq.h:925:28: warning: pointer of type ‘void *’ used in ar
ithmetic [-Wpointer-arith]
writel(val, gc->reg_base + reg_offset);
^
include/linux/irq.h: In function ‘irq_reg_readl’:
include/linux/irq.h:932:37: warning: pointer of type ‘void *’ used in ar
ithmetic [-Wpointer-arith]
return gc->reg_readl(gc->reg_base + reg_offset);
^
include/linux/irq.h:934:29: warning: pointer of type ‘void *’ used in ar
ithmetic [-Wpointer-arith]
return readl(gc->reg_base + reg_offset);
^
In file included from /tmp/selfgz26324/NVIDIA-Linux-x86_64-173.14.39-pkg2/us
r/src/nv/nv.c:13:0:
/tmp/selfgz26324/NVIDIA-Linux-x86_64-173.14.39-pkg2/usr/src/nv/nv-linux.h: A
t top level:
/tmp/selfgz26324/NVIDIA-Linux-x86_64-173.14.39-pkg2/usr/src/nv/nv-linux.h:12
6:2: error: #error “struct file_operations compile test likely failed!”
#error “struct file_operations compile test likely failed!”
^
In file included from include/linux/vgaarb.h:34:0,
from /tmp/selfgz26324/NVIDIA-Linux-x86_64-173.14.39-pkg2/us
r/src/nv/nv-linux.h:130,
from /tmp/selfgz26324/NVIDIA-Linux-x86_64-173.14.39-pkg2/us
r/src/nv/nv.c:13:
include/video/vga.h: In function ‘vga_mm_r’:
include/video/vga.h:220:24: warning: pointer of type ‘void *’ used in ar
ithmetic [-Wpointer-arith]
return readb (regbase + port);
^
include/video/vga.h: In function ‘vga_mm_w’:
include/video/vga.h:225:23: warning: pointer of type ‘void *’ used in ar
ithmetic [-Wpointer-arith]
writeb (val, regbase + port);
^
include/video/vga.h: In function ‘vga_mm_w_fast’:
include/video/vga.h:231:43: warning: pointer of type ‘void *’ used in ar
ithmetic [-Wpointer-arith]
writew (VGA_OUT16VAL (val, reg), regbase + port);
^
In file included from /tmp/selfgz26324/NVIDIA-Linux-x86_64-173.14.39-pkg2/us
r/src/nv/nv-linux.h:140:0,
from /tmp/selfgz26324/NVIDIA-Linux-x86_64-173.14.39-pkg2/us
r/src/nv/nv.c:13:
include/linux/highmem.h: In function ‘zero_user_segments’:
include/linux/highmem.h:202:16: warning: pointer of type ‘void *’ used i
n arithmetic [-Wpointer-arith]
memset(kaddr + start1, 0, end1 - start1);
^
include/linux/highmem.h:205:16: warning: pointer of type ‘void *’ used i
n arithmetic [-Wpointer-arith]
memset(kaddr + start2, 0, end2 - start2);
^
In file included from include/linux/socket.h:7:0,
from include/linux/compat.h:13,
from ./arch/x86/include/asm/mtrr.h:95,
from /tmp/selfgz26324/NVIDIA-Linux-x86_64-173.14.39-pkg2/us
r/src/nv/nv-linux.h:170,
from /tmp/selfgz26324/NVIDIA-Linux-x86_64-173.14.39-pkg2/us
r/src/nv/nv.c:13:
include/linux/uio.h: In function ‘iov_iter_iovec’:
include/linux/uio.h:60:35: warning: pointer of type ‘void *’ used in ari
thmetic [-Wpointer-arith]
.iov_base = iter->iov->iov_base + iter->iov_offset,
^
In file included from include/acpi/platform/acenv.h:174:0,
from include/acpi/acpi.h:56,
from /tmp/selfgz26324/NVIDIA-Linux-x86_64-173.14.39-pkg2/us
r/src/nv/nv-linux.h:209,
from /tmp/selfgz26324/NVIDIA-Linux-x86_64-173.14.39-pkg2/us
r/src/nv/nv.c:13:
include/acpi/platform/aclinux.h: At top level:
include/acpi/platform/aclinux.h:52:2: error: #error “Please don’t include <a
cpi/acpi.h> directly, include <linux/acpi.h> instead.”
#error “Please don’t include <acpi/acpi.h> directly, include <linux/acpi.h>
instead.”
^
In file included from /tmp/selfgz26324/NVIDIA-Linux-x86_64-173.14.39-pkg2/us
r/src/nv/nv-linux.h:210:0,
from /tmp/selfgz26324/NVIDIA-Linux-x86_64-173.14.39-pkg2/us
r/src/nv/nv.c:13:
include/acpi/acpi_drivers.h:94:43: warning: ‘struct acpi_pci_root’ decla
red inside parameter list
struct pci_bus *pci_acpi_scan_root(struct acpi_pci_root *root);
^
include/acpi/acpi_drivers.h:94:43: warning: its scope is only this definitio
n or declaration, which is probably not what you want
In file included from /tmp/selfgz26324/NVIDIA-Linux-x86_64-173.14.39-pkg2/us
r/src/nv/nv.c:13:0:
/tmp/selfgz26324/NVIDIA-Linux-x86_64-173.14.39-pkg2/usr/src/nv/nv-linux.h:21
7:4: warning: “NV_ACPI_WALK_NAMESPACE_ARGUMENT_COUNT” is not defined [-Wunde
f]
(NV_ACPI_WALK_NAMESPACE_ARGUMENT_COUNT == 6)
^
/tmp/selfgz26324/NVIDIA-Linux-x86_64-173.14.39-pkg2/usr/src/nv/nv-linux.h:21
9:8: warning: “NV_ACPI_WALK_NAMESPACE_ARGUMENT_COUNT” is not defined [-Wunde
f]
#elif (NV_ACPI_WALK_NAMESPACE_ARGUMENT_COUNT == 7)
^
/tmp/selfgz26324/NVIDIA-Linux-x86_64-173.14.39-pkg2/usr/src/nv/nv-linux.h:22
5:2: error: #error “NV_ACPI_WALK_NAMESPACE_ARGUMENT_COUNT value unrecognized
!”
#error “NV_ACPI_WALK_NAMESPACE_ARGUMENT_COUNT value unrecognized!”
^
/tmp/selfgz26324/NVIDIA-Linux-x86_64-173.14.39-pkg2/usr/src/nv/nv-linux.h:23
0:4: warning: “NV_ACPI_OS_WAIT_EVENTS_COMPLETE_ARGUMENT_COUNT” is not define
d [-Wundef]
(NV_ACPI_OS_WAIT_EVENTS_COMPLETE_ARGUMENT_COUNT == 1)
^
/tmp/selfgz26324/NVIDIA-Linux-x86_64-173.14.39-pkg2/usr/src/nv/nv-linux.h:23
3:8: warning: “NV_ACPI_OS_WAIT_EVENTS_COMPLETE_ARGUMENT_COUNT” is not define
d [-Wundef]
#elif (NV_ACPI_OS_WAIT_EVENTS_COMPLETE_ARGUMENT_COUNT == 0)
^
/tmp/selfgz26324/NVIDIA-Linux-x86_64-173.14.39-pkg2/usr/src/nv/nv.c: In func
tion ‘nv_kern_read_text_file’:
/tmp/selfgz26324/NVIDIA-Linux-x86_64-173.14.39-pkg2/usr/src/nv/nv.c:692:12:
error: void value not ignored as it ought to be
return seq_puts(s, s->private);
^
/tmp/selfgz26324/NVIDIA-Linux-x86_64-173.14.39-pkg2/usr/src/nv/nv.c: In func
tion ‘__nv_disable_caches’:
/tmp/selfgz26324/NVIDIA-Linux-x86_64-173.14.39-pkg2/usr/src/nv/nv.c:844:12:
error: implicit declaration of function ‘read_cr4’ [-Werror=implicit-fun
ction-declaration]
*cr4 = read_cr4();
^
/tmp/selfgz26324/NVIDIA-Linux-x86_64-173.14.39-pkg2/usr/src/nv/nv.c:845:22:
error: implicit declaration of function ‘write_cr4’ [-Werror=implicit-fu
nction-declaration]
if (*cr4 & 0x80) write_cr4(*cr4 & ~0x80);
^
/tmp/selfgz26324/NVIDIA-Linux-x86_64-173.14.39-pkg2/usr/src/nv/nv.c: In func
tion ‘nv_kern_ioctl’:
/tmp/selfgz26324/NVIDIA-Linux-x86_64-173.14.39-pkg2/usr/src/nv/nv.c:2646:26:
warning: comparison between signed and unsigned integer expressions [-Wsign-
compare]
if (arg_size < (sizeof(*ci) * num_nv_devices))
^
/tmp/selfgz26324/NVIDIA-Linux-x86_64-173.14.39-pkg2/usr/src/nv/nv.c: In func
tion ‘nv_kern_unlocked_ioctl’:
/tmp/selfgz26324/NVIDIA-Linux-x86_64-173.14.39-pkg2/usr/src/nv/nv.c:2749:30:
error: ‘struct file’ has no member named ‘f_dentry’
return nv_kern_ioctl(file->f_dentry->d_inode, file, cmd, i_arg);
^
/tmp/selfgz26324/NVIDIA-Linux-x86_64-173.14.39-pkg2/usr/src/nv/nv.c: In func
tion ‘nv_kern_compat_ioctl’:
/tmp/selfgz26324/NVIDIA-Linux-x86_64-173.14.39-pkg2/usr/src/nv/nv.c:2758:30:
error: ‘struct file’ has no member named ‘f_dentry’
return nv_kern_ioctl(file->f_dentry->d_inode, file, cmd, i_arg);
^
/tmp/selfgz26324/NVIDIA-Linux-x86_64-173.14.39-pkg2/usr/src/nv/nv.c: In func
tion ‘nv_kern_read_text_file’:
/tmp/selfgz26324/NVIDIA-Linux-x86_64-173.14.39-pkg2/usr/src/nv/nv.c:693:1: w
arning: control reaches end of non-void function [-Wreturn-type]
}
^
/tmp/selfgz26324/NVIDIA-Linux-x86_64-173.14.39-pkg2/usr/src/nv/nv.c: In func
tion ‘nv_kern_unlocked_ioctl’:
/tmp/selfgz26324/NVIDIA-Linux-x86_64-173.14.39-pkg2/usr/src/nv/nv.c:2750:1:
warning: control reaches end of non-void function [-Wreturn-type]
}
^
/tmp/selfgz26324/NVIDIA-Linux-x86_64-173.14.39-pkg2/usr/src/nv/nv.c: In func
tion ‘nv_kern_compat_ioctl’:
/tmp/selfgz26324/NVIDIA-Linux-x86_64-173.14.39-pkg2/usr/src/nv/nv.c:2759:1:
warning: control reaches end of non-void function [-Wreturn-type]
}
^
cc1: some warnings being treated as errors
scripts/Makefile.build:258: recipe for target ‘/tmp/selfgz26324/NVIDIA-Linux
-x86_64-173.14.39-pkg2/usr/src/nv/nv.o’ failed
make[3]: *** [/tmp/selfgz26324/NVIDIA-Linux-x86_64-173.14.39-pkg2/usr/src/nv
/nv.o] Error 1
Makefile:1403: recipe for target 'module/tmp/selfgz26324/NVIDIA-Linux-x86

64-173.14.39-pkg2/usr/src/nv’ failed
make[2]: *** [module/tmp/selfgz26324/NVIDIA-Linux-x86_64-173.14.39-pkg2/us
r/src/nv] Error 2
NVIDIA: left KBUILD.
nvidia.ko failed to build!
Makefile:239: recipe for target ‘module’ failed
make[1]: *** [module] Error 1
makefile:54: recipe for target ‘module’ failed
make: *** [module] Error 2
→ Error.

The nvidia-current package installs fine, but iray server says it doesn’t recognize the gpu:

[Sat, 06 Aug 2016 18:41:08] [Mode] Switching mode to Standalone
[Sat, 06 Aug 2016 18:41:08] 2 GPU:RENDER | 0.0 GPU rend warn : It appears that the “nvidia” kernel module is not loaded.
[Sat, 06 Aug 2016 18:41:08] 2 GPU:RENDER | 0.0 GPU rend warn : It appears that there are no “nvidia” device nodes. This configuration is unlikely to work at all. Verify that your runlevel is sufficient and “nvidia” device nodes are present, e.g., /dev/nvidia0.
[Sat, 06 Aug 2016 18:41:08] 2 CUDA:RENDER | 0.0 CUDA rend warn : CUDA module initialization failed.
[Sat, 06 Aug 2016 18:41:08] 2 CUDA:RENDER | 0.0 CUDA rend warn : The version of your CUDA driver is 5.0, but 6.5 is the required minimum
[Sat, 06 Aug 2016 18:41:08] 2 CUDA:RENDER | 0.0 CUDA rend warn : Please update your display driver.
[Sat, 06 Aug 2016 18:41:08] Pro GPU is not available (Quadro or Tesla)

I downloaded linux-kernel-source, 4.4.0, extracted it and ran ‘make oldconfig && make prepare’. Then I reran the setup but there was no change.

I also specified the kernel source path, but the results and the error log were the same. I get excited about each attempt, hoping that it will work.

Do I need to return this card for one that is supported?

I have two of these cards, I thought they could work with iray server for linux.

Searching and searching for help. I see this thread: https://devtalk.nvidia.com/default/topic/612889/nvidia-support-for-latest-linux-kernels-/

Does Nvidia state what is the latest supported kernel for Legacy GPU Version 173.14.39, or how to build their kernel module?

I see this:
Support for X.Org xserver version 1.15 was added to the 173.14.* legacy driver series with version 173.14.39. No further releases from the 173.14.* series are planned.

Will it build with that version of xserver? I originally tried without any xserver installed. How do I install 173.14.* in Linux?

Can someone tell me what version of Linux software is required to successfully install 173.14.* drivers?

Please and thank you

Can you please describe in more detail what you actually have in the system? You mentioned the GTX 780 which is supported by the latest drivers, but the error message you quotes says you have an FX 5500 legacy GPU in there instead.

First, let me thank you for your reply :)

Attached is the output from lspci:
01:00.0 VGA compatible controller: NVIDIA Corporation GK110B [GeForce GTX 780 Ti] (rev a1)
01:00.1 Audio device: NVIDIA Corporation GK110 HDMI Audio (rev a1)
06:06.0 VGA compatible controller: NVIDIA Corporation NV34 [GeForce
FX 5500] (rev a1)

Perhaps the FX 5500 is part of the motherboard.
I am trying to install the newer drivers and dealing with a CC and GCC mismatch now.

Here is where I’m at:

Compiler version check failed:

The major and minor number of the compiler used to
compile the kernel:

gcc version 5.3.1 20160413 (Ubuntu 5.3.1-14ubuntu2.1)

does not match the compiler used here:

cc (Ubuntu 5.4.0-6ubuntu1~16.04.1) 5.4.0 20160609


I’m studying this thread, but haven’t solved it yet: Nvidia drivers 352.09 dont install - Linux - NVIDIA Developer Forums

Solved by using the following installer:

NVIDIA-Linux-x86_64-367.35.run

And “nvidia-smi -L” returns:
GPU 0: GeForce GTX 780 Ti (UUID: GPU-6ec9c7a3-e38b-6566-f2e5-5baf07d1b0ac)

I would mark this SOLVED.

Now I’m back to solving problems starting iray server.

unrelated note: iray server problems might be solved. First run said it couldn’t find /dev/nvidia0, second run didn’t have issues. Thanks to all

Hello. I have analog problem.
I install videocard GTX 560 in system CentOS 7.

I install drvers:

  1. NVIDIA-Linux-x86_64-331.49.run
  2. NVIDIA-Linux-x86_64-340.32.run

Result:
[root@opt]# modprobe nvidia
modprobe: FATAL: Module nvidia not found.
[root@opt]#

Shot Listing “lspci”:
[root@opt]# lspci
01:00.0 VGA compatible controller: NVIDIA Corporation GF114 [GeForce GTX 560] (rev a1)
01:00.1 Audio device: NVIDIA Corporation GF114 HDMI Audio Controller (rev a1)
[root@opt]#

message from installer:
run:

./NVIDIA-Linux-x86_64-340.32.run

For question:
Would you like to register the kernel module sources with DKMS? This will allow DKMS to automatically build a new module, if you install a different kernel later.

answer:
No

question: The CC version check failed: The compiler used to compile the kernel was gcc 4.8; the current compiler is gcc 6.3.

answer: Ignore CC version check

result:
ERROR: Unable to build the NVIDIA kernel module.

ERROR: Installation has failed. Please see the file ‘/var/log/nvidia-installer.log’ for details. You may find suggestions on fixing installation problems in the README available on the Linux driver download page at www.nvidia.com.

help me installing this drivers.

PS. I not use grafical interfase. System worked only text mode.
nvidia-installer.log (3.13 KB)

kill_v, you need the standard centos 7 gcc 4.8.x with retpoline support, you’re using gcc 6.3.x without retpoline, that doesn’t work. Do you have devtoolset-6 installed or where did you get that gcc-6 from? Install the normal centos developer tools and see if export | grep -i cc points to a different gcc set.
You can use
gcc --version
to check for the correct version.

Thank you very match.

I reinstall clean system and install all from documentation from you site.
All work.

Hello,

I’m getting same error when I try to install Nvidia driver 304.137 in a CentOS-7-x86_64 with GCC-4.8.5 and kernel version.

From nvdia-installer, I get this error:

ERROR: Failed to run `/usr/sbin/dkms build -m nvidia -v 304.137 -k 3.10.0-862.14.4.el7.x86_64`:
         Kernel preparation unnecessary for this kernel.  Skipping...

         Building module:
         cleaning build area...
         make -j2 KERNELRELEASE=3.10.0-862.14.4.el7.x86_64 module SYSSRC=/lib/modules/3.10.0-862.14.4.el7.x86_64/build.......(bad exit status: 2)
         Error! Bad return status for module build on kernel: 3.10.0-862.14.4.el7.x86_64 (x86_64)
         Consult /var/lib/dkms/nvidia/304.137/build/make.log for more information.

File /var/lib/dkms/nvidia/304.137/build/make.log is this:

DKMS make.log for nvidia-304.137 for kernel 3.10.0-862.14.4.el7.x86_64 (x86_64)
vie nov  9 08:55:38 CET 2018
NVIDIA: calling KBUILD...
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 /var/lib/dkms/nvidia/304.137/build/.tmp_versions ; rm -f /var/lib/dkms/nvidia/304.137/build/.tmp_versions/*
make -f scripts/Makefile.build obj=/var/lib/dkms/nvidia/304.137/build
(cat /dev/null;   echo kernel//var/lib/dkms/nvidia/304.137/build/nvidia.ko;) > /var/lib/dkms/nvidia/304.137/build/modules.order
  cc -Wp,-MD,/var/lib/dkms/nvidia/304.137/build/.nv.o.d  -nostdinc -isystem /usr/lib/gcc/x86_64-redhat-linux/4.8.5/include -I./arch/x86/include -Iarch/x86/include/generated  -Iinclude -I./arch/x86/include/uapi -Iarch/x86/include/generated/uapi -I./include/uapi -Iinclude/generated/uapi -include ./include/linux/kconfig.h -D__KERNEL__ -Wall -Wundef -Wstrict-prototypes -Wno-trigraphs -fno-strict-aliasing -fno-common -Werror-implicit-function-declaration -Wno-format-security -fno-delete-null-pointer-checks -std=gnu89 -O2 -m64 -mno-mmx -mno-sse -mpreferred-stack-boundary=3 -mtune=generic -mno-red-zone -mcmodel=kernel -funit-at-a-time -maccumulate-outgoing-args -Wframe-larger-than=2048 -DCONFIG_AS_CFI=1 -DCONFIG_AS_CFI_SIGNAL_FRAME=1 -DCONFIG_AS_CFI_SECTIONS=1 -DCONFIG_AS_FXSAVEQ=1 -DCONFIG_AS_AVX=1 -DCONFIG_AS_AVX2=1 -DCONFIG_AS_AVX512=1 -DCONFIG_AS_SHA1_NI=1 -DCONFIG_AS_SHA256_NI=1 -pipe -Wno-sign-compare -fno-asynchronous-unwind-tables -mno-sse -mno-mmx -mno-sse2 -mno-3dnow -mno-avx -mindirect-branch=thunk-extern -mindirect-branch-register -DRETPOLINE -Wframe-larger-than=2048 -fstack-protector-strong -Wno-unused-but-set-variable -fno-omit-frame-pointer -fno-optimize-sibling-calls -g -pg -mfentry -DCC_USING_FENTRY -fno-inline-functions-called-once -Wdeclaration-after-statement -Wno-pointer-sign -fno-strict-overflow -fconserve-stack -DCC_HAVE_ASM_GOTO -I/var/lib/dkms/nvidia/304.137/build -Wall -MD -Wsign-compare -Wno-cast-qual -Wno-error -D__KERNEL__ -DMODULE -DNVRM -DNV_VERSION_STRING=\"304.137\" -Wno-unused-function -Wuninitialized -mno-red-zone -mcmodel=kernel -UDEBUG -U_DEBUG -DNDEBUG  -DMODULE  -D"KBUILD_STR(s)=#s" -D"KBUILD_BASENAME=KBUILD_STR(nv)"  -D"KBUILD_MODNAME=KBUILD_STR(nvidia)" -c -o /var/lib/dkms/nvidia/304.137/build/.tmp_nv.o /var/lib/dkms/nvidia/304.137/build/nv.c
  cc -Wp,-MD,/var/lib/dkms/nvidia/304.137/build/.nv-acpi.o.d  -nostdinc -isystem /usr/lib/gcc/x86_64-redhat-linux/4.8.5/include -I./arch/x86/include -Iarch/x86/include/generated  -Iinclude -I./arch/x86/include/uapi -Iarch/x86/include/generated/uapi -I./include/uapi -Iinclude/generated/uapi -include ./include/linux/kconfig.h -D__KERNEL__ -Wall -Wundef -Wstrict-prototypes -Wno-trigraphs -fno-strict-aliasing -fno-common -Werror-implicit-function-declaration -Wno-format-security -fno-delete-null-pointer-checks -std=gnu89 -O2 -m64 -mno-mmx -mno-sse -mpreferred-stack-boundary=3 -mtune=generic -mno-red-zone -mcmodel=kernel -funit-at-a-time -maccumulate-outgoing-args -Wframe-larger-than=2048 -DCONFIG_AS_CFI=1 -DCONFIG_AS_CFI_SIGNAL_FRAME=1 -DCONFIG_AS_CFI_SECTIONS=1 -DCONFIG_AS_FXSAVEQ=1 -DCONFIG_AS_AVX=1 -DCONFIG_AS_AVX2=1 -DCONFIG_AS_AVX512=1 -DCONFIG_AS_SHA1_NI=1 -DCONFIG_AS_SHA256_NI=1 -pipe -Wno-sign-compare -fno-asynchronous-unwind-tables -mno-sse -mno-mmx -mno-sse2 -mno-3dnow -mno-avx -mindirect-branch=thunk-extern -mindirect-branch-register -DRETPOLINE -Wframe-larger-than=2048 -fstack-protector-strong -Wno-unused-but-set-variable -fno-omit-frame-pointer -fno-optimize-sibling-calls -g -pg -mfentry -DCC_USING_FENTRY -fno-inline-functions-called-once -Wdeclaration-after-statement -Wno-pointer-sign -fno-strict-overflow -fconserve-stack -DCC_HAVE_ASM_GOTO -I/var/lib/dkms/nvidia/304.137/build -Wall -MD -Wsign-compare -Wno-cast-qual -Wno-error -D__KERNEL__ -DMODULE -DNVRM -DNV_VERSION_STRING=\"304.137\" -Wno-unused-function -Wuninitialized -mno-red-zone -mcmodel=kernel -UDEBUG -U_DEBUG -DNDEBUG  -DMODULE  -D"KBUILD_STR(s)=#s" -D"KBUILD_BASENAME=KBUILD_STR(nv_acpi)"  -D"KBUILD_MODNAME=KBUILD_STR(nvidia)" -c -o /var/lib/dkms/nvidia/304.137/build/.tmp_nv-acpi.o /var/lib/dkms/nvidia/304.137/build/nv-acpi.c
In file included from ./arch/x86/include/asm/cpumask.h:4:0,
                 from ./arch/x86/include/asm/msr.h:10,
                 from ./arch/x86/include/asm/processor.h:20,
                 from ./arch/x86/include/asm/cpufeature.h:7,
                 from ./arch/x86/include/asm/thread_info.h:22,
                 from include/linux/thread_info.h:54,
                 from include/linux/preempt.h:9,
                 from include/linux/spinlock.h:50,
                 from include/linux/seqlock.h:35,
                 from include/linux/time.h:5,
                 from include/uapi/linux/timex.h:56,
                 from include/linux/timex.h:56,
                 from include/linux/sched.h:17,
                 from include/linux/utsname.h:5,
                 from /var/lib/dkms/nvidia/304.137/build/nv-linux.h:40,
                 from /var/lib/dkms/nvidia/304.137/build/nv.c:13:
include/linux/cpumask.h: En la función âcpumask_parseâ:
include/linux/cpumask.h:634:26: aviso: signed and unsigned type in conditional expression [-Wsign-compare]
  int len = nl ? nl - buf : strlen(buf);
                          ^
In file included from ./arch/x86/include/asm/cpumask.h:4:0,
                 from ./arch/x86/include/asm/msr.h:10,
                 from ./arch/x86/include/asm/processor.h:20,
                 from ./arch/x86/include/asm/cpufeature.h:7,
                 from ./arch/x86/include/asm/thread_info.h:22,
                 from include/linux/thread_info.h:54,
                 from include/linux/preempt.h:9,
                 from include/linux/spinlock.h:50,
                 from include/linux/seqlock.h:35,
                 from include/linux/time.h:5,
                 from include/uapi/linux/timex.h:56,
                 from include/linux/timex.h:56,
                 from include/linux/sched.h:17,
                 from include/linux/utsname.h:5,
                 from /var/lib/dkms/nvidia/304.137/build/nv-linux.h:40,
                 from /var/lib/dkms/nvidia/304.137/build/nv-acpi.c:15:
include/linux/cpumask.h: En la función âcpumask_parseâ:
include/linux/cpumask.h:634:26: aviso: signed and unsigned type in conditional expression [-Wsign-compare]
  int len = nl ? nl - buf : strlen(buf);
                          ^
In file included from include/linux/rh_kabi.h:13:0,
                 from include/linux/sched.h:5,
                 from include/linux/utsname.h:5,
                 from /var/lib/dkms/nvidia/304.137/build/nv-linux.h:40,
                 from /var/lib/dkms/nvidia/304.137/build/nv.c:13:
include/asm-generic/qrwlock.h: En la función âqueued_write_trylockâ:
include/asm-generic/qrwlock.h:93:35: aviso: comparación entre expresiones enteras signed y unsigned [-Wsign-compare]
          cnts, cnts | _QW_LOCKED) == cnts);
                                   ^
include/linux/compiler.h:152:40: nota: in definition of macro âlikelyâ
 # define likely(x) __builtin_expect(!!(x), 1)
                                        ^
In file included from include/linux/rh_kabi.h:13:0,
                 from include/linux/sched.h:5,
                 from include/linux/utsname.h:5,
                 from /var/lib/dkms/nvidia/304.137/build/nv-linux.h:40,
                 from /var/lib/dkms/nvidia/304.137/build/nv-acpi.c:15:
include/asm-generic/qrwlock.h: En la función âqueued_write_trylockâ:
include/asm-generic/qrwlock.h:93:35: aviso: comparación entre expresiones enteras signed y unsigned [-Wsign-compare]
          cnts, cnts | _QW_LOCKED) == cnts);
                                   ^
include/linux/compiler.h:152:40: nota: in definition of macro âlikelyâ
 # define likely(x) __builtin_expect(!!(x), 1)
                                        ^
In file included from /var/lib/dkms/nvidia/304.137/build/nv-linux.h:105:0,
                 from /var/lib/dkms/nvidia/304.137/build/nv.c:13:
include/linux/cpufreq.h: En la función âcpufreq_next_validâ:
include/linux/cpufreq.h:534:27: aviso: comparación entre expresiones enteras signed y unsigned [-Wsign-compare]
  while ((*pos)->frequency != CPUFREQ_TABLE_END)
                           ^
include/linux/cpufreq.h:535:25: aviso: comparación entre expresiones enteras signed y unsigned [-Wsign-compare]
   if ((*pos)->frequency != CPUFREQ_ENTRY_INVALID)
                         ^
In file included from /var/lib/dkms/nvidia/304.137/build/nv-linux.h:105:0,
                 from /var/lib/dkms/nvidia/304.137/build/nv-acpi.c:15:
include/linux/cpufreq.h: En la función âcpufreq_next_validâ:
include/linux/cpufreq.h:534:27: aviso: comparación entre expresiones enteras signed y unsigned [-Wsign-compare]
  while ((*pos)->frequency != CPUFREQ_TABLE_END)
                           ^
include/linux/cpufreq.h:535:25: aviso: comparación entre expresiones enteras signed y unsigned [-Wsign-compare]
   if ((*pos)->frequency != CPUFREQ_ENTRY_INVALID)
                         ^
In file included from include/linux/rh_kabi.h:13:0,
                 from include/linux/sched.h:5,
                 from include/linux/utsname.h:5,
                 from /var/lib/dkms/nvidia/304.137/build/nv-linux.h:40,
                 from /var/lib/dkms/nvidia/304.137/build/nv.c:13:
./arch/x86/include/asm/uaccess_64.h: En la función âcopy_from_userâ:
./arch/x86/include/asm/uaccess_64.h:62:28: aviso: comparación entre expresiones enteras signed y unsigned [-Wsign-compare]
  if (likely(sz == -1 || sz >= n))
                            ^
include/linux/compiler.h:152:40: nota: in definition of macro âlikelyâ
 # define likely(x) __builtin_expect(!!(x), 1)
                                        ^
In file included from include/linux/rh_kabi.h:13:0,
                 from include/linux/sched.h:5,
                 from include/linux/utsname.h:5,
                 from /var/lib/dkms/nvidia/304.137/build/nv-linux.h:40,
                 from /var/lib/dkms/nvidia/304.137/build/nv-acpi.c:15:
./arch/x86/include/asm/uaccess_64.h: En la función âcopy_from_userâ:
./arch/x86/include/asm/uaccess_64.h:62:28: aviso: comparación entre expresiones enteras signed y unsigned [-Wsign-compare]
  if (likely(sz == -1 || sz >= n))
                            ^
include/linux/compiler.h:152:40: nota: in definition of macro âlikelyâ
 # define likely(x) __builtin_expect(!!(x), 1)
                                        ^
In file included from /var/lib/dkms/nvidia/304.137/build/nv-acpi.c:15:0:
/var/lib/dkms/nvidia/304.137/build/nv-linux.h: En la función âNV_GET_USER_PAGESâ:
In file included from /var/lib/dkms/nvidia/304.137/build/nv.c:13:0:
/var/lib/dkms/nvidia/304.137/build/nv-linux.h: En la función âNV_GET_USER_PAGESâ:
/var/lib/dkms/nvidia/304.137/build/nv-linux.h:1892:13: aviso: el paso del argumento 1 de âget_user_pagesâ crea un puntero desde un entero sin una conversión [activado por defecto]
             return get_user_pages(start, nr_pages, flags, pages, vmas);
             ^
/var/lib/dkms/nvidia/304.137/build/nv-linux.h:1892:13: aviso: el paso del argumento 1 de âget_user_pagesâ crea un puntero desde un entero sin una conversión [activado por defecto]
             return get_user_pages(start, nr_pages, flags, pages, vmas);
             ^
In file included from /var/lib/dkms/nvidia/304.137/build/nv-linux.h:82:0,
                 from /var/lib/dkms/nvidia/304.137/build/nv-acpi.c:15:
include/linux/mm.h:1381:6: nota: se esperaba âstruct task_struct *â pero el argumento es de tipo âlong unsigned intâ
 long get_user_pages(struct task_struct *tsk, struct mm_struct *mm,
      ^
In file included from /var/lib/dkms/nvidia/304.137/build/nv-linux.h:82:0,
                 from /var/lib/dkms/nvidia/304.137/build/nv.c:13:
include/linux/mm.h:1381:6: nota: se esperaba âstruct task_struct *â pero el argumento es de tipo âlong unsigned intâ
 long get_user_pages(struct task_struct *tsk, struct mm_struct *mm,
      ^
In file included from /var/lib/dkms/nvidia/304.137/build/nv-acpi.c:15:0:
/var/lib/dkms/nvidia/304.137/build/nv-linux.h:1892:13: aviso: el paso del argumento 2 de âget_user_pagesâ crea un puntero desde un entero sin una conversión [activado por defecto]
             return get_user_pages(start, nr_pages, flags, pages, vmas);
             ^
In file included from /var/lib/dkms/nvidia/304.137/build/nv.c:13:0:
/var/lib/dkms/nvidia/304.137/build/nv-linux.h:1892:13: aviso: el paso del argumento 2 de âget_user_pagesâ crea un puntero desde un entero sin una conversión [activado por defecto]
             return get_user_pages(start, nr_pages, flags, pages, vmas);
             ^
In file included from /var/lib/dkms/nvidia/304.137/build/nv-linux.h:82:0,
                 from /var/lib/dkms/nvidia/304.137/build/nv-acpi.c:15:
include/linux/mm.h:1381:6: nota: se esperaba âstruct mm_struct *â pero el argumento es de tipo âlong unsigned intâ
 long get_user_pages(struct task_struct *tsk, struct mm_struct *mm,
      ^
In file included from /var/lib/dkms/nvidia/304.137/build/nv-linux.h:82:0,
                 from /var/lib/dkms/nvidia/304.137/build/nv.c:13:
include/linux/mm.h:1381:6: nota: se esperaba âstruct mm_struct *â pero el argumento es de tipo âlong unsigned intâ
 long get_user_pages(struct task_struct *tsk, struct mm_struct *mm,
      ^
In file included from /var/lib/dkms/nvidia/304.137/build/nv-acpi.c:15:0:
/var/lib/dkms/nvidia/304.137/build/nv-linux.h:1892:13: aviso: el paso del argumento 4 de âget_user_pagesâ crea un entero desde un puntero sin una conversión [activado por defecto]
             return get_user_pages(start, nr_pages, flags, pages, vmas);
             ^
In file included from /var/lib/dkms/nvidia/304.137/build/nv.c:13:0:
/var/lib/dkms/nvidia/304.137/build/nv-linux.h:1892:13: aviso: el paso del argumento 4 de âget_user_pagesâ crea un entero desde un puntero sin una conversión [activado por defecto]
             return get_user_pages(start, nr_pages, flags, pages, vmas);
             ^
In file included from /var/lib/dkms/nvidia/304.137/build/nv-linux.h:82:0,
                 from /var/lib/dkms/nvidia/304.137/build/nv-acpi.c:15:
include/linux/mm.h:1381:6: nota: se esperaba âlong unsigned intâ pero el argumento es de tipo âstruct page **â
 long get_user_pages(struct task_struct *tsk, struct mm_struct *mm,
      ^
In file included from /var/lib/dkms/nvidia/304.137/build/nv-linux.h:82:0,
                 from /var/lib/dkms/nvidia/304.137/build/nv.c:13:
include/linux/mm.h:1381:6: nota: se esperaba âlong unsigned intâ pero el argumento es de tipo âstruct page **â
 long get_user_pages(struct task_struct *tsk, struct mm_struct *mm,
      ^
In file included from /var/lib/dkms/nvidia/304.137/build/nv-acpi.c:15:0:
/var/lib/dkms/nvidia/304.137/build/nv-linux.h:1892:13: aviso: el paso del argumento 5 de âget_user_pagesâ crea un entero desde un puntero sin una conversión [activado por defecto]
             return get_user_pages(start, nr_pages, flags, pages, vmas);
             ^
In file included from /var/lib/dkms/nvidia/304.137/build/nv.c:13:0:
/var/lib/dkms/nvidia/304.137/build/nv-linux.h:1892:13: aviso: el paso del argumento 5 de âget_user_pagesâ crea un entero desde un puntero sin una conversión [activado por defecto]
             return get_user_pages(start, nr_pages, flags, pages, vmas);
             ^
In file included from /var/lib/dkms/nvidia/304.137/build/nv-linux.h:82:0,
                 from /var/lib/dkms/nvidia/304.137/build/nv-acpi.c:15:
include/linux/mm.h:1381:6: nota: se esperaba âintâ pero el argumento es de tipo âstruct vm_area_struct **â
 long get_user_pages(struct task_struct *tsk, struct mm_struct *mm,
      ^
In file included from /var/lib/dkms/nvidia/304.137/build/nv-linux.h:82:0,
                 from /var/lib/dkms/nvidia/304.137/build/nv.c:13:
include/linux/mm.h:1381:6: nota: se esperaba âintâ pero el argumento es de tipo âstruct vm_area_struct **â
 long get_user_pages(struct task_struct *tsk, struct mm_struct *mm,
      ^
In file included from /var/lib/dkms/nvidia/304.137/build/nv-acpi.c:15:0:
/var/lib/dkms/nvidia/304.137/build/nv-linux.h:1892:13: error: faltan argumentos para la función âget_user_pagesâ
             return get_user_pages(start, nr_pages, flags, pages, vmas);
             ^
In file included from /var/lib/dkms/nvidia/304.137/build/nv.c:13:0:
/var/lib/dkms/nvidia/304.137/build/nv-linux.h:1892:13: error: faltan argumentos para la función âget_user_pagesâ
             return get_user_pages(start, nr_pages, flags, pages, vmas);
             ^
In file included from /var/lib/dkms/nvidia/304.137/build/nv-linux.h:82:0,
                 from /var/lib/dkms/nvidia/304.137/build/nv-acpi.c:15:
include/linux/mm.h:1381:6: nota: se declara aquí
 long get_user_pages(struct task_struct *tsk, struct mm_struct *mm,
      ^
In file included from /var/lib/dkms/nvidia/304.137/build/nv-linux.h:82:0,
                 from /var/lib/dkms/nvidia/304.137/build/nv.c:13:
include/linux/mm.h:1381:6: nota: se declara aquí
 long get_user_pages(struct task_struct *tsk, struct mm_struct *mm,
      ^
In file included from /var/lib/dkms/nvidia/304.137/build/nv-acpi.c:15:0:
/var/lib/dkms/nvidia/304.137/build/nv-linux.h: En la función âNV_GET_USER_PAGES_REMOTEâ:
In file included from /var/lib/dkms/nvidia/304.137/build/nv.c:13:0:
/var/lib/dkms/nvidia/304.137/build/nv-linux.h: En la función âNV_GET_USER_PAGES_REMOTEâ:
/var/lib/dkms/nvidia/304.137/build/nv-linux.h:1919:45: aviso: el paso del argumento 6 de âget_user_pages_remoteâ crea un entero desde un puntero sin una conversión [activado por defecto]
                                             pages, vmas);
                                             ^
/var/lib/dkms/nvidia/304.137/build/nv-linux.h:1919:45: aviso: el paso del argumento 6 de âget_user_pages_remoteâ crea un entero desde un puntero sin una conversión [activado por defecto]
                                             pages, vmas);
                                             ^
In file included from /var/lib/dkms/nvidia/304.137/build/nv-linux.h:82:0,
                 from /var/lib/dkms/nvidia/304.137/build/nv-acpi.c:15:
include/linux/mm.h:1377:6: nota: se esperaba âintâ pero el argumento es de tipo âstruct page **â
 long get_user_pages_remote(struct task_struct *tsk, struct mm_struct *mm,
      ^
In file included from /var/lib/dkms/nvidia/304.137/build/nv-linux.h:82:0,
                 from /var/lib/dkms/nvidia/304.137/build/nv.c:13:
include/linux/mm.h:1377:6: nota: se esperaba âintâ pero el argumento es de tipo âstruct page **â
 long get_user_pages_remote(struct task_struct *tsk, struct mm_struct *mm,
      ^
In file included from /var/lib/dkms/nvidia/304.137/build/nv-acpi.c:15:0:
/var/lib/dkms/nvidia/304.137/build/nv-linux.h:1919:45: aviso: se pasa el argumento 7 de âget_user_pages_remoteâ desde un tipo de puntero incompatible [activado por defecto]
                                             pages, vmas);
                                             ^
In file included from /var/lib/dkms/nvidia/304.137/build/nv.c:13:0:
/var/lib/dkms/nvidia/304.137/build/nv-linux.h:1919:45: aviso: se pasa el argumento 7 de âget_user_pages_remoteâ desde un tipo de puntero incompatible [activado por defecto]
                                             pages, vmas);
                                             ^
In file included from /var/lib/dkms/nvidia/304.137/build/nv-linux.h:82:0,
                 from /var/lib/dkms/nvidia/304.137/build/nv-acpi.c:15:
include/linux/mm.h:1377:6: nota: se esperaba âstruct page **â pero el argumento es de tipo âstruct vm_area_struct **â
 long get_user_pages_remote(struct task_struct *tsk, struct mm_struct *mm,
      ^
In file included from /var/lib/dkms/nvidia/304.137/build/nv-linux.h:82:0,
                 from /var/lib/dkms/nvidia/304.137/build/nv.c:13:
include/linux/mm.h:1377:6: nota: se esperaba âstruct page **â pero el argumento es de tipo âstruct vm_area_struct **â
 long get_user_pages_remote(struct task_struct *tsk, struct mm_struct *mm,
      ^
In file included from /var/lib/dkms/nvidia/304.137/build/nv-acpi.c:15:0:
/var/lib/dkms/nvidia/304.137/build/nv-linux.h:1919:45: error: faltan argumentos para la función âget_user_pages_remoteâ
                                             pages, vmas);
                                             ^
In file included from /var/lib/dkms/nvidia/304.137/build/nv.c:13:0:
/var/lib/dkms/nvidia/304.137/build/nv-linux.h:1919:45: error: faltan argumentos para la función âget_user_pages_remoteâ
                                             pages, vmas);
                                             ^
In file included from /var/lib/dkms/nvidia/304.137/build/nv-linux.h:82:0,
                 from /var/lib/dkms/nvidia/304.137/build/nv-acpi.c:15:
include/linux/mm.h:1377:6: nota: se declara aquí
 long get_user_pages_remote(struct task_struct *tsk, struct mm_struct *mm,
      ^
In file included from /var/lib/dkms/nvidia/304.137/build/nv-linux.h:82:0,
                 from /var/lib/dkms/nvidia/304.137/build/nv.c:13:
include/linux/mm.h:1377:6: nota: se declara aquí
 long get_user_pages_remote(struct task_struct *tsk, struct mm_struct *mm,
      ^
make[3]: *** [/var/lib/dkms/nvidia/304.137/build/nv-acpi.o] Error 1
make[3]: *** Se espera a que terminen otras tareas....
make[3]: *** [/var/lib/dkms/nvidia/304.137/build/nv.o] Error 1
make[2]: *** [_module_/var/lib/dkms/nvidia/304.137/build] Error 2
NVIDIA: left KBUILD.
nvidia.ko failed to build!
make[1]: *** [module] Error 1
make: *** [module] Error 2

Could anybody help me?

Thanks a lot!!!

The 304 driver is out of support for nearly a year now. It has to be patched to run with current kernels, I don’t know if any repository still delivers a patched package.