|
刚刚安装好的系统
linyin ~ # uname -a
Linux linyin 2.6.30-gentoo-r8 #2 SMP Wed Nov 4 10:26:02 CST 2009 i686 Pentium III (Coppermine) GenuineIntel GNU/Linux
参考的手册是:
http://en.gentoo-wiki.com/wiki/Nvidia
因为使用的是NVIDIA的老显卡:RIVA TNT2 Model 64
手册里指定驱动为>=x11-drivers/nvidia-drivers-87.00
linyin ~ # more /etc/portage/package.mask
>=x11-drivers/nvidia-drivers-87.00
这是出错信息:
linyin linyin # emerge nvidia-drivers
* IMPORTANT: 1 news items need reading for repository 'gentoo'.
* Use eselect news to read news items.
Calculating dependencies... done!
>>> Verifying ebuild manifests
>>> Emerging (1 of 1) x11-drivers/nvidia-drivers-71.86.09
* NVIDIA-Linux-x86-71.86.09-pkg0.run RMD160 SHA1 SHA256 size ;-) ... [ ok ]
* checking ebuild checksums ;-) ... [ ok ]
* checking auxfile checksums ;-) ... [ ok ]
* checking miscfile checksums ;-) ... [ ok ]
* Determining the location of the kernel source code
* Found kernel source directory:
* /usr/src/linux
* Found kernel object directory:
* /lib/modules/2.6.30-gentoo-r8/build
* Found sources for kernel version:
* 2.6.30-gentoo-r8
* Checking for MTRR support ... [ ok ]
>>> Unpacking source...
>>> Unpacking NVIDIA-Linux-x86-71.86.09-pkg0.run to /var/tmp/portage/x11-drivers/nvidia-drivers-71.86.09/work/NVIDIA-Linux-x86-71.86.09-pkg0
>>> Source unpacked in /var/tmp/portage/x11-drivers/nvidia-drivers-71.86.09/work
>>> Preparing source in /var/tmp/portage/x11-drivers/nvidia-drivers-71.86.09/work ...
* Applying NVIDIA_glx-defines.patch ... [ ok ]
* Applying NVIDIA_glx-glheader.patch ... [ ok ]
sed: can't read /var/tmp/portage/x11-drivers/nvidia-drivers-71.86.09/work/NVIDIA-Linux-x86-71.86.09-pkg0/Makefile.kbuild: No such file or directory
* Converting NVIDIA-Linux-x86-71.86.09-pkg0/usr/src/nv/Makefile.kbuild to use M= instead of SUBDIRS= ... [ ok ]
>>> Source prepared.
>>> Configuring source in /var/tmp/portage/x11-drivers/nvidia-drivers-71.86.09/work ...
>>> Source configured.
>>> Compiling source in /var/tmp/portage/x11-drivers/nvidia-drivers-71.86.09/work ...
/var/tmp/portage/x11-drivers/nvidia-drivers-71.86.09/temp/environment: line 2851: cd: /var/tmp/portage/x11-drivers/nvidia-drivers-71.86.09/work/nvidia-drivers-71.86.09: No such file or directory
ln: creating symbolic link `Module.symvers': File exists
* Preparing nvidia module
make -j2 HOSTCC=i686-pc-linux-gnu-gcc CROSS_COMPILE=i686-pc-linux-gnu- LDFLAGS= IGNORE_CC_MISMATCH=yes V=1 SYSSRC=/usr/src/linux SYSOUT=/lib/modules/2.6.30-gentoo-r8/build HOST_CC=i686-pc-linux-gnu-gcc clean module
NVIDIA: calling KBUILD...
make CC=cc KBUILD_OUTPUT=/lib/modules/2.6.30-gentoo-r8/build KBUILD_VERBOSE=1 -C /usr/src/linux M=/var/tmp/portage/x11-drivers/nvidia-drivers-71.86.09/work/NVIDIA-Linux-x86-71.86.09-pkg0/usr/src/nv modules
make[2]: warning: jobserver unavailable: using -j1. Add `+' to parent make rule.
make -C /lib/modules/2.6.30-gentoo-r8/build \
KBUILD_SRC=/usr/src/linux-2.6.30-gentoo-r8 \
KBUILD_EXTMOD="/var/tmp/portage/x11-drivers/nvidia-drivers-71.86.09/work/NVIDIA-Linux-x86-71.86.09-pkg0/usr/src/nv" -f /usr/src/linux-2.6.30-gentoo-r8/Makefile \
modules
test -e include/linux/autoconf.h -a -e include/config/auto.conf || ( \
echo; \
echo " ERROR: Kernel configuration is invalid."; \
echo " include/linux/autoconf.h or include/config/auto.conf are missing."; \
echo " Run 'make oldconfig && make prepare' on kernel src to fix it."; \
echo; \
/bin/false)
mkdir -p /var/tmp/portage/x11-drivers/nvidia-drivers-71.86.09/work/NVIDIA-Linux-x86-71.86.09-pkg0/usr/src/nv/.tmp_versions ; rm -f /var/tmp/portage/x11-drivers/nvidia-drivers-71.86.09/work/NVIDIA-Linux-x86-71.86.09-pkg0/usr/src/nv/.tmp_versions/*
make -f /usr/src/linux-2.6.30-gentoo-r8/scripts/Makefile.build obj=/var/tmp/portage/x11-drivers/nvidia-drivers-71.86.09/work/NVIDIA-Linux-x86-71.86.09-pkg0/usr/src/nv
cc -Wp,-MD,/var/tmp/portage/x11-drivers/nvidia-drivers-71.86.09/work/NVIDIA-Linux-x86-71.86.09-pkg0/usr/src/nv/.nv.o.d -nostdinc -isystem /usr/lib/gcc/i686-pc-linux-gnu/4.3.4/include -Iinclude -Iinclude2 -I/usr/src/linux-2.6.30-gentoo-r8/include -I/usr/src/linux-2.6.30-gentoo-r8/arch/x86/include -include include/linux/autoconf.h -I/var/tmp/portage/x11-drivers/nvidia-drivers-71.86.09/work/NVIDIA-Linux-x86-71.86.09-pkg0/usr/src/nv -D__KERNEL__ -Wall -Wundef -Wstrict-prototypes -Wno-trigraphs -fno-strict-aliasing -fno-common -Werror-implicit-function-declaration -fno-delete-null-pointer-checks -Os -m32 -msoft-float -mregparm=3 -freg-struct-return -mpreferred-stack-boundary=2 -march=i686 -mtune=pentium3 -mtune=generic -Wa,-mtune=generic32 -ffreestanding -DCONFIG_AS_CFI=1 -DCONFIG_AS_CFI_SIGNAL_FRAME=1 -pipe -Wno-sign-compare -fno-asynchronous-unwind-tables -mno-sse -mno-mmx -mno-sse2 -mno-3dnow -fno-stack-protector -fno-omit-frame-pointer -fno-optimize-sibling-calls -Wdeclaration-after-statement -Wno-pointer-sign -fno-strict-overflow -I/var/tmp/portage/x11-drivers/nvidia-drivers-71.86.09/work/NVIDIA-Linux-x86-71.86.09-pkg0/usr/src/nv -Wall -Wimplicit -Wreturn-type -Wswitch -Wformat -Wchar-subscripts -Wparentheses -Wpointer-arith -Wno-multichar -Werror -MD -Wsign-compare -Wno-cast-qual -Wno-error -D_LOOSE_KERNEL_NAMES -D__KERNEL__ -DMODULE -DNTRM -D_GNU_SOURCE -D_LOOSE_KERNEL_NAMES -D__KERNEL__ -DMODULE -DNV_VERSION_STRING=\"71.86.09\" -DNV_UNIX -DNV_LINUX -DNV_INT64_OK -DNVCPU_X86 -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/tmp/portage/x11-drivers/nvidia-drivers-71.86.09/work/NVIDIA-Linux-x86-71.86.09-pkg0/usr/src/nv/nv.o /var/tmp/portage/x11-drivers/nvidia-drivers-71.86.09/work/NVIDIA-Linux-x86-71.86.09-pkg0/usr/src/nv/nv.c
In file included from include/linux/bitops.h:17,
from include/linux/kernel.h:15,
from include/linux/sched.h:52,
from include/linux/utsname.h:35,
from /var/tmp/portage/x11-drivers/nvidia-drivers-71.86.09/work/NVIDIA-Linux-x86-71.86.09-pkg0/usr/src/nv/nv-linux.h:19,
from /var/tmp/portage/x11-drivers/nvidia-drivers-71.86.09/work/NVIDIA-Linux-x86-71.86.09-pkg0/usr/src/nv/nv.c:14:
/usr/src/linux-2.6.30-gentoo-r8/arch/x86/include/asm/bitops.h: In function 'set_bit':
/usr/src/linux-2.6.30-gentoo-r8/arch/x86/include/asm/bitops.h:64: warning: pointer of type 'void *' used in arithmetic
/usr/src/linux-2.6.30-gentoo-r8/arch/x86/include/asm/bitops.h: In function 'clear_bit':
/usr/src/linux-2.6.30-gentoo-r8/arch/x86/include/asm/bitops.h:102: warning: pointer of type 'void *' used in arithmetic
/usr/src/linux-2.6.30-gentoo-r8/arch/x86/include/asm/bitops.h: In function 'change_bit':
/usr/src/linux-2.6.30-gentoo-r8/arch/x86/include/asm/bitops.h:178: warning: pointer of type 'void *' used in arithmetic
In file included from include/linux/list.h:6,
from include/linux/preempt.h:11,
from include/linux/spinlock.h:50,
from include/linux/seqlock.h:29,
from include/linux/time.h:8,
from include/linux/timex.h:56,
from include/linux/sched.h:54,
from include/linux/utsname.h:35,
from /var/tmp/portage/x11-drivers/nvidia-drivers-71.86.09/work/NVIDIA-Linux-x86-71.86.09-pkg0/usr/src/nv/nv-linux.h:19,
from /var/tmp/portage/x11-drivers/nvidia-drivers-71.86.09/work/NVIDIA-Linux-x86-71.86.09-pkg0/usr/src/nv/nv.c:14:
include/linux/prefetch.h: In function 'prefetch_range':
include/linux/prefetch.h:57: warning: pointer of type 'void *' used in arithmetic
In file included from include/linux/utsname.h:35,
from /var/tmp/portage/x11-drivers/nvidia-drivers-71.86.09/work/NVIDIA-Linux-x86-71.86.09-pkg0/usr/src/nv/nv-linux.h:19,
from /var/tmp/portage/x11-drivers/nvidia-drivers-71.86.09/work/NVIDIA-Linux-x86-71.86.09-pkg0/usr/src/nv/nv.c:14:
include/linux/sched.h: In function 'object_is_on_stack':
include/linux/sched.h:2121: warning: pointer of type 'void *' used in arithmetic
In file included from include/linux/io.h:22,
from include/linux/pci.h:54,
from /var/tmp/portage/x11-drivers/nvidia-drivers-71.86.09/work/NVIDIA-Linux-x86-71.86.09-pkg0/usr/src/nv/nv-linux.h:83,
from /var/tmp/portage/x11-drivers/nvidia-drivers-71.86.09/work/NVIDIA-Linux-x86-71.86.09-pkg0/usr/src/nv/nv.c:14:
/usr/src/linux-2.6.30-gentoo-r8/arch/x86/include/asm/io.h: In function 'writeq':
/usr/src/linux-2.6.30-gentoo-r8/arch/x86/include/asm/io.h:70: warning: pointer of type 'void *' used in arithmetic
In file included from include/linux/dma-mapping.h:7,
from include/asm-generic/pci-dma-compat.h:7,
from /usr/src/linux-2.6.30-gentoo-r8/arch/x86/include/asm/pci.h:129,
from include/linux/pci.h:1098,
from /var/tmp/portage/x11-drivers/nvidia-drivers-71.86.09/work/NVIDIA-Linux-x86-71.86.09-pkg0/usr/src/nv/nv-linux.h:83,
from /var/tmp/portage/x11-drivers/nvidia-drivers-71.86.09/work/NVIDIA-Linux-x86-71.86.09-pkg0/usr/src/nv/nv.c:14:
include/linux/scatterlist.h: In function 'sg_virt':
include/linux/scatterlist.h:199: warning: pointer of type 'void *' used in arithmetic
In file included from /var/tmp/portage/x11-drivers/nvidia-drivers-71.86.09/work/NVIDIA-Linux-x86-71.86.09-pkg0/usr/src/nv/nv-linux.h:110,
from /var/tmp/portage/x11-drivers/nvidia-drivers-71.86.09/work/NVIDIA-Linux-x86-71.86.09-pkg0/usr/src/nv/nv.c:14:
include/linux/highmem.h: In function 'zero_user_segments':
include/linux/highmem.h:147: warning: pointer of type 'void *' used in arithmetic
include/linux/highmem.h:147: warning: pointer of type 'void *' used in arithmetic
include/linux/highmem.h:147: warning: pointer of type 'void *' used in arithmetic
include/linux/highmem.h:147: warning: pointer of type 'void *' used in arithmetic
include/linux/highmem.h:150: warning: pointer of type 'void *' used in arithmetic
include/linux/highmem.h:150: warning: pointer of type 'void *' used in arithmetic
include/linux/highmem.h:150: warning: pointer of type 'void *' used in arithmetic
include/linux/highmem.h:150: warning: pointer of type 'void *' used in arithmetic
/var/tmp/portage/x11-drivers/nvidia-drivers-71.86.09/work/NVIDIA-Linux-x86-71.86.09-pkg0/usr/src/nv/nv.c: In function 'nvos_proc_create':
/var/tmp/portage/x11-drivers/nvidia-drivers-71.86.09/work/NVIDIA-Linux-x86-71.86.09-pkg0/usr/src/nv/nv.c:575: error: 'struct proc_dir_entry' has no member named 'owner'
/var/tmp/portage/x11-drivers/nvidia-drivers-71.86.09/work/NVIDIA-Linux-x86-71.86.09-pkg0/usr/src/nv/nv.c:576: error: 'struct proc_dir_entry' has no member named 'owner'
/var/tmp/portage/x11-drivers/nvidia-drivers-71.86.09/work/NVIDIA-Linux-x86-71.86.09-pkg0/usr/src/nv/nv.c:577: error: 'struct proc_dir_entry' has no member named 'owner'
/var/tmp/portage/x11-drivers/nvidia-drivers-71.86.09/work/NVIDIA-Linux-x86-71.86.09-pkg0/usr/src/nv/nv.c:597: error: 'struct proc_dir_entry' has no member named 'owner'
/var/tmp/portage/x11-drivers/nvidia-drivers-71.86.09/work/NVIDIA-Linux-x86-71.86.09-pkg0/usr/src/nv/nv.c:610: error: 'struct proc_dir_entry' has no member named 'owner'
/var/tmp/portage/x11-drivers/nvidia-drivers-71.86.09/work/NVIDIA-Linux-x86-71.86.09-pkg0/usr/src/nv/nv.c:621: error: 'struct proc_dir_entry' has no member named 'owner'
/var/tmp/portage/x11-drivers/nvidia-drivers-71.86.09/work/NVIDIA-Linux-x86-71.86.09-pkg0/usr/src/nv/nv.c:631: error: 'struct proc_dir_entry' has no member named 'owner'
/var/tmp/portage/x11-drivers/nvidia-drivers-71.86.09/work/NVIDIA-Linux-x86-71.86.09-pkg0/usr/src/nv/nv.c:641: error: 'struct proc_dir_entry' has no member named 'owner'
/var/tmp/portage/x11-drivers/nvidia-drivers-71.86.09/work/NVIDIA-Linux-x86-71.86.09-pkg0/usr/src/nv/nv.c:652: error: 'struct proc_dir_entry' has no member named 'owner'
/var/tmp/portage/x11-drivers/nvidia-drivers-71.86.09/work/NVIDIA-Linux-x86-71.86.09-pkg0/usr/src/nv/nv.c:659: error: 'struct proc_dir_entry' has no member named 'owner'
/var/tmp/portage/x11-drivers/nvidia-drivers-71.86.09/work/NVIDIA-Linux-x86-71.86.09-pkg0/usr/src/nv/nv.c: In function 'nvos_proc_add_warning_file':
/var/tmp/portage/x11-drivers/nvidia-drivers-71.86.09/work/NVIDIA-Linux-x86-71.86.09-pkg0/usr/src/nv/nv.c:686: error: 'struct proc_dir_entry' has no member named 'owner'
make[4]: *** [/var/tmp/portage/x11-drivers/nvidia-drivers-71.86.09/work/NVIDIA-Linux-x86-71.86.09-pkg0/usr/src/nv/nv.o] Error 1
make[3]: *** [_module_/var/tmp/portage/x11-drivers/nvidia-drivers-71.86.09/work/NVIDIA-Linux-x86-71.86.09-pkg0/usr/src/nv] Error 2
make[2]: *** [sub-make] Error 2
NVIDIA: left KBUILD.
nvidia.ko failed to build!
make[1]: *** [module] Error 1
make: *** [module] Error 2
*
* ERROR: x11-drivers/nvidia-drivers-71.86.09 failed.
* Call stack:
* ebuild.sh, line 49: Called src_compile
* environment, line 3867: Called linux-mod_src_compile
* environment, line 2870: Called die
* The specific snippet of code:
* eval "emake HOSTCC=\"$(tc-getBUILD_CC)\" CROSS_COMPILE=${CHOST}- LDFLAGS=\"$(get_abi_LDFLAGS)\" ${BUILD_FIXES} ${BUILD_PARAMS} ${BUILD_TARGETS} " || die "Unable to emake HOSTCC="$(tc-getBUILD_CC)" CROSS_COMPILE=${CHOST}- LDFLAGS="$(get_abi_LDFLAGS)" ${BUILD_FIXES} ${BUILD_PARAMS} ${BUILD_TARGETS}";
* The die message:
* Unable to emake HOSTCC=i686-pc-linux-gnu-gcc CROSS_COMPILE=i686-pc-linux-gnu- LDFLAGS= IGNORE_CC_MISMATCH=yes V=1 SYSSRC=/usr/src/linux SYSOUT=/lib/modules/2.6.30-gentoo-r8/build HOST_CC=i686-pc-linux-gnu-gcc clean module
*
* If you need support, post the topmost build error, and the call stack if relevant.
* A complete build log is located at '/var/tmp/portage/x11-drivers/nvidia-drivers-71.86.09/temp/build.log'.
* The ebuild environment file is located at '/var/tmp/portage/x11-drivers/nvidia-drivers-71.86.09/temp/environment'.
*
>>> Failed to emerge x11-drivers/nvidia-drivers-71.86.09, Log file:
>>> '/var/tmp/portage/x11-drivers/nvidia-drivers-71.86.09/temp/build.log'
* Messages for package x11-drivers/nvidia-drivers-71.86.09:
*
* ERROR: x11-drivers/nvidia-drivers-71.86.09 failed.
* Call stack:
* ebuild.sh, line 49: Called src_compile
* environment, line 3867: Called linux-mod_src_compile
* environment, line 2870: Called die
* The specific snippet of code:
* eval "emake HOSTCC=\"$(tc-getBUILD_CC)\" CROSS_COMPILE=${CHOST}- LDFLAGS=\"$(get_abi_LDFLAGS)\" ${BUILD_FIXES} ${BUILD_PARAMS} ${BUILD_TARGETS} " || die "Unable to emake HOSTCC="$(tc-getBUILD_CC)" CROSS_COMPILE=${CHOST}- LDFLAGS="$(get_abi_LDFLAGS)" ${BUILD_FIXES} ${BUILD_PARAMS} ${BUILD_TARGETS}";
* The die message:
* Unable to emake HOSTCC=i686-pc-linux-gnu-gcc CROSS_COMPILE=i686-pc-linux-gnu- LDFLAGS= IGNORE_CC_MISMATCH=yes V=1 SYSSRC=/usr/src/linux SYSOUT=/lib/modules/2.6.30-gentoo-r8/build HOST_CC=i686-pc-linux-gnu-gcc clean module
*
* If you need support, post the topmost build error, and the call stack if relevant.
* A complete build log is located at '/var/tmp/portage/x11-drivers/nvidia-drivers-71.86.09/temp/build.log'.
* The ebuild environment file is located at '/var/tmp/portage/x11-drivers/nvidia-drivers-71.86.09/temp/environment'.
*
* IMPORTANT: 1 news items need reading for repository 'gentoo'.
* Use eselect news to read news items.
请帮助,谢谢. |
|