LinuxSir.cn,穿越时空的Linuxsir!

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

无法编译 sandbox 报错说无法运行c编译程序 我用的是AMD64,不知道如何解决。。

[复制链接]
发表于 2007-10-28 12:24:01 | 显示全部楼层 |阅读模式
>>> Unpacking source...
>>> Unpacking sandbox-1.2.18.1.tar.bz2 to /var/tmp/portage/sys-apps/sandbox-1.2.18.1-r2/work
* Applying sandbox-1.2.18.1-open-normal-fail.patch ...                   [ ok ]
* Applying sandbox-1.2.18.1-open-cloexec.patch ...                       [ ok ]
>>> Source unpacked.
>>> Compiling source in /var/tmp/portage/sys-apps/sandbox-1.2.18.1-r2/work/sandbox-1.2.18.1 ...
* If configure fails with a 'cannot run C compiled programs' error, try this:
* FEATURES=-sandbox emerge sandbox
* Configuring sandbox for ABI=x86...
* econf: updating sandbox-1.2.18.1/config.guess with /usr/share/gnuconfig/config.guess
* econf: updating sandbox-1.2.18.1/config.sub with /usr/share/gnuconfig/config.sub
../sandbox-1.2.18.1//configure --prefix=/usr --host=i686-pc-linux-gnu --mandir=/usr/share/man --infodir=/usr/share/info --datadir=/usr/share --sysconfdir=/etc --localstatedir=/var/lib --libdir=/usr/lib32 --enable-multilib --build=i686-pc-linux-gnu
checking for a BSD-compatible install... /bin/install -c
checking whether build environment is sane... yes
checking for gawk... gawk
checking whether make sets $(MAKE)... yes
checking for i686-pc-linux-gnu-gcc... no
checking for gcc... gcc
checking for C compiler default output file name... a.out
checking whether the C compiler works... configure: error: cannot run C compiled programs.
If you meant to cross compile, use `--host'.
See `config.log' for more details.

!!! Please attach the following file when filing a report to bugs.gentoo.org:
!!! /var/tmp/portage/sys-apps/sandbox-1.2.18.1-r2/work/build-x86-x86_64-pc-linux-gnu/config.log
*
* ERROR: sys-apps/sandbox-1.2.18.1-r2 failed.
* Call stack:
*                    ebuild.sh, line 1695:  Called dyn_compile
*                    ebuild.sh, line 1033:  Called qa_call 'src_compile'
*                    ebuild.sh, line   44:  Called src_compile
*   sandbox-1.2.18.1-r2.ebuild, line   87:  Called econf '--libdir=/usr/lib32' '--enable-multilib'
*                    ebuild.sh, line  632:  Called die
* The specific snippet of code:
*                      die "econf failed"
*  The die message:
*   econf 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/sandbox-1.2.18.1-r2/temp/build.log'.
*

* Messages for package sys-apps/sandbox-1.2.18.1-r2:

* If configure fails with a 'cannot run C compiled programs' error, try this:
* FEATURES=-sandbox emerge sandbox
*
* ERROR: sys-apps/sandbox-1.2.18.1-r2 failed.
* Call stack:
*                    ebuild.sh, line 1695:  Called dyn_compile
*                    ebuild.sh, line 1033:  Called qa_call 'src_compile'
*                    ebuild.sh, line   44:  Called src_compile
*   sandbox-1.2.18.1-r2.ebuild, line   87:  Called econf '--libdir=/usr/lib32' '--enable-multilib'
*                    ebuild.sh, line  632:  Called die
* The specific snippet of code:
*                      die "econf failed"
*  The die message:
*   econf 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/sandbox-1.2.18.1-r2/temp/build.log'.
*
 楼主| 发表于 2007-10-28 12:27:47 | 显示全部楼层
按照提示FEATURES=-sandbox emerge sandbox 还是报同样的错误
回复 支持 反对

使用道具 举报

发表于 2007-10-28 12:40:32 | 显示全部楼层
你的工具链的相关设置出问题了,你看
checking for i686-pc-linux-gnu-gcc... no
gcc都没有

贴贴你的emerge --info
回复 支持 反对

使用道具 举报

 楼主| 发表于 2007-10-28 12:51:37 | 显示全部楼层
有的 好像他找错gcc了?不知道咋整。。
localhost ~ # gcc-config -l
[1] x86_64-pc-linux-gnu-4.1.1 *

localhost ~ # emerge --info
Portage 2.1.3.16 (default-linux/amd64, gcc-4.1.1, glibc-2.5-r0, 2.6.22-gentoo-r8 x86_64)
=================================================================
System uname: 2.6.22-gentoo-r8 x86_64 AMD Athlon(tm) 64 X2 Dual Core Processor 3800+
Timestamp of tree: Sat, 27 Oct 2007 21:50:01 +0000
ccache version 2.4 [enabled]
app-shells/bash:     3.2_p17
dev-lang/python:     2.4.3-r4
dev-python/pycrypto: 2.0.1-r6
dev-util/ccache:     2.4-r7
sys-apps/baselayout: 1.12.9
sys-apps/sandbox:    1.2.17
sys-devel/autoconf:  2.61
sys-devel/automake:  1.6.3, 1.7.9-r1, 1.9.6-r2, 1.10
sys-devel/binutils:  2.16.1-r3
sys-devel/gcc-config: 1.3.16
sys-devel/libtool:   1.5.22
virtual/os-headers:  2.6.17-r2
ACCEPT_KEYWORDS="amd64"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-march=athlon64 -O2 -pipe -fomit-frame-pointer"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/kde/3.5/env /usr/kde/3.5/share/config /usr/kde/3.5/shutdown /usr/share/X11/xkb /usr/share/config"
CONFIG_PROTECT_MASK="/etc/env.d /etc/fonts/fonts.conf /etc/gconf /etc/revdep-rebuild /etc/terminfo"
CXXFLAGS="-march=athlon64 -O2 -pipe -fomit-frame-pointer"
DISTDIR="/usr/portage/distfiles"
FEATURES="ccache distlocks metadata-transfer parallel-fetch sfperms strict unmerge-orphans userfetch"
GENTOO_MIRRORS="ftp://gentoo.anheng.com.cn/gentoo http://mirror.averse.net/pub/gentoo/"
LDFLAGS="-Wl,-O1 -Wl,--as-needed"
LINGUAS="zh_CN zh en_US"
MAKEOPTS="-j3"
PKGDIR="/usr/portage/packages"
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-*"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
SYNC="rsync://mirror.averse.net/gentoo-portage"
USE="X a52 aac accessibility acl acpi alsa amd64 arts automount berkdb bitmap-fonts bzip2 cairo cdr cjk cli cracklib crypt dbus dri dvd dvdr dvdread eds emboss encode esd evo fam ffmpeg flash fortran ftp gif gpm gstreamer gtk gtk2 hal hdaps iconv immqt-bc isdnlog jabber jpeg kde kdeenablefinal kerberos kipi ldap lm_sensors mad midi mikmod mmx2 mp3 mpeg msn mudflap ncurses nls nptl nptlonly ogg opengl openmp oss pam pcre pdf perl png pppd python qt3 qt3support qt4 quicktime readline reflection samba sdl session spell spl ssl svg swat tcpd threads tiff truetype truetype-fonts type1-fonts udev unicode usb utf8 vcd vorbis winbind xine xml xorg xv zlib" ALSA_CARDS="hda-intel" 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="nv"
Unset:  CTARGET, EMERGE_DEFAULT_OPTS, INSTALL_MASK, LANG, LC_ALL, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS, PORTDIR_OVERLAY
回复 支持 反对

使用道具 举报

发表于 2007-10-28 12:54:24 | 显示全部楼层
没见过,不清楚
谁捐我一个amd64的机器吧。。。
回复 支持 反对

使用道具 举报

发表于 2007-10-28 14:11:14 | 显示全部楼层
将系统中的下列文件移除:

i686-pc-linux-gnu-c++  i686-pc-linux-gnu-gcc       i686-pc-linux-gnu-protoize
i686-pc-linux-gnu-cc   i686-pc-linux-gnu-gccbug    i686-pc-linux-gnu-unprotoize
i686-pc-linux-gnu-cpp  i686-pc-linux-gnu-gcov
i686-pc-linux-gnu-g++  i686-pc-linux-gnu-gfortran
回复 支持 反对

使用道具 举报

发表于 2009-5-12 22:06:57 | 显示全部楼层
我的问题和你的差不多吧。。。你解决了给我说声哈。。。我也真恼火着呢
回复 支持 反对

使用道具 举报

发表于 2009-5-13 10:23:01 | 显示全部楼层
哥们,我遇到跟你一样的问题,我强烈怀疑你用选错了架构。
比如说,你的机器是AMD64的,但是你用的是X86的架构。

你看看我的博客,可能对你有帮助:
http://zhongbeyond.blog.sohu.com/113987170.html
回复 支持 反对

使用道具 举报

发表于 2009-5-13 11:27:57 | 显示全部楼层
我的机器也曾经有这个问题,
类似的问题是emerge glibc 也出错
解决方法是:
内核选项
Executable file formats / Emulations-->
   
  • IA32 Emulation-->
          
  • IA32 a.out support

    估计和mutilib有关
  • 回复 支持 反对

    使用道具 举报

    发表于 2009-5-16 18:04:14 | 显示全部楼层
    前两个星期遇过类似提示
    *FEATURES=-sandbox emerge sandbox
    不过我的是解压不了包.把sandbox删掉就不会出错.
    后来emerge -e system后就正常了!
    回复 支持 反对

    使用道具 举报

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

    本版积分规则

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