LinuxSir.cn,穿越时空的Linuxsir!

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

用gcc4编译glibc-2.3.5.20050418通过的朋友帮忙看看

[复制链接]
发表于 2005-4-21 23:37:44 | 显示全部楼层 |阅读模式
gcc信息如下:
  1. root@cat2pig / # gcc -v
  2. Using built-in specs.
  3. Target: i686-pc-linux-gnu
  4. Configured with: /var/tmp/portage/gcc-4.0.0_beta20050417/work/gcc-4.0.0-20050417/configure --enable-version-specific-runtime-libs --prefix=/usr --bindir=/usr/i686-pc-linux-gnu/gcc-bin/4.0.0-beta20050417 --includedir=/usr/lib/gcc/i686-pc-linux-gnu/4.0.0-beta20050417/include --datadir=/usr/share/gcc-data/i686-pc-linux-gnu/4.0.0-beta20050417 --mandir=/usr/share/gcc-data/i686-pc-linux-gnu/4.0.0-beta20050417/man --infodir=/usr/share/gcc-data/i686-pc-linux-gnu/4.0.0-beta20050417/info --with-gxx-include-dir=/usr/lib/gcc/i686-pc-linux-gnu/4.0.0-beta20050417/include/g++-v4 --host=i686-pc-linux-gnu --disable-altivec --enable-nls --without-included-gettext --with-system-zlib --disable-checking --disable-werror --disable-libunwind-exceptions --disable-multilib --disable-libgcj --enable-languages=c,c++ --enable-shared --enable-threads=posix --enable-__cxa_atexit --enable-clocale=gnu
  5. Thread model: posix
  6. gcc version 4.0.0-beta20050417 (Gentoo Linux 4.0.0_beta20050417)
复制代码


系统信息如下:
  1. root@cat2pig / # emerge info
  2. Portage 2.0.51.19 (default-linux/x86/2005.0, gcc-4.0.0-beta20050417, glibc-2.3.4.20050125-r1, 2.6.11-nitro2 i686)
  3. =================================================================
  4. System uname: 2.6.11-nitro2 i686 AMD Athlon(tm) XP 3200+
  5. Gentoo Base System version 1.6.10
  6. Python:              dev-lang/python-2.3.5 [2.3.5 (#1, Apr 19 2005, 18:44:34)]
  7. dev-lang/python:     2.3.5
  8. sys-devel/autoconf:  2.59-r6, 2.13
  9. sys-devel/automake:  1.7.9-r1, 1.8.5-r3, 1.5, 1.4_p6, 1.6.3, 1.9.5
  10. sys-devel/binutils:  2.15.94.0.2.2
  11. sys-devel/libtool:   1.5.14
  12. virtual/os-headers:  2.6.11
  13. ACCEPT_KEYWORDS="x86 ~x86"
  14. AUTOCLEAN="yes"
  15. CFLAGS="-march=i686 -O3 -pipe -fomit-frame-pointer"
  16. CHOST="i686-pc-linux-gnu"
  17. CONFIG_PROTECT="/etc /usr/kde/2/share/config /usr/kde/3.3/env /usr/kde/3.3/share/config /usr/kde/3.3/shutdown /usr/kde/3/share/config /usr/lib/X11/xkb /usr/share/config /var/qmail/control"
  18. CONFIG_PROTECT_MASK="/etc/gconf /etc/terminfo /etc/env.d"
  19. CXXFLAGS="-march=i686 -O3 -pipe -fomit-frame-pointer"
  20. DISTDIR="/usr/portage/distfiles"
  21. FEATURES="autoaddcvs autoconfig ccache sandbox sfperms strict"
  22. GENTOO_MIRRORS="http://gentoo.gg3.net http://ftp.gentoo.or.kr"
  23. LANG="zh_CN.GBK"
  24. LC_ALL="zh_CN.GBK"
  25. LINGUAS="zh_CN"
  26. MAKEOPTS="-j2"
  27. PKGDIR="/usr/portage/packages"
  28. PORTAGE_TMPDIR="/var/tmp"
  29. PORTDIR="/usr/portage"
  30. PORTDIR_OVERLAY="/usr/local/portage"
  31. SYNC="rsync://65.19.163.230/gentoo-portage"
  32. USE="x86 3dnow X alsa apm avi berkdb bitmap-fonts cjk crypt cups emboss encode font-server foomaticdb fortran gdbm gif glc glx gnutls gpm gtk gtk2 imlib ipv6 jpeg kde libg++ libwww mad mikmod motif mp3 mpeg ncurses nls nptl oggvorbis opengl oss pam pdflib perl png python qt quicktime readline samba sdl ssl svga tcpd truetype truetype-fonts type1-fonts xml xml2 xprint xv zlib linguas_zh_CN"
  33. Unset:  ASFLAGS, CBUILD, CTARGET, LDFLAGS
复制代码


出错信息如下:

  1. i686-pc-linux-gnu-gcc ../sysdeps/generic/errno.c -c -std=gnu99 -O2 -O3 -Wall -Winline -Wstrict-prototypes -Wwrite-strings -march=i686 -pipe -mpreferred-stack-boundary=4  -g0 -O99 -fomit-frame-pointer -D__USE_STRING_INLINES    -I../include -I. -I/var/tmp/portage/glibc-2.3.5.20050418/work/build-default-i686-pc-linux-gnu-linuxthreads/csu -I.. -I../libio  -I/var/tmp/portage/glibc-2.3.5.20050418/work/build-default-i686-pc-linux-gnu-linuxthreads -I../sysdeps/i386/elf -I../linuxthreads/sysdeps/unix/sysv/linux/i386 -I../linuxthreads/sysdeps/unix/sysv/linux -I../linuxthreads/sysdeps/pthread -I../sysdeps/pthread -I../linuxthreads/sysdeps/unix/sysv -I../linuxthreads/sysdeps/unix -I../linuxthreads/sysdeps/i386/i686 -I../linuxthreads/sysdeps/i386 -I../libidn/sysdeps/unix -I../sysdeps/unix/sysv/linux/i386 -I../sysdeps/unix/sysv/linux -I../sysdeps/gnu -I../sysdeps/unix/common -I../sysdeps/unix/mman -I../sysdeps/unix/inet -I../sysdeps/unix/sysv/i386 -I../sysdeps/unix/sysv -I../sysdeps/unix/i386 -I../sysdeps/unix -I../sysdeps/posix -I../sysdeps/i386/i686/fpu -I../sysdeps/i386/i686 -I../sysdeps/i386/i486 -I../sysdeps/i386/fpu -I../sysdeps/i386 -I../sysdeps/wordsize-32 -I../sysdeps/ieee754/ldbl-96 -I../sysdeps/ieee754/dbl-64 -I../sysdeps/ieee754/flt-32 -I../sysdeps/ieee754 -I../sysdeps/generic/elf -I../sysdeps/generic -nostdinc -isystem /usr/lib/gcc/i686-pc-linux-gnu/4.0.0-beta20050417/include -isystem /usr/include -D_LIBC_REENTRANT -include ../include/libc-symbols.h       -DHAVE_INITFINI -o /var/tmp/portage/glibc-2.3.5.20050418/work/build-default-i686-pc-linux-gnu-linuxthreads/csu/errno.o -MD -MP -MF /var/tmp/portage/glibc-2.3.5.20050418/work/build-default-i686-pc-linux-gnu-linuxthreads/csu/errno.o.dt -MT /var/tmp/portage/glibc-2.3.5.20050418/work/build-default-i686-pc-linux-gnu-linuxthreads/csu/errno.o
  2. ../sysdeps/generic/libc-tls.c: In function '__libc_setup_tls':
  3. ../sysdeps/generic/libc-tls.c:180: error: request for member 'val' in something not a structure or union
  4. ../sysdeps/generic/libc-tls.c:189: error: request for member 'is_static' in something not a structure or union
  5. ../sysdeps/generic/libc-tls.c:191: error: request for member 'val' in something not a structure or union
  6. ../sysdeps/generic/libc-tls.c:191: error: request for member 'val' in something not a structure or union
  7. ../sysdeps/generic/libc-tls.c:191: error: request for member 'val' in something not a structure or union
  8. ../sysdeps/generic/libc-tls.c:191: error: request for member 'val' in something not a structure or union
  9. ../sysdeps/generic/libc-tls.c:191: error: request for member 'val' in something not a structure or union
  10. make[2]: *** [/var/tmp/portage/glibc-2.3.5.20050418/work/build-default-i686-pc-linux-gnu-linuxthreads/csu/libc-tls.o] Error 1
  11. make[2]: *** Waiting for unfinished jobs....
  12. make[2]: Leaving directory `/var/tmp/portage/glibc-2.3.5.20050418/work/glibc-20050418/csu'
  13. make[1]: *** [csu/subdir_lib] Error 2
  14. make[1]: Leaving directory `/var/tmp/portage/glibc-2.3.5.20050418/work/glibc-20050418'
  15. make: *** [all] Error 2

  16. !!! ERROR: sys-libs/glibc-2.3.5.20050418 failed.
  17. !!! Function toolchain-glibc_src_compile, Line 236, Exitcode 2
  18. !!! (no error message)
  19. !!! If you need support, post the topmost build error, NOT this status message.
复制代码


上gentoo的论坛上查过,把-O3改成-O2也还是出同样的错,系统的binutils也升到2.15.94.0.2以上了。请问这个是怎么回事啊?glibc-2.3.5.20050418用的是http://overlay.mafteah.co.il/的ebuild
 楼主| 发表于 2005-4-22 22:07:33 | 显示全部楼层
没人理啊。。太可怜了吧。。
自己顶一帖。。
回复 支持 反对

使用道具 举报

发表于 2005-4-22 22:19:28 | 显示全部楼层
emerge sync一下,我刚才看了看有2.16的版本了,不过被mask了

echo 'sys-devel/binutils -*' >> /etc/portage/package.keywords
回复 支持 反对

使用道具 举报

发表于 2005-4-23 10:01:14 | 显示全部楼层
我的没有问题,最好使用~x86,这样错误会少一些。
回复 支持 反对

使用道具 举报

发表于 2005-4-23 11:20:11 | 显示全部楼层
我也是使用~x86,编译glibc顺利通过,现在emege -e system已经全部通过。不用任何特别的设置。和gcc3.4时的一样。
今天开始用gcc4编译2.6.11内核了。AMD的CPU真是比Intel的好,有了gcc4就更是快的不得了。几乎至少是节约25%的时间。
回复 支持 反对

使用道具 举报

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

本版积分规则

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