Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 177359 - [glibc/tests] sys-libs/glibc-2.5-r2 fails with /bin/fgrep: Argument list too long when built with USE=profile/USE=glibc-omitfp
Summary: [glibc/tests] sys-libs/glibc-2.5-r2 fails with /bin/fgrep: Argument list too ...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Core system (show other bugs)
Hardware: AMD64 Linux
: Normal normal
Assignee: Gentoo Toolchain Maintainers
URL:
Whiteboard:
Keywords:
: 177547 (view as bug list)
Depends on: 169317
Blocks:
  Show dependency tree
 
Reported: 2007-05-06 17:54 UTC by Paolo Pedroni
Modified: 2007-05-16 15:17 UTC (History)
3 users (show)

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


Attachments
glibc-2.5-r2 ebuild log (sys-libs:glibc-2.5-r2:20070506-124828.log.bz2,428.61 KB, application/octet-stream)
2007-05-06 18:05 UTC, Paolo Pedroni
Details
Patch to the shell script which causes test fail (src_test-check-local-headers.patch,809 bytes, patch)
2007-05-14 15:13 UTC, Florian Petran
Details | Diff
The output of 'emerge -v --info' on the affected PC (emerge-v--info.txt,9.62 KB, text/plain)
2007-05-14 15:38 UTC, Paolo Pedroni
Details
The output of echo */*.d in directory build-amd64-x86_64-pc-linux-gnu-nptl (paludis-amd64,140.83 KB, text/plain)
2007-05-15 12:44 UTC, Florian Petran
Details
The output of echo */*.d in directory build-amd64-x86_64-pc-linux-gnu-nptl in a system with USE="-profile" (log-build-amd64-x86_64-pc-linux-gnu-nptl,144.28 KB, text/plain)
2007-05-15 17:20 UTC, Paolo Pedroni
Details
The output of echo */*.d in directory build-x86-x86_64-pc-linux-gnu-nptl in a system with USE="-profile" (log-build-x86-x86_64-pc-linux-gnu-nptl,148.63 KB, text/plain)
2007-05-15 17:22 UTC, Paolo Pedroni
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Paolo Pedroni 2007-05-06 17:54:37 UTC
On my system the ebuild for glibc-2.5-r2 fails for (apparently an error in a script).

This is the end of the error message:
scripts/check-local-headers.sh "/usr/include" "/var/tmp/portage/sys-libs/glibc-2.5-r2/work/build-amd64-x86_64-pc-linux-gnu-nptl/" > /var/tmp/portage/sys-libs/glibc-2.5-r2/work/build-amd64-x86_64-pc-linux-gnu-nptl/check-local-headers.out
scripts/check-local-headers.sh: line 29: /bin/fgrep: Argument list too long
/usr/bin/perl scripts/begin-end-check.pl argp/argp.h assert/assert.h catgets/nl_types.h crypt/crypt.h ctype/ctype.h debug/execinfo.h dirent/dirent.h dlfcn/dlfcn.h elf/elf.h elf/link.h gmon/sys/gmon.h gmon/sys/gmon_out.h gmon/sys/profil.h grp/grp.h iconv/iconv.h iconv/gconv.h inet/netinet/ether.h inet/netinet/icmp6.h inet/netinet/igmp.h inet/netinet/in.h inet/netinet/ip6.h inet/arpa/ftp.h inet/arpa/inet.h inet/arpa/telnet.h inet/arpa/tftp.h inet/protocols/routed.h inet/protocols/rwhod.h inet/protocols/talkd.h inet/protocols/timed.h inet/aliases.h inet/ifaddrs.h inet/netinet/ip6.h inet/netinet/icmp6.h intl/libintl.h io/sys/stat.h io/sys/statfs.h io/sys/vfs.h io/sys/statvfs.h io/fcntl.h io/sys/fcntl.h io/poll.h io/sys/poll.h io/utime.h io/ftw.h io/fts.h io/sys/sendfile.h libio/stdio.h libio/libio.h locale/locale.h locale/langinfo.h locale/xlocale.h login/utmp.h login/lastlog.h login/pty.h malloc/malloc.h malloc/obstack.h malloc/mcheck.h math/math.h math/complex.h math/fenv.h math/tgmath.h misc/sys/uio.h nis/rpcsvc/nis.h nis/rpcsvc/nis_callback.h nis/rpcsvc/nis_tags.h nis/rpcsvc/nislib.h nis/rpcsvc/yp.h nis/rpcsvc/yp_prot.h nis/rpcsvc/ypclnt.h nis/rpcsvc/ypupd.h nptl_db/thread_db.h nptl/sysdeps/pthread/pthread.h nptl/semaphore.h nss/nss.h posix/sys/utsname.h posix/sys/times.h posix/sys/wait.h posix/sys/types.h posix/unistd.h posix/glob.h posix/regex.h posix/wordexp.h posix/fnmatch.h posix/getopt.h posix/tar.h posix/sys/unistd.h posix/sched.h posix/re_comp.h posix/wait.h posix/cpio.h posix/spawn.h pwd/pwd.h resolv/resolv.h resolv/netdb.h resolv/arpa/nameser.h resolv/arpa/nameser_compat.h resource/sys/resource.h resource/sys/vlimit.h resource/sys/vtimes.h resource/ulimit.h rt/aio.h rt/mqueue.h setjmp/setjmp.h shadow/shadow.h signal/signal.h signal/sys/signal.h socket/sys/socket.h socket/sys/un.h stdio-common/printf.h stdio-common/stdio_ext.h stdlib/stdlib.h stdlib/alloca.h stdlib/monetary.h stdlib/fmtmsg.h stdlib/ucontext.h sysdeps/generic/inttypes.h sysdeps/generic/stdint.h stdlib/errno.h stdlib/sys/errno.h string/string.h string/strings.h string/memory.h string/endian.h string/argz.h string/envz.h string/byteswap.h sunrpc/rpc/auth.h sunrpc/rpc/auth_des.h sunrpc/rpc/auth_unix.h sunrpc/rpc/clnt.h sunrpc/rpc/des_crypt.h sunrpc/rpc/key_prot.h sunrpc/rpc/netdb.h sunrpc/rpc/pmap_clnt.h sunrpc/rpc/pmap_prot.h sunrpc/rpc/pmap_rmt.h sunrpc/rpc/rpc.h sunrpc/rpc/rpc_des.h sunrpc/rpc/rpc_msg.h sunrpc/rpc/svc.h sunrpc/rpc/svc_auth.h sunrpc/rpc/types.h sunrpc/rpc/xdr.h sunrpc/rpcsvc/bootparam.h sysvipc/sys/ipc.h sysvipc/sys/msg.h sysvipc/sys/sem.h sysvipc/sys/shm.h termios/termios.h termios/sys/termios.h termios/sys/ttychars.h time/time.h time/sys/time.h time/sys/timeb.h wcsmbs/wchar.h wctype/wctype.h > /var/tmp/portage/sys-libs/glibc-2.5-r2/work/build-amd64-x86_64-pc-linux-gnu-nptl/begin-end-check.out
make[1]: Target `check' not remade because of errors.
make[1]: Leaving directory `/var/tmp/portage/sys-libs/glibc-2.5-r2/work/glibc-2.5'
make: *** [check] Error 2
 * make check failed for amd64-x86_64-pc-linux-gnu-nptl

!!! ERROR: sys-libs/glibc-2.5-r2 failed.
Call stack:
  ebuild.sh, line 1614:   Called dyn_test
  ebuild.sh, line 1026:   Called qa_call 'src_test'
  environment, line 4207:   Called src_test
  glibc-2.5-r2.ebuild, line 1188:   Called die

!!! tests failed
!!! If you need support, post the topmost build error, and the call stack if relevant.
!!! A complete build log is located at '/var/log/portage/sys-libs:glibc-2.5-r2:20070506-124828.log'.

I will add the whole build log but I think the culprit is in the first line that I reported.

# emerge --info
Portage 2.1.2.2 (default-linux/amd64/2006.1/desktop, gcc-4.1.1, glibc-2.5-r0, 2.6.20-gentoo-r7 x86_64)
=================================================================
System uname: 2.6.20-gentoo-r7 x86_64 AMD Athlon(tm) 64 X2 Dual Core Processor 4600+
Gentoo Base System release 1.12.9
Timestamp of tree: Sun, 06 May 2007 06:30:01 +0000
distcc 2.18.3 x86_64-pc-linux-gnu (protocols 1 and 2) (default port 3632) [enabled]
ccache version 2.4 [enabled]
dev-java/java-config: 1.3.7, 2.0.31-r5
dev-lang/python:     2.4.3-r4
dev-python/pycrypto: 2.0.1-r5
dev-util/ccache:     2.4-r7
sys-apps/sandbox:    1.2.17
sys-devel/autoconf:  2.13, 2.61
sys-devel/automake:  1.4_p6, 1.5, 1.6.3, 1.7.9-r1, 1.8.5-r3, 1.9.6-r2, 1.10
sys-devel/binutils:  2.16.1-r3
sys-devel/gcc-config: 1.3.16
sys-devel/libtool:   1.5.22
virtual/os-headers:  2.6.17-r2
ACCEPT_KEYWORDS="amd64"
AUTOCLEAN="yes"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-march=k8 -O3 -pipe -fomit-frame-pointer"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/kde/3.5/env /usr/kde/3.5/share/config /usr/kde/3.5/shutdown /usr/share/X11/xkb /usr/share/config"
CONFIG_PROTECT_MASK="/etc/env.d /etc/env.d/java/ /etc/gconf /etc/java-config/vms/ /etc/revdep-rebuild /etc/terminfo"
CXXFLAGS="-march=k8 -O3 -pipe -fomit-frame-pointer"
DISTDIR="/usr/portage/distfiles"
EMERGE_DEFAULT_OPTS="--with-bdeps y"
FEATURES="autoaddcvs ccache collision-protect distcc distlocks fixpackages metadata-transfer sandbox sfperms strict test userfetch userpriv usersandbox"
GENTOO_MIRRORS="http://ftp.belnet.be/mirror/rsync.gentoo.org/gentoo/ http://mirror.switch.ch/ftp/mirror/gentoo/ http://gentoo.mirror.solnet.ch http://gentoo.intergenia.de http://pandemonium.tiscali.de/pub/gentoo/"
LANG="it_IT.UTF-8"
LC_ALL="it_IT.UTF-8"
LINGUAS="it"
MAKEOPTS="-j11"
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 --filter=H_**/files/digest-*"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/usr/local/portage /usr/portage/local/layman/xeffects"
SYNC="rsync://pedroni03/gentoo-portage"
USE="X Xaw3d a52 aac aalib acpi alsa amd64 ao arts audiofile bash-completion berkdb bitmap-fonts bzip2 cairo caps cddb cdparanoia cdr cli cracklib crypt cups curl dbus dga dio dri dvd dvdr dvdread emboss encode exif expat fam fbcon ffmpeg fftw firefox flac foomaticdb fortran ftp gd gdbm ggi gif glut gmp gnutls gphoto2 gpm gtk gtk2 guile hal iconv idn ieee1394 imagemagick imlib isdnlog java javascript jbig jikes jpeg jpeg2k kde kdeenablefinal lcms libcaca libg++ libsamplerate lm_sensors lua mad maildir matroska memlimit midi mikmod mime mmap mng mozilla mp3 mpeg mpi mplayer ncurses nls nptl nptlonly nsplugin offensive ogg openal openexr opengl oss pam pcre pdf perl png posix ppds pppd python qt3 quicktime rdesktop readline recode reflection ruby samba sdl session sharedmem shorten sndfile sockets sox speex spell spl ssl startup-notification svg symlink sysvipc tcl tcpd test theora threads tidy tiff tk truetype truetype-fonts type1-fonts unicode usb vcd vorbis wmf wxwindows x264 xcomposite xine xml xorg xosd xpm xv xvid yahoo zlib" ALSA_CARDS="intel8x0 virmidi" ALSA_PCM_PLUGINS="adpcm alaw asym copy dmix dshare dsnoop empty extplug file hooks iec958 ioplug ladspa lfloat linear meter mulaw multi null plug rate route share shm softvol" CAMERAS="kodak ptp2" ELIBC="glibc" INPUT_DEVICES="keyboard mouse evdev" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LINGUAS="it" USERLAND="GNU" VIDEO_CARDS="radeon"
Unset:  CTARGET, INSTALL_MASK, LDFLAGS, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS
Comment 1 Paolo Pedroni 2007-05-06 18:05:08 UTC
Created attachment 118369 [details]
glibc-2.5-r2 ebuild log

This is the (compressed) ebuild log (raw is 39 MB). The error also happens at line 45447 at the end of the x86 tests.
Comment 2 Thomas Anderson (tanderson) (RETIRED) gentoo-dev 2007-05-07 20:21:48 UTC
*** Bug 177547 has been marked as a duplicate of this bug. ***
Comment 3 Florian Petran 2007-05-14 15:13:04 UTC
Created attachment 119235 [details, diff]
Patch to the shell script which causes test fail

The script greps through a whole bunch of files, apparently too much for fgrep. If you cd to the appropriate directory ( $(WORK)/$(ARCH)-$(CHOST) ) and try to
ls */*.d, it throws the same error. With this patch, the script first makes a list of all directories, and then greps through them one by one.
Untested with the ebuild, but the script as such works.
Comment 4 SpanKY gentoo-dev 2007-05-14 15:26:45 UTC
can you post the output of `emerge -v --info` ?  your environment shouldnt be so polluted as to not be able to expand that ...
Comment 5 Paolo Pedroni 2007-05-14 15:38:39 UTC
Created attachment 119238 [details]
The output of 'emerge -v --info' on the affected PC

Added as an attachment, because it's too long for a comment
Comment 6 SpanKY gentoo-dev 2007-05-15 01:06:38 UTC
rather than doing `ls */*.d`, do `echo */*.d > log` and post "log" as an attachment
Comment 7 Florian Petran 2007-05-15 12:44:35 UTC
Created attachment 119358 [details]
The output of echo */*.d in directory build-amd64-x86_64-pc-linux-gnu-nptl

Alright, sorry. Another strange thing: the initial test failure occured while using paludis, when I attempted to replicate the bug with ebuild test, everything went fine, with approximately half the files created in the respective directory.
Should I post the files list from the portage build as well?

emerge --info:
Portage 2.1.2.2 (default-linux/amd64/2007.0/desktop, gcc-4.1.1, glibc-2.5-r2, 2.6.20-gentoo-r7 x86_64)
=================================================================
System uname: 2.6.20-gentoo-r7 x86_64 AMD Sempron(tm) Processor 3000+
Gentoo Base System release 1.12.9
Timestamp of tree: Sat, 12 May 2007 01:50:01 +0000
dev-java/java-config: 1.3.7, 2.0.31-r5
dev-lang/python:     2.4.3-r4
dev-python/pycrypto: 2.0.1-r5
sys-apps/sandbox:    1.2.17
sys-devel/autoconf:  2.13, 2.61
sys-devel/automake:  1.4_p6, 1.5, 1.6.3, 1.7.9-r1, 1.8.5-r3, 1.9.6-r2, 1.10
sys-devel/binutils:  2.16.1-r3
sys-devel/gcc-config: 1.3.16
sys-devel/libtool:   1.5.22
virtual/os-headers:  2.6.17-r2
ACCEPT_KEYWORDS="amd64"
AUTOCLEAN="yes"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-mtune=athlon64 -msse3 -O2 -pipe"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/share/X11/xkb"
CONFIG_PROTECT_MASK="/etc/env.d /etc/env.d/java/ /etc/gconf /etc/java-config/vms/ /etc/revdep-rebuild /etc/splash /etc/terminfo /etc/texmf/web2c"
CXXFLAGS="-mtune=athlon64 -msse3 -O2 -pipe"
DISTDIR="/usr/portage/distfiles"
FEATURES="distlocks metadata-transfer sandbox sfperms strict"
GENTOO_MIRRORS="http://linux.rz.ruhr-uni-bochum.de/download/gentoo-mirror/ http://mirrors.sec.informatik.tu-darmstadt.de/gentoo/ "
LINGUAS="de"
MAKEOPTS="-j2"
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 --filter=H_**/files/digest-*"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
SYNC="rsync://rsync.europe.gentoo.org/gentoo-portage"
USE="X acl acpi alsa amd64 berkdb bitmap-fonts cairo cdr cdrw cli cracklib crypt cups dbus dri dvd dvdr dvdread dvdrw emboss encode esd evo fam fbcon firefox flac fortran gdbm gif gnome gpm gstreamer gtk hal iconv isdnlog java jpeg kerberos ldap libg++ mad mbox midi mikmod mmx mp3 mpeg ncurses nls nptl nptlonly ogg opengl oss pam pcre pdf perl png pppd python qt3support quicktime readline reflection sdl session spell spl sse sse2 ssl svg tcpd tetex tiff truetype truetype-fonts type1-fonts unicode vorbis xml xorg xv zlib" ALSA_CARDS="ali5451 als4000 atiixp atiixp-modem bt87x ca0106 cmipci emu10k1x ens1370 ens1371 es1938 es1968 fm801 hda-intel intel8x0 intel8x0m maestro3 trident usb-audio via82xx via82xx-modem ymfpci" ALSA_PCM_PLUGINS="adpcm alaw asym copy dmix dshare dsnoop empty extplug file hooks iec958 ioplug ladspa lfloat linear meter mulaw multi null plug rate route share shm softvol" ELIBC="glibc" INPUT_DEVICES="keyboard mouse" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LINGUAS="de" USERLAND="GNU" VIDEO_CARDS="radeon vesa vga fbdev"
Unset:  CTARGET, EMERGE_DEFAULT_OPTS, INSTALL_MASK, LANG, LC_ALL, LDFLAGS, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS, PORTDIR_OVERLAY
Comment 8 SpanKY gentoo-dev 2007-05-15 13:47:35 UTC
it's because of the .op.d files which comes when USE=profile

ive added a fix from upstream which will be in next glibc release
Comment 9 Paolo Pedroni 2007-05-15 15:33:28 UTC
I did not have USE="profile", but I got the problem anyway (and I did not use paludis either). The resolution is thus at least not complete and further research is needed. As soon as I get the time I'll post _my_ output of 'echo */*.d' and really see what happens.
Comment 10 Paolo Pedroni 2007-05-15 17:20:14 UTC
Created attachment 119380 [details]
The output of echo */*.d in directory build-amd64-x86_64-pc-linux-gnu-nptl in a system with USE="-profile"

This is the output of echo */*.d in directory build-amd64-x86_64-pc-linux-gnu-nptl on my system, which gives the /bin/fgrep error even if there's no USE="profile"
Comment 11 Paolo Pedroni 2007-05-15 17:22:16 UTC
Created attachment 119382 [details]
The output of echo */*.d in directory build-x86-x86_64-pc-linux-gnu-nptl in a system with USE="-profile"

Same thing as before for the x86 library, which yield the same error (see attachment #118369 [details])
Comment 12 SpanKY gentoo-dev 2007-05-15 17:35:56 UTC
no, but you do have USE=glibc-omitfp which causes the same issue and thus the same fix resolves your problem
Comment 13 Paolo Pedroni 2007-05-15 17:54:44 UTC
(In reply to comment #12)
> no, but you do have USE=glibc-omitfp which causes the same issue and thus the
> same fix resolves your problem
> 

Thanks, now it's clearer.
Comment 14 Florian Petran 2007-05-15 18:06:34 UTC
(In reply to comment #12)
> no, but you do have USE=glibc-omitfp which causes the same issue and thus the
> same fix resolves your problem
> 

But I also have USE="-profile", as can be told from my emerge --info, I don't have
USE="glibc-omitfp" either.
Comment 15 Thomas Anderson (tanderson) (RETIRED) gentoo-dev 2007-05-15 19:58:06 UTC
I must agree with Florian, I have the same problem but do not have  either USE="profile" or USE="glibc-omitfp". I am running a completely stable(no extra CFLAGS, -O2) but have the problem.
Comment 16 Paolo Pedroni 2007-05-16 09:10:05 UTC
Reopened for comment #14 and comment #15, otherwise no-one will ever notice them.
Comment 17 SpanKY gentoo-dev 2007-05-16 13:46:26 UTC
they wont get a response until they provide the same information ... `echo */*.d`
Comment 18 Florian Petran 2007-05-16 14:41:10 UTC
(In reply to comment #17)
> they wont get a response until they provide the same information ... `echo
> */*.d`
> 

I did that in comment #7, along with emerge --info showing my USE flags were both "-profile -glibc-omitfp". In fact, I think no one posting replies to this bug has reported USE="profile". If you require `echo */*.d` a specific directory other than the one I posted, please say so.
Comment 19 SpanKY gentoo-dev 2007-05-16 15:17:44 UTC
as i said in comment #8, your list contains .op.d files which are only generated when profiling is enabled ... so your issue is fixed by my commit