Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 12613 - cpp still a problem
Summary: cpp still a problem
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Development (show other bugs)
Hardware: All All
: High major
Assignee: Martin Schlemmer (RETIRED)
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2002-12-23 05:06 UTC by Artur Brodowski
Modified: 2003-01-17 05:20 UTC (History)
1 user (show)

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


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Artur Brodowski 2002-12-23 05:06:59 UTC
hello,

since gnome team does not pack latest unstable gnome releases, i thought
i'll try garnome. when compiling i encountered this really strange problem,
when cpp creates lots and lots of new processes, until compilation crashes
with 'too many open files in system' error.
i thought it was garnome problem at first, but today i tried to upgrade 
gcc and same thing happens - there were about 200 cpp processes at one time!
i'm not really sure what's causing the problem, but cpp overload happens
when imake is run during compilation.

my emerge info:
Portage 2.0.46-r2 (default-x86-1.4, gcc-3.2.1, glibc-2.3.1-r2)
=================================================================
System uname: 2.4.19-gentoo-r10 i686 Intel(R) Pentium(R) 4 CPU 1.70GHz
USE="x86 oss 3dnow apm avi crypt cups encode gif jpeg libg++ libwww mikmod mmx
mpeg ncurses nls pdflib png qtmt quicktime sdl spell svga truetype xml2 xmms xv
zlib gtkhtml gdbm berkdb slang readline bonobo java guile gpm tcpd pam ssl perl
python esd imlib oggvorbis gtk qt motif opengl mozilla X gtk2 gnome -alsa -arts
-kde -dvd moznoirc moznomail moznocompose"
ARCH="x86"
COMPILER="gcc3"
CHOST="i686-pc-linux-gnu"
CFLAGS="-march=pentium4 -mcpu=pentium4 -O3 -pipe"
CXXFLAGS="-march=pentium4 -mcpu=pentium4 -O3 -pipe"
ACCEPT_KEYWORDS="x86"
CONFIG_PROTECT="/etc /var/qmail/control /usr/share/config
/usr/kde/2/share/config /usr/kde/3/share/config"
CONFIG_PROTECT_MASK="/etc/gconf /etc/env.d"
MAKEOPTS="-j2"
JDK_HOME="/opt/sun-jdk-1.4.1.01"
JAVA_HOME="/opt/sun-jdk-1.4.1.01"
AUTOCLEAN="yes"
SYNC="rsync://rsync.gentoo.org/gentoo-portage"
GENTOO_MIRRORS="http://www.ibiblio.org/pub/Linux/distributions/gentoo"
Comment 1 SpanKY gentoo-dev 2002-12-23 11:22:22 UTC
az: is this the /usr/bin/cpp linkage problem ?
Comment 2 Martin Schlemmer (RETIRED) gentoo-dev 2002-12-23 12:04:30 UTC
Nope, /lib/cpp.  Please past the output of:

  # ls -l /lib/cpp /usr/bin/cc /usr/bin/cpp
  # which gcc
  # which cpp
  # emerge gentoolkit; epm -q gcc

(dont include the output of 'emerge gentoolkit' ... )
Comment 3 Artur Brodowski 2002-12-24 03:00:56 UTC
here it goes:

root@tool bzd # ls -l /lib/cpp /usr/bin/cc /usr/bin/cpp
-rwxr-xr-x    1 root     root           20 2002-12-23 10:56 /lib/cpp
-rwxr-xr-x    1 root     root           20 2002-12-23 10:56 /usr/bin/cc
-rwxr-xr-x    1 root     root          303 2002-12-23 10:56 /usr/bin/cpp
root@tool bzd # which gcc
/usr/bin/gcc
root@tool bzd # which cpp
/usr/bin/cpp
root@tool bzd # epm -q gcc
gcc-3.2.1

i just noticed, that it is not imake prob, but cpp itself:
cpp -h
also hangs - creates new processes over and over, no output.
Comment 4 Seemant Kulleen (RETIRED) gentoo-dev 2002-12-24 03:27:13 UTC
Artur, I think you might have the portage/gcc issue.  Please go to
http://cvs.gentoo.org/~seemant
Comment 5 Artur Brodowski 2002-12-24 04:59:44 UTC
thanks Seemant, i guess that was the problem.
since i couldn't compile gcc (cpp blocked the resources at some point)
i had to use downloaded .tbz2. cpp works now, i'm gonna recompile gcc
and portage soon.
resolving this i guess.
merry xmas ;)
Comment 6 Artur Brodowski 2003-01-09 06:11:07 UTC
hello.
i cannot recompile gcc (3.2.1-r6 just got to stable), cpp hangs same as
before. i can't really tell what caused the problem - i emerged few things
and everything went smooth; when emerging gcc it kills the system 
producing cpp processes over and over. 
i'm going to fix gcc just like i did last time, but this is really wicked;
could it be binutils issue? or portage?
Comment 7 Martin Schlemmer (RETIRED) gentoo-dev 2003-01-12 14:36:34 UTC
Check if cpp is a text file/script, if so, please include ...
Comment 8 Martin Schlemmer (RETIRED) gentoo-dev 2003-01-17 05:14:52 UTC
Try with gcc-config-1.3.0.
Comment 9 Artur Brodowski 2003-01-17 05:20:58 UTC
thanks, it helped.
i'm marking this fixed, although i'm not sure what was really broken
(only effects) and have no idea how it was fixed ;-D
best regards,
artb.