LinuxSir.cn,穿越时空的Linuxsir!

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

[已解决]有谁编译GCc 4.3.1-r1过了。。。

[复制链接]
发表于 2008-7-16 19:12:34 | 显示全部楼层 |阅读模式
我死活编译不过,包括用自身等3个版本,
[1] i686-pc-linux-gnu-4.1.2
[2] i686-pc-linux-gnu-4.2.4
[3] i686-pc-linux-gnu-4.3.1 *

binutils 库已经重新编译过
[1] i686-pc-linux-gnu-2.18 *

大概在一个小时又四十分后出错,已经最后了,很是郁闷。
elogviewer 的提示信息:
INFO (unpack)

Applying Gentoo patches ...
  00_all_gcc-4.1-alpha-mieee-default.patch ...
  00_all_gcc-trampolinewarn.patch ...
  03_all_gcc43-java-nomulti.patch ...
  08_all_gcc-4.1-cross-compile.patch ...
  11_all_gcc-netbsd-symbolic.patch ...
  14_all_gcc-sparc64-bsd.patch ...
  18_all_904-flatten-switch-stmt-00.patch ...
  51_all_gcc-3.4-libiberty-pic.patch ...
  53_all_gcc4-superh-default-multilib.patch ...
  54_all_300-libstdc++-pic.patch ...
  61_all_gcc43-pr24170.patch ...
  61_all_gcc4-ia64-noteGNUstack.patch ...
  62_all_gcc4-noteGNUstack.patch ...
  64_all_gcc43-pr34571.patch ...
  66_all_gcc43-pr25343.patch ...
  74_all_sh-pr24836.patch ...
  75_all_gcc43-pr36533.patch ...
Done with patching
Applying uClibc patches ...
  90_all_103-uclibc-conf-noupstream.patch ...
  90_all_200-uclibc-locale.patch ...
  90_all_203-uclibc-locale-no__x.patch ...
  90_all_204-uclibc-locale-wchar_fix.patch ...
  90_all_205-uclibc-locale-update.patch ...
  90_all_301-missing-execinfo_h.patch ...
  90_all_303-c99-complex-ugly-hack.patch ...
  90_all_304-index_macro.patch ...
  90_all_305-libmudflap-susv3-legacy.patch ...
  90_all_306-libstdc++-namespace.patch ...
Done with patching
Replacing obsolete head/tail with POSIX compliant ones
- fixed contrib/test_summary
- fixed boehm-gc/configure
- fixed fixincludes/configure
- fixed gcc/configure
- fixed gnattools/configure
- fixed intl/configure
- fixed libada/configure
- fixed libcpp/configure
- fixed libdecnumber/configure
- fixed libffi/configure
- fixed libgcc/configure
- fixed libgfortran/configure
- fixed libgomp/configure
- fixed libiberty/configure
- fixed libjava/configure
- fixed libmudflap/configure
- fixed libobjc/configure
- fixed libssp/configure
- fixed libstdc++-v3/configure
- fixed zlib/configure
- fixed ltmain.sh
- fixed boehm-gc/Makefile.in
- fixed fixincludes/Makefile.in
- fixed gcc/Makefile.in
- fixed gnattools/Makefile.in
- fixed intl/Makefile.in
- fixed libada/Makefile.in
- fixed libcpp/Makefile.in
- fixed libdecnumber/Makefile.in
- fixed libffi/Makefile.in
- fixed libgcc/Makefile.in
- fixed libgfortran/Makefile.in
- fixed libgomp/Makefile.in
- fixed libiberty/Makefile.in
- fixed libjava/Makefile.in
- fixed libmudflap/Makefile.in
- fixed libobjc/Makefile.in
- fixed libssp/Makefile.in
- fixed libstdc++-v3/Makefile.in
- fixed zlib/Makefile.in
Running elibtoolize in: gcc-4.3.1
  Applying install-sh-1.5.4.patch ...
  Applying portage-2.2.patch ...
  Applying sed-1.5.6.patch ...
Using GNU config files from /usr/share/libtool
  Updating libjava/libltdl/config.sub
  Updating libjava/classpath/config.sub
  Updating config.sub
  Updating libjava/libltdl/config.guess
  Updating libjava/classpath/config.guess
  Updating config.guess
Fixing misc issues in configure files
Applying gcc-configure-texinfo.patch ...
Touching generated files
  Touching gcc/cstamp-h.in
  Touching gcc/config.in
  Touching libjava/aclocal.m4
  Touching libjava/Makefile.in
  Touching libjava/configure
Applying gcc-spec-env.patch ...

INFO (compile)

CFLAGS="-march=prescott -O2 -pipe"
CXXFLAGS="-march=prescott -O2 -pipe"
Configuring gcc ...
running gcc-compiler-configure

configuring for GCC_LANG: c,c++,treelang,fortran
PREFIX:                        /usr
BINPATH:                        /usr/i686-pc-linux-gnu/gcc-bin/4.3.1
LIBPATH:                        /usr/lib/gcc/i686-pc-linux-gnu/4.3.1
DATAPATH:                /usr/share/gcc-data/i686-pc-linux-gnu/4.3.1
STDCXX_INCDIR:        /usr/lib/gcc/i686-pc-linux-gnu/4.3.1/include/g++-v4
Configuring GCC with:
        --prefix=/usr
        --bindir=/usr/i686-pc-linux-gnu/gcc-bin/4.3.1
        --includedir=/usr/lib/gcc/i686-pc-linux-gnu/4.3.1/include
        --datadir=/usr/share/gcc-data/i686-pc-linux-gnu/4.3.1
        --mandir=/usr/share/gcc-data/i686-pc-linux-gnu/4.3.1/man
        --infodir=/usr/share/gcc-data/i686-pc-linux-gnu/4.3.1/info
        --with-gxx-include-dir=/usr/lib/gcc/i686-pc-linux-gnu/4.3.1/include/g++-v4
        --host=i686-pc-linux-gnu
        --build=i686-pc-linux-gnu
        --disable-altivec
        --enable-nls
        --without-included-gettext
        --with-system-zlib
        --disable-checking
        --disable-werror
        --enable-secureplt
        --disable-multilib
        --enable-libmudflap
        --disable-libssp
        --enable-cld
        --disable-libgcj
        --with-arch=i686
        --enable-languages=c,c++,treelang,fortran
        --enable-shared
        --enable-threads=posix
        --enable-__cxa_atexit
        --enable-clocale=gnu
        --with-bugurl=http://bugs.gentoo.org/
        --with-pkgversion=Gentoo 4.3.1-r1 p1.1
Compiling gcc ...
Running make LDFLAGS="-Wl,-O1,--hash-style=gnu" STAGE1_CFLAGS="-O" LIBPATH="/usr/lib/gcc/i686-pc-linux-gnu/4.3.1" BOOT_CFLAGS=" -march=prescott -O2 -pipe" profiledbootstrap

ERROR (compile)


ERROR: sys-devel/gcc-4.3.1-r1 failed.
Call stack:
              ebuild.sh, line   49:  Called src_compile
            environment, line 4550:  Called toolchain_src_compile
            environment, line 5065:  Called gcc_src_compile
            environment, line 2914:  Called gcc_do_make
            environment, line 2744:  Called die
The specific snippet of code:
      emake LDFLAGS="${LDFLAGS}" STAGE1_CFLAGS="${STAGE1_CFLAGS}" LIBPATH="${LIBPATH}" BOOT_CFLAGS="${BOOT_CFLAGS}" ${GCC_MAKE_TARGET} || die "emake failed with ${GCC_MAKE_TARGET}";
The die message:
  emake failed with profiledbootstrap

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-devel/gcc-4.3.1-r1/temp/build.log'.
The ebuild environment file is located at '/var/tmp/portage/sys-devel/gcc-4.3.1-r1/temp/environment'.

longerz@Gentoo~$ emerge  --info
Portage 2.2_rc1 (default/linux/x86/2008.0/desktop, gcc-4.3.1, glibc-2.8_p20080602-r0, 2.6.24-gentoo-r8-madeBYzzl i686)
=================================================================
System uname: Linux-2.6.24-gentoo-r8-madeBYzzl-i686-Intel-R-_Pentium-R-_4_CPU_2.80GHz-with-glibc2.0
Timestamp of tree: Tue, 15 Jul 2008 12:00:01 +0000
ccache version 2.4 [enabled]
app-shells/bash:     3.2_p33
dev-java/java-config: 1.3.7, 2.1.6
dev-lang/python:     2.5.2-r5
dev-util/ccache:     2.4-r7
sys-apps/baselayout: 2.0.0
sys-apps/openrc:     0.2.5
sys-apps/sandbox:    1.2.18.1-r2
sys-devel/autoconf:  2.13, 2.61-r2
sys-devel/automake:  1.5, 1.6.3, 1.7.9-r1, 1.8.5-r3, 1.9.6-r2, 1.10.1
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="-march=prescott -O2 -pipe -ftracer -fprefetch-loop-arrays -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/splash /etc/terminfo /etc/udev/rules.d"
CXXFLAGS="-march=prescott -O2 -pipe -ftracer -fprefetch-loop-arrays -fomit-frame-pointer"
DISTDIR="/usr/portage/distfiles"
FEATURES="ccache distlocks parallel-fetch preserve-libs sandbox sfperms strict unmerge-orphans userfetch"
GENTOO_MIRRORS="ftp://gentoo.anheng.com.cn/gentoo/ http://gentoo.chem.wisc.edu/gentoo/"
LANG="zh_CN.UTF-8"
LDFLAGS="-Wl,-O1,--hash-style=gnu"
LINGUAS="zh_CN zh"
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/local/portage"
SYNC="rsync://rsync.gentoo.org/gentoo-portage"
USE="X acl acpi alsa bash-completion berkdb bluetooth branding bzip2 cairo cdr chardet cjk cli cracklib crypt cups dbus dri dvd dvdr dvdread eds emboss encode evo fam fortran gdbm gif gpm gtk gtk+ gtk2 hal iconv isdnlog jpeg ldap libnotify mad midi mikmod mmx mp3 mpeg mudflap ncurses nls nptl nptlonly ogg opengl openmp pam pcre pdf perl pic png ppds pppd python quicktime readline reflection sdl session spell spl sse sse2 sse3 ssl startup-notification svg tcpd tiff truetype unicode vorbis win32codecs x86 xcomposite xfce4 xml xorg xulrunner 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" 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" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LINGUAS="zh_CN zh" USERLAND="GNU" VIDEO_CARDS="nv nvidia"
Unset:  CPPFLAGS, CTARGET, EMERGE_DEFAULT_OPTS, INSTALL_MASK, LC_ALL, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS
发表于 2008-7-16 20:36:34 | 显示全部楼层
我这里没有问题,试一试先更新portage树。
回复 支持 反对

使用道具 举报

发表于 2008-7-16 20:41:52 | 显示全部楼层
我这儿也没有问题。。

emerge gcc
emerge -e system
emerge -e world

都是一次通过,我感觉应该是/etc/make.conf文件的问题
回复 支持 反对

使用道具 举报

发表于 2008-7-16 20:52:12 | 显示全部楼层
正在编译中
失败了3次
这次找到这个
http://benr75.com/pages/gentoo_gcc_4.1.1_upgrade_guide
不知道过的了不
回复 支持 反对

使用道具 举报

发表于 2008-7-16 20:52:55 | 显示全部楼层
正在编译中
失败了3次
这次找到这个
http://benr75.com/pages/gentoo_gcc_4.1.1_upgrade_guide
不知道过的了不
回复 支持 反对

使用道具 举报

发表于 2008-7-16 21:03:47 | 显示全部楼层
楼上的。。你这个网址上面的内容和文档也没什么区别吧
回复 支持 反对

使用道具 举报

 楼主| 发表于 2008-7-16 21:26:56 | 显示全部楼层
Post by LeeH_Intuition;1875309
正在编译中
失败了3次
这次找到这个
http://benr75.com/pages/gentoo_gcc_4.1.1_upgrade_guide
不知道过的了不


是啊,我也至少失败了3次,看提示是不是我的make.conf有点问题(特别针对gcc 4.3.1 -r1)?
回复 支持 反对

使用道具 举报

发表于 2008-7-16 23:00:29 | 显示全部楼层
郁闷还是和楼主一样的错误提示
回复 支持 反对

使用道具 举报

发表于 2008-7-16 23:39:20 | 显示全部楼层
没有问题,贴一下
kernel@fairland:~$ emerge --info
Portage 2.2_rc1 (default/linux/x86/2008.0/desktop, gcc-4.3.1, glibc-2.8_p20080602-r0, 2.6.25-tuxonice-r6 i686)
=================================================================
System uname: Linux-2.6.25-tuxonice-r6-i686-Intel-R-_Core-TM-2_Duo_CPU_T7100_@_1.80GHz-with-glibc2.0
Timestamp of tree: Wed, 16 Jul 2008 13:45:03 +0000
ccache version 2.4 [enabled]
app-shells/bash:     3.2_p39
dev-java/java-config: 1.3.7, 2.1.6-r1
dev-lang/python:     2.4.4-r11, 2.5.2-r5
dev-util/ccache:     2.4-r7
sys-apps/baselayout: 2.0.0
sys-apps/openrc:     0.2.5-r1
sys-apps/sandbox:    1.2.18.1-r3
sys-devel/autoconf:  2.13, 2.62-r1
sys-devel/automake:  1.5, 1.7.9-r1, 1.8.5-r3, 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:   2.2.4
virtual/os-headers:  2.6.25-r4
ACCEPT_KEYWORDS="x86 ~x86"
CBUILD="i686-pc-linux-gnu"
CFLAGS="-march=prescott -O2 -pipe -fomit-frame-pointer"
CHOST="i686-pc-linux-gnu"
CONFIG_PROTECT="/etc"
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/env.d /etc/env.d/java/ /etc/fonts/fonts.conf /etc/gconf /etc/gentoo-release /etc/php/apache2-php5/ext-active/ /etc/php/cgi-php5/ext-active/ /etc/php/cli-php5/ext-active/ /etc/revdep-rebuild /etc/terminfo /etc/udev/rules.d"
CXXFLAGS="-march=prescott -O2 -pipe -fomit-frame-pointer"
DISTDIR="/usr/portage/distfiles"
FEATURES="ccache collision-protect distlocks parallel-fetch preserve-libs sandbox sfperms strict unmerge-orphans userfetch"
GENTOO_MIRRORS="http://61.135.158.199"
LANG="en_US.UTF-8"
LDFLAGS="-Wl,-O1"
LINGUAS="en en_US zh_CN "
MAKEOPTS="-j3"
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="/tmp/portage"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/usr/portage/local/layman/gentoo-china /usr/portage/local/layman/perl-experimental /usr/portage/local/layman/sunrise /usr/portage/local/layman/desktop-effects /usr/portage/local/layman/rox /usr/portage/local/layman/science /usr/portage/local/layman /tools2/overlay"
SYNC="rsync://mirror.averse.net/gentoo-portage"
USE="X acpi alsa apache2 audiofile bash-completion berkdb bluetooth branding bzip2 cairo cdr cjk cli cracklib crypt cscope ctype dbus dri dvd dvdr dvdread eds emboss encode esd evo exif expat fam fastbuild firefox foomaticdb force-cgi-redirect fortran ftp gd gdbm gif glut gpm gstreamer gtk gtkhtml guile hal iconv idn imlib immqt-bc ipv6 isdnlog jpeg kerberos lcms ldap libnotify libwww lm_sensors mad memlimit midi mikmod mmx mng motif mozilla mp3 mpeg mudflap mysql ncurses nls nptl nptlonly nvidia ogg opengl openmp oss pam pcre pdf perl pmu png posix ppds pppd python qt3support qt4 quicktime readline real reflection samba sdl session simplexml slang soap sockets spell spl sse sse2 ssl startup-notification svg tcpd tiff tokenizer truetype unicode v4l v4l2 vim-syntax vorbis win32codecs wma x264 x86 xcomposite xml xorg xscreensaver xsl xv xvmc 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" 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 synaptic" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LINGUAS="en en_US zh_CN " USERLAND="GNU" VIDEO_CARDS="nvidia"
Unset:  CPPFLAGS, CTARGET, EMERGE_DEFAULT_OPTS, INSTALL_MASK, LC_ALL, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS
回复 支持 反对

使用道具 举报

 楼主| 发表于 2008-7-17 23:17:29 | 显示全部楼层
to all:
今天调了cpu风扇,决定emerge -e system,到目前为止,gcc 倒是过了;但是还有gettext gpm net-tool 3`4个包没过,慢慢查找了。谢谢。
回复 支持 反对

使用道具 举报

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

本版积分规则

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