[Bug 807156] Re: GCC (g++):internal compiler error: in extract_insn, at recog.c:2104
** Changed in: gcc Status: New => Invalid -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/807156 Title: GCC (g++):internal compiler error: in extract_insn, at recog.c:2104 To manage notifications about this bug go to: https://bugs.launchpad.net/gcc/+bug/807156/+subscriptions -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
[Bug 807156] Re: GCC (g++):internal compiler error: in extract_insn, at recog.c:2104
Will not fix for older releases. Does not occur on x86 linaro 4.8 or 4.9 ** Changed in: gcc-linaro Status: Triaged => Won't Fix ** Changed in: gcc-linaro Assignee: (unassigned) => Michael Collison (michael-collison) -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/807156 Title: GCC (g++):internal compiler error: in extract_insn, at recog.c:2104 To manage notifications about this bug go to: https://bugs.launchpad.net/gcc/+bug/807156/+subscriptions -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
[Bug 807156] Re: GCC (g++):internal compiler error: in extract_insn, at recog.c:2104
** Changed in: gcc-4.5 (Ubuntu) Importance: Undecided => Medium ** Changed in: gcc-4.5 (Ubuntu) Status: Incomplete => Triaged -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/807156 Title: GCC (g++):internal compiler error: in extract_insn, at recog.c:2104 To manage notifications about this bug go to: https://bugs.launchpad.net/gcc/+bug/807156/+subscriptions -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
[Bug 807156] Re: GCC (g++):internal compiler error: in extract_insn, at recog.c:2104
Launchpad has imported 11 comments from the remote bug at http://gcc.gnu.org/bugzilla/show_bug.cgi?id=49670. If you reply to an imported comment from within Launchpad, your comment will be sent to the remote bug automatically. Read more about Launchpad's inter-bugtracker facilities at https://help.launchpad.net/InterBugTracking. On 2011-07-07T18:26:27+00:00 Jeffrey Walton wrote: Sorry if this was previously reported. Searching returned an error stating I used an invalid file extension. I was attempting to compile the latest Crypto++ (svn checkout https://cryptopp.svn.sourceforge.net/svnroot/cryptopp/trunk/c5 cryptopp) on a Dell GX280 (32 bit Pentium 4). Here's the internal compiler error: $ export PREFIX=/usr/local; make g++ -DNDEBUG -g -O2 -m32 -mtune=pentium4 -march=native -pipe -c 3way.cpp g++ -DNDEBUG -g -O2 -m32 -mtune=pentium4 -march=native -pipe -c adler32.cpp g++ -DNDEBUG -g -O2 -m32 -mtune=pentium4 -march=native -pipe -c algebra.cpp g++ -DNDEBUG -g -O2 -m32 -mtune=pentium4 -march=native -pipe -c algparam.cpp g++ -DNDEBUG -g -O2 -m32 -mtune=pentium4 -march=native -pipe -c arc4.cpp g++ -DNDEBUG -g -O2 -m32 -mtune=pentium4 -march=native -pipe -c asn.cpp asn.cpp: In member function ‘void CryptoPP::OID::DEREncode(CryptoPP::BufferedTransformation&) const’: asn.cpp:254:1: error: unrecognizable insn: (insn 194 178 195 2 asn.cpp:248 (set (reg:SI 2 cx) (mem:QI (plus:SI (reg/f:SI 1 dx [orig:61 D.44160 ] [61]) (const_int 4 [0x4])) [16 S1 A32])) -1 (nil)) asn.cpp:254:1: internal compiler error: in extract_insn, at recog.c:2104 Please submit a full bug report, with preprocessed source if appropriate. See for instructions. make: *** [asn.o] Error 1 === Additional information I modified Crypto++'s GNUMakefile a bit: OLD: CXXFLAGS = -DNDEBUG -g O2 MOD: CXXFLAGS = -DNDEBUG -g -O2 -m32 -mtune=pentium4 When I invoked `make` I used the following: $ export PREFIX=/usr/local; make $ g++ --version g++ (Ubuntu/Linaro 4.5.2-8ubuntu4) 4.5.2 Copyright (C) 2010 Free Software Foundation, Inc. This is free software; see the source for copying conditions. There is NO warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. $ uname -a Linux bruno 2.6.38-8-generic #42-Ubuntu SMP Mon Apr 11 03:31:50 UTC 2011 i686 i686 i386 GNU/Linux jeffrey@bruno:~/Desktop/order-status$ Reply at: https://bugs.launchpad.net/gcc/+bug/807156/comments/0 On 2011-07-08T00:45:17+00:00 Jeffrey Walton wrote: Using the stock Crypto++ makefile did not help: g++ -DNDEBUG -g -O2 -mtune=native -pipe -c 3way.cpp g++ -DNDEBUG -g -O2 -mtune=native -pipe -c adler32.cpp g++ -DNDEBUG -g -O2 -mtune=native -pipe -c algebra.cpp g++ -DNDEBUG -g -O2 -mtune=native -pipe -c algparam.cpp g++ -DNDEBUG -g -O2 -mtune=native -pipe -c arc4.cpp g++ -DNDEBUG -g -O2 -mtune=native -pipe -c asn.cpp asn.cpp: In member function ‘void CryptoPP::OID::DEREncode(CryptoPP::BufferedTransformation&) const’: asn.cpp:254:1: error: unrecognizable insn: (insn 194 178 195 2 asn.cpp:248 (set (reg:SI 2 cx) (mem:QI (plus:SI (reg/f:SI 1 dx [orig:61 D.44160 ] [61]) (const_int 4 [0x4])) [16 S1 A32])) -1 (nil)) asn.cpp:254:1: internal compiler error: in extract_insn, at recog.c:2104 Please submit a full bug report, with preprocessed source if appropriate. See for instructions. make: *** [asn.o] Error 1 Reply at: https://bugs.launchpad.net/gcc/+bug/807156/comments/2 On 2011-07-08T00:47:53+00:00 Jeffrey Walton wrote: For completeness, here's the function (http://www.cryptopp.com/docs/ref/asn_8cpp_source.html): 00244 void OID::DEREncode(BufferedTransformation &bt) const 00245 { 00246 assert(m_values.size() >= 2); 00247 ByteQueue temp; 00248 temp.Put(byte(m_values[0] * 40 + m_values[1])); 00249 for (size_t i=2; ihttps://bugs.launchpad.net/gcc/+bug/807156/comments/3 On 2011-07-08T07:54:33+00:00 Ubizjak wrote: Please add all information and especially preprocessed source, as explained in http://gcc.gnu.org/bugs/#detailed Reply at: https://bugs.launchpad.net/gcc/+bug/807156/comments/4 On 2011-07-08T08:07:43+00:00 Jeffrey Walton wrote: (In reply to comment #0) > Sorry if this was previously reported. Searching returned an error stating I > used an invalid file extension. > > I was attempting to compile the latest Crypto++ (svn checkout > https://cryptopp.svn.sourceforge.net/svnroot/cryptopp/trunk/c5 cryptopp) on a > Dell GX280 (32 bit Pentium 4). Here's the internal compiler error: > > $ export PREFIX=/usr/local; make > g++ -DNDEBUG -g -O2 -m32 -mtune=pen
[Bug 807156] Re: GCC (g++):internal compiler error: in extract_insn, at recog.c:2104
Thank you for the bug report. I've confirmed this with gcc- linaro-4.5-2011.06-0 on x86_64 in 32 bit mode: michaelh@crucis:~/linaro/bugs$ ~/linaro/toolchains/gcc-linaro-4.5-2011.06-0-x86_64-maverick-cbuild130-crucis-x86_64r1/bin/g++ -c -O2 -m32 -g -march=prescott -mtune=prescott asn.ii asn.cpp: In member function ‘void CryptoPP::OID::DEREncode(CryptoPP::BufferedTransformation&) const’: asn.cpp:254:1: error: unrecognizable insn: (insn 178 162 179 2 asn.cpp:248 (set (reg:SI 2 cx) (mem:QI (plus:SI (reg/f:SI 1 dx [orig:60 D.44160 ] [60]) (const_int 4 [0x4])) [16 S1 A32])) -1 (nil)) asn.cpp:254:1: internal compiler error: in extract_insn, at recog.c:2110 The work around is to compile without -march=prescot. The fault was introduced in gcc-linaro-4.5-2011.03-0. It does not exist in gcc- linaro-4.6-2011.06-0, gcc 4.5, gcc 4.6, or gcc trunk r176133. I've set it to medium priority as it is a ftbfs and has a work around. ** Also affects: gcc-linaro Importance: Undecided Status: New ** Changed in: gcc-linaro Status: New => Triaged ** Changed in: gcc-linaro Importance: Undecided => Medium ** Also affects: gcc-linaro/4.5 Importance: Medium Status: Triaged -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/807156 Title: GCC (g++):internal compiler error: in extract_insn, at recog.c:2104 To manage notifications about this bug go to: https://bugs.launchpad.net/gcc/+bug/807156/+subscriptions -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
[Bug 807156] Re: GCC (g++):internal compiler error: in extract_insn, at recog.c:2104
> please recheck with gcc-4.6 (for example in a oneiric chroot) I just tried using Fedora 15, which offers GCC 4.6 - OK. Jeff [jeffrey@studio cryptopp]$ gcc --version gcc (GCC) 4.6.0 20110530 (Red Hat 4.6.0-9) Copyright (C) 2011 Free Software Foundation, Inc. This is free software; see the source for copying conditions. There is NO warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. [jeffrey@studio cryptopp]$ make g++ -DNDEBUG -g -O2 -march=native -pipe -c cryptlib_bds.cpp g++ -DNDEBUG -g -O2 -march=native -pipe -c hmac.cpp g++ -DNDEBUG -g -O2 -march=native -pipe -c hex.cpp g++ -DNDEBUG -g -O2 -march=native -pipe -c esign.cpp ... g++ -DNDEBUG -g -O2 -march=native -pipe -c asn.cpp g++ -DNDEBUG -g -O2 -march=native -pipe -c rw.cpp g++ -DNDEBUG -g -O2 -march=native -pipe -c cast.cpp g++ -DNDEBUG -g -O2 -march=native -pipe -c tiger.cpp -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/807156 Title: GCC (g++):internal compiler error: in extract_insn, at recog.c:2104 To manage notifications about this bug go to: https://bugs.launchpad.net/gcc/+bug/807156/+subscriptions -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
[Bug 807156] Re: GCC (g++):internal compiler error: in extract_insn, at recog.c:2104
Also see https://bugs.launchpad.net/gcc-linaro/+bug/731665 -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/807156 Title: GCC (g++):internal compiler error: in extract_insn, at recog.c:2104 To manage notifications about this bug go to: https://bugs.launchpad.net/gcc/+bug/807156/+subscriptions -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
[Bug 807156] Re: GCC (g++):internal compiler error: in extract_insn, at recog.c:2104
> upstream did ask you to attach the preprocessed source. please do so. Done. Thanks for taking the time. -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/807156 Title: GCC (g++):internal compiler error: in extract_insn, at recog.c:2104 To manage notifications about this bug go to: https://bugs.launchpad.net/gcc/+bug/807156/+subscriptions -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
[Bug 807156] Re: GCC (g++):internal compiler error: in extract_insn, at recog.c:2104
upstream did ask you to attach the preprocessed source. please do so. please recheck with gcc-4.6 (for example in a oneiric chroot) ** Package changed: gcc-defaults (Ubuntu) => gcc-4.5 (Ubuntu) ** Changed in: gcc-4.5 (Ubuntu) Status: New => Incomplete ** Bug watch added: GCC Bugzilla #49670 http://gcc.gnu.org/bugzilla/show_bug.cgi?id=49670 ** Also affects: gcc via http://gcc.gnu.org/bugzilla/show_bug.cgi?id=49670 Importance: Unknown Status: Unknown -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/807156 Title: GCC (g++):internal compiler error: in extract_insn, at recog.c:2104 To manage notifications about this bug go to: https://bugs.launchpad.net/gcc/+bug/807156/+subscriptions -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
[Bug 807156] Re: GCC (g++):internal compiler error: in extract_insn, at recog.c:2104
It looks like removing `-mtune=native` fixed it: $cat GNUMakefile ... ifneq ($(GCC42_OR_LATER),0) ifeq ($(UNAME),Darwin) CXXFLAGS += -arch x86_64 -arch i386 else # CXXFLAGS += -march=native endif endif ... $ make g++ -DNDEBUG -g -O2 -pipe -c 3way.cpp g++ -DNDEBUG -g -O2 -pipe -c adler32.cpp g++ -DNDEBUG -g -O2 -pipe -c algebra.cpp g++ -DNDEBUG -g -O2 -pipe -c algparam.cpp g++ -DNDEBUG -g -O2 -pipe -c arc4.cpp g++ -DNDEBUG -g -O2 -pipe -c asn.cpp g++ -DNDEBUG -g -O2 -pipe -c authenc.cpp g++ -DNDEBUG -g -O2 -pipe -c base32.cpp g++ -DNDEBUG -g -O2 -pipe -c base64.cpp ... -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/807156 Title: GCC (g++):internal compiler error: in extract_insn, at recog.c:2104 To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/gcc-defaults/+bug/807156/+subscriptions -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs