Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 138032 - update to glibc-2.3.6-r4 fails with missing file stdio_lim.d
Summary: update to glibc-2.3.6-r4 fails with missing file stdio_lim.d
Status: RESOLVED INVALID
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Core system (show other bugs)
Hardware: x86 Linux
: High major (vote)
Assignee: Gentoo Toolchain Maintainers
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2006-06-26 04:16 UTC by Alexander Schreiber
Modified: 2006-07-01 06:42 UTC (History)
1 user (show)

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


Attachments
emerge log for last emerge --update glibc run (3264-glibc-2.3.6-r4.log,24.43 KB, text/plain)
2006-06-26 22:47 UTC, Alexander Schreiber
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Alexander Schreiber 2006-06-26 04:16:35 UTC
Doing a fresh emerge --sync and issuing emerge --update glibc fails 
with a missing file:


i686-pc-linux-gnu-gcc -E -dM -MD -MP -MF /var/tmp/portage/glibc-2.3.6-r4/work/build-default-i686-pc-linux-gnu-linuxthreads/bits/stdio_lim.dT -MT '/var/tmp/portage/glibc-2.3.6-r4/work/build-default-i686-pc-linux-gnu-linuxthreads/bits/stdio_lim.h /var/tmp/portage/glibc-2.3.6-r4/work/build-default-i686-pc-linux-gnu-linuxthreads/bits/stdio_lim.d'        \
      -Iinclude -I. -I/var/tmp/portage/glibc-2.3.6-r4/work/build-default-i686-pc-linux-gnu-linuxthreads  -Ilibio  -I/var/tmp/portage/glibc-2.3.6-r4/work/build-default-i686-pc-linux-gnu-linuxthreads -Isysdeps/i386/elf -Ilinuxthreads/sysdeps/unix/sysv/linux/i386 -Ilinuxthreads/sysdeps/unix/sysv/linux -Ilinuxthreads/sysdeps/pthread -Isysdeps/pthread -Ilinuxthreads/sysdeps/unix/sysv -Ilinuxthreads/sysdeps/unix -Ilinuxthreads/sysdeps/i386/i686 -Ilinuxthreads/sysdeps/i386 -Ilibidn/sysdeps/unix -Isysdeps/unix/sysv/linux/i386 -Isysdeps/unix/sysv/linux -Isysdeps/gnu -Isysdeps/unix/common -Isysdeps/unix/mman -Isysdeps/unix/inet -Isysdeps/unix/sysv/i386 -Isysdeps/unix/sysv -Isysdeps/unix/i386 -Isysdeps/unix -Isysdeps/posix -Isysdeps/i386/i686/fpu -Isysdeps/i386/i686 -Isysdeps/i386/i486 -Isysdeps/i386/fpu -Isysdeps/i386 -Isysdeps/wordsize-32 -Isysdeps/ieee754/ldbl-96 -Isysdeps/ieee754/dbl-64 -Isysdeps/ieee754/flt-32 -Isysdeps/ieee754 -Isysdeps/generic/elf -Isysdeps/generic -nostdinc -isystem /usr/lib/gcc/i686-pc-linux-gnu/3.4.6/include -isystem /usr/include -xc - -o /var/tmp/portage/glibc-2.3.6-r4/work/build-default-i686-pc-linux-gnu-linuxthreads/bits/stdio_lim.hT
gcc: /var/tmp/portage/glibc-2.3.6-r4/work/build-default-i686-pc-linux-gnu-linuxthreads/bits/stdio_lim.d: No such file or directory
make[1]: *** [/var/tmp/portage/glibc-2.3.6-r4/work/build-default-i686-pc-linux-gnu-linuxthreads/bits/stdio_lim.st] Error 1
make[1]: Leaving directory `/var/tmp/portage/glibc-2.3.6-r4/work/glibc-2.3.6'
make: *** [all] Error 2

!!! ERROR: sys-libs/glibc-2.3.6-r4 failed.
Call stack:
  ebuild.sh, line 1539:   Called dyn_compile
  ebuild.sh, line 939:   Called src_compile
  glibc-2.3.6-r4.ebuild, line 1131:   Called toolchain-glibc_src_compile
  glibc-2.3.6-r4.ebuild, line 230:   Called die

!!! make for default failed





emerge --info

Portage 2.1 (default-linux/x86/2005.1, gcc-3.4.6, glibc-2.3.6-r3, 2.6.14-hardened-r5 i686)
=================================================================
System uname: 2.6.14-hardened-r5 i686 AMD Sempron(tm) Processor 3000+
Gentoo Base System version 1.6.14
dev-lang/python:     2.3.5-r2, 2.4.2
dev-python/pycrypto: 2.0.1-r5
dev-util/ccache:     [Not Present]
dev-util/confcache:  [Not Present]
sys-apps/sandbox:    1.2.17
sys-devel/autoconf:  2.13, 2.59-r7
sys-devel/automake:  1.4_p6, 1.5, 1.6.3, 1.7.9-r1, 1.8.5-r3, 1.9.6-r1
sys-devel/binutils:  2.16.1-r2
sys-devel/gcc-config: 1.3.13-r2
sys-devel/libtool:   1.5.22
virtual/os-headers:  2.6.11-r2
ACCEPT_KEYWORDS="x86"
AUTOCLEAN="yes"
CBUILD="i686-pc-linux-gnu"
CFLAGS="-pipe -O2 -mtune=athlon-xp"
CHOST="i686-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/lib/X11/xkb /usr/share/texmf/dvipdfm/config/ /usr/share/texmf/dvips/config/ /usr/share/texmf/tex/generic/config/ /usr/share/texmf/tex/platex/config/ /usr/share/texmf/xdvi/ /var/bind"
CONFIG_PROTECT_MASK="/etc/env.d /etc/gconf /etc/revdep-rebuild /etc/terminfo"
CXXFLAGS="-O2 -mcpu=i686 -pipe"
DISTDIR="/usr/portage/distfiles"
FEATURES="autoconfig buildpkg digest distlocks metadata-transfer sandbox sfperms strict userpriv"
GENTOO_MIRRORS="http://distfiles.gentoo.org http://distro.ibiblio.org/pub/linux/distributions/gentoo"
PKGDIR="/usr/portage/packages"
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'"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/usr/local/portage"
SYNC="rsync://rsync.gentoo.org/gentoo-portage"
USE="x86 acl acpi apache2 avi berkdb bitmap-fonts bzip2 caps cgi cli crypt curl dba doc eds emacs emboss fam fastcgi foomaticdb fortran gdbm gif gnutls gstreamer hardened hardenedphp imap imlib ipv6 isdnlog java jpeg kde ldap libg++ libwww mad maildir mbox memlimit mikmod mime motif mp3 mpeg ncurses nptl ogg oggvorbis oss pam pcre pdflib perl php pic png posix postgres pppd python quicktime readline recode reflection sasl sdl session sharedmem spell spl ssl tcpd threads truetype-fonts type1-fonts vorbis xml xml2 xmms xorg zlib elibc_glibc kernel_linux userland_GNU"
Unset:  CTARGET, EMERGE_DEFAULT_OPTS, INSTALL_MASK, LANG, LC_ALL, LDFLAGS, LINGUAS, MAKEOPTS, PORTAGE_RSYNC_EXTRA_OPTS
Comment 1 SpanKY gentoo-dev 2006-06-26 21:22:24 UTC
that's a bit weird since that rule is supposed to be generating stdio_lim.d

are you out of space or something ?  if you try to emerge glibc again, does it work ?
Comment 2 Alexander Schreiber 2006-06-26 22:44:50 UTC
Plenty of disk space all around:

Filesystem            Size  Used Avail Use% Mounted on
/dev/hda1             1.8G  569M  1.2G  34% /
udev                  495M  152K  495M   1% /dev
shm                   495M     0  495M   0% /dev/shm
/dev/mapper/system-var
                      2.0G  345M  1.6G  18% /var
/dev/mapper/system-vartmp
                      4.0G  181M  3.6G   5% /var/tmp
/dev/mapper/system-varlog
                      2.0G  540M  1.4G  29% /var/log
/dev/mapper/system-varlogarchive
                      2.0G   33M  1.9G   2% /var/log/archive
/dev/mapper/system-varspool
                      4.0G   52M  3.7G   2% /var/spool
/dev/mapper/system-www
                      4.0G   40M  4.0G   1% /var/www
/dev/mapper/system-usr
                      7.9G  4.8G  2.8G  64% /usr
/dev/mapper/system-distfiles
                      7.9G  1.1G  6.5G  15% /usr/portage/distfiles
/dev/mapper/system-home
                      4.0G  665M  3.1G  18% /home
/dev/mapper/system-postgresql
                       16G  296M   16G   2% /var/lib/postgresql
tmpfs                 1.0G  421M  604M  42% /tmp
Comment 3 Alexander Schreiber 2006-06-26 22:47:03 UTC
Created attachment 90245 [details]
emerge log for last emerge --update glibc run
Comment 4 SpanKY gentoo-dev 2006-06-26 22:59:35 UTC
looks ok to me ... does this directory exist:
/var/tmp/portage/glibc-2.3.6-r4/work/build-default-i686-pc-linux-gnu-linuxthreads/bits

you could also try with FEATURES=-userpriv
Comment 5 Alexander Schreiber 2006-06-26 23:36:40 UTC
The directory exists:

l /var/tmp/portage/glibc-2.3.6-r4/work/build-default-i686-pc-linux-gnu-linuxthreads/bits
total 16
-rw-r--r-- 1 root root  1797 Jun 27 08:33 stdio_lim.dT
-rw-r--r-- 1 root root 11455 Jun 27 08:33 stdio_lim.hT

removing userpriv from FEATURES and recompiling still dies with the same error:

i686-pc-linux-gnu-gcc -E -dM -MD -MP -MF /var/tmp/portage/glibc-2.3.6-r4/work/build-default-i686-pc-linux-gnu-linuxthreads/bits/stdio_lim.dT -MT '/var/tmp/portage/glibc-2.3.6-r4/work/build-default-i686-pc-linux-gnu-linuxthreads/bits/stdio_lim.h /var/tmp/portage/glibc-2.3.6-r4/work/build-default-i686-pc-linux-gnu-linuxthreads/bits/stdio_lim.d'        \
      -Iinclude -I. -I/var/tmp/portage/glibc-2.3.6-r4/work/build-default-i686-pc-linux-gnu-linuxthreads  -Ilibio  -I/var/tmp/portage/glibc-2.3.6-r4/work/build-default-i686-pc-linux-gnu-linuxthreads -Isysdeps/i386/elf -Ilinuxthreads/sysdeps/unix/sysv/linux/i386 -Ilinuxthreads/sysdeps/unix/sysv/linux -Ilinuxthreads/sysdeps/pthread -Isysdeps/pthread -Ilinuxthreads/sysdeps/unix/sysv -Ilinuxthreads/sysdeps/unix -Ilinuxthreads/sysdeps/i386/i686 -Ilinuxthreads/sysdeps/i386 -Ilibidn/sysdeps/unix -Isysdeps/unix/sysv/linux/i386 -Isysdeps/unix/sysv/linux -Isysdeps/gnu -Isysdeps/unix/common -Isysdeps/unix/mman -Isysdeps/unix/inet -Isysdeps/unix/sysv/i386 -Isysdeps/unix/sysv -Isysdeps/unix/i386 -Isysdeps/unix -Isysdeps/posix -Isysdeps/i386/i686/fpu -Isysdeps/i386/i686 -Isysdeps/i386/i486 -Isysdeps/i386/fpu -Isysdeps/i386 -Isysdeps/wordsize-32 -Isysdeps/ieee754/ldbl-96 -Isysdeps/ieee754/dbl-64 -Isysdeps/ieee754/flt-32 -Isysdeps/ieee754 -Isysdeps/generic/elf -Isysdeps/generic -nostdinc -isystem /usr/lib/gcc/i686-pc-linux-gnu/3.4.6/include -isystem /usr/include -xc - -o /var/tmp/portage/glibc-2.3.6-r4/work/build-default-i686-pc-linux-gnu-linuxthreads/bits/stdio_lim.hT
gcc: /var/tmp/portage/glibc-2.3.6-r4/work/build-default-i686-pc-linux-gnu-linuxthreads/bits/stdio_lim.d: No such file or directory
make[1]: *** [/var/tmp/portage/glibc-2.3.6-r4/work/build-default-i686-pc-linux-gnu-linuxthreads/bits/stdio_lim.st] Error 1
make[1]: Leaving directory `/var/tmp/portage/glibc-2.3.6-r4/work/glibc-2.3.6'
make: *** [all] Error 2

!!! ERROR: sys-libs/glibc-2.3.6-r4 failed.
Call stack:
  ebuild.sh, line 1539:   Called dyn_compile
  ebuild.sh, line 939:   Called src_compile
  glibc-2.3.6-r4.ebuild, line 1131:   Called toolchain-glibc_src_compile
  glibc-2.3.6-r4.ebuild, line 230:   Called die

!!! make for default failed
!!! If you need support, post the topmost build error, and the call stack if relevant.
Comment 6 Alexander Schreiber 2006-07-01 06:42:53 UTC
After stracing the aborting gcc invocation and pouring over the resulting trace file, I found the problem.

In short: an old work-around of mine came around and bit me on the ass.

Long:
The gcc driver was calling out to i686-pc-linux-gnu-gcc. But it didn't execute the right executable (/usr/bin/i686-pc-linux-gnu-gcc), it actually executed /usr/local/bin/i686-pc-linux-gnu-gcc. This is a wrapper shell script that basically execs gcc with all its arguments. I created it about four months ago to work around some trouble with upgrading gcc. It did the job, the gcc upgrade worked and lots of updates later I had totally forgotten it.
Removing /usr/local/bin/i686-pc-linux-gnu-gcc resulted in gcc executing the correct executable and everything worked again.

Sorry for wasting your time.