LinuxSir.cn,穿越时空的Linuxsir!

 找回密码
 注册
搜索
热搜: shell linux mysql
查看: 774|回复: 4

nvidia-drivers编译不过 请求帮助

[复制链接]
发表于 2008-7-23 15:18:13 | 显示全部楼层 |阅读模式
现贴出安装过程:
localhost Desktop # emerge -1 nvidia-drivers
Calculating dependencies... done!
>>> Verifying ebuild Manifests...

>>> Emerging (1 of 1) x11-drivers/nvidia-drivers-96.43.05 to /
* NVIDIA-Linux-x86_64-96.43.05-pkg2.run RMD160 SHA1 SHA256 size ;-) ...  [ ok ]
* checking ebuild checksums ;-) ...                                      [ ok ]
* checking auxfile checksums ;-) ...                                     [ ok ]
* checking miscfile checksums ;-) ...                                    [ ok ]
* checking NVIDIA-Linux-x86_64-96.43.05-pkg2.run ;-) ...                 [ ok ]
* Determining the location of the kernel source code
* Found kernel source directory:
*     /usr/src/linux
* Found kernel object directory:
*     /lib/modules/2.6.26/build
* Found sources for kernel version:
*     2.6.26
* Checking for MTRR support ...                                          [ ok ]
>>> Unpacking source...
Creating directory NVIDIA-Linux-x86_64-96.43.05-pkg2
Verifying archive integrity... OK
Uncompressing NVIDIA Accelerated Graphics Driver for Linux-x86_64 96.43.05......................................................................................................................................
* Applying NVIDIA_glx-defines.patch ...                                  [ ok ]
* Applying NVIDIA_glx-glheader.patch ...                                 [ ok ]
* Applying NVIDIA_i2c-hwmon.patch ...                                    [ ok ]
* Applying NVIDIA_kernel-96.43.05-2290218.diff ...                       [ ok ]
* Converting Makefile.kbuild to use M= instead of SUBDIRS= ...           [ ok ]
>>> Source unpacked.
>>> Compiling source in /var/tmp/portage/x11-drivers/nvidia-drivers-96.43.05/work/NVIDIA-Linux-x86_64-96.43.05-pkg2/usr/src/nv ...
* Preparing nvidia module
NVIDIA: calling KBUILD...
make CC=x86_64-pc-linux-gnu-gcc KBUILD_OUTPUT=/lib/modules/2.6.26/build KBUILD_VERBOSE=1 -C /usr/src/linux M=/var/tmp/portage/x11-drivers/nvidia-drivers-96.43.05/work/NVIDIA-Linux-x86_64-96.43.05-pkg2/usr/src/nv modules
make[2]: warning: jobserver unavailable: using -j1.  Add `+' to parent make rule.
make -C /lib/modules/2.6.26/build \
        KBUILD_SRC=/usr/src/linux \
        KBUILD_EXTMOD="/var/tmp/portage/x11-drivers/nvidia-drivers-96.43.05/work/NVIDIA-Linux-x86_64-96.43.05-pkg2/usr/src/nv" -f /usr/src/linux/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-96.43.05/work/NVIDIA-Linux-x86_64-96.43.05-pkg2/usr/src/nv/.tmp_versions ; rm -f /var/tmp/portage/x11-drivers/nvidia-drivers-96.43.05/work/NVIDIA-Linux-x86_64-96.43.05-pkg2/usr/src/nv/.tmp_versions/*
make -f /usr/src/linux/scripts/Makefile.build obj=/var/tmp/portage/x11-drivers/nvidia-drivers-96.43.05/work/NVIDIA-Linux-x86_64-96.43.05-pkg2/usr/src/nv
  x86_64-pc-linux-gnu-gcc -Wp,-MD,/var/tmp/portage/x11-drivers/nvidia-drivers-96.43.05/work/NVIDIA-Linux-x86_64-96.43.05-pkg2/usr/src/nv/.nv.o.d  -nostdinc -isystem /usr/lib/gcc/x86_64-pc-linux-gnu/4.1.2/include -D__KERNEL__ -Iinclude -Iinclude2 -I/usr/src/linux/include -include include/linux/autoconf.h  -I/var/tmp/portage/x11-drivers/nvidia-drivers-96.43.05/work/NVIDIA-Linux-x86_64-96.43.05-pkg2/usr/src/nv -Wall -Wundef -Wstrict-prototypes -Wno-trigraphs -fno-strict-aliasing -fno-common -Werror-implicit-function-declaration -Os -fno-stack-protector -m64 -mno-red-zone -mcmodel=kernel -funit-at-a-time -maccumulate-outgoing-args -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 -I/usr/src/linux/include/asm-x86/mach-default -Iinclude/asm-x86/mach-default -fomit-frame-pointer -Wdeclaration-after-statement -Wno-pointer-sign  -I/var/tmp/portage/x11-drivers/nvidia-drivers-96.43.05/work/NVIDIA-Linux-x86_64-96.43.05-pkg2/usr/src/nv -Wall -Wimplicit -Wreturn-type -Wswitch -Wformat -Wchar-subscripts -Wparentheses -Wno-multichar -Werror -mcmodel=kernel -mno-red-zone -MD -Wno-cast-qual -Wno-error -D_LOOSE_KERNEL_NAMES -D__KERNEL__ -DMODULE -DNVRM -DNV_VERSION_STRING=\"96.43.05\" -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-96.43.05/work/NVIDIA-Linux-x86_64-96.43.05-pkg2/usr/src/nv/.tmp_nv.o /var/tmp/portage/x11-drivers/nvidia-drivers-96.43.05/work/NVIDIA-Linux-x86_64-96.43.05-pkg2/usr/src/nv/nv.c
/var/tmp/portage/x11-drivers/nvidia-drivers-96.43.05/work/NVIDIA-Linux-x86_64-96.43.05-pkg2/usr/src/nv/nv.c: In function ‘nvos_proc_create’:
/var/tmp/portage/x11-drivers/nvidia-drivers-96.43.05/work/NVIDIA-Linux-x86_64-96.43.05-pkg2/usr/src/nv/nv.c:502: error: ‘proc_root_driver’ undeclared (first use in this function)
/var/tmp/portage/x11-drivers/nvidia-drivers-96.43.05/work/NVIDIA-Linux-x86_64-96.43.05-pkg2/usr/src/nv/nv.c:502: error: (Each undeclared identifier is reported only once
/var/tmp/portage/x11-drivers/nvidia-drivers-96.43.05/work/NVIDIA-Linux-x86_64-96.43.05-pkg2/usr/src/nv/nv.c:502: error: for each function it appears in.)
/var/tmp/portage/x11-drivers/nvidia-drivers-96.43.05/work/NVIDIA-Linux-x86_64-96.43.05-pkg2/usr/src/nv/nv.c: In function ‘nv_kern_vma_nopage’:
/var/tmp/portage/x11-drivers/nvidia-drivers-96.43.05/work/NVIDIA-Linux-x86_64-96.43.05-pkg2/usr/src/nv/nv.c:1702: error: ‘NOPAGE_SIGBUS’ undeclared (first use in this function)
/var/tmp/portage/x11-drivers/nvidia-drivers-96.43.05/work/NVIDIA-Linux-x86_64-96.43.05-pkg2/usr/src/nv/nv.c: At top level:
/var/tmp/portage/x11-drivers/nvidia-drivers-96.43.05/work/NVIDIA-Linux-x86_64-96.43.05-pkg2/usr/src/nv/nv.c:1709: error: unknown field ‘nopage’ specified in initializer
/var/tmp/portage/x11-drivers/nvidia-drivers-96.43.05/work/NVIDIA-Linux-x86_64-96.43.05-pkg2/usr/src/nv/nv.c:1709: warning: initialization from incompatible pointer type
make[4]: *** [/var/tmp/portage/x11-drivers/nvidia-drivers-96.43.05/work/NVIDIA-Linux-x86_64-96.43.05-pkg2/usr/src/nv/nv.o] Error 1
make[3]: *** [_module_/var/tmp/portage/x11-drivers/nvidia-drivers-96.43.05/work/NVIDIA-Linux-x86_64-96.43.05-pkg2/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-96.43.05 failed.
* Call stack:
*               ebuild.sh, line   49:  Called src_compile
*             environment, line 3690:  Called linux-mod_src_compile
*             environment, line 2740:  Called die
* The specific snippet of code:
*               eval "emake HOSTCC=\"$(tc-getBUILD_CC)\"                         CC=\"$(get-KERNEL_CC)\"                                                 LDFLAGS=\"$(get_abi_LDFLAGS)\"                                                 ${BUILD_FIXES}                 ${BUILD_PARAMS}                                                 ${BUILD_TARGETS} " || die "Unable to emake HOSTCC="$(tc-getBUILD_CC)" CC="$(get-KERNEL_CC)" LDFLAGS="$(get_abi_LDFLAGS)" ${BUILD_FIXES} ${BUILD_PARAMS} ${BUILD_TARGETS}";
*  The die message:
*   Unable to emake HOSTCC=x86_64-pc-linux-gnu-gcc CC=x86_64-pc-linux-gnu-gcc LDFLAGS=  IGNORE_CC_MISMATCH=yes V=1 SYSSRC=/usr/src/linux SYSOUT=/lib/modules/2.6.26/build 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-96.43.05/temp/build.log'.
* The ebuild environment file is located at '/var/tmp/portage/x11-drivers/nvidia-drivers-96.43.05/temp/environment'.
*

* Messages for package x11-drivers/nvidia-drivers-96.43.05:

*
* ERROR: x11-drivers/nvidia-drivers-96.43.05 failed.
* Call stack:
*               ebuild.sh, line   49:  Called src_compile
*             environment, line 3690:  Called linux-mod_src_compile
*             environment, line 2740:  Called die
* The specific snippet of code:
*               eval "emake HOSTCC=\"$(tc-getBUILD_CC)\"                         CC=\"$(get-KERNEL_CC)\"                                                 LDFLAGS=\"$(get_abi_LDFLAGS)\"                                                 ${BUILD_FIXES}                 ${BUILD_PARAMS}                                                 ${BUILD_TARGETS} " || die "Unable to emake HOSTCC="$(tc-getBUILD_CC)" CC="$(get-KERNEL_CC)" LDFLAGS="$(get_abi_LDFLAGS)" ${BUILD_FIXES} ${BUILD_PARAMS} ${BUILD_TARGETS}";
*  The die message:
*   Unable to emake HOSTCC=x86_64-pc-linux-gnu-gcc CC=x86_64-pc-linux-gnu-gcc LDFLAGS=  IGNORE_CC_MISMATCH=yes V=1 SYSSRC=/usr/src/linux SYSOUT=/lib/modules/2.6.26/build 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-96.43.05/temp/build.log'.
* The ebuild environment file is located at '/var/tmp/portage/x11-drivers/nvidia-drivers-96.43.05/temp/environment'.


---------------------------
emerge --info内容:
Portage 2.1.4.4 (default/linux/amd64/2008.0, gcc-4.1.2, glibc-2.6.1-r0, 2.6.26 x86_64)
=================================================================
System uname: 2.6.26 x86_64 AMD Sempron(tm) Processor 2500+
Timestamp of tree: Sun, 13 Jul 2008 17:45:01 +0000
app-shells/bash:     3.2_p17-r1
dev-java/java-config: 1.3.7, 2.1.6
dev-lang/python:     2.4.4-r6, 2.5.2-r2
dev-python/pycrypto: 2.0.1-r6
sys-apps/baselayout: 1.12.11.1
sys-apps/sandbox:    1.2.18.1-r2
sys-devel/autoconf:  2.13, 2.62-r1
sys-devel/automake:  1.5, 1.7.9-r1, 1.8.5-r3, 1.9.6-r2, 1.10.1-r1
sys-devel/binutils:  2.18-r1
sys-devel/gcc-config: 1.4.0-r4
sys-devel/libtool:   2.2.4
virtual/os-headers:  2.6.23-r3
ACCEPT_KEYWORDS="amd64 ~amd64"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-march=k8 -O2 -pipe"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/kde/3.5/env /usr/kde/3.5/share/config /usr/kde/3.5/shutdown /usr/share/config"
CONFIG_PROTECT_MASK="/etc/env.d /etc/env.d/java/ /etc/fonts/fonts.conf /etc/gconf /etc/revdep-rebuild /etc/splash /etc/terminfo /etc/udev/rules.d"
CXXFLAGS="-march=k8 -O2 -pipe"
DISTDIR="/usr/portage/distfiles"
FEATURES="distlocks metadata-transfer sandbox sfperms strict unmerge-orphans userfetch"
GENTOO_MIRRORS="ftp://gentoo.anheng.com.cn/gentoo http://mirror.averse.net/pub/gentoo/"
LANG="en_US.utf8"
LC_ALL="zh_CN.UTF-8"
LDFLAGS="-Wl,-O1"
MAKEOPTS="-j2"
PKGDIR="/usr/portage/packages"
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --compress --force --whole-file --delete --stats --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY=""
SYNC="rsync://mirror.averse.net/gentoo-portage"
USE="X acl acpi alsa amd64 berkdb bzip2 cli cracklib crypt cups cvs dbus dri fortran gdbm gnome gpm gtk iconv ipv6 isdnlog midi mmx mudflap multilib ncurses nls nptl nptlonly openmp oss pam pcre perl pppd python readline reflection session spl sse sse2 ssl tcpd truetype unicode xorg zlib" ALSA_CARDS="ali5451 als4000 atiixp atiixp-modem bt87x ca0106 cmipci emu10k1x ens1370 ens1371 es1938 es1968 fm801 hda-intel intel8x0 intel8x0m maestro3 trident usb-audio via82xx via82xx-modem ymfpci" ALSA_PCM_PLUGINS="adpcm alaw asym copy dmix dshare dsnoop empty extplug file hooks iec958 ioplug ladspa lfloat linear meter mulaw multi null plug rate route share shm softvol" APACHE2_MODULES="actions alias auth_basic authn_alias authn_anon authn_dbm authn_default authn_file authz_dbm authz_default authz_groupfile authz_host authz_owner authz_user autoindex cache dav dav_fs dav_lock deflate dir disk_cache env expires ext_filter file_cache filter headers include info log_config logio mem_cache mime mime_magic negotiation rewrite setenvif speling status unique_id userdir usertrack vhost_alias" ELIBC="glibc" INPUT_DEVICES="keyboard mouse" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" USERLAND="GNU" VIDEO_CARDS="nvidia"
Unset:  CPPFLAGS, CTARGET, EMERGE_DEFAULT_OPTS, INSTALL_MASK, LINGUAS, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS
发表于 2008-7-23 17:29:51 | 显示全部楼层
nvidia-drivers是闭源驱动
闭源的往往跟不上内核的开发
所以要么用旧版本内核
要么等
回复 支持 反对

使用道具 举报

发表于 2008-7-23 17:44:19 | 显示全部楼层
你先emerge --sync一下吧
nvidia驱动有更新了,你的不是最新的96xxx系列
回复 支持 反对

使用道具 举报

 楼主| 发表于 2008-7-23 18:01:59 | 显示全部楼层
Post by zhllg;1877724
nvidia-drivers是闭源驱动
闭源的往往跟不上内核的开发
所以要么用旧版本内核
要么等


好的 了解了 谢谢版主

Post by Archlinux;1877728
你先emerge --sync一下吧
nvidia驱动有更新了,你的不是最新的96xxx系列


谢谢 我试试
回复 支持 反对

使用道具 举报

发表于 2008-7-23 18:57:21 | 显示全部楼层
我的也有问题,说找不到linux/ioctl32.h
回复 支持 反对

使用道具 举报

您需要登录后才可以回帖 登录 | 注册

本版积分规则

快速回复 返回顶部 返回列表