因为是滚动版,显卡驱动只能安装官方的 run 文件,N 卡 7300gt,内核是 3.15.1-35,32 位系统,安装出现了:unable to build the nvidia kernel module. 不知道问题何解?
另外显卡的安装日志:
nvidia-installer log file '/var/log/nvidia-installer.log'
creation time: Sat Jun 28 09:03:32 2014
installer version: 304.88
PATH: /home/oo/bin:/usr/local/bin:/usr/bin:/sbin:/usr/sbin:/bin:/usr/bin/X11:/usr/X11R6/bin:/usr/games:/usr/lib/mit/bin
nvidia-installer command line:
./nvidia-installer
Using: nvidia-installer ncurses user interface
-> License accepted.
-> Installing NVIDIA driver version 304.88.
-> Running distribution scripts
executing: '/usr/lib/nvidia/pre-install'...
-> done.
-> Performing CC sanity check with CC="cc".
-> Performing CC version check with CC="cc".
-> Kernel source path: '/lib/modules/3.15.1-35.g3289da4-desktop/source'
-> Kernel output path: '/lib/modules/3.15.1-35.g3289da4-desktop/build'
-> Performing rivafb check.
-> Performing nvidiafb check.
-> Performing Xen check.
-> Cleaning kernel module build directory.
executing: 'cd ./kernel; make clean'...
-> Building kernel module:
executing: 'cd ./kernel; make module SYSSRC=/lib/modules/3.15.1-35.g3289da4-desktop/source SYSOUT=/lib/modules/3.15.1-35.g3289da4-desktop/build'...
NVIDIA: calling KBUILD...
make -C /lib/modules/3.15.1-35.g3289da4-desktop/build \
KBUILD_SRC=/usr/src/linux-3.15.1-35.g3289da4 \
KBUILD_EXTMOD="/tmp/selfgz3462/NVIDIA-Linux-x86-304.88/kernel" -f /usr/src/linux-3.15.1-35.g3289da4/Makefile \
modules
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/selfgz3462/NVIDIA-Linux-x86-304.88/kernel/.tmp_versions ; rm -f /tmp/selfgz3462/NVIDIA-Linux-x86-304.88/kernel/.tmp_versions/*
make -f /usr/src/linux-3.15.1-35.g3289da4/scripts/Makefile.build obj=/tmp/selfgz3462/NVIDIA-Linux-x86-304.88/kernel
cc -Wp,-MD,/tmp/selfgz3462/NVIDIA-Linux-x86-304.88/kernel/.nv.o.d -nostdinc -isystem /usr/lib/gcc/i586-suse-linux/4.8/include -I/usr/src/linux-3.15.1-35.g3289da4/arch/x86/include -Iarch/x86/include/generated -I/usr/src/linux-3.15.1-35.g3289da4/include -Iinclude -I/usr/src/linux-3.15.1-35.g3289da4/arch/x86/include/uapi -Iarch/x86/include/generated/uapi -I/usr/src/linux-3.15.1-35.g3289da4/include/uapi -Iinclude/generated/uapi -include /usr/src/linux-3.15.1-35.g3289da4/include/linux/kconfig.h -I/tmp/selfgz3462/NVIDIA-Linux-x86-304.88/kernel -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 -O2 -m32 -msoft-float -mregparm=3 -freg-struct-return -mno-mmx -mno-sse -fno-pic -mpreferred-stack-boundary=2 -march=i686 -mtune=generic -maccumulate-outgoing-args -Wa,-mtune=generic32 -ffreestanding -DCONFIG_AS_CFI=1 -DCONFIG_AS_CFI_SIGNAL_FRAME=1 -DCONFIG_AS_CFI_SECTIONS=1 -DCONFIG_AS_CRC32=1 -DCONFIG_AS_AVX=1 -DCONFIG_AS_AVX2=1 -pipe -Wno-sign-compare -mno-sse -mno-mmx -mno-sse2 -mno-3dnow -mno-avx -Wframe-larger-than=2048 -fstack-protector
-Wno-unused-but-set-variable -fasynchronous-unwind-tables -g -pg -fno-inline-functions-called-once -Wdeclaration-after-statement -Wno-pointer-sign -fno-strict-overflow -fconserve-stack -Werror=implicit-int -Werror=strict-prototypes -DCC_HAVE_ASM_GOTO -I/tmp/selfgz3462/NVIDIA-Linux-x86-304.88/kernel -Wall -MD -Wsign-compare -Wno-cast-qual -Wno-error -D__KERNEL__ -DMODULE -DNVRM -DNV_VERSION_STRING=\"304.88\" -Wno-unused-function -Wuninitialized -UDEBUG -U_DEBUG -DNDEBUG -DMODULE -D"KBUILD_STR(s)=#s" -D"KBUILD_BASENAME=KBUILD_STR(nv)" -D"KBUILD_MODNAME=KBUILD_STR(nvidia)" -c -o /tmp/selfgz3462/NVIDIA-Linux-x86-304.88/kernel/.tmp_nv.o /tmp/selfgz3462/NVIDIA-Linux-x86-304.88/kernel/nv.c
In file included from /usr/src/linux-3.15.1-35.g3289da4/arch/x86/include/asm/cpumask.h:4:0,
from /usr/src/linux-3.15.1-35.g3289da4/arch/x86/include/asm/msr.h:10,
from /usr/src/linux-3.15.1-35.g3289da4/arch/x86/include/asm/processor.h:20,
from /usr/src/linux-3.15.1-35.g3289da4/arch/x86/include/asm/thread_info.h:23,
from /usr/src/linux-3.15.1-35.g3289da4/include/linux/thread_info.h:54,
from /usr/src/linux-3.15.1-35.g3289da4/arch/x86/include/asm/preempt.h:6,
from /usr/src/linux-3.15.1-35.g3289da4/include/linux/preempt.h:18,
from /usr/src/linux-3.15.1-35.g3289da4/include/linux/spinlock.h:50,
from /usr/src/linux-3.15.1-35.g3289da4/include/linux/seqlock.h:35,
from /usr/src/linux-3.15.1-35.g3289da4/include/linux/time.h:5,
from /usr/src/linux-3.15.1-35.g3289da4/include/uapi/linux/timex.h:56,
from /usr/src/linux-3.15.1-35.g3289da4/include/linux/timex.h:56,
from /usr/src/linux-3.15.1-35.g3289da4/include/linux/sched.h:19,
from /usr/src/linux-3.15.1-35.g3289da4/include/linux/utsname.h:5,
from /tmp/selfgz3462/NVIDIA-Linux-x86-304.88/kernel/nv-linux.h:40,
from /tmp/selfgz3462/NVIDIA-Linux-x86-304.88/kernel/nv.c:13:
/usr/src/linux-3.15.1-35.g3289da4/include/linux/cpumask.h: In function ‘cpumask_parse’:
/usr/src/linux-3.15.1-35.g3289da4/include/linux/cpumask.h:603:26: warning: signed and unsigned type in conditional expression -Wsign-compare]
int len = nl ? nl - buf : strlen(buf);
^
In file included from /usr/src/linux-3.15.1-35.g3289da4/arch/x86/include/asm/mmzone.h:2:0,
from /usr/src/linux-3.15.1-35.g3289da4/include/linux/mmzone.h:926,
from /usr/src/linux-3.15.1-35.g3289da4/include/linux/topology.h:32,
from /usr/src/linux-3.15.1-35.g3289da4/include/linux/sched.h:41,
from /usr/src/linux-3.15.1-35.g3289da4/include/linux/utsname.h:5,
from /tmp/selfgz3462/NVIDIA-Linux-x86-304.88/kernel/nv-linux.h:40,
from /tmp/selfgz3462/NVIDIA-Linux-x86-304.88/kernel/nv.c:13:
/usr/src/linux-3.15.1-35.g3289da4/arch/x86/include/asm/mmzone_32.h: In function ‘pfn_valid’:
/usr/src/linux-3.15.1-35.g3289da4/arch/x86/include/asm/mmzone_32.h:47:15: warning: comparison between signed and unsigned integer expressions -Wsign-compare]
return (pfn < node_end_pfn(nid));
^
In file included from /usr/src/linux-3.15.1-35.g3289da4/include/uapi/linux/stddef.h:1:0,
from /usr/src/linux-3.15.1-35.g3289da4/include/linux/stddef.h:4,
from /usr/src/linux-3.15.1-35.g3289da4/include/uapi/linux/posix_types.h:4,
from /usr/src/linux-3.15.1-35.g3289da4/include/uapi/linux/types.h:13,
from /usr/src/linux-3.15.1-35.g3289da4/include/linux/types.h:5,
from /usr/src/linux-3.15.1-35.g3289da4/include/uapi/linux/capability.h:16,
from /usr/src/linux-3.15.1-35.g3289da4/include/linux/capability.h:15,
from /usr/src/linux-3.15.1-35.g3289da4/include/linux/sched.h:15,
from /usr/src/linux-3.15.1-35.g3289da4/include/linux/utsname.h:5,
from /tmp/selfgz3462/NVIDIA-Linux-x86-304.88/kernel/nv-linux.h:40,
from /tmp/selfgz3462/NVIDIA-Linux-x86-304.88/kernel/nv.c:13:
/usr/src/linux-3.15.1-35.g3289da4/arch/x86/include/asm/uaccess.h: In function ‘copy_from_user’:
/usr/src/linux-3.15.1-35.g3289da4/arch/x86/include/asm/uaccess.h:712:26: warning: comparison between signed and unsigned integer expressions -Wsign-compare]
if (likely(sz < 0 || sz >= n))
^
/usr/src/linux-3.15.1-35.g3289da4/include/linux/compiler.h:159:40: note: in definition of macro ‘likely’
# define likely(x) __builtin_expect(!!(x), 1)
^
/usr/src/linux-3.15.1-35.g3289da4/arch/x86/include/asm/uaccess.h: In function ‘copy_to_user’:
/usr/src/linux-3.15.1-35.g3289da4/arch/x86/include/asm/uaccess.h:730:26: warning: comparison between signed and unsigned integer expressions -Wsign-compare]
if (likely(sz < 0 || sz >= n))
^
/usr/src/linux-3.15.1-35.g3289da4/include/linux/compiler.h:159:40: note: in definition of macro ‘likely’
# define likely(x) __builtin_expect(!!(x), 1)
^
In file included from /tmp/selfgz3462/NVIDIA-Linux-x86-304.88/kernel/nv-linux.h:292:0,
from /tmp/selfgz3462/NVIDIA-Linux-x86-304.88/kernel/nv.c:13:
/usr/src/linux-3.15.1-35.g3289da4/include/acpi/acpi_drivers.h: At top level:
/usr/src/linux-3.15.1-35.g3289da4/include/acpi/acpi_drivers.h:98:43: warning: ‘struct acpi_pci_root’ declared inside parameter list [enabled by default]
struct pci_bus *pci_acpi_scan_root(struct acpi_pci_root *root);
^
/usr/src/linux-3.15.1-35.g3289da4/include/acpi/acpi_drivers.h:98:43: warning: its scope is only this definition or declaration, which is probably not what you want [enabled by default]
if "-pg" = "-pg" ]; then if /tmp/selfgz3462/NVIDIA-Linux-x86-304.88/kernel/nv.o != "scripts/mod/empty.o" ]; then /usr/src/linux-3.15.1-35.g3289da4-obj/i386/desktop/scripts/recordmcount "/tmp/selfgz3462/NVIDIA-Linux-x86-304.88/kernel/nv.o"; fi; fi;
cc -Wp,-MD,/tmp/selfgz3462/NVIDIA-Linux-x86-304.88/kernel/.nv-acpi.o.d -nostdinc -isystem /usr/lib/gcc/i586-suse-linux/4.8/include -I/usr/src/linux-3.15.1-35.g3289da4/arch/x86/include -Iarch/x86/include/generated -I/usr/src/linux-3.15.1-35.g3289da4/include -Iinclude -I/usr/src/linux-3.15.1-35.g3289da4/arch/x86/include/uapi -Iarch/x86/include/generated/uapi -I/usr/src/linux-3.15.1-35.g3289da4/include/uapi -Iinclude/generated/uapi -include /usr/src/linux-3.15.1-35.g3289da4/include/linux/kconfig.h -I/tmp/selfgz3462/NVIDIA-Linux-x86-304.88/kernel -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 -O2 -m32 -msoft-float -mregparm=3 -freg-struct-return -mno-mmx -mno-sse -fno-pic -mpreferred-stack-boundary=2 -march=i686 -mtune=generic -maccumulate-outgoing-args -Wa,-mtune=generic32 -ffreestanding -DCONFIG_AS_CFI=1 -DCONFIG_AS_CFI_SI
GNAL_FRAME=1 -DCONFIG_AS_CFI_SECTIONS=1 -DCONFIG_AS_CRC32=1 -DCONFIG_AS_AVX=1 -DCONFIG_AS_AVX2=1 -pipe -Wno-sign-compare -mno-sse -mno-mmx -mno-sse2 -mno-3dnow -mno-avx -Wframe-larger-than=2048 -fstack-protector -Wno-unused-but-set-variable -fasynchronous-unwind-tables -g -pg -fno-inline-functions-called-once -Wdeclaration-after-statement -Wno-pointer-sign -fno-strict-overflow -fconserve-stack -Werror=implicit-int -Werror=strict-prototypes -DCC_HAVE_ASM_GOTO -I/tmp/selfgz3462/NVIDIA-Linux-x86-304.88/kernel -Wall -MD -Wsign-compare -Wno-cast-qual -Wno-error -D__KERNEL__ -DMODULE -DNVRM -DNV_VERSION_STRING=\"304.88\" -Wno-unused-function -Wuninitialized -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 /tmp/selfgz3462/NVIDIA-Linux-x86-304.88/kernel/.tmp_nv-acpi.o /tmp/selfgz3462/NVIDIA-Linux-x86-304.88/kernel/nv-acpi.c
In file included from /usr/src/linux-3.15.1-35.g3289da4/arch/x86/include/asm/cpumask.h:4:0,
from /usr/src/linux-3.15.1-35.g3289da4/arch/x86/include/asm/msr.h:10,
from /usr/src/linux-3.15.1-35.g3289da4/arch/x86/include/asm/processor.h:20,
from /usr/src/linux-3.15.1-35.g3289da4/arch/x86/include/asm/thread_info.h:23,
from /usr/src/linux-3.15.1-35.g3289da4/include/linux/thread_info.h:54,
from /usr/src/linux-3.15.1-35.g3289da4/arch/x86/include/asm/preempt.h:6,
from /usr/src/linux-3.15.1-35.g3289da4/include/linux/preempt.h:18,
from /usr/src/linux-3.15.1-35.g3289da4/include/linux/spinlock.h:50,
from /usr/src/linux-3.15.1-35.g3289da4/include/linux/seqlock.h:35,
from /usr/src/linux-3.15.1-35.g3289da4/include/linux/time.h:5,
from /usr/src/linux-3.15.1-35.g3289da4/include/uapi/linux/timex.h:56,
from /usr/src/linux-3.15.1-35.g3289da4/include/linux/timex.h:56,
from /usr/src/linux-3.15.1-35.g3289da4/include/linux/sched.h:19,
from /usr/src/linux-3.15.1-35.g3289da4/include/linux/utsname.h:5,
from /tmp/selfgz3462/NVIDIA-Linux-x86-304.88/kernel/nv-linux.h:40,
from /tmp/selfgz3462/NVIDIA-Linux-x86-304.88/kernel/nv-acpi.c:15:
/usr/src/linux-3.15.1-35.g3289da4/include/linux/cpumask.h: In function ‘cpumask_parse’:
/usr/src/linux-3.15.1-35.g3289da4/include/linux/cpumask.h:603:26: warning: signed and unsigned type in conditional expression -Wsign-compare]
int len = nl ? nl - buf : strlen(buf);
^
In file included from /usr/src/linux-3.15.1-35.g3289da4/arch/x86/include/asm/mmzone.h:2:0,
from /usr/src/linux-3.15.1-35.g3289da4/include/linux/mmzone.h:926,
from /usr/src/linux-3.15.1-35.g3289da4/include/linux/topology.h:32,
from /usr/src/linux-3.15.1-35.g3289da4/include/linux/sched.h:41,
from /usr/src/linux-3.15.1-35.g3289da4/include/linux/utsname.h:5,
from /tmp/selfgz3462/NVIDIA-Linux-x86-304.88/kernel/nv-linux.h:40,
from /tmp/selfgz3462/NVIDIA-Linux-x86-304.88/kernel/nv-acpi.c:15:
/usr/src/linux-3.15.1-35.g3289da4/arch/x86/include/asm/mmzone_32.h: In function ‘pfn_valid’:
/usr/src/linux-3.15.1-35.g3289da4/arch/x86/include/asm/mmzone_32.h:47:15: warning: comparison between signed and unsigned integer expressions -Wsign-compare]
return (pfn < node_end_pfn(nid));
^
In file included from /usr/src/linux-3.15.1-35.g3289da4/include/uapi/linux/stddef.h:1:0,
from /usr/src/linux-3.15.1-35.g3289da4/include/linux/stddef.h:4,
from /usr/src/linux-3.15.1-35.g3289da4/include/uapi/linux/posix_types.h:4,
from /usr/src/linux-3.15.1-35.g3289da4/include/uapi/linux/types.h:13,
from /usr/src/linux-3.15.1-35.g3289da4/include/linux/types.h:5,
from /usr/src/linux-3.15.1-35.g3289da4/include/uapi/linux/capability.h:16,
from /usr/src/linux-3.15.1-35.g3289da4/include/linux/capability.h:15,
from /usr/src/linux-3.15.1-35.g3289da4/include/linux/sched.h:15,
from /usr/src/linux-3.15.1-35.g3289da4/include/linux/utsname.h:5,
from /tmp/selfgz3462/NVIDIA-Linux-x86-304.88/kernel/nv-linux.h:40,
from /tmp/selfgz3462/NVIDIA-Linux-x86-304.88/kernel/nv-acpi.c:15:
/usr/src/linux-3.15.1-35.g3289da4/arch/x86/include/asm/uaccess.h: In function ‘copy_from_user’:
/usr/src/linux-3.15.1-35.g3289da4/arch/x86/include/asm/uaccess.h:712:26: warning: comparison between signed and unsigned integer expressions -Wsign-compare]
if (likely(sz < 0 || sz >= n))
^
/usr/src/linux-3.15.1-35.g3289da4/include/linux/compiler.h:159:40: note: in definition of macro ‘likely’
# define likely(x) __builtin_expect(!!(x), 1)
^
/usr/src/linux-3.15.1-35.g3289da4/arch/x86/include/asm/uaccess.h: In function ‘copy_to_user’:
/usr/src/linux-3.15.1-35.g3289da4/arch/x86/include/asm/uaccess.h:730:26: warning: comparison between signed and unsigned integer expressions -Wsign-compare]
if (likely(sz < 0 || sz >= n))
^
/usr/src/linux-3.15.1-35.g3289da4/include/linux/compiler.h:159:40: note: in definition of macro ‘likely’
# define likely(x) __builtin_expect(!!(x), 1)
^
In file included from /tmp/selfgz3462/NVIDIA-Linux-x86-304.88/kernel/nv-linux.h:292:0,
from /tmp/selfgz3462/NVIDIA-Linux-x86-304.88/kernel/nv-acpi.c:15:
/usr/src/linux-3.15.1-35.g3289da4/include/acpi/acpi_drivers.h: At top level:
/usr/src/linux-3.15.1-35.g3289da4/include/acpi/acpi_drivers.h:98:43: warning: ‘struct acpi_pci_root’ declared inside parameter list [enabled by default]
struct pci_bus *pci_acpi_scan_root(struct acpi_pci_root *root);
^
/usr/src/linux-3.15.1-35.g3289da4/include/acpi/acpi_drivers.h:98:43: warning: its scope is only this definition or declaration, which is probably not what you want [enabled by default]
/tmp/selfgz3462/NVIDIA-Linux-x86-304.88/kernel/nv-acpi.c:54:21: error: variable ‘nv_acpi_driver_template’ has initializer but incomplete type
static const struct acpi_driver nv_acpi_driver_template = {
^
/tmp/selfgz3462/NVIDIA-Linux-x86-304.88/kernel/nv-acpi.c:55:5: error: unknown field ‘name’ specified in initializer
.name = "NVIDIA ACPI Video Driver",
^
/tmp/selfgz3462/NVIDIA-Linux-x86-304.88/kernel/nv-acpi.c:55:5: warning: excess elements in struct initializer [enabled by default]
/tmp/selfgz3462/NVIDIA-Linux-x86-304.88/kernel/nv-acpi.c:55:5: warning: (near initialization for ‘nv_acpi_driver_template’) [enabled by default]
/tmp/selfgz3462/NVIDIA-Linux-x86-304.88/kernel/nv-acpi.c:56:5: error: unknown field ‘class’ specified in initializer
.class = "video",
^
/tmp/selfgz3462/NVIDIA-Linux-x86-304.88/kernel/nv-acpi.c:56:5: warning: excess elements in struct initializer [enabled by default]
/tmp/selfgz3462/NVIDIA-Linux-x86-304.88/kernel/nv-acpi.c:56:5: warning: (near initialization for ‘nv_acpi_driver_template’) [enabled by default]
/tmp/selfgz3462/NVIDIA-Linux-x86-304.88/kernel/nv-acpi.c:61:5: error: unknown field ‘ids’ specified in initializer
.ids = ACPI_VIDEO_HID,
^
/tmp/selfgz3462/NVIDIA-Linux-x86-304.88/kernel/nv-acpi.c:61:5: warning: excess elements in struct initializer [enabled by default]
/tmp/selfgz3462/NVIDIA-Linux-x86-304.88/kernel/nv-acpi.c:61:5: warning: (near initialization for ‘nv_acpi_driver_template’) [enabled by default]
/tmp/selfgz3462/NVIDIA-Linux-x86-304.88/kernel/nv-acpi.c:64:5: error: unknown field ‘ops’ specified in initializer
.ops = {
^
/tmp/selfgz3462/NVIDIA-Linux-x86-304.88/kernel/nv-acpi.c:64:5: error: extra brace group at end of initializer
/tmp/selfgz3462/NVIDIA-Linux-x86-304.88/kernel/nv-acpi.c:64:5: error: (near initialization for ‘nv_acpi_driver_template’)
/tmp/selfgz3462/NVIDIA-Linux-x86-304.88/kernel/nv-acpi.c:70:5: warning: excess elements in struct initializer [enabled by default]
},
^
/tmp/selfgz3462/NVIDIA-Linux-x86-304.88/kernel/nv-acpi.c:70:5: warning: (near initialization for ‘nv_acpi_driver_template’) [enabled by default]
/tmp/selfgz3462/NVIDIA-Linux-x86-304.88/kernel/nv-acpi.c: In function ‘nv_acpi_init’:
/tmp/selfgz3462/NVIDIA-Linux-x86-304.88/kernel/nv-acpi.c:102:20: error: invalid application of ‘sizeof’ to incomplete type ‘struct acpi_driver’
sizeof(struct acpi_driver));
^
In file included from /usr/src/linux-3.15.1-35.g3289da4/arch/x86/include/asm/string.h:2:0,
from /usr/src/linux-3.15.1-35.g3289da4/include/linux/string.h:17,
from /usr/src/linux-3.15.1-35.g3289da4/arch/x86/include/asm/page_32.h:34,
from /usr/src/linux-3.15.1-35.g3289da4/arch/x86/include/asm/page.h:13,
from /usr/src/linux-3.15.1-35.g3289da4/arch/x86/include/asm/thread_info.h:11,
from /usr/src/linux-3.15.1-35.g3289da4/include/linux/thread_info.h:54,
from /usr/src/linux-3.15.1-35.g3289da4/arch/x86/include/asm/preempt.h:6,
from /usr/src/linux-3.15.1-35.g3289da4/include/linux/preempt.h:18,
from /usr/src/linux-3.15.1-35.g3289da4/include/linux/spinlock.h:50,
from /usr/src/linux-3.15.1-35.g3289da4/include/linux/seqlock.h:35,
from /usr/src/linux-3.15.1-35.g3289da4/include/linux/time.h:5,
from /usr/src/linux-3.15.1-35.g3289da4/include/uapi/linux/timex.h:56,
from /usr/src/linux-3.15.1-35.g3289da4/include/linux/timex.h:56,
from /usr/src/linux-3.15.1-35.g3289da4/include/linux/sched.h:19,
from /usr/src/linux-3.15.1-35.g3289da4/include/linux/utsname.h:5,
from /tmp/selfgz3462/NVIDIA-Linux-x86-304.88/kernel/nv-linux.h:40,
from /tmp/selfgz3462/NVIDIA-Linux-x86-304.88/kernel/nv-acpi.c:15:
/tmp/selfgz3462/NVIDIA-Linux-x86-304.88/kernel/nv-acpi.c:107:20: error: invalid application of ‘sizeof’ to incomplete type ‘struct acpi_driver’
sizeof(struct acpi_driver));
^
/usr/src/linux-3.15.1-35.g3289da4/arch/x86/include/asm/string_32.h:182:48: note: in definition of macro ‘memcpy’
#define memcpy(t, f, n) __builtin_memcpy(t, f, n)
^
/tmp/selfgz3462/NVIDIA-Linux-x86-304.88/kernel/nv-acpi.c:109:5: error: implicit declaration of function ‘acpi_bus_register_driver’ -Werror=implicit-function-declaration]
status = acpi_bus_register_driver(nv_acpi_driver);
^
/tmp/selfgz3462/NVIDIA-Linux-x86-304.88/kernel/nv-acpi.c: In function ‘nv_acpi_uninit’:
/tmp/selfgz3462/NVIDIA-Linux-x86-304.88/kernel/nv-acpi.c:144:5: error: implicit declaration of function ‘acpi_bus_unregister_driver’ -Werror=implicit-function-declaration]
acpi_bus_unregister_driver(nv_acpi_driver);
^
/tmp/selfgz3462/NVIDIA-Linux-x86-304.88/kernel/nv-acpi.c: In function ‘nv_acpi_add’:
/tmp/selfgz3462/NVIDIA-Linux-x86-304.88/kernel/nv-acpi.c:187:11: error: dereferencing pointer to incomplete type
device->driver_data = pNvAcpiObject;
^
In file included from /usr/src/linux-3.15.1-35.g3289da4/include/linux/preempt.h:10:0,
from /usr/src/linux-3.15.1-35.g3289da4/include/linux/spinlock.h:50,
from /usr/src/linux-3.15.1-35.g3289da4/include/linux/seqlock.h:35,
from /usr/src/linux-3.15.1-35.g3289da4/include/linux/time.h:5,
from /usr/src/linux-3.15.1-35.g3289da4/include/uapi/linux/timex.h:56,
from /usr/src/linux-3.15.1-35.g3289da4/include/linux/timex.h:56,
from /usr/src/linux-3.15.1-35.g3289da4/include/linux/sched.h:19,
from /usr/src/linux-3.15.1-35.g3289da4/include/linux/utsname.h:5,
from /tmp/selfgz3462/NVIDIA-Linux-x86-304.88/kernel/nv-linux.h:40,
from /tmp/selfgz3462/NVIDIA-Linux-x86-304.88/kernel/nv-acpi.c:15:
/tmp/selfgz3462/NVIDIA-Linux-x86-304.88/kernel/nv-acpi.c:194:43: error: dereferencing pointer to incomplete type
list_for_each_safe(node, next, &device->children)
^
/usr/src/linux-3.15.1-35.g3289da4/include/linux/list.h:425:14: note: in definition of macro ‘list_for_each_safe’
for (pos = (head)->next, n = pos->next; pos != (head); \
^
/usr/src/linux-3.15.1-35.g3289da4/include/linux/list.h:425:25: warning: left-hand operand of comma expression has no effect -Wunused-value]
for (pos = (head)->next, n = pos->next; pos != (head); \
^
/tmp/selfgz3462/NVIDIA-Linux-x86-304.88/kernel/nv-acpi.c:194:5: note: in expansion of macro ‘list_for_each_safe’
list_for_each_safe(node, next, &device->children)
^
/tmp/selfgz3462/NVIDIA-Linux-x86-304.88/kernel/nv-acpi.c:194:43: error: dereferencing pointer to incomplete type
list_for_each_safe(node, next, &device->children)
^
/usr/src/linux-3.15.1-35.g3289da4/include/linux/list.h:425:50: note: in definition of macro ‘list_for_each_safe’
for (pos = (head)->next, n = pos->next; pos != (head); \
^
In file included from /usr/src/linux-3.15.1-35.g3289da4/include/linux/sched.h:17:0,
from /usr/src/linux-3.15.1-35.g3289da4/include/linux/utsname.h:5,
from /tmp/selfgz3462/NVIDIA-Linux-x86-304.88/kernel/nv-linux.h:40,
from /tmp/selfgz3462/NVIDIA-Linux-x86-304.88/kernel/nv-acpi.c:15:
/usr/src/linux-3.15.1-35.g3289da4/include/linux/kernel.h:846:27: error: dereferencing pointer to incomplete type
const typeof( ((type *)0)->member ) *__mptr = (ptr); \
^
/usr/src/linux-3.15.1-35.g3289da4/include/linux/list.h:351:2: note: in expansion of macro ‘container_of’
container_of(ptr, type, member)
^
/tmp/selfgz3462/NVIDIA-Linux-x86-304.88/kernel/nv-acpi.c:197:13: note: in expansion of macro ‘list_entry’
list_entry(node, struct acpi_device, node);
^
/usr/src/linux-3.15.1-35.g3289da4/include/linux/kernel.h:846:48: warning: initialization from incompatible pointer type [enabled by default]
const typeof( ((type *)0)->member ) *__mptr = (ptr); \
^
/usr/src/linux-3.15.1-35.g3289da4/include/linux/list.h:351:2: note: in expansion of macro ‘container_of’
container_of(ptr, type, member)
^
/tmp/selfgz3462/NVIDIA-Linux-x86-304.88/kernel/nv-acpi.c:197:13: note: in expansion of macro ‘list_entry’
list_entry(node, struct acpi_device, node);
^
/usr/src/linux-3.15.1-35.g3289da4/include/linux/kernel.h:846:48: warning: (near initialization for ‘dev’) [enabled by default]
const typeof( ((type *)0)->member ) *__mptr = (ptr); \
^
/usr/src/linux-3.15.1-35.g3289da4/include/linux/list.h:351:2: note: in expansion of macro ‘container_of’
container_of(ptr, type, member)
^
/tmp/selfgz3462/NVIDIA-Linux-x86-304.88/kernel/nv-acpi.c:197:13: note: in expansion of macro ‘list_entry’
list_entry(node, struct acpi_device, node);
^
In file included from /usr/src/linux-3.15.1-35.g3289da4/include/linux/compiler-gcc.h:106:0,
from /usr/src/linux-3.15.1-35.g3289da4/include/linux/compiler.h:54,
from /usr/src/linux-3.15.1-35.g3289da4/include/uapi/linux/stddef.h:1,
from /usr/src/linux-3.15.1-35.g3289da4/include/linux/stddef.h:4,
from /usr/src/linux-3.15.1-35.g3289da4/include/uapi/linux/posix_types.h:4,
from /usr/src/linux-3.15.1-35.g3289da4/include/uapi/linux/types.h:13,
from /usr/src/linux-3.15.1-35.g3289da4/include/linux/types.h:5,
from /usr/src/linux-3.15.1-35.g3289da4/include/uapi/linux/capability.h:16,
from /usr/src/linux-3.15.1-35.g3289da4/include/linux/capability.h:15,
from /usr/src/linux-3.15.1-35.g3289da4/include/linux/sched.h:15,
from /usr/src/linux-3.15.1-35.g3289da4/include/linux/utsname.h:5,
from /tmp/selfgz3462/NVIDIA-Linux-x86-304.88/kernel/nv-linux.h:40,
from /tmp/selfgz3462/NVIDIA-Linux-x86-304.88/kernel/nv-acpi.c:15:
/tmp/selfgz3462/NVIDIA-Linux-x86-304.88/kernel/nv-acpi.c:197:37: error: invalid use of undefined type ‘struct acpi_device’
list_entry(node, struct acpi_device, node);
^
/usr/src/linux-3.15.1-35.g3289da4/include/linux/compiler-gcc4.h:14:53: note: in definition of macro ‘__compiler_offsetof’
#define __compiler_offsetof(a,b) __builtin_offsetof(a,b)
^
/usr/src/linux-3.15.1-35.g3289da4/include/linux/kernel.h:847:29: note: in expansion of macro ‘offsetof’
(type *)( (char *)__mptr - offsetof(type,member) );})
^
/usr/src/linux-3.15.1-35.g3289da4/include/linux/list.h:351:2: note: in expansion of macro ‘container_of’
container_of(ptr, type, member)
^
/tmp/selfgz3462/NVIDIA-Linux-x86-304.88/kernel/nv-acpi.c:197:13: note: in expansion of macro ‘list_entry’
list_entry(node, struct acpi_device, node);
^
/tmp/selfgz3462/NVIDIA-Linux-x86-304.88/kernel/nv-acpi.c:211:13: error: implicit declaration of function ‘acpi_evaluate_integer’ -Werror=implicit-function-declaration]
acpi_evaluate_integer(dev->handle, "_ADR", NULL, &device_id);
^
/tmp/selfgz3462/NVIDIA-Linux-x86-304.88/kernel/nv-acpi.c:211:38: error: dereferencing pointer to incomplete type
acpi_evaluate_integer(dev->handle, "_ADR", NULL, &device_id);
^
/tmp/selfgz3462/NVIDIA-Linux-x86-304.88/kernel/nv-acpi.c:230:65: error: dereferencing pointer to incomplete type
pNvAcpiObject->pNvVideo[device_counter].dev_handle = dev->handle;
^
/tmp/selfgz3462/NVIDIA-Linux-x86-304.88/kernel/nv-acpi.c:245:41: error: dereferencing pointer to incomplete type
status = acpi_evaluate_object(device->handle, "_DOS", &control_argument_list, NULL);
^
/tmp/selfgz3462/NVIDIA-Linux-x86-304.88/kernel/nv-acpi.c:253:48: error: dereferencing pointer to incomplete type
status = acpi_install_notify_handler(device->handle, ACPI_DEVICE_NOTIFY,
^
/tmp/selfgz3462/NVIDIA-Linux-x86-304.88/kernel/nv-acpi.c: In function ‘nv_acpi_remove’:
/tmp/selfgz3462/NVIDIA-Linux-x86-304.88/kernel/nv-acpi.c:278:38: error: dereferencing pointer to incomplete type
nv_acpi_t *pNvAcpiObject = device->driver_data;
^
/tmp/selfgz3462/NVIDIA-Linux-x86-304.88/kernel/nv-acpi.c:292:41: error: dereferencing pointer to incomplete type
status = acpi_evaluate_object(device->handle, "_DOS", &control_argument_list, NULL);
^
/tmp/selfgz3462/NVIDIA-Linux-x86-304.88/kernel/nv-acpi.c:305:51: error: dereferencing pointer to incomplete type
status = acpi_remove_notify_handler(device->handle, ACPI_DEVICE_NOTIFY, nv_acpi_event);
^
/tmp/selfgz3462/NVIDIA-Linux-x86-304.88/kernel/nv-acpi.c:319:15: error: dereferencing pointer to incomplete type
device->driver_data = NULL;
^
/tmp/selfgz3462/NVIDIA-Linux-x86-304.88/kernel/nv-acpi.c: In function ‘nv_install_notifier’:
/tmp/selfgz3462/NVIDIA-Linux-x86-304.88/kernel/nv-acpi.c:448:28: error: dereferencing pointer to incomplete type
if ((!device) || device->driver_data)
^
/tmp/selfgz3462/NVIDIA-Linux-x86-304.88/kernel/nv-acpi.c:465:11: error: dereferencing pointer to incomplete type
device->driver_data = pNvAcpiObject;
^
/tmp/selfgz3462/NVIDIA-Linux-x86-304.88/kernel/nv-acpi.c:471:48: error: dereferencing pointer to incomplete type
status = acpi_install_notify_handler(device->handle, ACPI_DEVICE_NOTIFY,
^
/tmp/selfgz3462/NVIDIA-Linux-x86-304.88/kernel/nv-acpi.c:485:12: error: dereferencing pointer to incomplete type
device->driver_data = NULL;
^
/tmp/selfgz3462/NVIDIA-Linux-x86-304.88/kernel/nv-acpi.c: In function ‘nv_uninstall_notifier’:
/tmp/selfgz3462/NVIDIA-Linux-x86-304.88/kernel/nv-acpi.c:499:27: error: dereferencing pointer to incomplete type
pNvAcpiObject = device->driver_data;
^
/tmp/selfgz3462/NVIDIA-Linux-x86-304.88/kernel/nv-acpi.c:502:51: error: dereferencing pointer to incomplete type
status = acpi_remove_notify_handler(device->handle, ACPI_DEVICE_NOTIFY, handler);
^
/tmp/selfgz3462/NVIDIA-Linux-x86-304.88/kernel/nv-acpi.c:512:19: error: dereferencing pointer to incomplete type
device->driver_data = NULL;
^
/tmp/selfgz3462/NVIDIA-Linux-x86-304.88/kernel/nv-acpi.c: In function ‘nv_acpi_methods_init’:
/tmp/selfgz3462/NVIDIA-Linux-x86-304.88/kernel/nv-acpi.c:550:13: error: implicit declaration of function ‘acpi_bus_get_device’ -Werror=implicit-function-declaration]
retVal = acpi_bus_get_device(nvif_parent_gpu_handle, &device);
^
/tmp/selfgz3462/NVIDIA-Linux-x86-304.88/kernel/nv-acpi.c:555:23: error: dereferencing pointer to incomplete type
if (device->driver_data)
^
In file included from /usr/src/linux-3.15.1-35.g3289da4/include/linux/preempt.h:10:0,
from /usr/src/linux-3.15.1-35.g3289da4/include/linux/spinlock.h:50,
from /usr/src/linux-3.15.1-35.g3289da4/include/linux/seqlock.h:35,
from /usr/src/linux-3.15.1-35.g3289da4/include/linux/time.h:5,
from /usr/src/linux-3.15.1-35.g3289da4/include/uapi/linux/timex.h:56,
from /usr/src/linux-3.15.1-35.g3289da4/include/linux/timex.h:56,
from /usr/src/linux-3.15.1-35.g3289da4/include/linux/sched.h:19,
from /usr/src/linux-3.15.1-35.g3289da4/include/linux/utsname.h:5,
from /tmp/selfgz3462/NVIDIA-Linux-x86-304.88/kernel/nv-linux.h:40,
from /tmp/selfgz3462/NVIDIA-Linux-x86-304.88/kernel/nv-acpi.c:15:
/tmp/selfgz3462/NVIDIA-Linux-x86-304.88/kernel/nv-acpi.c: In function ‘nv_acpi_ddc_method’:
/tmp/selfgz3462/NVIDIA-Linux-x86-304.88/kernel/nv-acpi.c:1131:43: error: dereferencing pointer to incomplete type
list_for_each_safe(node, next, &device->children)
^
/usr/src/linux-3.15.1-35.g3289da4/include/linux/list.h:425:14: note: in definition of macro ‘list_for_each_safe’
for (pos = (head)->next, n = pos->next; pos != (head); \
^
/usr/src/linux-3.15.1-35.g3289da4/include/linux/list.h:425:25: warning: left-hand operand of comma expression has no effect -Wunused-value]
for (pos = (head)->next, n = pos->next; pos != (head); \
^
/tmp/selfgz3462/NVIDIA-Linux-x86-304.88/kernel/nv-acpi.c:1131:5: note: in expansion of macro ‘list_for_each_safe’
list_for_each_safe(node, next, &device->children)
^
/tmp/selfgz3462/NVIDIA-Linux-x86-304.88/kernel/nv-acpi.c:1131:43: error: dereferencing pointer to incomplete type
list_for_each_safe(node, next, &device->children)
^
/usr/src/linux-3.15.1-35.g3289da4/include/linux/list.h:425:50: note: in definition of macro ‘list_for_each_safe’
for (pos = (head)->next, n = pos->next; pos != (head); \
^
In file included from /usr/src/linux-3.15.1-35.g3289da4/include/linux/sched.h:17:0,
from /usr/src/linux-3.15.1-35.g3289da4/include/linux/utsname.h:5,
from /tmp/selfgz3462/NVIDIA-Linux-x86-304.88/kernel/nv-linux.h:40,
from /tmp/selfgz3462/NVIDIA-Linux-x86-304.88/kernel/nv-acpi.c:15:
/usr/src/linux-3.15.1-35.g3289da4/include/linux/kernel.h:846:27: error: dereferencing pointer to incomplete type
const typeof( ((type *)0)->member ) *__mptr = (ptr); \
^
/usr/src/linux-3.15.1-35.g3289da4/include/linux/list.h:351:2: note: in expansion of macro ‘container_of’
container_of(ptr, type, member)
^
/tmp/selfgz3462/NVIDIA-Linux-x86-304.88/kernel/nv-acpi.c:1134:13: note: in expansion of macro ‘list_entry’
list_entry(node, struct acpi_device, node);
^
/usr/src/linux-3.15.1-35.g3289da4/include/linux/kernel.h:846:48: warning: initialization from incompatible pointer type [enabled by default]
const typeof( ((type *)0)->member ) *__mptr = (ptr); \
^
/usr/src/linux-3.15.1-35.g3289da4/include/linux/list.h:351:2: note: in expansion of macro ‘container_of’
container_of(ptr, type, member)
^
/tmp/selfgz3462/NVIDIA-Linux-x86-304.88/kernel/nv-acpi.c:1134:13: note: in expansion of macro ‘list_entry’
list_entry(node, struct acpi_device, node);
^
/usr/src/linux-3.15.1-35.g3289da4/include/linux/kernel.h:846:48: warning: (near initialization for ‘dev’) [enabled by default]
const typeof( ((type *)0)->member ) *__mptr = (ptr); \
^
/usr/src/linux-3.15.1-35.g3289da4/include/linux/list.h:351:2: note: in expansion of macro ‘container_of’
container_of(ptr, type, member)
^
/tmp/selfgz3462/NVIDIA-Linux-x86-304.88/kernel/nv-acpi.c:1134:13: note: in expansion of macro ‘list_entry’
list_entry(node, struct acpi_device, node);
^
In file included from /usr/src/linux-3.15.1-35.g3289da4/include/linux/compiler-gcc.h:106:0,
from /usr/src/linux-3.15.1-35.g3289da4/include/linux/compiler.h:54,
from /usr/src/linux-3.15.1-35.g3289da4/include/uapi/linux/stddef.h:1,
from /usr/src/linux-3.15.1-35.g3289da4/include/linux/stddef.h:4,
from /usr/src/linux-3.15.1-35.g3289da4/include/uapi/linux/posix_types.h:4,
from /usr/src/linux-3.15.1-35.g3289da4/include/uapi/linux/types.h:13,
from /usr/src/linux-3.15.1-35.g3289da4/include/linux/types.h:5,
from /usr/src/linux-3.15.1-35.g3289da4/include/uapi/linux/capability.h:16,
from /usr/src/linux-3.15.1-35.g3289da4/include/linux/capability.h:15,
from /usr/src/linux-3.15.1-35.g3289da4/include/linux/sched.h:15,
from /usr/src/linux-3.15.1-35.g3289da4/include/linux/utsname.h:5,
from /tmp/selfgz3462/NVIDIA-Linux-x86-304.88/kernel/nv-linux.h:40,
from /tmp/selfgz3462/NVIDIA-Linux-x86-304.88/kernel/nv-acpi.c:15:
/tmp/selfgz3462/NVIDIA-Linux-x86-304.88/kernel/nv-acpi.c:1134:37: error: invalid use of undefined type ‘struct acpi_device’
list_entry(node, struct acpi_device, node);
^
/usr/src/linux-3.15.1-35.g3289da4/include/linux/compiler-gcc4.h:14:53: note: in definition of macro ‘__compiler_offsetof’
#define __compiler_offsetof(a,b) __builtin_offsetof(a,b)
^
/usr/src/linux-3.15.1-35.g3289da4/include/linux/kernel.h:847:29: note: in expansion of macro ‘offsetof’
(type *)( (char *)__mptr - offsetof(type,member) );})
^
/usr/src/linux-3.15.1-35.g3289da4/include/linux/list.h:351:2: note: in expansion of macro ‘container_of’
container_of(ptr, type, member)
^
/tmp/selfgz3462/NVIDIA-Linux-x86-304.88/kernel/nv-acpi.c:1134:13: note: in expansion of macro ‘list_entry’
list_entry(node, struct acpi_device, node);
^
/tmp/selfgz3462/NVIDIA-Linux-x86-304.88/kernel/nv-acpi.c:1139:43: error: dereferencing pointer to incomplete type
status = acpi_evaluate_integer(dev->handle, "_ADR", NULL, &device_id);
^
/tmp/selfgz3462/NVIDIA-Linux-x86-304.88/kernel/nv-acpi.c:1148:33: error: dereferencing pointer to incomplete type
lcd_dev_handle = dev->handle;
^
cc1: some warnings being treated as errors
make[4]: *** [/tmp/selfgz3462/NVIDIA-Linux-x86-304.88/kernel/nv-acpi.o] 错误 1
make[3]: *** [_module_/tmp/selfgz3462/NVIDIA-Linux-x86-304.88/kernel] 错误 2
make[2]: *** [sub-make] 错误 2
NVIDIA: left KBUILD.
nvidia.ko failed to build!
make[1]: *** [module] 错误 1
make: *** [module] 错误 2
-> Error.
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 http://www.nvidia.com.