I am compiling LLVM trunk on Gentoo (gcc 4.5.2), but seems it failed due to some GCC issues. See more details on attachment.
Created attachment 323634 [details] error message
post `emerge --info` in all your bug reports also, find the exact gcc command that is being run (post it here), change the '-c' to '-E', and then attach the output of running that command.
Created attachment 323970 [details] output of `emerge --info`
Created attachment 323972 [details] output of `gcc -E`
(In reply to comment #2) > post `emerge --info` in all your bug reports > > also, find the exact gcc command that is being run (post it here), change > the '-c' to '-E', and then attach the output of running that command. done. The output of `gcc -E` is out of the 1MB limit, so I submit a tarball.
(In reply to comment #0) > I am compiling LLVM trunk on Gentoo (gcc 4.5.2), but seems it failed due to > some GCC issues. See more details on attachment. Note, I also alias gcc to gcc-4.6.2, and has the same error as gcc-4.5.2.
The attachment "output of `gcc -E`" only contains garbage.
Created attachment 324150 [details] output of `gcc -E` Previous one contains garbage.
(In reply to comment #7) > The attachment "output of `gcc -E`" only contains garbage. Sorry, I have resend the tarball, please check. Thanks.
(In reply to comment #9) > (In reply to comment #7) > > The attachment "output of `gcc -E`" only contains garbage. > > Sorry, I have resend the tarball, please check. Thanks. Thanks. We need the exact gcc command flags that you use. Please post the output of "make VERBOSE=1".
(In reply to comment #10) > (In reply to comment #9) > > (In reply to comment #7) > > > The attachment "output of `gcc -E`" only contains garbage. > > > > Sorry, I have resend the tarball, please check. Thanks. > > Thanks. We need the exact gcc command flags that you use. > Please post the output of "make VERBOSE=1". make[4]: Entering directory `/nfs_home/chenwj/llvm-3.1/svn/build/tools/clang/lib/Frontend' llvm[4]: Compiling InitHeaderSearch.cpp for Release+Asserts build if g++ -I/nfs_home/chenwj/llvm-3.1/svn/build/include -I/nfs_home/chenwj/llvm-3.1/svn/build/tools/clang/lib/Frontend -I/nfs_home/chenwj/llvm-3.1/svn/llvm/include -I/nfs_home/chenwj/llvm-3.1/svn/llvm/tools/clang/lib/Frontend -D_DEBUG -D_GNU_SOURCE -D__STDC_CONSTANT_MACROS -D__STDC_FORMAT_MACROS -D__STDC_LIMIT_MACROS -I/nfs_home/chenwj/llvm-3.1/svn/llvm/tools/clang/lib/Frontend/../../include -I/nfs_home/chenwj/llvm-3.1/svn/build/tools/clang/lib/Frontend/../../include -O3 -fomit-frame-pointer -fvisibility-inlines-hidden -fno-exceptions -fno-rtti -fPIC -Woverloaded-virtual -Wcast-qual -fno-strict-aliasing -pedantic -Wno-long-long -Wall -W -Wno-unused-parameter -Wwrite-strings -c -MMD -MP -MF "/nfs_home/chenwj/llvm-3.1/svn/build/tools/clang/lib/Frontend/Release+Asserts/InitHeaderSearch.d.tmp" -MT "/nfs_home/chenwj/llvm-3.1/svn/build/tools/clang/lib/Frontend/Release+Asserts/InitHeaderSearch.o" -MT "/nfs_home/chenwj/llvm-3.1/svn/build/tools/clang/lib/Frontend/Release+Asserts/InitHeaderSearch.d" /nfs_home/chenwj/llvm-3.1/svn/llvm/tools/clang/lib/Frontend/InitHeaderSearch.cpp -o /nfs_home/chenwj/llvm-3.1/svn/build/tools/clang/lib/Frontend/Release+Asserts/InitHeaderSearch.o ; \ then /bin/mv -f "/nfs_home/chenwj/llvm-3.1/svn/build/tools/clang/lib/Frontend/Release+Asserts/InitHeaderSearch.d.tmp" "/nfs_home/chenwj/llvm-3.1/svn/build/tools/clang/lib/Frontend/Release+Asserts/InitHeaderSearch.d"; else /bin/rm "/nfs_home/chenwj/llvm-3.1/svn/build/tools/clang/lib/Frontend/Release+Asserts/InitHeaderSearch.d.tmp"; exit 1; fi /nfs_home/chenwj/llvm-3.1/svn/llvm/tools/clang/lib/Frontend/InitHeaderSearch.cpp: In member function 'void<unnamed>::InitHeaderSearch::AddMinGWCPlusPlusIncludePaths(llvm::StringRef, llvm::StringRef, llvm::StringRef)': /nfs_home/chenwj/llvm-3.1/svn/llvm/tools/clang/lib/Frontend/InitHeaderSearch.cpp:197:1: error: unrecognizable insn: (insn 318 317 46 2 /nfs_home/chenwj/llvm-3.1/svn/llvm/include/llvm/ADT/Twine.h:181 (set (reg:DI 23 xmm2) (plus:DI (reg:DI 23 xmm2) (mem/u/c/i:DI (symbol_ref/u:DI ("*.LC22") [flags 0x2]) [0 S8 A64]))) -1 (expr_list:REG_EQUIV (plus:DI (reg/f:DI 7 sp) (mem/u/c/i:DI (symbol_ref/u:DI ("*.LC22") [flags 0x2]) [0 S8 A64])) (nil))) /nfs_home/chenwj/llvm-3.1/svn/llvm/tools/clang/lib/Frontend/InitHeaderSearch.cpp:197:1: internal compiler error: in extract_insn, at recog.c:2103 Please submit a full bug report, with preprocessed source if appropriate. See <http://bugs.gentoo.org/> for instructions.
I cannot reproduce this ICE with vanilla 4.6.3 or 4.7 or 4.8.
(In reply to comment #12) > I cannot reproduce this ICE with vanilla 4.6.3 or 4.7 or 4.8. 4.5.4 and 4.6.3 are O.K. Maybe it's 4.5.2 and 4.6.2's problem?