LinuxSir.cn,穿越时空的Linuxsir!

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

emerge update deep newuse world后,出了问题,求助

[复制链接]
发表于 2008-10-17 15:36:30 | 显示全部楼层 |阅读模式
emerge update deep newuse world后,出了问题

现在emerge安装gcc等软件都没有问题,但是
emerge tomcat-native的时候出了这么个错误,google了不知道怎么解决。

gentoo configure: error: C compiler cannot create executables
 楼主| 发表于 2008-10-17 15:38:26 | 显示全部楼层
emerge --info
Portage 2.1.4.5 (default/linux/x86/2008.0, 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) Xeon(TM) MP CPU 2.00GHz
Timestamp of tree: Thu, 16 Oct 2008 07:01:01 +0000
app-shells/bash:     3.2_p33
dev-java/java-config: 1.3.7, 2.1.6
dev-lang/python:     2.5.2-r7
sys-apps/baselayout: 1.12.11.1
sys-apps/sandbox:    1.2.18.1-r2
sys-devel/autoconf:  2.13, 2.61-r2
sys-devel/automake:  1.5, 1.7.9-r1, 1.9.6-r2, 1.10.1-r1
sys-devel/binutils:  2.18-r3
sys-devel/gcc-config: 1.4.0-r4
sys-devel/libtool:   1.5.26
virtual/os-headers:  2.6.23-r3
ACCEPT_KEYWORDS="x86"
CBUILD="i686-pc-linux-gnu"
CFLAGS="-O3 -mtune=i686 -pipe"
CHOST="i686-pc-linux-gnu"
CONFIG_PROTECT="/etc"
CONFIG_PROTECT_MASK="/etc /etc/ /etc/ca-certificates.conf /etc/env.d /etc/env.d/java/ /etc/fonts/fonts.conf /etc/gconf /etc/php/apache2-php5/ext-active/ /etc/php/cgi-php5/ /etc/php/cgi-php5/ext-active/ /etc/php/cli-php5/ext-active/ /etc/revdep-rebuild /etc/terminfo /etc/texmf/web2c /etc/udev/rules.d /texmf/web2c ext-active/ fonts/fonts.conf"
CXXFLAGS="-O3 -mtune=i686 -pipe"
DISTDIR="/usr/portage/distfiles"
FEATURES="distlocks metadata-transfer sandbox sfperms strict unmerge-orphans userfetch"
GENTOO_MIRRORS="http://distfiles.gentoo.org http://distro.ibiblio.org/pub/linux/distributions/gentoo"
LANG="en_US.UTF-8"
LC_ALL="en_US.UTF-8"
LDFLAGS="-Wl,-O1"
LINGUAS="en"
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"
SYNC="rsync://rsync.gentoo.org/gentoo-portage"
USE="acl apache2 berkdb bzip2 cli cracklib crypt cups dba dri fontconfig fortran gd gdbm geoip gpm i686 iconv imap isdnlog jadetex jpeg libwww maildir midi mppe-mppc mudflap mysql ncurses nls nptl nptlonly oci8 openmp oracle pam pcre perl php png pppd python readline reflection sasl session snmp sockets spl ssl svg sysfs tcpd truetype unicode vhosts x86 xml xorg xpm xtended 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 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 mouse evdev" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LINGUAS="en" USERLAND="GNU" VIDEO_CARDS="fbdev glint i810 mach64 mga neomagic nv r128 radeon savage sis tdfx trident vesa vga via vmware voodoo"
Unset:  CPPFLAGS, CTARGET, EMERGE_DEFAULT_OPTS, FFLAGS, INSTALL_MASK, MAKEOPTS, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS, PORTDIR_OVERLAY

本帖子中包含更多资源

您需要 登录 才可以下载或查看,没有帐号?注册

x
回复 支持 反对

使用道具 举报

 楼主| 发表于 2008-10-17 16:05:15 | 显示全部楼层
重新编译sandbox的时候发现有个提示
按这个提示还是出错

* 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
* GNU info directory index is up-to-date.
回复 支持 反对

使用道具 举报

发表于 2008-10-17 16:18:32 | 显示全部楼层
See `config.log' for more details.
回复 支持 反对

使用道具 举报

 楼主| 发表于 2008-10-17 16:24:57 | 显示全部楼层
/var/tmp/portage/dev-java/tomcat-native-1.1.13-r1/work/tomcat-native-1.1.13-src/jni/native下的

本帖子中包含更多资源

您需要 登录 才可以下载或查看,没有帐号?注册

x
回复 支持 反对

使用道具 举报

 楼主| 发表于 2008-10-17 16:36:57 | 显示全部楼层
版主大哥帮忙看一下
有gcc的,
mail native # gcc-config --get-current-profile
* gcc-config: No gcc profile is active!
* gcc-config: No gcc profile is active; please select one!
[1] i686-pc-linux-gnu-4.1.2
mail native # gcc-config -l
* gcc-config: No gcc profile is active!
* gcc-config: No gcc profile is active; please select one!
[1] i686-pc-linux-gnu-4.1.2
mail native # gcc-config i686-pc-linux-gnu-4.1.2
* Switching native-compiler to i686-pc-linux-gnu-4.1.2 ...
>>> Regenerating /etc/ld.so.cache...                                                                                    [ ok ]

* If you intend to use the gcc from the new profile in an already
* running shell, please remember to do:

*   # source /etc/profile

mail native # gcc-config -l
[1] i686-pc-linux-gnu-4.1.2 *

但是config。log里边提示
configure:2872: checking os_type directory
configure:2952: checking for i686-pc-linux-gnu-gcc
configure:2979: result: i486-pc-linux-gnu-gcc
configure:3257: checking for C compiler version
configure:3264: i486-pc-linux-gnu-gcc --version >&5
gcc-config error: Could not run/locate "i486-pc-linux-gnu-gcc"
configure:3267: $? = 1
configure:3274: i486-pc-linux-gnu-gcc -v >&5
gcc-config error: Could not run/locate "i486-pc-linux-gnu-gcc"
configure:3277: $? = 1
configure:3284: i486-pc-linux-gnu-gcc -V >&5
gcc-config error: Could not run/locate "i486-pc-linux-gnu-gcc"
configure:3287: $? = 1
configure:3310: checking for C compiler default output file name
configure:3337: i486-pc-linux-gnu-gcc -O3 -pipe  -Wl,-O1 conftest.c  >&5
gcc-config error: Could not run/locate "i486-pc-linux-gnu-gcc"
configure:3340: $? = 1
configure:3378: result:
configure: failed program was:

该怎么办呢?
回复 支持 反对

使用道具 举报

发表于 2008-10-17 17:05:27 | 显示全部楼层
configure:2952: checking for i686-pc-linux-gnu-gcc
configure:2979: result: i486-pc-linux-gnu-gcc

自己看configure文件,看看为什么找i686-pc-linux-gnu-gcc结果却是i486-pc-linux-gnu-gcc
回复 支持 反对

使用道具 举报

 楼主| 发表于 2008-10-17 17:09:56 | 显示全部楼层
Post by zhllg;1895266
configure:2952: checking for i686-pc-linux-gnu-gcc
configure:2979: result: i486-pc-linux-gnu-gcc

自己看configure文件,看看为什么找i686-pc-linux-gnu-gcc结果却是i486-pc-linux-gnu-gcc



好的。我先看看能不能找到问题
回复 支持 反对

使用道具 举报

 楼主| 发表于 2008-10-17 17:35:25 | 显示全部楼层
感谢版主,现在找到是apr-1-config --cc 打印的是i486的gcc,正在重新emerge,不知道这样能不能解决,一会再通报大家
回复 支持 反对

使用道具 举报

 楼主| 发表于 2008-10-17 17:58:43 | 显示全部楼层
Post by yuio654;1895282
感谢版主,现在找到是apr-1-config --cc 打印的是i486的gcc,正在重新emerge,不知道这样能不能解决,一会再通报大家


郁闷,现在apr也装不上了
4 config.status: creating test/Makefile
625 config.status: creating test/internal/Makefile
626 config.status: creating include/arch/unix/apr_private.h
627 config.status: executing default commands
628 make[1]: Entering directory `/var/tmp/portage/dev-libs/apr-1.3.2/work/apr-1.3.2'
629 /bin/sh /usr/bin/libtool --silent --mode=compile i686-pc-linux-gnu-gcc -pthread  -O3 -pipe -DHAVE_CONFIG_H -DLINUX=2 -D_RE    ENTRANT -D_GNU_SOURCE -D_LARGEFILE64_SOURCE   -I./include -I/var/tmp/portage/dev-libs/apr-1.3.2/work/apr-1.3.2/include/arc    h/unix -I./include/arch/unix -I/var/tmp/portage/dev-libs/apr-1.3.2/work/apr-1.3.2/include/arch/unix -I/var/tmp/portage/dev    -libs/apr-1.3.2/work/apr-1.3.2/include  -o passwd/apr_getpass.lo -c passwd/apr_getpass.c && touch passwd/apr_getpass.lo
630 libtool: compile: unable to infer tagged configuration
631 libtool: compile: specify a tag with `--tag'
632 make[1]: *** [passwd/apr_getpass.lo] Error 1
633 make[1]: Leaving directory `/var/tmp/portage/dev-libs/apr-1.3.2/work/apr-1.3.2'
634 make: *** [all-recursive] Error 1
635  ^[[31;01m*^[[0m
636  ^[[31;01m*^[[0m ERROR: dev-libs/apr-1.3.2 failed.
637  ^[[31;01m*^[[0m Call stack:
638  ^[[31;01m*^[[0m               ebuild.sh, line   49:  Called src_compile
639  ^[[31;01m*^[[0m             environment, line 2535:  Called die
640  ^[[31;01m*^[[0m The specific snippet of code:
641  ^[[31;01m*^[[0m       emake || die "Make failed";
642  ^[[31;01m*^[[0m  The die message:
643  ^[[31;01m*^[[0m   Make failed
644  ^[[31;01m*^[[0m
645  ^[[31;01m*^[[0m If you need support, post the topmost build error, and the call stack if relevant.
646  ^[[31;01m*^[[0m A complete build log is located at '/var/tmp/portage/dev-libs/apr-1.3.2/temp/build.log'.
647  ^[[31;01m*^[[0m The ebuild environment file is located at '/var/tmp/portage/dev-libs/apr-1.3.2/temp/environment'.
648  ^[[31;01m*^[[0m2sswd/apr_getpass.lo] Error 1
回复 支持 反对

使用道具 举报

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

本版积分规则

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