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

Bug 120616

Summary: build of coreutils-5.2.1-r7 hangs
Product: Gentoo Linux Reporter: Perttu Luukko <perttu.luukko>
Component: Current packagesAssignee: Gentoo's Team for Core System packages <base-system>
Status: RESOLVED FIXED    
Severity: normal    
Priority: High    
Version: 2005.1   
Hardware: x86   
OS: Linux   
See Also: https://bugs.gentoo.org/show_bug.cgi?id=133489
Whiteboard:
Package list:
Runtime testing required: ---

Description Perttu Luukko 2006-01-28 02:26:10 UTC
When emerging the latest stable coreutils-5.2.1-r7, the emerge process hangs on

Making all in doc
make[2]: Entering directory `/var/tmp/portage/coreutils-5.2.1-r7/work/coreutils-5.2.1/doc'
LC_ALL=C \
sed -n -e 's/^#define \(DEFAULT_MAX[_A-Z]*\) \(.*\)/@set \1 \2/p' \
  ../src/tail.c > t-constants.texi
mv t-constants.texi constants.texi

...After which nothing happens for at least half an hour, with sh hogging 100% of cpu. I really don't know what it is trying to do, because the last mv seems t o succeed (the work/coreutils-5.2.1/doc directory contains a file named constants.texi). I tried looking at the makefile, but I couldn't decrypt what it would try to do next. Thanks in advance for your help -- I'm out of ideas.

Here's my emerge --info:

Portage 2.0.54 (default-linux/x86/2005.1, gcc-3.4.4, glibc-2.3.5-r2, 2.6.15-gentoo-r1 i686)
=================================================================
System uname: 2.6.15-gentoo-r1 i686 AMD Athlon(tm) XP 2600+
Gentoo Base System version 1.6.14
distcc 2.18.3 i686-pc-linux-gnu (protocols 1 and 2) (default port 3632) [disabled]
ccache version 2.3 [enabled]
dev-lang/python:     2.3.5-r2, 2.4.2
sys-apps/sandbox:    1.2.12
sys-devel/autoconf:  2.13, 2.59-r6
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
sys-devel/libtool:   1.5.22
virtual/os-headers:  2.6.11-r2
ACCEPT_KEYWORDS="x86"
AUTOCLEAN="yes"
CBUILD="i686-pc-linux-gnu"
CFLAGS="-march=athlon-xp -O2 -pipe -fomit-frame-pointer"
CHOST="i686-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/kde/2/share/config /usr/kde/3/share/config /usr/lib/X11/xkb /usr/share/config /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/qmail/control"
CONFIG_PROTECT_MASK="/etc/gconf /etc/splash /etc/terminfo /etc/env.d"
CXXFLAGS="-march=athlon-xp -O2 -pipe -fomit-frame-pointer"
DISTDIR="/usr/portage/distfiles"
FEATURES="autoconfig ccache collision-protect distlocks fixpackages sandbox sfperms strict suidctl"
GENTOO_MIRRORS="http://trumpetti.atm.tut.fi/gentoo/ http://www.ibiblio.org/gentoo"
LANG="fi_FI.UTF-8"
LINGUAS="en fi"
MAKEOPTS="-j2"
PKGDIR="/usr/portage/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/usr/local/portage"
SYNC="rsync://trumpetti.atm.tut.fi/gentoo-portage"USE="x86 16bit 3dnow 3dnowext 7zip X a52 aac aalib abook alsa anthy ao aotuv apm asm audiofile avi bash-completion berkdb browserplugin bzip2 cairo cap caps ccache cdda cddb cdio cdparanoia cdr cdrom cjk clamav clock-screen cracklib crypt css cups curl curlwrappers dbus devmap dhcp directfb dts dvd dvdr dvdread emboss encode enscript ethereal exif expat fbcon fbsplash ffmpeg firefox flac foomaticdb fortran ftp fuse gd gdbm ggi gif gimp gimpprint glep glut gmp gnuplot gnutls gpgme gphoto2 gpm grammar gs gstreamer gtk gtk2 gvim gzip hal http icecast iconv icq idn ieee1394 image imagemagick imap imlib imlib2 immqt-bc ipv6 irc irssi jabber javascript john joystick jp2 jpeg jpeg2k key-screen latex lcms libcaca libclamav libg++ libwww lj lm_sensors logitech-mouse lzo lzw mad maildir mailwrapper math matroska mbox mccp md5sum mhash mikmod mime mmap mmx mmxext mng motif mouse mozdevelop moznocompose moznoirc moznomail mozsvg mp3 mpeg mpeg2 mplayer mppe-mppc musepack nas ncurses net nethack nforce2 nls nntp nodrm nowin nptl nsplugin ntfs ntlm nvidia ogg oggvorbis on-the-fly-crypt opengl openssl pam pam_console pcre pdf pdflib perl physfs pic plotutils png posix povray ppds print procmail python pyx quicktime rar readline recode reiser4 reiserfs rss rtc ruby scp sdl search-screen session sftp sftplogging silc slang smime sndfile sockets socks5 sox speex spell sqlite srv sse ssl subp subtitles subversion svg svga svgz sysfs t1lib tcltk tcpd tetex theora thesaurus threads tidy tiff timidity transcode truetype truetype-fonts type1-fonts udev unicode usb userlocales utf8 v4l v4l2 vcd vcdimager vim vim-pager vim-with-x vorbis win32codecs wmf wxwindows x264 xcomposite xft xine xlockrc xml xml2 xosd xpm xv xvid zip zlib video_cards_nvidia linguas_en linguas_fi userland_GNU kernel_linux elibc_glibc"
Unset:  ASFLAGS, CTARGET, LC_ALL, LDFLAGS
Comment 1 SpanKY gentoo-dev 2006-01-28 23:54:28 UTC
what version of texinfo do you have ?
Comment 2 Perttu Luukko 2006-01-29 08:26:37 UTC
Thanks for the reply. I have sys-apps/texinfo-4.8-r2 -- the latest stable. I already tried re-emerging it but it had no effect.
Comment 3 Roman Karshiev 2006-04-04 11:50:24 UTC
A have same error at amd64.

test.c:129: error: static declaration of 'eaccess' follows non-static declaration
/usr/include/gentoo-multilib/amd64/unistd.h:266: error: previous declaration of 'eaccess' was here
if gcc -DHAVE_CONFIG_H -I. -I. -I..  -I.. -I. -I../lib -I../lib   -O9 -march=k8 -fomit-frame-pointer -falign-functions=32 -falign-labels=32 -falign-loops=32 -falign-jumps=32 -mfpmath=sse -msse2 -m3dnow -pipe -s -MT chown-core.o -MD -MP -MF ".deps/chown-core.Tpo" -c -o chown-core.o chown-core.c; \
then mv -f ".deps/chown-core.Tpo" ".deps/chown-core.Po"; else rm -f ".deps/chown-core.Tpo"; exit 1; fi
make[3]: *** [lbracket.o] Error 1
make[3]: *** Waiting for unfinished jobs....
make[3]: Leaving directory `/var/tmp/portage/coreutils-5.2.1-r7/work/coreutils-5.2.1/src'
make[2]: *** [all] Error 2
make[2]: Leaving directory `/var/tmp/portage/coreutils-5.2.1-r7/work/coreutils-5.2.1/src'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/var/tmp/portage/coreutils-5.2.1-r7/work/coreutils-5.2.1'
make: *** [all] &#1054;&#1096;&#1080;&#1073;&#1082;&#1072; 2
Comment 4 SpanKY gentoo-dev 2006-04-07 17:12:17 UTC
> A have same error at amd64.

what are you talking about ?  your error looks *nothing* like what is posted here

> test.c:129: error: static declaration of 'eaccess' follows non-static
> declaration

uhh, dont use masked gcc versions with stable packages, it just aint gonna work
Comment 5 Perttu Luukko 2006-04-11 07:10:36 UTC
I can't see either how #3 is related...

The problem persists, and the same thing seems to happen with coreutils-5.3.0-r2. Now that everything below 5.2.1-r7 has gone from portage, I'll have to find the old r6 ebuild and put it in an overlay, or try something in the 5.94-range - I'm just not quite sure I am adventurous enough :)

If someone has any ideas I'm all ears.
Comment 6 SpanKY gentoo-dev 2006-04-30 03:00:05 UTC
5.94-r1 is stable now so you can give that a spin
Comment 7 Perttu Luukko 2006-05-02 05:09:32 UTC
Thanks, SpanKY -- 5.94-r1 seems to work like a charm. Since the latest stable fixes the problem (whatever it was, I have no idea), let's leave this as FIXED. Feel free to reopen if it comes back to haunt someone.
Comment 8 Perttu Luukko 2006-05-16 06:26:26 UTC
In case someone is still interested, I got to the bottom of this bug: setting TIME_STYLE breaks older versions of automake, causing the mdate-sh script to go on a infinite loop because ls now outputs something unexpected (see http://lists.nongnu.org/archive/html/bug-findutils/2005-06/msg00160.html). I bumped again to this bug when libtool suddenly refused to rebuild - doing a 'unset TIME_STYLE' before emerging fixes this. The bug in mdate-sh should be fixed in the 1.9 branch of automake and later. I probably should file a separate bug for this, as packages requiring older versions of automake still fail is TIME_STYLE is set.
Comment 9 SpanKY gentoo-dev 2006-06-11 14:25:53 UTC
another good example of autopatching autotool files ...