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.