LinuxSir.cn,穿越时空的Linuxsir!

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

ati-drivers无法安装..【已解决】

[复制链接]
发表于 2007-10-22 19:31:53 | 显示全部楼层 |阅读模式
[color="DarkOrange"]emerge --info信息如下
  1. Portage 2.1.2.2 (default-linux/x86/2007.0/desktop, gcc-4.1.2, glibc-2.5-r0, 2.6.22-gentoo-r8 i686)
  2. =================================================================
  3. System uname: 2.6.22-gentoo-r8 i686 Intel(R) Core(TM)2 CPU         T5500  @ 1.66GHz
  4. Gentoo Base System release 1.12.9
  5. Timestamp of tree: Mon, 22 Oct 2007 01:47:01 +0000
  6. app-shells/bash:     3.1_p17
  7. dev-lang/python:     2.4.4-r5
  8. dev-python/pycrypto: 2.0.1-r5
  9. sys-apps/baselayout: 1.12.9
  10. sys-apps/sandbox:    1.2.17
  11. sys-devel/autoconf:  2.13, 2.61
  12. sys-devel/automake:  1.5, 1.7.9-r1, 1.8.5-r3, 1.9.6-r2, 1.10
  13. sys-devel/binutils:  2.18.50.0.1
  14. sys-devel/gcc-config: 1.3.14
  15. sys-devel/libtool:   1.5.22
  16. virtual/os-headers:  2.6.17-r2
  17. ACCEPT_KEYWORDS="x86"
  18. CBUILD="i686-pc-linux-gnu"
  19. CFLAGS="-O2 -march=nocona -pipe"
  20. CHOST="i686-pc-linux-gnu"
  21. CONFIG_PROTECT="/etc /usr/share/X11/xkb"
  22. CONFIG_PROTECT_MASK="/etc/env.d /etc/fonts/fonts.conf /etc/gconf /etc/revdep-rebuild /etc/terminfo"
  23. CXXFLAGS="-O2 -march=nocona -pipe"
  24. DISTDIR="/usr/portage/distfiles"
  25. FEATURES="distlocks metadata-transfer sandbox sfperms strict"
  26. GENTOO_MIRRORS="ftp://gentoo.anheng.com.cn/gentoo/ http://mirror.averse.net/pub/gentoo/ "
  27. LINGUAS="zh_CN zh en_US"
  28. MAKEOPTS="-j3"
  29. PKGDIR="/usr/portage/packages"
  30. PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --compress --force --whole-file --delete --delete-after --stats --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages --filter=H_**/files/digest-*"
  31. PORTAGE_TMPDIR="/var/tmp"
  32. PORTDIR="/usr/portage"
  33. SYNC="rsync://rsync.gentoo.org/gentoo-portage"
  34. USE="X a52 aac aalib acl acpi ad alsa arts avahi avi berkdb bitmap-fonts cairo cdparanoia cdr cjk clamav cli cpudetection cracklib crypt dbus divx4linux dri dvd dvdr dvdre dvdread eds emboss encode esd evo fam flac fortran gdbm gif gnome gphoto2 gpm gstreamer gtk gtk2 hal iconv ieee13i94 isdnlog jpeg kerberos ldap mad midi mikmod mp3 mpeg msn mudflap ncurses nls nptl nptlonly ogg oggvorbis opengl openmp oss pam pcre pdf perl png pppd python qq qt3 qt3support qt4 quicktime readline reflection sdl session spell spl ssl svg tcpd tiff truetype truetype-fonts type1-fonts unicode vorbis wifi win32codecs wma x86 xine xml xorg xv xvid zlib" ALSA_CARDS="ali5451 als4000 atiixp atiixp-modem bt87x ca0106 cmipci emu10k1 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" ELIBC="glibc" INPUT_DEVICES="keyboard mouse" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LINGUAS="zh_CN zh en_US" USERLAND="GNU" VIDEO_CARDS="apm ark chips cirrus cyrix dummy fbdev glint i128 i740 i810 imstt mach64 mga neomagic nsc nv r128 radeon rendition s3 s3virge savage siliconmotion sis sisusb tdfx tga trident tseng v4l vesa vga via vmware voodoo"
  35. Unset:  CTARGET, EMERGE_DEFAULT_OPTS, INSTALL_MASK, LANG, LC_ALL, LDFLAGS, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS, PORTDIR_OVERLAY

复制代码


[color="DarkOrange"]以下内容是build.log的错误log

  1. * Determining the location of the kernel source code
  2. * Found kernel source directory:
  3. *     /usr/src/linux
  4. * Found kernel object directory:
  5. *     /lib/modules/2.6.22-gentoo-r8/build
  6. * Found sources for kernel version:
  7. *     2.6.22-gentoo-r8
  8. >>> Unpacking source...
  9. * Applying ati-powermode-opt-path.patch ...
  10.   [ ok ]
  11. * Converting 2.6.x/Makefile to use M= instead of SUBDIRS= ...
  12.   [ ok ]
  13. >>> Unpacking ./../common/usr/src/ati/fglrx_sample_source.tgz to /var/tmp/portage/x11-drivers/ati-drivers-8.39.4/work/extra
  14. >>> Source unpacked.
  15. >>> Compiling source in /var/tmp/portage/x11-drivers/ati-drivers-8.39.4/work ...
  16. * Preparing fglrx module
  17. make -C /usr/src/linux M=/var/tmp/portage/x11-drivers/ati-drivers-8.39.4/work/common/lib/modules/fglrx/build_mod/2.6.x modules
  18. make[1]: Entering directory `/usr/src/linux-2.6.22-gentoo-r8'
  19.   CC [M]  /var/tmp/portage/x11-drivers/ati-drivers-8.39.4/work/common/lib/modules/fglrx/build_mod/2.6.x/firegl_public.o
  20. In file included from /var/tmp/portage/x11-drivers/ati-drivers-8.39.4/work/common/lib/modules/fglrx/build_mod/2.6.x/drm_proc.h:41,
  21.                  from /var/tmp/portage/x11-drivers/ati-drivers-8.39.4/work/common/lib/modules/fglrx/build_mod/2.6.x/firegl_public.c:366:
  22. /var/tmp/portage/x11-drivers/ati-drivers-8.39.4/work/common/lib/modules/fglrx/build_mod/2.6.x/drmP.h:126:1: warning: "DRM_DEBUG_CODE" redefined
  23. /var/tmp/portage/x11-drivers/ati-drivers-8.39.4/work/common/lib/modules/fglrx/build_mod/2.6.x/firegl_public.c:179:1: warning: this is the location of the previous definition
  24. /var/tmp/portage/x11-drivers/ati-drivers-8.39.4/work/common/lib/modules/fglrx/build_mod/2.6.x/firegl_public.c:484: warning: initialization from incompatible pointer type
  25. /var/tmp/portage/x11-drivers/ati-drivers-8.39.4/work/common/lib/modules/fglrx/build_mod/2.6.x/firegl_public.c: In function 'firegl_stub_open':
  26. /var/tmp/portage/x11-drivers/ati-drivers-8.39.4/work/common/lib/modules/fglrx/build_mod/2.6.x/firegl_public.c:607: warning: assignment discards qualifiers from pointer target type
  27. /var/tmp/portage/x11-drivers/ati-drivers-8.39.4/work/common/lib/modules/fglrx/build_mod/2.6.x/firegl_public.c: In function '__ke_pci_find_device':
  28. /var/tmp/portage/x11-drivers/ati-drivers-8.39.4/work/common/lib/modules/fglrx/build_mod/2.6.x/firegl_public.c:1863: warning: 'pci_find_device' is deprecated (declared at include/linux/pci.h:477)
  29. /var/tmp/portage/x11-drivers/ati-drivers-8.39.4/work/common/lib/modules/fglrx/build_mod/2.6.x/firegl_public.c: In function '__ke_do_mmap':
  30. /var/tmp/portage/x11-drivers/ati-drivers-8.39.4/work/common/lib/modules/fglrx/build_mod/2.6.x/firegl_public.c:1968: warning: assignment makes pointer from integer without a cast
  31. /var/tmp/portage/x11-drivers/ati-drivers-8.39.4/work/common/lib/modules/fglrx/build_mod/2.6.x/firegl_public.c: In function '__ke_request_irq':
  32. /var/tmp/portage/x11-drivers/ati-drivers-8.39.4/work/common/lib/modules/fglrx/build_mod/2.6.x/firegl_public.c:2806: warning: 'deprecated_irq_flag' is deprecated (declared at include/linux/interrupt.h:66)
  33. /var/tmp/portage/x11-drivers/ati-drivers-8.39.4/work/common/lib/modules/fglrx/build_mod/2.6.x/firegl_public.c:2806: warning: passing argument 2 of 'request_irq' from incompatible pointer type
  34. /var/tmp/portage/x11-drivers/ati-drivers-8.39.4/work/common/lib/modules/fglrx/build_mod/2.6.x/firegl_public.c: In function '__ke_smp_call_function':
  35. /var/tmp/portage/x11-drivers/ati-drivers-8.39.4/work/common/lib/modules/fglrx/build_mod/2.6.x/firegl_public.c:4330: warning: passing argument 1 of 'smp_call_function' from incompatible pointer type
  36. /var/tmp/portage/x11-drivers/ati-drivers-8.39.4/work/common/lib/modules/fglrx/build_mod/2.6.x/firegl_public.c: In function 'KCL_has_pat':
  37. /var/tmp/portage/x11-drivers/ati-drivers-8.39.4/work/common/lib/modules/fglrx/build_mod/2.6.x/firegl_public.c:4512: warning: passing argument 2 of 'constant_test_bit' from incompatible pointer type
  38. /var/tmp/portage/x11-drivers/ati-drivers-8.39.4/work/common/lib/modules/fglrx/build_mod/2.6.x/firegl_public.c:4512: warning: passing argument 2 of 'variable_test_bit' from incompatible pointer type
  39. /var/tmp/portage/x11-drivers/ati-drivers-8.39.4/work/common/lib/modules/fglrx/build_mod/2.6.x/firegl_public.c: At top level:
  40. /var/tmp/portage/x11-drivers/ati-drivers-8.39.4/work/common/lib/modules/fglrx/build_mod/2.6.x/firegl_public.c:5280: warning: 'kmem_cache_t' is deprecated
  41. /var/tmp/portage/x11-drivers/ati-drivers-8.39.4/work/common/lib/modules/fglrx/build_mod/2.6.x/firegl_public.c: In function 'KAS_ExecuteAtLevel':
  42. /var/tmp/portage/x11-drivers/ati-drivers-8.39.4/work/common/lib/modules/fglrx/build_mod/2.6.x/firegl_public.c:5139: warning: 'flags' may be used uninitialized in this function
  43.   LD [M]  /var/tmp/portage/x11-drivers/ati-drivers-8.39.4/work/common/lib/modules/fglrx/build_mod/2.6.x/fglrx.o
  44.   Building modules, stage 2.
  45.   MODPOST 1 modules
  46.   CC      /var/tmp/portage/x11-drivers/ati-drivers-8.39.4/work/common/lib/modules/fglrx/build_mod/2.6.x/fglrx.mod.o
  47.   LD [M]  /var/tmp/portage/x11-drivers/ati-drivers-8.39.4/work/common/lib/modules/fglrx/build_mod/2.6.x/fglrx.ko
  48. make[1]: Leaving directory `/usr/src/linux-2.6.22-gentoo-r8'
  49. * Building fgl_glxgears
  50. [color="Red"]/usr/lib/gcc/i686-pc-linux-gnu/4.1.1/../../../../i686-pc-linux-gnu/bin/ld: cannot find -lGL
  51. collect2: ld returned 1 exit status[/color]

  52. !!! ERROR: x11-drivers/ati-drivers-8.39.4 failed.
  53. Call stack:
  54.   ebuild.sh, line 1614:   Called dyn_compile
  55.   ebuild.sh, line 971:   Called qa_call 'src_compile'
  56.   environment, line 4107:   Called src_compile
  57.   ati-drivers-8.39.4.ebuild, line 188:   Called die

  58. !!! fgl_glxgears build failed
  59. !!! If you need support, post the topmost build error, and the call stack if relevant.
  60. !!! A complete build log is located at '/var/tmp/portage/x11-drivers/ati-drivers-8.39.4/temp/build.log'.
复制代码

已经尝试更新了gcc和binutils,但是还是这个错误,不知道ati用户门在安装的时候有没有碰到这个问题。。
发表于 2007-10-22 20:24:09 | 显示全部楼层
试试把sys-devel/binutils升级一个版本,不行的话再升一个版本。
回复 支持 反对

使用道具 举报

 楼主| 发表于 2007-10-22 21:55:28 | 显示全部楼层
刚去试了下,还是不行,还是一样的错误提示。。,请问还有其他的可能性吗
回复 支持 反对

使用道具 举报

发表于 2007-10-22 22:17:49 | 显示全部楼层
偶是没辙了。或者你把emerge --info贴上来,让牛们找找碴。
回复 支持 反对

使用道具 举报

 楼主| 发表于 2007-10-22 22:23:46 | 显示全部楼层
  1. /usr/lib/gcc/i686-pc-linux-gnu/4.1.1/../../../../i686-pc-linux-gnu/bin/ld: cannot find -lGL
复制代码


我在/usr/lib/gcc/i686-pc-linux-gnu/4.1.1搜索ld发现没有这个文件。,我用的是gentoo-sources,请问是不是因为这个原因而造成ld这个文件不存在?
或者重新emerge gentoo-sources试试??
回复 支持 反对

使用道具 举报

 楼主| 发表于 2007-10-22 22:42:14 | 显示全部楼层
Post by midx
偶是没辙了。或者你把emerge --info贴上来,让牛们找找碴。

emerge --info内容已经补上,是否还需要其他的信息。,唉,用ati显卡,真苦命哦,另外一台机器上装nvidia的装起来很轻松就搞定了。
回复 支持 反对

使用道具 举报

发表于 2007-10-22 23:05:26 | 显示全部楼层
Post by zhangweizj
  1. /usr/lib/gcc/i686-pc-linux-gnu/4.1.1/../../../../i686-pc-linux-gnu/bin/ld: cannot find -lGL
复制代码


我在/usr/lib/gcc/i686-pc-linux-gnu/4.1.1搜索ld发现没有这个文件。


这个要纠正一下,blahblah后应该是/usr/i686-pc-linux-gnu/bin/ld
  1. $ ls -l /usr/i686-pc-linux-gnu/bin/ld
  2. lrwxrwxrwx 1 root root 43 2007-10-22 14:07 /usr/i686-pc-linux-gnu/bin/ld -> /usr/i686-pc-linux-gnu/binutils-bin/2.17/ld
复制代码
回复 支持 反对

使用道具 举报

 楼主| 发表于 2007-10-22 23:09:15 | 显示全部楼层
Post by midx
这个要纠正一下,blahblah后应该是/usr/i686-pc-linux-gnu/bin/ld
  1. $ ls -l /usr/i686-pc-linux-gnu/bin/ld
  2. lrwxrwxrwx 1 root root 43 2007-10-22 14:07 /usr/i686-pc-linux-gnu/bin/ld -> /usr/i686-pc-linux-gnu/binutils-bin/2.17/ld
复制代码


这个需要如何修改?,emerge的时候他才会去找找/usr/i686-pc-linux-gnu/bin/ld,而不是这个不存在的目录文件
回复 支持 反对

使用道具 举报

发表于 2007-10-23 09:39:36 | 显示全部楼层
回复 支持 反对

使用道具 举报

 楼主| 发表于 2007-10-23 10:01:45 | 显示全部楼层
已经可以安装了,昨天我重新更新了下整个系统然后再一次emerge ati-drivers就安装成功了,比起未更新系统前,多安装了两个包


  1. # emerge --update --deep --newuse world
  2. # emerge --depclean
  3. # revdep-rebuild
复制代码
回复 支持 反对

使用道具 举报

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

本版积分规则

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