Created attachment 6215 [details] compiler output (without -v -save-temps)
Created attachment 6216 [details] Compiler output (-v -save-temps)
No source code attached - it never got far enough to make a .ii. The problem is in the command line, where there's a "-I" missing that should be on "../../../members/common/include". That's a directory, not a file, so you might be able to reproduce this by putting a directory on the command line. But part of the noise mentions "too many files", so maybe the problem is not that it's a directory (gcc legal?) but it has a lot of files. Anyway, it segv's.
I keep getting messages like g/x> /home/bangerth/bin/gcc-3.4-pre/bin/c++ /usr/include /usr/include: file not recognized: Is a directory collect2: ld returned 1 exit status But then, you didn't tell us what exactly your command line was. Can you clarify? Thanks Wolfgang
Command line was as in the first attachment, but here it is again: ~/ootbc/members/common/src$ g++ -o2 -g -I. ../../../members/common/include -I/home/ivan/ootbc/common/include -I/home/ivan/ootbc/common/xptsys/include -c -o attribute.o attribute.cc g++: ../../../members/common/include: linker input file unused because linking not done cc1plus: ../../../members/common/include: No such file or directory cc1plus: internal compiler error: Segmentation fault Please submit a full bug report, with preprocessed source if appropriate. See <URL:http://gcc.gnu.org/bugs.html> for instructions.
OK, I can finally reproduce this: g/x> rm x.cc g/x> touch x.cc g/x> /home/bangerth/bin/gcc-3.4-pre/bin/c++ /usr/include -o x.o -c x.cc c++: /usr/include: linker input file unused because linking not done cc1plus: /usr/include: No such file or directory cc1plus: internal compiler error: Segmentation fault Please submit a full bug report, with preprocessed source if appropriate. See <URL:http://gcc.gnu.org/bugs.html> for instructions. The trick is to ask the compiler to both compile /usr/include (a directory) and x.cc (a file), and at the same time to give an output file via -o. However, this is already fixed on mainline: g/x> rm x.cc g/x> touch x.cc g/x> /home/bangerth/bin/gcc-3.5-pre/bin/c++ /usr/include -o x.o -c x.cc c++: /usr/include: linker input file unused because linking not done Strictly speaking, this bug is a regression in 3.4 against 3.3.4, which doesn't ICE on this input. However, given the bogosity of the input and that it is already fixed on mainline, I predict that nobody will feel a real great urge to fix it on 3.4.x as well, so I'll just close the PR. Thanks anyway! W.
*** Bug 16778 has been marked as a duplicate of this bug. ***
*** Bug 16811 has been marked as a duplicate of this bug. ***
*** Bug 21864 has been marked as a duplicate of this bug. ***