|
|
gcc信息如下:
- root@cat2pig / # gcc -v
- Using built-in specs.
- Target: i686-pc-linux-gnu
- 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
- Thread model: posix
- gcc version 4.0.0-beta20050417 (Gentoo Linux 4.0.0_beta20050417)
复制代码
系统信息如下:
- root@cat2pig / # emerge info
- 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)
- =================================================================
- System uname: 2.6.11-nitro2 i686 AMD Athlon(tm) XP 3200+
- Gentoo Base System version 1.6.10
- Python: dev-lang/python-2.3.5 [2.3.5 (#1, Apr 19 2005, 18:44:34)]
- dev-lang/python: 2.3.5
- sys-devel/autoconf: 2.59-r6, 2.13
- sys-devel/automake: 1.7.9-r1, 1.8.5-r3, 1.5, 1.4_p6, 1.6.3, 1.9.5
- sys-devel/binutils: 2.15.94.0.2.2
- sys-devel/libtool: 1.5.14
- virtual/os-headers: 2.6.11
- ACCEPT_KEYWORDS="x86 ~x86"
- AUTOCLEAN="yes"
- CFLAGS="-march=i686 -O3 -pipe -fomit-frame-pointer"
- CHOST="i686-pc-linux-gnu"
- 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"
- CONFIG_PROTECT_MASK="/etc/gconf /etc/terminfo /etc/env.d"
- CXXFLAGS="-march=i686 -O3 -pipe -fomit-frame-pointer"
- DISTDIR="/usr/portage/distfiles"
- FEATURES="autoaddcvs autoconfig ccache sandbox sfperms strict"
- GENTOO_MIRRORS="http://gentoo.gg3.net http://ftp.gentoo.or.kr"
- LANG="zh_CN.GBK"
- LC_ALL="zh_CN.GBK"
- LINGUAS="zh_CN"
- MAKEOPTS="-j2"
- PKGDIR="/usr/portage/packages"
- PORTAGE_TMPDIR="/var/tmp"
- PORTDIR="/usr/portage"
- PORTDIR_OVERLAY="/usr/local/portage"
- SYNC="rsync://65.19.163.230/gentoo-portage"
- 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"
- Unset: ASFLAGS, CBUILD, CTARGET, LDFLAGS
复制代码
出错信息如下:
- 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
- ../sysdeps/generic/libc-tls.c: In function '__libc_setup_tls':
- ../sysdeps/generic/libc-tls.c:180: error: request for member 'val' in something not a structure or union
- ../sysdeps/generic/libc-tls.c:189: error: request for member 'is_static' in something not a structure or union
- ../sysdeps/generic/libc-tls.c:191: error: request for member 'val' in something not a structure or union
- ../sysdeps/generic/libc-tls.c:191: error: request for member 'val' in something not a structure or union
- ../sysdeps/generic/libc-tls.c:191: error: request for member 'val' in something not a structure or union
- ../sysdeps/generic/libc-tls.c:191: error: request for member 'val' in something not a structure or union
- ../sysdeps/generic/libc-tls.c:191: error: request for member 'val' in something not a structure or union
- make[2]: *** [/var/tmp/portage/glibc-2.3.5.20050418/work/build-default-i686-pc-linux-gnu-linuxthreads/csu/libc-tls.o] Error 1
- make[2]: *** Waiting for unfinished jobs....
- make[2]: Leaving directory `/var/tmp/portage/glibc-2.3.5.20050418/work/glibc-20050418/csu'
- make[1]: *** [csu/subdir_lib] Error 2
- make[1]: Leaving directory `/var/tmp/portage/glibc-2.3.5.20050418/work/glibc-20050418'
- make: *** [all] Error 2
- !!! ERROR: sys-libs/glibc-2.3.5.20050418 failed.
- !!! Function toolchain-glibc_src_compile, Line 236, Exitcode 2
- !!! (no error message)
- !!! 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 |
|