LinuxSir.cn,穿越时空的Linuxsir!

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

请教ati-drivers编译不成功的问题

[复制链接]
发表于 2006-8-29 13:12:57 | 显示全部楼层 |阅读模式
我刚开始使用gentoo-2006.0,xorg-x11-7.0-r1,linux-2.6.17-gentoo-r4,gcc-3.4.6-r1,glibc-2.3.6-r4,在编译ati-drivers时出现如下错误,请朋友们指教该怎么解决,谢谢!

binhe@gentoo ~ $ sudo emerge ati-drivers
Calculating dependencies... done!
>>> Emerging (1 of 1) x11-drivers/ati-drivers-8.27.10-r1 to /
>>> checking ebuild checksums ;-)
>>> checking auxfile checksums ;-)
>>> checking miscfile checksums ;-)
>>> checking ati-driver-installer-8.27.10-x86.run ;-)
* Determining the location of the kernel source code
* Found kernel source directory:
*     /usr/src/linux
* Found sources for kernel version:
*     2.6.17-gentoo-r4
* Checking for MTRR support enabled ...                      [ ok ]
* Checking for AGP support enabled ...                       [ ok ]
* Checking for DRM support disabled ...                      [ ok ]
* X11 implementation is xorg-x11.
>>> Unpacking source...
* Unpacking Ati drivers ...                                  [ ok ]
>>> Source unpacked.
>>> Compiling source in /var/tmp/portage/ati-drivers-8.27.10-r1 ...
* Building the DRM module...
make: Entering directory `/usr/src/linux-2.6.17-gentoo-r4'

  WARNING: Symbol version dump /usr/src/linux-2.6.17-gentoo-r4/Module.symvers
           is missing; modules will have no dependencies and modversions.

  CC [M]  /var/tmp/portage/ati-drivers-8.27.10-r1/work/common/lib/modules/fglrx/build_mod/firegl_public.o
/var/tmp/portage/ati-drivers-8.27.10-r1/work/common/lib/modules/fglrx/build_mod/firegl_public.c: In function `firegl_stub_open':
/var/tmp/portage/ati-drivers-8.27.10-r1/work/common/lib/modules/fglrx/build_mod/firegl_public.c:559: warning: assignment discards qualifiers from pointer target type
  LD [M]  /var/tmp/portage/ati-drivers-8.27.10-r1/work/common/lib/modules/fglrx/build_mod/fglrx.o
  Building modules, stage 2.
  MODPOST
/bin/sh: scripts/mod/modpost: No such file or directory
make[1]: *** [__modpost] Error 127
make: *** [modules] Error 2
make: Leaving directory `/usr/src/linux-2.6.17-gentoo-r4'
* DRM module not built
>>> Source compiled.
>>> Test phase [not enabled]: x11-drivers/ati-drivers-8.27.10-r1

>>> Install ati-drivers-8.27.10-r1 into /var/tmp/portage/ati-drivers-8.27.10-r1/image/ category x11-drivers
* Installing fglrx module
install: cannot stat `fglrx.ko': No such file or directory

!!! ERROR: x11-drivers/ati-drivers-8.27.10-r1 failed.
Call stack:
  ebuild.sh, line 1539:   Called dyn_install
  ebuild.sh, line 1013:   Called src_install
  ati-drivers-8.27.10-r1.ebuild, line 205:   Called linux-mod_src_install
  linux-mod.eclass, line 497:   Called die

!!! doins fglrx.ko failed
!!! If you need support, post the topmost build error, and the call stack if relevant.
发表于 2006-8-29 13:33:34 | 显示全部楼层
WARNING: Symbol version dump /usr/src/linux-2.6.17-gentoo-r4/Module.symvers
is missing; modules will have no dependencies and modversions.

内核你打开了模块编译选项还有开发试验代码选项了吗?
回复 支持 反对

使用道具 举报

发表于 2006-8-29 13:36:48 | 显示全部楼层
内核版本不一致?
回复 支持 反对

使用道具 举报

发表于 2006-8-29 20:10:17 | 显示全部楼层
* DRM module not built
回复 支持 反对

使用道具 举报

发表于 2006-8-29 23:23:20 | 显示全部楼层
关键是这个
/bin/sh: scripts/mod/modpost: No such file or directory
估计内核源代码不全
回复 支持 反对

使用道具 举报

 楼主| 发表于 2006-8-30 12:19:33 | 显示全部楼层
谢谢,估计是我原来的内核源代码有点问题,今天早上从2.6.17-gentoo-r4升级到了2.6.17-gentoo-r7, ati-drivers编译成功。
回复 支持 反对

使用道具 举报

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

本版积分规则

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