Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 36960 - cpp/cpp0 problem: No such file or directory
Summary: cpp/cpp0 problem: No such file or directory
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Core system (show other bugs)
Hardware: All All
: High major (vote)
Assignee: Gentoo Linux bug wranglers
Depends on:
Reported: 2004-01-01 13:01 UTC by Philipp Kern
Modified: 2004-04-21 11:23 UTC (History)
0 users

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

strace of "strace gcc" (strace,5.81 KB, application/octet-stream)
2004-04-21 11:23 UTC, Patrik Falkman

Note You need to log in before you can comment on or make changes to this bug.
Description Philipp Kern 2004-01-01 13:01:29 UTC
This is in a way related to 19949.
But gcc-config didn't fix it

thrall /var/tmp/portage/gnupg-1.2.4/work/gnupg-1.2.4 # gcc-config 1
 * Switching to i686-pc-linux-gnu-3.3.2 compiler...                       [ ok ]
thrall /var/tmp/portage/gnupg-1.2.4/work/gnupg-1.2.4 # /lib/cpp
cpp: installation problem, cannot exec `cpp0': No such file or directory

configure:3465: /lib/cpp  conftest.c
cpp: installation problem, cannot exec `cpp0': No such file or directory
configure:3471: $? = 1
configure: failed program was:

Happend on emerge of gnupg.
Probably my toolchain just craped again. I'll try re-emerging anyway.

It's sys-devel/gcc-3.3.2-r5 in use.

Gentoo Base System version
Portage 2.0.49-r18 (default-x86-1.4, gcc-3.3.2, glibc-2.3.3_pre20031212-r0, 2.4.
System uname: 2.4.22-gentoo-r2 i686 Pentium III (Katmai)
CFLAGS="-O3 -march=pentium3 -fprefetch-loop-arrays -funroll-loops -pipe -fomit-f
rame-pointer -frerun-loop-opt -falign-functions=4 -fforce-mem -ffast-math -finli
ne-functions -foptimize-sibling-calls -mmmx -fstack-protector"
CONFIG_PROTECT="/etc /usr/kde/2/share/config /usr/kde/3/share/config /usr/share/
config /var/qmail/control"
CONFIG_PROTECT_MASK="/etc/gconf /etc/env.d"
CXXFLAGS="-O3 -march=pentium3 -fprefetch-loop-arrays -funroll-loops -pipe -fomit
-frame-pointer -frerun-loop-opt -falign-functions=4 -fforce-mem -ffast-math -fin
line-functions -foptimize-sibling-calls -mmmx -fstack-protector -Wno-deprecated"
FEATURES="autoaddcvs ccache sandbox"
USE="acl apache2 berkdb crypt gd gdbm gif gtk2 imap imlib innodb ipv6 jpeg libww
w maildir mbox memlimit motif mysql ncurses nls oss pam pdflib perl png python r
eadline ruby ruby18 slang sse ssl tcpd x86 xml2 xmms zlib"
Comment 1 Seemant Kulleen (RETIRED) gentoo-dev 2004-01-02 12:03:27 UTC
attach the config.log please
Comment 2 Philipp Kern 2004-01-02 12:06:16 UTC
Which does not work.

checking execution character set... unknown
configure: error: *** Cannot determine host character set.
Configure in /var/tmp/portage/gcc-3.3.2-r5/work/build/gcc failed, exiting.

!!! ERROR: sys-devel/gcc-3.3.2-r5 failed.
!!! Function src_compile, Line 381, Exitcode 1
!!! (no error message)

When emerging from a "old" sys-devel/gcc-3.3.2-r5 ebuild to the "new".
And there's no config.log.
Any help?
Comment 3 Philipp Kern 2004-01-02 12:07:19 UTC
The configure part is from the config.log
There is nothing more interessting. /lib/cpp does not work as cpp0 is not found.
Where should I be?
Comment 4 Philipp Kern 2004-01-02 12:46:26 UTC
The turn-back to an old gcc binary package (3.3.2-r4) did the trick and everything's back to normal (I hope... I really hope...)
But somebody should find the root of this problem as it seems that it sometimes occures. I still don't know if the new gcc would emerge on the system.
Comment 5 Tim Yamin (RETIRED) gentoo-dev 2004-01-03 07:22:04 UTC
As this is fixed at your end, we probably can't replicate this and can't do much. If it happens again, can you please reopen this bug and run "strace gcc" - also check that "cpp0" does exist. Perhaps you are getting some file-system corruption and the GCC libraries are going missing?
Comment 6 Philipp Kern 2004-01-03 07:33:06 UTC
I can't find on any gcc 3.3 system a 'cpp0' binary. So cpp0 didn't exist. But where it got lost or why it is searched for. Yes, I'll reopen this if this problem happens again. So should any other person who notices this problem ;o)
Thanks anyway.
Comment 7 SpanKY gentoo-dev 2004-01-03 08:44:09 UTC
root@vapier 0 root # locate cpp0

did you ever have gcc2.x on your box ?
Comment 8 Philipp Kern 2004-01-03 09:09:33 UTC
Nope, but gcc 3.2.3 which afaik had that file.
So this was perhaps an issue of not cleanly upgrading to gcc 3.3.
Strange thing, but ok. I'll wait on a newer release of gcc anyway as mine (-r5) doesn't emerge anymore which is another problem.
Thank you.
Comment 9 Patrik Falkman 2004-04-21 11:23:06 UTC
Created attachment 29761 [details]
strace of "strace gcc"

This bug occured for me aswell after emerging 'glibc-2.3.3_pre20040207'