LinuxSir.cn,穿越时空的Linuxsir!

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

新安装Gentoo,emerge pciutils时出问题

[复制链接]
发表于 2009-2-27 14:19:44 | 显示全部楼层 |阅读模式
>>> Emerging (3 of 9) sys-apps/pciutils-3.1.2
* pciutils-3.1.2.tar.gz RMD160 SHA1 SHA256 size ;-) ...                 [ ok ]
* checking ebuild checksums ;-) ...                                     [ ok ]
* checking auxfile checksums ;-) ...                                    [ ok ]
* checking miscfile checksums ;-) ...                                   [ ok ]
>>> Unpacking source...
>>> Unpacking pciutils-3.1.2.tar.gz to /var/tmp/portage/sys-apps/pciutils-3.1.2/work
* Applying pcimodules-pciutils-3.1.0.patch ...                           [ ok ]
* Applying pciutils-2.2.7-update-pciids-both-forms.patch ...             [ ok ]
>>> Source unpacked in /var/tmp/portage/sys-apps/pciutils-3.1.2/work
>>> Compiling source in /var/tmp/portage/sys-apps/pciutils-3.1.2/work/pciutils-3.1.2 ...
make -j15 HOST=i686-pc-linux-gnu CROSS_COMPILE=i686-pc-linux-gnu- DNS=yes IDSDIR=/usr/share/misc MANDIR=/usr/share/man PREFIX=/usr SHARED=yes STRIP= ZLIB=yes 'OPT=-O2 -march=k8 -mtune=i686 -pipe' all pcimodules
cd lib && ./configure
Configuring libpci for your system... i686--linux  i686 linux
Looking for access methods... sysfs proc i386-ports dump
Checking for zlib support... yes (set manually)
Checking for DNS support... yes (set manually)
Checking whether to build a shared library... yes (set manually)
make -C lib all
i686-pc-linux-gnu-gcc -O2 -march=k8 -mtune=i686 -pipe -Wall -W -Wno-parentheses -Wstrict-prototypes -Wmissing-prototypes   -c -o lspci.o lspci.c
make: i686-pc-linux-gnu-gcc:命令未找到
make: *** [lspci.o] 错误 127
make: *** 正在等待未完成的任务....
make[1]: Entering directory `/var/tmp/portage/sys-apps/pciutils-3.1.2/work/pciutils-3.1.2/lib'
i686-pc-linux-gnu-gcc -O2 -march=k8 -mtune=i686 -pipe -Wall -W -Wno-parentheses -Wstrict-prototypes -Wmissing-prototypes -fPIC -fvisibility=hidden   -c -o init.o init.c
make[1]: i686-pc-linux-gnu-gcc:命令未找到
make[1]: *** [init.o] 错误 127
make[1]: Leaving directory `/var/tmp/portage/sys-apps/pciutils-3.1.2/work/pciutils-3.1.2/lib'
make: *** [lib/libpci.so.3.1.2] 错误 2
*
* ERROR: sys-apps/pciutils-3.1.2 failed.
* Call stack:
*               ebuild.sh, line   49:  Called src_compile
*             environment, line 2103:  Called die
* The specific snippet of code:
*       pemake OPT="${CFLAGS}" all pcimodules || die "emake failed"
*  The die message:
*   emake failed
*
* 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/sys-apps/pciutils-3.1.2/temp/build.log'.
* The ebuild environment file is located at '/var/tmp/portage/sys-apps/pciutils-3.1.2/temp/environment'.
*

>>> Failed to emerge sys-apps/pciutils-3.1.2, Log file:

>>>  '/var/tmp/portage/sys-apps/pciutils-3.1.2/temp/build.log'

* Messages for package sys-apps/pciutils-3.1.2:

*
* ERROR: sys-apps/pciutils-3.1.2 failed.
* Call stack:
*               ebuild.sh, line   49:  Called src_compile
*             environment, line 2103:  Called die
* The specific snippet of code:
*       pemake OPT="${CFLAGS}" all pcimodules || die "emake failed"
*  The die message:
*   emake failed
*
* 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/sys-apps/pciutils-3.1.2/temp/build.log'.
* The ebuild environment file is located at '/var/tmp/portage/sys-apps/pciutils-3.1.2/temp/environment'.
*

* GNU info directory index is up-to-date.

* IMPORTANT: 1 config files in '/etc' need updating.
* See the CONFIGURATION FILES section of the emerge
* man page to learn how to update config files.
 楼主| 发表于 2009-2-27 23:08:44 | 显示全部楼层
自己解决了,是make.conf中CHOST的问题
原来是i486的,偶设置的是i686

改回去就好了,不过偶选择升级gcc已经搞定
回复 支持 反对

使用道具 举报

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

本版积分规则

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