Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
How to compile glibc-2.3.5.20050418 with gcc4£¿
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Duplicate Threads
View previous topic :: View next topic  
Author Message
maomao
n00b
n00b


Joined: 25 Apr 2003
Posts: 3
Location: china

PostPosted: Fri Apr 22, 2005 5:22 am    Post subject: How to compile glibc-2.3.5.20050418 with gcc4£¿ Reply with quote

I try£¬but I failed

error info:

Code:
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.


my gcc4 info:
Code:
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)


my system info:
Code:
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


please help me, thanks!
Back to top
View user's profile Send private message
kimchi_sg
Advocate
Advocate


Joined: 26 Nov 2004
Posts: 2915
Location: Singapore

PostPosted: Fri Apr 22, 2005 5:32 am    Post subject: Reply with quote

You do not compile anything with gcc 4. Yet.
_________________
Murphy's Law of Gentoo installation: If a compile can fail, it will.

MacGillicuddy's Corollary: At the most inopportune time.

Please search and read the FAQs before posting.
Back to top
View user's profile Send private message
curtis119
Bodhisattva
Bodhisattva


Joined: 10 Mar 2003
Posts: 2160
Location: Phoenix, AZ USA, North America, Earth, SOL System, Milky Way, The Universe, The Cosmos, and Beyond.

PostPosted: Fri Apr 22, 2005 5:48 am    Post subject: Reply with quote

There is already a gcc4 thread. It is unsupported at this time. Please direct any questions to this thread:

https://forums.gentoo.org/viewtopic-t-176085.html
_________________
Gentoo: it's like wiping your ass with silk.
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Duplicate Threads All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum