Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 129243 - glibc-2.4-r1, libc_pic.a is malformed during emerge
Summary: glibc-2.4-r1, libc_pic.a is malformed during emerge
Status: VERIFIED DUPLICATE of bug 20600
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: New packages (show other bugs)
Hardware: All Linux
: High major (vote)
Assignee: Gentoo Linux bug wranglers
Depends on:
Reported: 2006-04-08 07:40 UTC by Blu3
Modified: 2006-04-08 08:50 UTC (History)
0 users

See Also:
Package list:
Runtime testing required: ---


Note You need to log in before you can comment on or make changes to this bug.
Description Blu3 2006-04-08 07:40:59 UTC
Due to a chain of emerge failures resulting in my being unable to build a desktop environment, I have attempted to rebuild a _lot_.  Due to a failure of kdelibs to compile based on a glibc issue, I've tried to rebuild glibc.  Here's what I get.  Note: repeated emerge --resume's generate different failures.  Is this build sensitive to compile order?  Should the ebuild enforce a -j1?  And, in the below error, it states it is building for x86, shouldn't that be x86_64?

a - elf/framestate.os
a - elf/unwind-pe.os
/usr/lib/gcc/x86_64-pc-linux-gnu/3.4.5/../../../../x86_64-pc-linux-gnu/bin/ar: libc_pic.a: Malformed archive
make[2]: *** [/var/tmp/portage/glibc-2.4-r1/work/build-x86-x86_64-pc-linux-gnu-nptl/libc_pic.a] Error 1
make[2]: Leaving directory `/var/tmp/portage/glibc-2.4-r1/work/glibc-2.4/elf'
make[1]: *** [elf/subdir_lib] Error 2
make[1]: Leaving directory `/var/tmp/portage/glibc-2.4-r1/work/glibc-2.4'
make: *** [all] Error 2

!!! ERROR: sys-libs/glibc-2.4-r1 failed.
Call stack:, line 1526:   Called dyn_compile, line 923:   Called src_compile
  glibc-2.4-r1.ebuild, line 1249:   Called src_compile
  glibc-2.4-r1.ebuild, line 1260:   Called toolchain-glibc_src_compile
  glibc-2.4-r1.ebuild, line 259:   Called die

!!! make for x86 failed
!!! If you need support, post the topmost build error, and the call stack if relevant.

libc_pic.a is a directory listing:
rw-r--r-- 0/0   1784 Apr  8 03:04 2006 init-first.os
rw-r--r-- 0/0   2168 Apr  8 03:04 2006 libc-start.os
rw-r--r-- 0/0    570 Apr  8 03:04 2006 sysdep.os
rw-r--r-- 0/0   2912 Apr  8 14:30 2006 version.os
rw-r--r-- 0/0   1968 Apr  8 03:04 2006 check_fds.os
rw-r--r-- 0/0    988 Apr  8 03:04 2006 dso_handle.os
rw-r--r-- 0/0   2448 Apr  8 03:04 2006 unwind-resume.os
rw-r--r-- 0/0    938 Apr  8 03:04 2006 errno.os
rw-r--r-- 0/0   1212 Apr  8 03:04 2006 errno-loc.os
rw-r--r-- 0/0   2269 Apr  8 03:04 2006 divdi3.os
rw-r--r-- 0/0   1872 Apr  8 03:04 2006 iconv_open.os

cott build-x86-x86_64-pc-linux-gnu-nptl # emerge --info
Portage 2.1_pre7-r4 (default-linux/amd64/2006.0, gcc-3.4.5-vanilla, glibc-2.3.6-r2,glibc-2.3.5-r2,glibc-2.4-r0, 2.6.17-rc1 x86_64)
System uname: 2.6.17-rc1 x86_64 AMD Opteron(tm) Processor 148
Gentoo Base System version 1.12.0_pre16
distcc 2.18.3 x86_64-pc-linux-gnu (protocols 1 and 2) (default port 3632) [disabled]
dev-lang/python:     2.4.2, 2.4.2-r1
sys-apps/sandbox:    1.2.12, 1.2.17
sys-devel/autoconf:  2.59-r7
sys-devel/automake:  1.9.6-r2
sys-devel/binutils:  2.16.1, 2.16.1-r2
sys-devel/libtool:   1.5.22
virtual/os-headers:  2.6.11-r2, 2.6.11-r3
ACCEPT_KEYWORDS="amd64 ~amd64"
CFLAGS="-march=opteron -Os -pipe -fomit-frame-pointer -frename-registers   -funit-at-a-time -fweb -freorder-blocks-and-partition   -fmerge-all-constants"
CONFIG_PROTECT="/etc /usr/kde/2/share/config /usr/kde/3.5/env /usr/kde/3.5/share/config /usr/kde/3.5/shutdown /usr/kde/3/share/config /usr/share/X11/xkb /usr/share/config /var/qmail/control"
CONFIG_PROTECT_MASK="/etc/eselect/compiler /etc/gconf /etc/terminfo /etc/env.d"
CXXFLAGS="-march=opteron -Os -pipe -fomit-frame-pointer -frename-registers   -funit-at-a-time -fweb -freorder-blocks-and-partition   -fmerge-all-constants"
FEATURES="autoconfig buildpkg candy ccache confcache distlocks keeptemp keepwork metadata-transfer multilib-strict parallel-fetch sandbox sfperms strict userfetch"
USE="amd64 16bit 64bit GAPING_SECURITY_HOLE X X509 a52 aac aalib acl acpi acpi4linux activefilter aim aimextras aio akode allegro alsa amarok amd amr amrr ao aotuv apache2 arts artswrappersuid artworkextra asf asterisk async atm audacious auth authfile automount avantgo avi background bash-completion bashlogger bgpclassless bigpatch bittorrent bl bluetooth bonjour bonobo bootsplash boundschecking buttons bzip2 bzlib c++ cairo calendar canvas cap capi caps carbone_theme cdda cddb cdio cdparanoia cdrom cg cgi checkpath chipcard chm chroot clearcase cli codecs config_wizard cpudetection cpulimit cracklib crypt css csv ctype cups curlwrappers custom-cflags customlog cvsgraph daap dar32 dar64 dba dbox2 dbus dbx dcc debugger dga dhcp dio discard-path disk-cache diskio distcache divx4linux djbfft dlloader dmalloc dnd dpms dri dv dvb dvd dvdr dvdread dxr3 dynagraph dynamic eap-tls ecc edl effects elf emboss emoticon emul-linux-x86 encode enscript epiphany epson erandom escreen ethereal evo evo2 evolution expat exscalibar extensions extrafilters extraicons extramodules extras faac faad fame fastbuild fat fax festival fftw figlet fits fix-connected-rt flash flatfile flexresp flood fltk fluidsynth fmod follow-xff font-server fontconfig foomaticdb force-cgi-redirect fping fpx freetts freetype frontendonly ftp ftruncate galago gb gd gdb geometry geos gif gimp gimpprint gitsendemail glade glgd glibc-compat20 glibc-omitfp glitz glx gmail gmailtimestamps gnokii gnome gnome-print gnomecanvas gnomedb gnuplot gnutls gpm gps grammar graphicsmagick graphviz grass gs gsl gsm gssapi gstreamer gtk gtk2 gtkspell gzip h323 hardened hbci hddtemp hdf hdf5 hesiod hfs high-ints hostap hpn html http httpd ibam icecast icp icq id3 ide idea idled ieee1394 iksemel imagemagick imap imlib imlib2 inkjar inline inode input_devices_acecad input_devices_aiptek input_devices_calcomp input_devices_citron input_devices_digitaledge input_devices_dmc input_devices_dynapro input_devices_elo2300 input_devices_elographics input_devices_evdev input_devices_fpit input_devices_hyperpen input_devices_jamstudio input_devices_joystick input_devices_keyboard input_devices_magellan input_devices_magictouch input_devices_microtouch input_devices_mouse input_devices_mutouch input_devices_palmax input_devices_penmount input_devices_spaceorb input_devices_summa input_devices_synaptics input_devices_tek4957 input_devices_ur98 input_devices_vmmouse input_devices_void input_devices_wacom insecure-drivers insecure-patches insecure-savers iproute2 ipv6 irda irmc isdnlog j2ee jabber jasper javacomm javamail javascript jbig john jp2 jpeg jpeg2k jumpplay kadu-modules kadu-voice kcal kde kdeenablefinal kdepim kdgraphics kerberos kexi keyscrub kipi koffice-plugin lame ldap ldapsam libcaca libclamav libdsk libg++ libgd libgda libsamplerate libvisual lids linuxkeys linuxthreads-tls live lm_sensors logitech-mouse logrotate ltsp lzo lzw lzw-tiff madwifi mbox mbrola mcve md5sum mem-cache memlimit menubar messages mew mfd-rewrites mgetty mime mimencode mixer mjpeg mmap modplug moneyplex monkey mounts-check mozcalendar mozdevelop mozilla moznoirc mozp3p mozsha1 mozsvg mozxmlterm mp3 mp4live mpeg mpeg2 mpeg4 mpi mplayer mpm-prefork mschap msdav msn mudflap multicall multipath multislot musepack musicbrainz mythtv nagios-dns nagios-ntp nagios-ping nagios-ssh ncurses net netcdf netclient netpbm netserver network new-login nforce2 ngui nntp no-old-linux nodrm normalizemime nptl nptlonly nsplugin nspr ntfs ntlm nvidia nviz nvram oav objc objc++ objc-gc offensive ofx ogg oggvorbis on-the-fly-crypt openal openexr opengl openssl operanom2 ortp osc oscar ospfapi overload pam pam_chroot pam_console pam_timestamp pango parse-clocks patch patented pcap pcapnav pci pcntl pcre pda pdf pdflib pear perl pg-hier pg-vacuumdelay pic pie player plib plugin plx pmu png pnp portaudio posix postfix postgres povray ppds pppd prelude print priority pthreads python qt quicktime quotas quotes radiotap rar rc5 rcu rdesktop readline realms reiser4 reiserfs remote rpm rrdtool rss rtc samba sametime sasl scp screen sdl sendfile sensord serial server session setup-plugin sftp sftplogging sguil shape shaper shared sharedext sharedmem shorten shout silc simplexml skey skins slp smartcard smime smp sms smtp smux sndfile snortsam soap sockets socks5 softfax soundtouch sourcecaps sox spamassassin speech speex spell spf spl spreadsheet sql ssl stats stlport stream subp subtitles subversion suid svgz svn-mirror swat symlink sysfs syslog sysvipc szip t1lib tabs tcpd tcpmd5 tcsim tga theora thesaurus thumbnail tidy tiff timidity tokenizer tomsfastmath tos transcode transparent-proxy truetype truetype-fonts ttcp type1 type1-fonts underscores ups usb userfiles uudeview v4l v4l2 vcd vcdimager vdr verbose vfat vhosts video_cards_nv video_cards_nvidia video_cards_v4l visualization vlm vmdb vmdbpostgres vnc voice vorbis watchdog wddx webdav wifi winbind wma wma123 wordexp wordperfect wv wxwindows x11vnc x264 xanim xchat xchatdccserver xcomposite xface xgetdefault xinerama xml xml2 xmldoclet xmlreader xmlrpc xosd xpm xprint xrandr xscreensaver xsl xslt xtended xv xvmc yaepg yahoo yiff yv12 zero-penalty-hit zeroconf zip zlib zvbi elibc_glibc kernel_linux userland_GNU"
Comment 1 Jakub Moc (RETIRED) gentoo-dev 2006-04-08 07:49:50 UTC
(In reply to comment #0)
> what I get.  Note: repeated emerge --resume's generate different failures.  

> glibc-2.3.6-r2,glibc-2.3.5-r2,glibc-2.4-r0

Your system is severely broken. Yeah, try to rebuild your system without that crap in C[XX]FLAGS and don't set AUTOCLEAN="no" next time.

*** This bug has been marked as a duplicate of 20600 ***
Comment 2 Blu3 2006-04-08 07:53:55 UTC
The next error which repeats from now on with emerge --resume, is this:

/var/tmp/portage/glibc-2.4-r1/work/build-x86-x86_64-pc-linux-gnu-nptl/nscd/nscd.o: In function `nscd_open_socket':
nscd.c:(.text+0xdf): undefined reference to `__guard'
nscd.c:(.text+0x154): undefined reference to `__guard'
nscd.c:(.text+0x175): undefined reference to `__stack_smash_handler'
/var/tmp/portage/glibc-2.4-r1/work/build-x86-x86_64-pc-linux-gnu-nptl/nscd/nscd.o: In function `parse_opt':
nscd.c:(.text+0x1ef): undefined reference to `__guard'
nscd.c:(.text+0x33f): undefined reference to `__guard'
nscd.c:(.text+0x365): undefined reference to `__stack_smash_handler'
nscd.c:(.text+0x688): undefined reference to `__guard'
/var/tmp/portage/glibc-2.4-r1/work/build-x86-x86_64-pc-linux-gnu-nptl/nscd/connections.o: In function `nscd_run':
connections.c:(.text+0x5a7): undefined reference to `__guard'
/var/tmp/portage/glibc-2.4-r1/work/build-x86-x86_64-pc-linux-gnu-nptl/nscd/connections.o: In function `nscd_init':
connections.c:(.text+0x1d49): undefined reference to `__guard'
connections.c:(.text+0x1f6b): undefined reference to `__guard'
connections.c:(.text+0x1f8b): undefined reference to `__stack_smash_handler'
/var/tmp/portage/glibc-2.4-r1/work/build-x86-x86_64-pc-linux-gnu-nptl/nscd/pwdcache.o: In function `cache_addpw':
pwdcache.c:(.text+0x22): undefined reference to `__guard'
pwdcache.c:(.text+0x504): undefined reference to `__guard'
pwdcache.c:(.text+0x524): undefined reference to `__stack_smash_handler'
/var/tmp/portage/glibc-2.4-r1/work/build-x86-x86_64-pc-linux-gnu-nptl/nscd/pwdcache.o: In function `addpwbyX':
pwdcache.c:(.text+0xbdf): undefined reference to `__guard'
pwdcache.c:(.text+0xd07): undefined reference to `__guard'
pwdcache.c:(.text+0xd23): undefined reference to `__stack_smash_handler'
/var/tmp/portage/glibc-2.4-r1/work/build-x86-x86_64-pc-linux-gnu-nptl/nscd/grpcache.o: In function `cache_addgr':
grpcache.c:(.text+0x22): undefined reference to `__guard'
grpcache.c:(.text+0x568): undefined reference to `__guard'
grpcache.c:(.text+0x584): undefined reference to `__stack_smash_handler'
/var/tmp/portage/glibc-2.4-r1/work/build-x86-x86_64-pc-linux-gnu-nptl/nscd/grpcache.o: In function `addgrbyX':
grpcache.c:(.text+0xbdf): undefined reference to `__guard'
grpcache.c:(.text+0xd06): undefined reference to `__guard'
grpcache.c:(.text+0xd22): undefined reference to `__stack_smash_handler'
/var/tmp/portage/glibc-2.4-r1/work/build-x86-x86_64-pc-linux-gnu-nptl/nscd/hstcache.o: In function `cache_addhst':
hstcache.c:(.text+0x22): undefined reference to `__guard'
hstcache.c:(.text+0x4dc): undefined reference to `__guard'
hstcache.c:(.text+0x4f8): undefined reference to `__stack_smash_handler'
/var/tmp/portage/glibc-2.4-r1/work/build-x86-x86_64-pc-linux-gnu-nptl/nscd/hstcache.o: In function `addhstbyX':
hstcache.c:(.text+0xacf): undefined reference to `__guard'
hstcache.c:(.text+0xcb8): undefined reference to `__guard'
hstcache.c:(.text+0xcd4): undefined reference to `__stack_smash_handler'
/var/tmp/portage/glibc-2.4-r1/work/build-x86-x86_64-pc-linux-gnu-nptl/nscd/dbg_log.o: In function `dbg_log':
dbg_log.c:(.text+0x96): undefined reference to `__guard'
dbg_log.c:(.text+0x14f): undefined reference to `__guard'
dbg_log.c:(.text+0x173): undefined reference to `__stack_smash_handler'
dbg_log.c:(.text+0x18f): undefined reference to `__guard'
/var/tmp/portage/glibc-2.4-r1/work/build-x86-x86_64-pc-linux-gnu-nptl/nscd/nscd_stat.o: In function `send_stats':
nscd_stat.c:(.text+0x17): undefined reference to `__guard'
nscd_stat.c:(.text+0x2ac): undefined reference to `__guard'
nscd_stat.c:(.text+0x2d0): undefined reference to `__stack_smash_handler'
/var/tmp/portage/glibc-2.4-r1/work/build-x86-x86_64-pc-linux-gnu-nptl/nscd/nscd_stat.o: In function `receive_print_stats':
nscd_stat.c:(.text+0x307): undefined reference to `__guard'
/var/tmp/portage/glibc-2.4-r1/work/build-x86-x86_64-pc-linux-gnu-nptl/nscd/cache.o: In function `cache_add':
cache.c:(.text+0x12c): undefined reference to `__guard'
cache.c:(.text+0x237): undefined reference to `__guard'
cache.c:(.text+0x255): undefined reference to `__stack_smash_handler'
/var/tmp/portage/glibc-2.4-r1/work/build-x86-x86_64-pc-linux-gnu-nptl/nscd/cache.o: In function `prune_cache':
cache.c:(.text+0x38c): undefined reference to `__guard'
cache.c:(.text+0x58f): undefined reference to `__guard'
cache.c:(.text+0x5b1): undefined reference to `__stack_smash_handler'
/var/tmp/portage/glibc-2.4-r1/work/build-x86-x86_64-pc-linux-gnu-nptl/nscd/mem.o: In function `gc':
mem.c:(.text+0x11c): undefined reference to `__guard'
mem.c:(.text+0x73a): undefined reference to `__guard'
mem.c:(.text+0x75d): undefined reference to `__stack_smash_handler'
/var/tmp/portage/glibc-2.4-r1/work/build-x86-x86_64-pc-linux-gnu-nptl/nscd/nscd_setup_thread.o: In function `setup_thread':
nscd_setup_thread.c:(.text+0x33): undefined reference to `__guard'
nscd_setup_thread.c:(.text+0x89): undefined reference to `__guard'
nscd_setup_thread.c:(.text+0xa7): undefined reference to `__stack_smash_handler'
nscd_setup_thread.c:(.text+0xcd): undefined reference to `__guard'
/var/tmp/portage/glibc-2.4-r1/work/build-x86-x86_64-pc-linux-gnu-nptl/nscd/aicache.o: In function `addhstaiX':
aicache.c:(.text+0x25): undefined reference to `__guard'
aicache.c:(.text+0x340): undefined reference to `__guard'
aicache.c:(.text+0x360): undefined reference to `__stack_smash_handler'
/var/tmp/portage/glibc-2.4-r1/work/build-x86-x86_64-pc-linux-gnu-nptl/nscd/initgrcache.o: In function `compat_call':
initgrcache.c:(.text+0x1b): undefined reference to `__guard'
initgrcache.c:(.text+0x8b): undefined reference to `__guard'
initgrcache.c:(.text+0xab): undefined reference to `__stack_smash_handler'
/var/tmp/portage/glibc-2.4-r1/work/build-x86-x86_64-pc-linux-gnu-nptl/nscd/initgrcache.o: In function `addinitgroupsX':
initgrcache.c:(.text+0x275): undefined reference to `__guard'
initgrcache.c:(.text+0x868): undefined reference to `__guard'
initgrcache.c:(.text+0x888): undefined reference to `__stack_smash_handler'
/var/tmp/portage/glibc-2.4-r1/work/build-x86-x86_64-pc-linux-gnu-nptl/nscd/gai.o: In function `gaih_inet_serv':
gai.c:(.text+0x1f): undefined reference to `__guard'
gai.c:(.text+0x8d): undefined reference to `__guard'
gai.c:(.text+0xa9): undefined reference to `__stack_smash_handler'
gai.c:(.text+0xd8): undefined reference to `__guard'
/var/tmp/portage/glibc-2.4-r1/work/build-x86-x86_64-pc-linux-gnu-nptl/nscd/gai.o: In function `match_prefix':
gai.c:(.text+0x1b8): undefined reference to `__guard'
gai.c:(.text+0x202): undefined reference to `__stack_smash_handler'
/var/tmp/portage/glibc-2.4-r1/work/build-x86-x86_64-pc-linux-gnu-nptl/nscd/gai.o: In function `__check_pf':
gai.c:(.text+0x7ff): undefined reference to `__guard'
gai.c:(.text+0x8a2): undefined reference to `__guard'
gai.c:(.text+0x8c7): undefined reference to `__stack_smash_handler'
/var/tmp/portage/glibc-2.4-r1/work/build-x86-x86_64-pc-linux-gnu-nptl/nscd/gai.o: In function `getaddrinfo':
gai.c:(.text+0xb9c): undefined reference to `__guard'
gai.c:(.text+0xf11): undefined reference to `__guard'
gai.c:(.text+0xf3b): undefined reference to `__stack_smash_handler'
gai.c:(.text+0x1069): undefined reference to `__guard'
gai.c:(.text+0x114a): undefined reference to `__guard'
/var/tmp/portage/glibc-2.4-r1/work/build-x86-x86_64-pc-linux-gnu-nptl/nscd/gai.o: In function `gaih_inet':
gai.c:(.text+0x149c): undefined reference to `__guard'
gai.c:(.text+0x162f): undefined reference to `__guard'
gai.c:(.text+0x16b7): undefined reference to `__stack_smash_handler'
gai.c:(.text+0x1c68): undefined reference to `__guard'
gai.c:(.text+0x1e61): undefined reference to `__guard'
gai.c:(.text+0x1e84): undefined reference to `__guard'
gai.c:(.text+0x2beb): undefined reference to `__guard'
collect2: ld returned 1 exit status
make[2]: *** [/var/tmp/portage/glibc-2.4-r1/work/build-x86-x86_64-pc-linux-gnu-nptl/nscd/nscd] Error 1
make[2]: Leaving directory `/var/tmp/portage/glibc-2.4-r1/work/glibc-2.4/nscd'
make[1]: *** [nscd/others] Error 2
make[1]: Leaving directory `/var/tmp/portage/glibc-2.4-r1/work/glibc-2.4'
make: *** [all] Error 2

!!! ERROR: sys-libs/glibc-2.4-r1 failed.
Call stack:, line 1526:   Called dyn_compile, line 923:   Called src_compile
  glibc-2.4-r1.ebuild, line 1249:   Called src_compile
  glibc-2.4-r1.ebuild, line 1260:   Called toolchain-glibc_src_compile
  glibc-2.4-r1.ebuild, line 259:   Called die

!!! make for x86 failed
!!! If you need support, post the topmost build error, and the call stack if relevant.

p.s. all that "crap" came from a gentoo developer's interview.
Comment 3 Jakub Moc (RETIRED) gentoo-dev 2006-04-08 08:50:36 UTC
Your emerge --info clearly shows a broken system. No need to post more and more errors - yes, it's broken, we can't fix it.