LinuxSir.cn,穿越时空的Linuxsir!

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

busybox出错!有点怪

[复制链接]
发表于 2008-10-24 16:13:48 | 显示全部楼层 |阅读模式
>>> Emerging (1 of 43) sys-apps/busybox-1.11.1 to /
* busybox-1.11.1.tar.bz2 RMD160 SHA1 SHA256 size ;-) ...                 [ ok ]
* checking ebuild checksums ;-) ...                                      [ ok ]
* checking auxfile checksums ;-) ...                                     [ ok ]
* checking miscfile checksums ;-) ...                                    [ ok ]
* checking busybox-1.11.1.tar.bz2 ;-) ...                                [ ok ]
>>> Unpacking source...
>>> Unpacking busybox-1.11.1.tar.bz2 to /var/tmp/portage/sys-apps/busybox-1.11.1/work
* Applying busybox-1.11.1-bb.patch ...                                   [ ok ]
* Applying busybox-1.11.1-ppc-ifile.patch ...                            [ ok ]
* Applying busybox-devmem.patch ...                                      [ ok ]
* Applying busybox-1.10.1-mdev-exec.patch ...                            [ ok ]
* Could not locate user configfile, so we will save a default one
* # CONFIG_DMALLOC is not set
* # CONFIG_FEATURE_SUID_CONFIG is not set
*
* # CONFIG_BUILD_LIBBUSYBOX is not set
* # CONFIG_NOMMU is not set
* CONFIG_FEATURE_SH_IS_ASH=y
* # CONFIG_FEATURE_SH_IS_NONE is not set
* CONFIG_PAM=y
* # CONFIG_STATIC is not set
* # CONFIG_DEBUG is not set
* # CONFIG_SELINUX is not set
* # CONFIG_LOCALE_SUPPORT is not set
* # CONFIG_TFTP is not set
* # CONFIG_FTPGET is not set
* # CONFIG_FTPPUT is not set
* # CONFIG_IPCALC is not set
* # CONFIG_TFTP is not set
* # CONFIG_HUSH is not set
* # CONFIG_LASH is not set
* # CONFIG_MSH is not set
* # CONFIG_INETD is not set
* # CONFIG_DPKG is not set
* # CONFIG_RPM2CPIO is not set
* # CONFIG_RPM is not set
* # CONFIG_FOLD is not set
* # CONFIG_LOGNAME is not set
* # CONFIG_OD is not set
* # CONFIG_CRONTAB is not set
* # CONFIG_UUDECODE is not set
* # CONFIG_UUENCODE is not set
* # CONFIG_SULOGIN is not set
* # CONFIG_DC is not set
*
* # CONFIG_DEBUG_INIT is not set
* # CONFIG_DEBUG_CROND_OPTION is not set
* # CONFIG_FEATURE_UDHCP_DEBUG is not set
* # CONFIG_TASKSET is not set
>>> Source unpacked.
>>> Compiling source in /var/tmp/portage/sys-apps/busybox-1.11.1/work/busybox-1.11.1 ...
  SPLIT   include/autoconf.h -> include/config/*
  GEN     include/bbconfigopts.h
/var/tmp/portage/sys-apps/busybox-1.11.1/work/busybox-1.11.1/scripts/gcc-version.sh: line 11: i686-pc-linux-gnu-gcc: command not found
  HOSTCC  applets/usage
  LD      archival/built-in.o
/bin/sh: i686-pc-linux-gnu-ar: command not found
make[1]: *** [archival/built-in.o] 错误 127
make: *** [archival] 错误 2
  HOSTCC  applets/applet_tables
make: *** 正在等待未完成的任务....
  GEN     include/usage_compressed.h
  GEN     include/applet_tables.h
  CC      applets/applets.o
/bin/sh: i686-pc-linux-gnu-gcc: command not found
make[1]: *** [applets/applets.o] 错误 127
make: *** [applets] 错误 2
*
* ERROR: sys-apps/busybox-1.11.1 failed.
* Call stack:
*               ebuild.sh, line   49:  Called src_compile
*             environment, line 2486:  Called die
* The specific snippet of code:
*       emake busybox || die "build failed";
*  The die message:
*   build 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/busybox-1.11.1/temp/build.log'.
* The ebuild environment file is located at '/var/tmp/portage/sys-apps/busybox-1.11.1/temp/environment'.
*

* Messages for package sys-apps/busybox-1.11.1:

* Could not locate user configfile, so we will save a default one
*
* ERROR: sys-apps/busybox-1.11.1 failed.
* Call stack:
*               ebuild.sh, line   49:  Called src_compile
*             environment, line 2486:  Called die
* The specific snippet of code:
*       emake busybox || die "build failed";
*  The die message:
*   build 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/busybox-1.11.1/temp/build.log'.
* The ebuild environment file is located at '/var/tmp/portage/sys-apps/busybox-1.11.1/temp/environment'.
*
localhost dodoworm # less /var/tmp/portage/sys-apps/busybox-1.11.1/temp/build.log
localhost dodoworm #

亲爱的朋友们,你们碰到这个问题了吗?
发表于 2008-10-24 16:28:41 | 显示全部楼层
i686-pc-linux-gnu-gcc 亲爱的朋友,请你先检查一下你是否有这个程序
/usr/bin/i686-pc-linux-gnu-gcc
回复 支持 反对

使用道具 举报

 楼主| 发表于 2008-10-28 23:33:42 | 显示全部楼层
dodoworm@localhost /usr/bin $ /usr/bin/i686-pc-linux-gnu-gcc
bash: /usr/bin/i686-pc-linux-gnu-gcc: 没有那个文件或目录
回复 支持 反对

使用道具 举报

发表于 2008-10-29 07:54:09 | 显示全部楼层
emerge --info?
回复 支持 反对

使用道具 举报

发表于 2008-10-29 09:37:57 | 显示全部楼层
stage3是不是用了x86的那个,它默认的gcc是i486-pc-linux-gnu-gcc。重新emerge gcc就变成i686-pc-linux-gnu-gcc了。

emerge -1av gcc
回复 支持 反对

使用道具 举报

 楼主| 发表于 2008-10-29 11:56:34 | 显示全部楼层
dodoworm@localhost ~ $ emerge --info
Portage 2.1.4.5 (default-linux/x86/2007.0/desktop, gcc-4.1.2, glibc-2.6.1-r0, 2.6.25-gentoo-r8 i686)
=================================================================
System uname: 2.6.25-gentoo-r8 i686 Intel(R) Pentium(R) M processor 1.86GHz
Timestamp of tree: Fri, 24 Oct 2008 05:05:01 +0000
app-shells/bash:     3.2_p33
dev-java/java-config: 1.3.7, 2.1.6
dev-lang/python:     2.4.4-r13, 2.5.2-r7
dev-python/pycrypto: 2.0.1-r6
sys-apps/baselayout: 2.0.0
sys-apps/openrc:     0.3.0-r1
sys-apps/sandbox:    1.2.18.1-r2
sys-devel/autoconf:  2.13, 2.61-r1
sys-devel/automake:  1.5, 1.7.9-r1, 1.8.5-r3, 1.9.6-r2, 1.10.1
sys-devel/binutils:  2.18-r1
sys-devel/gcc-config: 1.4.0-r4
sys-devel/libtool:   1.5.24
virtual/os-headers:  2.6.23-r3
ACCEPT_KEYWORDS="x86"
CBUILD="i686-pc-linux-gnu"
CFLAGS="-Os -march=pentium-m -pipe -fomit-frame-pointer"
CHOST="i686-pc-linux-gnu"
CONFIG_PROTECT="/etc"
CONFIG_PROTECT_MASK="/etc/env.d /etc/env.d/java/ /etc/fonts/fonts.conf /etc/gconf /etc/gentoo-release /etc/revdep-rebuild /etc/terminfo /etc/udev/rules.d"
CXXFLAGS="-Os -march=pentium-m -pipe -fomit-frame-pointer"
DISTDIR="/usr/portage/distfiles"
FEATURES="ccache distlocks metadata-transfer parallel-fetch sandbox sfperms strict unmerge-orphans userfetch"
GENTOO_MIRRORS="ftp://gentoo.anheng.com.cn/gentoo http://mirror.averse.net/pub/gentoo/"
LANG="zh_CN.UTF-8"
LINGUAS="en_US zh zh_CN"
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="/usr/portage/local/layman/gentoo-china /usr/portage/local/layman/gentoo-china /usr/portage/local/layman/lxde"
SYNC="rsync://rsync.gentoo.org/gentoo-portage"
USE="X a52 aac aalib acl acpi alsa apache2 asf avahi avi bash-completion berkdb bitmap-fonts bluetooth bzip2 cairo cdparanoia cdr cjk cli console cracklib crypt cups curl curlwrappers dbus divx4linux dri dts dv dvd dvdr dvdread eds emacs emboss encode esd exif fam ffmpeg firefox flac foomatic fortran gdbm gif glitz gphoto2 gpm gstreamer gtk gtk2 hal hdaps iconv immqt-bc irda isdnlog java jpeg kerberos lame ldap live mad madwifi midi mikmod mjpeg mmx mp3 mp4 mpeg msn mudflap mysql ncurses nls nptl nptlonly nsplugin ogg opengl openmp oss pam pcre pdf perl png ppds pppd python qq qt3support quicktime rar readline real reflection ruby sdl session sound spell spl sse sse2 ssl svg symlink tcpd tiff truetype type1 unicode usb userlocales vcd vidix vorbis wav win32codecs wmv x86 xcb xine xinerama xml xorg xscreensaver xulrunner xv xvid zip zlib" ALSA_CARDS="intel8x0" ALSA_PCM_PLUGINS="adpcm alaw asym copy dmix dshare dsnoop empty extplug file hooks iec958 ioplug ladspa lfloat linear meter mmap_emul 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 evdev mouse synaptics" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LINGUAS="en_US zh zh_CN" USERLAND="GNU" VIDEO_CARDS="radeon vesa"
Unset:  CPPFLAGS, CTARGET, EMERGE_DEFAULT_OPTS, FFLAGS, INSTALL_MASK, LC_ALL, LDFLAGS, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS

dodoworm@localhost ~ $
回复 支持 反对

使用道具 举报

 楼主| 发表于 2008-10-29 11:59:00 | 显示全部楼层
对对,我用的就是x86的那个stage3!我赶紧重新编译看看
回复 支持 反对

使用道具 举报

 楼主| 发表于 2008-10-30 13:48:43 | 显示全部楼层
emerge gcc后
>>> Emerging (1 of 42) sys-apps/busybox-1.11.1 to /
* busybox-1.11.1.tar.bz2 RMD160 SHA1 SHA256 size ;-) ...                                  [ ok ]
* checking ebuild checksums ;-) ...                                                       [ ok ]
* checking auxfile checksums ;-) ...                                                      [ ok ]
* checking miscfile checksums ;-) ...                                                     [ ok ]
* checking busybox-1.11.1.tar.bz2 ;-) ...                                                 [ ok ]
>>> Unpacking source...
>>> Unpacking busybox-1.11.1.tar.bz2 to /var/tmp/portage/sys-apps/busybox-1.11.1/work
* Applying busybox-1.11.1-bb.patch ...                                                    [ ok ]
* Applying busybox-1.11.1-ppc-ifile.patch ...                                             [ ok ]
* Applying busybox-devmem.patch ...                                                       [ ok ]
* Applying busybox-1.10.1-mdev-exec.patch ...                                             [ ok ]
* Could not locate user configfile, so we will save a default one
* # CONFIG_DMALLOC is not set
* # CONFIG_FEATURE_SUID_CONFIG is not set
*
* # CONFIG_BUILD_LIBBUSYBOX is not set
* # CONFIG_NOMMU is not set
* CONFIG_FEATURE_SH_IS_ASH=y
* # CONFIG_FEATURE_SH_IS_NONE is not set
* CONFIG_PAM=y
* # CONFIG_STATIC is not set
* # CONFIG_DEBUG is not set
* # CONFIG_SELINUX is not set
* # CONFIG_LOCALE_SUPPORT is not set
* # CONFIG_TFTP is not set
* # CONFIG_FTPGET is not set
* # CONFIG_FTPPUT is not set
* # CONFIG_IPCALC is not set
* # CONFIG_TFTP is not set
* # CONFIG_HUSH is not set
* # CONFIG_LASH is not set
* # CONFIG_MSH is not set
* # CONFIG_INETD is not set
* # CONFIG_DPKG is not set
* # CONFIG_RPM2CPIO is not set
* # CONFIG_RPM is not set
* # CONFIG_FOLD is not set
* # CONFIG_LOGNAME is not set
* # CONFIG_OD is not set
* # CONFIG_CRONTAB is not set
* # CONFIG_UUDECODE is not set
* # CONFIG_UUENCODE is not set
* # CONFIG_SULOGIN is not set
* # CONFIG_DC is not set
*
* # CONFIG_DEBUG_INIT is not set
* # CONFIG_DEBUG_CROND_OPTION is not set
* # CONFIG_FEATURE_UDHCP_DEBUG is not set
* # CONFIG_TASKSET is not set
>>> Source unpacked.
>>> Compiling source in /var/tmp/portage/sys-apps/busybox-1.11.1/work/busybox-1.11.1 ...
  HOSTCC  scripts/basic/fixdep
  HOSTCC  scripts/basic/split-include
  HOSTCC  scripts/basic/docproc
  SPLIT   include/autoconf.h -> include/config/*
  GEN     include/bbconfigopts.h
  HOSTCC  applets/usage
  LD      archival/built-in.o
/bin/sh: i686-pc-linux-gnu-ar: command not found
make[1]: *** [archival/built-in.o] 错误 127
make: *** [archival] 错误 2
make: *** 正在等待未完成的任务....
  HOSTCC  applets/applet_tables
  GEN     include/usage_compressed.h
  GEN     include/applet_tables.h
  CC      applets/applets.o
  LD      applets/built-in.o
*
* ERROR: sys-apps/busybox-1.11.1 failed.
* Call stack:
*               ebuild.sh, line   49:  Called src_compile
*             environment, line 2486:  Called die
* The specific snippet of code:
*       emake busybox || die "build failed";
*  The die message:
*   build 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/busybox-1.11.1/temp/build.log'.
* The ebuild environment file is located at '/var/tmp/portage/sys-apps/busybox-1.11.1/temp/environment'.
*

* Messages for package sys-apps/busybox-1.11.1:

* Could not locate user configfile, so we will save a default one
*
* ERROR: sys-apps/busybox-1.11.1 failed.
* Call stack:
*               ebuild.sh, line   49:  Called src_compile
*             environment, line 2486:  Called die
* The specific snippet of code:
*       emake busybox || die "build failed";
*  The die message:
*   build 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/busybox-1.11.1/temp/build.log'.
* The ebuild environment file is located at '/var/tmp/portage/sys-apps/busybox-1.11.1/temp/environment'.
*
localhost dodoworm #

localhost dodoworm # /usr/bin/i
i386                              ifnames
i486-pc-linux-gnu-addr2line       ifnames-2.13
i486-pc-linux-gnu-ar              ifnames-2.61
i486-pc-linux-gnu-as              igawk
i486-pc-linux-gnu-c++             igawk-3.1.5
i486-pc-linux-gnu-c++filt         ijoin
i486-pc-linux-gnu-cpp             ijs_client_example
i486-pc-linux-gnu-g++             ijs-config
i486-pc-linux-gnu-gcc             ijs_server_example
i486-pc-linux-gnu-gfortran        ilbmtoppm
i486-pc-linux-gnu-gprof           imgtoppm
i486-pc-linux-gnu-ld              inb
i486-pc-linux-gnu-nm              includeres
i486-pc-linux-gnu-objcopy         indxbib
i486-pc-linux-gnu-objdump         info
i486-pc-linux-gnu-ranlib          infocmp
i486-pc-linux-gnu-readelf         infokey
i486-pc-linux-gnu-size            infotocap
i486-pc-linux-gnu-strings         infotopam
i486-pc-linux-gnu-strip           inl
i686-pc-linux-gnu-c++             innochecksum
i686-pc-linux-gnu-c++-4.1.2       install
i686-pc-linux-gnu-cpp             install-catalog
--More--
回复 支持 反对

使用道具 举报

发表于 2008-10-30 15:10:12 | 显示全部楼层
你用i686就没有这些问题了

gentoo有篇文档教人怎么change chost,你可以搜搜
回复 支持 反对

使用道具 举报

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

本版积分规则

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