Trying to upgrade from KDE 3.0 to 3.0.1... First problem: qt-3.0.4-r1 produces internal compiler errors. This is on a well-tested Celeron box. So I masked out the 3.0.4 releases and built qt-3.0.3.1. Second problem: qt-3.0.3.1 doesn't build because liblcms.so.1 doesn't exist. Created missing symlink /usr/lib/liblcms.so.1 pointing to /usr/lib/liblcms.so.1.0.8. Third problem: rpm-4.0.4-r1, required by KDE, doesn't build. I forget the exact error, some POPT symbol not defined. So I masked that out and built rpm-4.0.4. Also had to edit kdeadmin-3.0.1.ebuild to permit this rpm version.
All these problems have been reported before. First problem is (possibly) bug #2048. Second is #2483. Third is (I believe) #2857. Please add yourself to the cc: of any bugs whose progress you wish to track and add any relevant comments. If these 3 bugs indeed describe your problems, please close this one.
I don't think the first problem is #2048. What I'm seeing seems to be specific to qt-3.0.4-r1. It fails consistently in the same place, and nothing else I have built causes this, so a hardware issue seems unlikely. Let me add that I also tried changing optimization from O3 to O2; while the compile then appeared to go to completion, I happened to be watching when another internal compiler error happened, without stopping the build! You're right about this duplicating #2483 and 2857. I've changed the title accordingly.
That's odd, the qt ebuild doesn't take notice of $CXXFLAGS... You say when you replaced O3 (whuch I use too btw) with O2 3.0.4-r1 compiled? BTW, you talk about 3.0.4-r1 making problems, what about 3.0.4.1?
I think you can close this, if you cannot reproduce it. It appears to be hardware after all... had a similar problem with "emerge gimp" and it went away with a CPU swap. BTW the version I had a problem with was qt-3.0.4.1, not 3.0.4-r1. Sorry to waste your time.