Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 434852 - [ICE/4.5] sys-devel/gcc-4.5.2 crashes while building llvm in extract_insn, at recog.c:2103 (unrecognizable insn)
Summary: [ICE/4.5] sys-devel/gcc-4.5.2 crashes while building llvm in extract_insn, at...
Status: RESOLVED NEEDINFO
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Core system (show other bugs)
Hardware: AMD64 Linux
: Normal normal (vote)
Assignee: Gentoo Linux bug wranglers
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2012-09-13 03:16 UTC by Wei-Ren Chen
Modified: 2012-10-02 09:38 UTC (History)
2 users (show)

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


Attachments
error message (file_434852.txt,1.02 KB, text/plain)
2012-09-13 03:17 UTC, Wei-Ren Chen
Details
output of `emerge --info` (file_434852.txt,4.00 KB, text/plain)
2012-09-16 06:39 UTC, Wei-Ren Chen
Details
output of `gcc -E` (gcc-E.tar.gz,194 bytes, application/x-gzip-compressed)
2012-09-16 07:42 UTC, Wei-Ren Chen
Details
output of `gcc -E` (error.tar.gz,176.81 KB, application/x-gzip-compressed)
2012-09-18 03:08 UTC, Wei-Ren Chen
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Wei-Ren Chen 2012-09-13 03:16:40 UTC
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.
Comment 1 Wei-Ren Chen 2012-09-13 03:17:59 UTC
Created attachment 323634 [details]
error message
Comment 2 SpanKY gentoo-dev 2012-09-13 07:26:35 UTC
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.
Comment 3 Wei-Ren Chen 2012-09-16 06:39:38 UTC
Created attachment 323970 [details]
output of `emerge --info`
Comment 4 Wei-Ren Chen 2012-09-16 07:42:13 UTC
Created attachment 323972 [details]
output of `gcc -E`
Comment 5 Wei-Ren Chen 2012-09-16 07:43:23 UTC
(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.
Comment 6 Wei-Ren Chen 2012-09-16 07:44:17 UTC
(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.
Comment 7 octoploid 2012-09-17 10:41:55 UTC
The attachment "output of `gcc -E`" only contains garbage.
Comment 8 Wei-Ren Chen 2012-09-18 03:08:58 UTC
Created attachment 324150 [details]
output of `gcc -E`

Previous one contains garbage.
Comment 9 Wei-Ren Chen 2012-09-18 03:11:01 UTC
(In reply to comment #7)
> The attachment "output of `gcc -E`" only contains garbage.

  Sorry, I have resend the tarball, please check. Thanks.
Comment 10 octoploid 2012-09-18 04:38:07 UTC
(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".
Comment 11 Wei-Ren Chen 2012-09-18 07:01:53 UTC
(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.
Comment 12 octoploid 2012-09-18 08:34:40 UTC
I cannot reproduce this ICE with vanilla 4.6.3 or 4.7 or 4.8.
Comment 13 Wei-Ren Chen 2012-10-02 09:35:40 UTC
(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?