Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 206240 - dev/-libs/libmowgli-0.5.0 fails to emerge (cpp - too many open files)
Summary: dev/-libs/libmowgli-0.5.0 fails to emerge (cpp - too many open files)
Status: RESOLVED INVALID
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Library (show other bugs)
Hardware: x86 Linux
: High normal (vote)
Assignee: Tony Vroon (RETIRED)
URL: http://bugzilla.atheme.org/show_bug.c...
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2008-01-16 23:01 UTC by Stian Skjelstad
Modified: 2008-02-21 16:13 UTC (History)
0 users

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


Attachments
libmowgli-0.5.0-cpp-fixed.patch (libmowgli-0.5.0-cpp-fixed.patch,834 bytes, patch)
2008-01-16 23:03 UTC, Stian Skjelstad
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Stian Skjelstad 2008-01-16 23:01:30 UTC
....
configure: creating ./config.status
config.status: creating buildsys.mk
config.status: creating extra.mk
config.status: creating libmowgli.pc
config.status: creating src/libmowgli/mowgli_config.h

Configuration:
        No special features yet.

Now type "make" to build, and "make install" to install.
Thank you for using libmowgli.

Entering directory src.
Entering directory libmowgli.
i686-pc-linux-gnu-cpp: too many input files
Failed to generate dependencies!
make[5]: *** [depend] Error 1
make[4]: *** [all] Error 1
make[3]: *** [subdirs] Error 1
make[2]: *** [all] Error 1
make[1]: *** [subdirs] Error 1
make: *** [all] Error 1
 * 
 * ERROR: dev-libs/libmowgli-0.5.0 failed.
 * Call stack:
 *                ebuild.sh, line 1701:  Called dyn_compile
 *                ebuild.sh, line 1039:  Called qa_call 'src_compile'
 *                ebuild.sh, line   44:  Called src_compile
 *   libmowgli-0.5.0.ebuild, line   18:  Called die
 * The specific snippet of code:
 *      emake || die "emake failed"
 *  The die message:
 *   emake failed
 * 
 * If you need support, post the topmost build error, and the call stack if relevant.
 * A complete build log is located at '/var/tmp/portage/dev-libs/libmowgli-0.5.0/temp/build.log'.
 * 



Portage 2.1.3.19 (default-linux/x86/2007.0/desktop, gcc-4.1.2, glibc-2.7-r1, 2.6.23.12 i686)
=================================================================
System uname: 2.6.23.12 i686 Intel(R) Pentium(R) III Mobile CPU 1000MHz
Timestamp of tree: Wed, 16 Jan 2008 21:00:01 +0000
app-shells/bash:     3.2_p17-r1
dev-java/java-config: 1.3.7, 2.0.33-r1
dev-lang/python:     2.3.5-r3, 2.4.4-r6
dev-python/pycrypto: 2.0.1-r6
sys-apps/baselayout: 1.12.10-r5
sys-apps/sandbox:    1.2.18.1-r2
sys-devel/autoconf:  2.13, 2.61-r1
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.18-r1
sys-devel/gcc-config: 1.4.0-r4
sys-devel/libtool:   1.5.24
virtual/os-headers:  2.6.23-r3
ACCEPT_KEYWORDS="x86"
CBUILD="i686-pc-linux-gnu"
CFLAGS="-O3 -march=pentium3m -msse -mmmx -pipe"
CHOST="i686-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/kde/3.5/env /usr/kde/3.5/share/config /usr/kde/3.5/shutdown /usr/share/config /var/bind /var/qmail/alias /var/qmail/control /var/vpopmail/domains /var/vpopmail/etc"
CONFIG_PROTECT_MASK="/etc/env.d /etc/env.d/java/ /etc/gconf /etc/php/apache2-php5/ext-active/ /etc/php/cgi-php5/ext-active/ /etc/php/cli-php5/ext-active/ /etc/revdep-rebuild /etc/terminfo /etc/udev/rules.d"
CXXFLAGS="-O3 -march=pentium3m -msse -mmmx -pipe"
DISTDIR="/usr/portage/distfiles"
FEATURES="autoaddcvs ccache distlocks metadata-transfer parallel-fetch sandbox sfperms strict unmerge-orphans userfetch"
GENTOO_MIRRORS="http://distfiles.gentoo.org http://distro.ibiblio.org/pub/linux/distributions/gentoo"
LINGUAS="no nb en_GB"
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"
PORTDIR_OVERLAY="/usr/local/portage"
SYNC="rsync://rsync.gentoo.org/gentoo-portage"
USE="X a52 acl acpi adplug alsa amr apache2 bash-completion berkdb bitmap-fonts bluetooth browserplugin bzip2 cairo cdparanoia cdr cli cracklib crypt cups dbus dhcp divx divx4linux dri dvd dvdr dvdread eds emboss encode evo exif fam firefox flac foomaticdb fortran gd gdbm gif gimpprint glitz glut gmedia gnome gnomedb gpm gstreamer gtk gtk2 hal i8x0 iconv ipv6 isdnlog jack java joystick jpeg kde kerberos ldap libnotify live mad midi mikmod mmx motif mozilla moznocompose moznoirc moznomail mp3 mpeg msn mudflap music nautilus ncurses nls nptl nptlonly nsplugin ntpl ogg opengl openmp pam pcre pdf perl pic pidgin png ppds pppd python qt3 qt3support qt4 quicktime readline real realmedia reflection rt2500usb rtc samba sasl sdl session sidplay slang spamassassin speex spell spl sse ssl svg tcpd theora tiff timidity truetype truetype-fonts type1-fonts unicode usb utf8 v4fl v4fl2 vim-syntax voice vorbis win32codecs wmp x264 x86 xinerama xml xorg xrandr xv xvid xvmc zlib" ALSA_CARDS="intel8x0 intel8x0m usb-audio" 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" APACHE2_MODULES="actions alias auth_basic auth_digest authn_anon authn_dbd authn_dbm authn_default authn_file authz_dbm authz_default authz_groupfile authz_host authz_owner authz_user autoindex cache dav dav_fs dav_lock dbd deflate dir disk_cache env expires ext_filter file_cache filter headers ident imagemap include info log_config logio mem_cache mime mime_magic negotiation proxy proxy_ajp proxy_balancer proxy_connect proxy_http rewrite setenvif so speling status unique_id userdir usertrack vhost_alias" ELIBC="glibc" INPUT_DEVICES="evdev keyboard mouse synaptics" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LINGUAS="no nb en_GB" LIRC_DEVICES="com1" USERLAND="GNU" VIDEO_CARDS="i810"
Unset:  CPPFLAGS, CTARGET, EMERGE_DEFAULT_OPTS, INSTALL_MASK, LANG, LC_ALL, LDFLAGS, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS


After doing a little strace I could see that the build system calls up cpp in a very broken way:

22949 execve("/usr/i686-pc-linux-gnu/gcc-bin/4.1.2/i686-pc-linux-gnu-cpp", ["/usr/i686-pc-linux-gnu/gcc-bin/4.1.2/i686-pc-linux-gnu-cpp"..., "-DPIC"..., "-I."..., "-I.."..., "-DMOWGLI_CORE"..., "-M"..., "mowgli_alloc.c"..., "mowgli_allocation_policy.c"..., "mowgli_allocator.c"..., "mowgli_argstack.c"..., "mowgli_bitvector.c"..., "mowgli_dictionary.c"..., "mowgli_error_backtrace.c"..., "mowgli_formatter.c"..., "mowgli_global_storage.c"..., "mowgli_hash.c"..., "mowgli_heap.c"..., "mowgli_hook.c"..., "mowgli_init.c"..., "mowgli_ioevent.c"..., "mowgli_list.c"..., "mowgli_logger.c"..., "mowgli_mempool.c"..., "mowgli_module.c"..., "mowgli_object.c"..., "mowgli_object_class.c"..., "mowgli_object_messaging.c"..., "mowgli_object_metadata.c"..., "mowgli_queue.c"..., "mowgli_random.c"..., "mowgli_signal.c"..., "mowgli_spinlock.c"..., "mowgli_string.c"..., "dlfcn.c"...], ["MANPATH=/etc/java-config-2/current-system-vm/man:/usr/local/shar"..., "TERM=xterm"..., "SHELL=/bin/bash"..., "MAKEFLAGS=s"..., "QTDIR=/usr/qt/3"..., "USER=root"..., "PRELINK_PATH_MASK=/usr/lib/gstreamer-0.10"..., "LS_COLORS=no=00:fi=00:di=01;34:ln=01;36:pi=40;33:so=01;35:do=01;"..., "GDK_USE_XFT=1"..., "MAKELEVEL=6"..., "PAGER=/usr/bin/less"..., "CONFIG_PROTECT_MASK=/etc/env.d/java/ /etc/php/cli-php5/ext-activ"..., "VMHANDLE=blackdown-jdk-1.4.2"..., "MFLAGS=-s"..., "PATH=/usr/i686-pc-linux-gnu/gcc-bin/4.1.2:/usr/local/sbin:/usr/l"..., "PWD=/var/tmp/portage/dev-libs/libmowgli-0.5.0/work/libmowgli-0.5"..., "JAVA_HOME=/etc/java-config-2/current-system-vm"..., "GENERATION=2"..., "JAVAC=/etc/java-config-2/current-system-vm/bin/javac"..., "EDITOR=/usr/bin/vim"..., "KDEDIRS=/usr:/usr/local:/usr/kde/3.5"..., "QMAKESPEC=linux-g++"..., "TZ=Europe/Oslo"..., "SHLVL=7"..., "HOME=/root"..., "JDK_HOME=/etc/java-config-2/current-system-vm"..., "PYTHONPATH=/usr/lib/portage/pym"..., "LESS=-R -M --shift 5"..., "LOGNAME=root"..., "QMAIL_CONTROLDIR=/var/qmail/control"..., "CVS_RSH=ssh"..., "GCC_SPECS="..., "CLASSPATH=."..., "XDG_DATA_DIRS=/usr/share:/usr/kde/3.5/share:/usr/local/share"..., "PKG_CONFIG_PATH=/usr/qt/3/lib/pkgconfig"..., "LESSOPEN=|lesspipe.sh %s"..., "INFOPATH=/usr/share/info:/usr/share/binutils-data/i686-pc-linux-"..., "DISPLAY=:0.0"..., "OPENGL_PROFILE=xorg-x11"..., "CONFIG_PROTECT=/var/bind /usr/kde/3.5/share/config /usr/kde/3.5/"..., "XAUTHORITY=/root/.xauth3UZesW"..., "_=/usr/bin/i686-pc-linux-gnu-cpp"...]) = 0


cpp should only take either ONE c file, or ONE c file and a target place to store the output. Atleast the 4.1.2 I have in.



Reproducible: Always

Steps to Reproduce:
Comment 1 Stian Skjelstad 2008-01-16 23:03:02 UTC
Created attachment 141084 [details, diff]
libmowgli-0.5.0-cpp-fixed.patch

Calls cpp one time per file
Comment 2 Stian Skjelstad 2008-02-05 07:19:25 UTC
0.6.1 does not have this issue it seems like. Are there any reasons for 0.6.1 being marked ~x86 then?
Comment 3 Tony Vroon (RETIRED) gentoo-dev 2008-02-05 10:19:13 UTC
Yes, 0.6.1 is <30 days old. Once it reaches that age, it will be considered for stable keywords.
Comment 4 Stian Skjelstad 2008-02-10 20:40:35 UTC
I now found the real reason for this bug

In make.conf I had
CPP=${CHOST}-cpp

replacing it with
CPP="${CHOST}-gcc -E"

however solves the issue. So, what do the build-dudes say about this then? Should CPP point to cpp, or gcc -E  ?
Comment 5 Tony Vroon (RETIRED) gentoo-dev 2008-02-21 16:13:57 UTC
Their opinion can likely be summarized as "don't mess with that setting". As you are the only reporter of this bug, I'll have a hard time convincing anyone it's worth an early stable of 0.6.1
For now I'm closing the bug as invalid. Let me know if you disagree.