LinuxSir.cn,穿越时空的Linuxsir!

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

[求助]升级之后revdep-rebuild出错,已解决。

[复制链接]
发表于 2009-5-11 13:20:19 | 显示全部楼层 |阅读模式
装完基本系统后  emerge -uDN world
然后            dispatch-conf;emerge --depclean
最后            revdep-rebuild

在revdep-rebuild的时候出错了,提示perl、python等无法emerge。请问各位这是什么原因???

运行revdep-rebuild:
  1. * Configuring search environment for revdep-rebuild

  2. * Checking reverse dependencies
  3. * Packages containing binaries and libraries broken by a package update
  4. * will be emerged.

  5. * Collecting system binaries and libraries
  6. * Found existing 1_files.rr
  7. * Collecting complete LD_LIBRARY_PATH
  8. * Found existing 2_ldpath.rr.
  9. * Checking dynamic linking consistency
  10. * Found existing 3_broken.rr.
  11. * Assigning files to packages
  12. * Found existing 4_raw.rr
  13. * Cleaning list of packages to rebuild
  14. * Found existing 4_pkgs.rr
  15. * Assigning packages to ebuilds
  16. * Found existing 4_ebuilds.rr
  17. * Evaluating package order
  18. * Found existing 5_order.rr
  19. * Generated new 5_order.rr
  20. * All prepared. Starting rebuild
  21. emerge --oneshot  dev-lang/perl:0
  22. dev-lang/python:2.6
  23. ..........
  24. Calculating dependencies  .... done!

  25. >>> Verifying ebuild manifests

  26. >>> Starting parallel fetch

  27. >>> Emerging (1 of 2) dev-lang/perl-5.8.8-r5
  28. * perl-5.8.8.tar.bz2 RMD160 SHA1 SHA256 size ;-) ...                    [ ok ]
  29. * checking ebuild checksums ;-) ...                                     [ ok ]
  30. * checking auxfile checksums ;-) ...                                    [ ok ]
  31. * checking miscfile checksums ;-) ...                                   [ ok ]
  32. sandbox:main  signal SIGQUIT already had a handler ...

  33. >>> Unpacking source...
  34. >>> Unpacking perl-5.8.8.tar.bz2 to /var/tmp/portage/dev-lang/perl-5.8.8-r5/work
  35. [32;01m*[0m Applying perl-prelink-lpthread.patch ...
  36. [A[72C  [34;01m[ [32;01mok[34;01m ][0m
  37. [32;01m*[0m Applying perl-perldoc-emptydirs.patch ...
  38. [A[72C  [34;01m[ [32;01mok[34;01m ][0m
  39. [32;01m*[0m Applying perl-5.8.8-reorder-INC.patch ...
  40. [A[72C  [34;01m[ [32;01mok[34;01m ][0m
  41. [32;01m*[0m Applying perl-picdl.patch ...
  42. [A[72C  [34;01m[ [32;01mok[34;01m ][0m
  43. [32;01m*[0m Applying perl-noksh.patch ...
  44. [A[72C  [34;01m[ [32;01mok[34;01m ][0m
  45. [32;01m*[0m Applying perl-5.8.8-makedepend-syntax.patch ...
  46. [A[72C  [34;01m[ [32;01mok[34;01m ][0m
  47. [32;01m*[0m Applying perl-5.8.7-MakeMaker-RUNPATH.patch ...
  48. [A[72C  [34;01m[ [32;01mok[34;01m ][0m
  49. [32;01m*[0m Applying perl-hppa-pa7200-configure.patch ...
  50. [A[72C  [34;01m[ [32;01mok[34;01m ][0m
  51. [32;01m*[0m Applying perl-5.8.8-USE_MM_LD_RUN_PATH.patch ...
  52. [A[72C  [34;01m[ [32;01mok[34;01m ][0m
  53. [32;01m*[0m Applying perl-5.8.8-links.patch ...
  54. [A[72C  [34;01m[ [32;01mok[34;01m ][0m
  55. [32;01m*[0m Applying perl-5.8.8-cplusplus.patch ...
  56. [A[72C  [34;01m[ [32;01mok[34;01m ][0m
  57. [32;01m*[0m Applying perl-5.8.8-gcc42-command-line.patch ...
  58. [A[72C  [34;01m[ [32;01mok[34;01m ][0m
  59. [32;01m*[0m Applying perl-5.8.8-asm-page-h-compile-failure.patch ...
  60. [A[72C  [34;01m[ [32;01mok[34;01m ][0m
  61. [32;01m*[0m Applying perl-5.8.8-perlcc.patch ...
  62. [A[72C  [34;01m[ [32;01mok[34;01m ][0m
  63. [32;01m*[0m Applying perl-5.8.8-utf8-boundary.patch ...
  64. [A[72C  [34;01m[ [32;01mok[34;01m ][0m
  65. [32;01m*[0m Applying perl-5.8.8-CVE-2008-1927.patch ...
  66. [A[72C  [34;01m[ [32;01mok[34;01m ][0m
  67. >>> Source unpacked in /var/tmp/portage/dev-lang/perl-5.8.8-r5/work
  68. sandbox:main  signal SIGQUIT already had a handler ...

  69. >>> Compiling source in /var/tmp/portage/dev-lang/perl-5.8.8-r5/work/perl-5.8.8 ...
  70. First let's make sure your kit is complete.  Checking...
  71. Locating common programs...
  72. Checking compatibility between /bin/echo and builtin echo (if any)...
  73. Symbolic links are supported.
  74. Checking how to test for symbolic links...
  75. You can test for symbolic links with 'test -h'.
  76. Good, your tr supports [:lower:] and [:upper:] to convert case.
  77. Using [:upper:] and [:lower:] to convert case.
  78. [1m[31m*[0m gcc-config: Active gcc profile is invalid![K
  79. gcc-config: error: could not run/locate 'i686-pc-linux-gnu-gcc'
  80. You need to find a working C compiler.
  81. Either (purchase and) install the C compiler supplied by your OS vendor,
  82. or for a free C compiler try [url]http://gcc.gnu.org/[/url]
  83. I cannot continue any further, aborting.
  84. [31;01m*[0m
  85. [31;01m*[0m ERROR: dev-lang/perl-5.8.8-r5 failed.
  86. [31;01m*[0m Call stack:
  87. [31;01m*[0m               ebuild.sh, line   49:  Called src_compile
  88. [31;01m*[0m             environment, line 2501:  Called src_configure
  89. [31;01m*[0m             environment, line 2584:  Called die
  90. [31;01m*[0m The specific snippet of code:
  91. [31;01m*[0m       sh Configure -des -Darchname="${myarch}" -Dcccdlflags='-fPIC' -Dccdlflags='-rdynamic' -Dcc="$(tc-getCC)" -Dprefix='/usr' -Dvendorprefix='/usr' -Dsiteprefix='/usr' -Dlocincpth=' ' -Doptimize="${CFLAGS}" -Duselargefiles -Dd_semctl_semun -Dscriptdir=/usr/bin -Dman1dir=/usr/share/man/man1 -Dman3dir=/usr/share/man/man3 -Dinstallman1dir=/usr/share/man/man1 -Dinstallman3dir=/usr/share/man/man3 -Dman1ext='1' -Dman3ext='3pm' -Dinc_version_list="$inclist" -Dcf_by='Gentoo' -Ud_csh -Dusenm "${myconf[@]}" || die "Unable to configure"
  92. [31;01m*[0m  The die message:
  93. [31;01m*[0m   Unable to configure
  94. [31;01m*[0m
  95. [31;01m*[0m If you need support, post the topmost build error, and the call stack if relevant.
  96. [31;01m*[0m A complete build log is located at '/var/tmp/portage/dev-lang/perl-5.8.8-r5/temp/build.log'.
  97. [31;01m*[0m The ebuild environment file is located at '/var/tmp/portage/dev-lang/perl-5.8.8-r5/temp/environment'.
  98. [31;01m*[0m

  99. >>> Failed to emerge dev-lang/perl-5.8.8-r5, Log file:

  100. >>>  '/var/tmp/portage/dev-lang/perl-5.8.8-r5/temp/build.log'

  101. * Messages for package dev-lang/perl-5.8.8-r5:

  102. * - If emerge failed during the build, fix the problems and re-run revdep-rebuild.
  103. * - Use /etc/portage/package.keywords to unmask a newer version of the package.
  104. *   (and remove 5_order.rr to be evaluated again)
  105. * - Modify the above emerge command and run it manually.
  106. * - Compile or unmerge unsatisfied packages manually,
  107. *   remove temporary files, and try again.
  108. *   (you can edit package/ebuild list first)
  109. * To remove temporary files, please run:
  110. * rm /var/cache/revdep-rebuild/*.rr
复制代码


好像是gcc出错了,运行gcc:
  1. * gcc-config: Active gcc profile is invalid!
  2. gcc-config: error: could not run/locate 'gcc'
复制代码
发表于 2009-5-11 13:59:37 | 显示全部楼层
建议你把出错的详细信息贴出来。
回复 支持 反对

使用道具 举报

发表于 2009-5-11 18:47:56 | 显示全部楼层
如果升级到gcc 4.3,用gcc-config设置一下。
回复 支持 反对

使用道具 举报

 楼主| 发表于 2009-5-11 23:31:19 | 显示全部楼层
按照文档中gcc升级,gcc-config之后,可以revdep-rebuild了。
回复 支持 反对

使用道具 举报

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

本版积分规则

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