Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 137933

Summary: glibc-2.4-r3 fails to configure due to missing linker
Product: Gentoo Linux Reporter: Boris Petersen <transacid>
Component: [OLD] Core systemAssignee: Gentoo Toolchain Maintainers <toolchain>
Severity: normal CC: elipsoid, jackdachef, tobias.brink
Priority: High    
Version: 2006.0   
Hardware: All   
OS: Linux   
Package list:
Runtime testing required: ---
Attachments: config.log

Description Boris Petersen 2006-06-25 06:07:08 UTC
checking for .preinit_array/.init_array/.fini_array support... no
configure: error: Need linker with .init_array/.fini_array support.

!!! ERROR: sys-libs/glibc-2.4-r3 failed.
Call stack:, line 1540:   Called dyn_compile, line 940:   Called src_compile
  glibc-2.4-r3.ebuild, line 1180:   Called toolchain-glibc_src_compile
  glibc-2.4-r3.ebuild, line 262:   Called glibc_do_configure 'nptl'
  glibc-2.4-r3.ebuild, line 952:   Called die

!!! failed to configure glibc
!!! If you need support, post the topmost build error, and the call stack if relevant.

gcc version: 4.1.1
binutils version: 2.16.1-r2Portage 2.1.1_pre1-r2 (default-linux/x86/2006.0, gcc-4.1.1/vanilla, glibc-2.4-r3, 2.6.17-gentoo-2 i686)
System uname: 2.6.17-gentoo-2 i686 Intel(R) Celeron(R) M processor         1.50GHz
Gentoo Base System version 1.12.1
distcc 2.18.3 i686-pc-linux-gnu (protocols 1 and 2) (default port 3632) [disabled]
dev-lang/python:     2.4.3-r1
dev-python/pycrypto: 2.0.1-r5
dev-util/ccache:     [Not Present]
dev-util/confcache:  [Not Present]
sys-devel/autoconf:  2.13, 2.59d
sys-devel/automake:  1.4_p6, 1.5, 1.6.3, 1.7.9-r1, 1.8.5-r3, 1.9.6-r2
sys-devel/binutils:  2.16.1-r2
sys-devel/gcc-config: 2.0.0_rc1
sys-devel/libtool:   1.5.22
virtual/os-headers:  2.6.11-r5
CFLAGS="-march=pentium4 -O3 -pipe -msse2 -fomit-frame-pointer -fstack-protector-all"
CONFIG_PROTECT="/etc /usr/share/X11/xkb"
CONFIG_PROTECT_MASK="/etc/env.d /etc/eselect/compiler /etc/gconf /etc/revdep-rebuild /etc/terminfo"
CXXFLAGS="-march=pentium4 -O3 -pipe -msse2 -fomit-frame-pointer -fstack-protector-all"
FEATURES="autoconfig candy distlocks metadata-transfer sandbox sfperms strict"
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --compress --force --whole-file --delete --delete-after --stats --timeout=180 --exclude='/distfiles' --exclude='/local' --exclude='/packages'"
USE="x86 X X509 a52 aac acl acpi adsl alsa apache2 applet asf avi bash-completion berkdb bitmap-fonts bzip2 cdparanoia cdr cli cracklib crypt css cups curl curlwrappers dri dvd dvdr dvdread dxr3 eds elibc_glibc encode escreen esd extensions fame fbcon ffmpeg figlet flac foomaticdb fortran gdbm gif glx gmail gmailtimestamps gnutls gpgme gpm gstreamer gtk gtk2 gtkhtml guile hardenedphp ibam ibm icq imagemagick imlib infopipe ipv6 isdnlog jabber jpeg jpeg2k kernel_linux lame lcms libg++ libwww lm_sensors logrotate lzo mad madwifi matroska metar mikmod mime mjpeg mmx mng modplug motif mozilla moznoirc moznomail mp3 mp4live mpeg mpeg2 mplayer ncurses network nls nptl nptlonly nsplugin offensive ogg openal opengl oss pam pci pcre pda pdflib perl plx pmu png pnp pop pppd python quicktime rar readline real reflection sdl sensord session smime speex spell spl sse sse-filters sse2 ssl svga symlink tcltk theora tiff truetype truetype-fonts type1-fonts udev unicode userland_GNU userlocales vcd verbose vidix vim vim-pager vim-with-x vorbis wifi win32codecs x264 xanim xine xml xmms xorg xpm xv xvid zip zlib input_devices_keyboard input_devices_mouse input_devices_synaptics linguas_de video_cards_radeon video_cards_vesa video_cards_fbdev"
Comment 1 SpanKY gentoo-dev 2006-06-25 09:28:11 UTC
my guess is you have more than one binutils installed and the one currently selected is *not* 2.16.1

if that isnt the case, posting the output of configure wont help here ... you'll need to look at the config.log file in the build directory to see what the real error is
Comment 2 Boris Petersen 2006-06-25 14:21:15 UTC
Created attachment 90148 [details]
Comment 3 Boris Petersen 2006-06-25 14:22:14 UTC
eselect says binutls 2.16.1 is the selected and only installed version
Comment 4 SpanKY gentoo-dev 2006-06-26 21:37:47 UTC
remove -fstack-protector-all from your CFLAGS
Comment 5 Boris Petersen 2006-06-26 21:57:06 UTC
Yep this helped, but i don't understand why this new gcc-feature prevents glibc from configureing. Everey other package was compiled fine with this flag. However thx for help.
Comment 6 Jakub Moc (RETIRED) gentoo-dev 2007-10-26 08:50:29 UTC
*** Bug 197056 has been marked as a duplicate of this bug. ***
Comment 7 Boursin 2008-09-01 13:51:43 UTC
*** Bug 236352 has been marked as a duplicate of this bug. ***