Gentoo Archives: gentoo-dev

From: David Shepard <dshepard@×××.edu>
To: gentoo-dev@g.o
Subject: [gentoo-dev] Something is wrong with my compiler
Date: Tue, 16 Apr 2002 07:43:50
Message-Id: 1018946608.2098.2.camel@davetop
1 Hello All,
2
3 As the subject says, something is definitely wrong. Here is what I have
4 done so far... After the thread on recompiling everything, I set out to
5 rebuild my system from the ground up, using gcc 3.0.4. After booting, I
6 compiled the compiler (with the 1.0-gcc3 profile). I then bootstrapped
7 the system, and then compiled the base system. So far so good,
8 everything went smoothly. Then I tried to compile something larger,
9 kde3. Everything was going fine, it compiled all the dependencies,
10 etc... But when it got to packages such as kdeutils and kdemultimedia,
11 it would send the compiler into what I could only describe as a loop
12 that just caused the disk to thrash, consuming more and more memory as
13 it went (over 100MB just for gcc). So life goes on, I don't really need
14 kde anyhow. I compiled evolution next and a few other small packages.
15 Besides the little libpng thing, everything was going fine. And then I
16 tried to get some actual work done and compile some of my own code... It
17 was really quite a simple piece of c++ code with no compiler
18 optimizations at all, just straight g++ foo.cpp -o foo. The compiler
19 produced some really weird error messages about 'using namespace std;',
20 yet not using that directive would tell me that I hadn't declared
21 'cout'. Strange huh? End result, I had to ssh to a box that had gcc
22 2.95.x on it to get some work done.(My code compiled without a hitch
23 there.)
24
25 To make this long story short, are there any known problems with gcc
26 3.0.4 before I go off filing a bug report? One last thing, I compiled
27 gcc with the basic optimizations that were provided: i686-pc-linux-gnu,
28 -march=i686 -03 -pipe.
29
30 Anyone else had a similar problem/ ideas on how I can fix this? This
31 machine is pretty damn solid, so I believe I can rule out
32 memory/hardware failure.
33
34 --David

Replies

Subject Author
Re: [gentoo-dev] Something is wrong with my compiler David Shepard <dshepard@×××.edu>