GCC (g++):internal compiler error: in extract_insn, at recog.c:2104
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Linaro GCC |
Won't Fix
|
Medium
|
Michael Collison | ||
4.5 |
Triaged
|
Medium
|
Unassigned | ||
gcc |
Invalid
|
Medium
|
|||
gcc-4.5 (Ubuntu) |
Triaged
|
Medium
|
Unassigned |
Bug Description
I was attempting to compile the latest Crypto++ (svn checkout
https:/
Dell GX280 (32 bit Pentium 4). Here's the internal compiler error:
$ make
g++ -DNDEBUG -g -O2 -march=native -pipe -c 3way.cpp
g++ -DNDEBUG -g -O2 -march=native -pipe -c adler32.cpp
g++ -DNDEBUG -g -O2 -march=native -pipe -c algebra.cpp
g++ -DNDEBUG -g -O2 -march=native -pipe -c algparam.cpp
g++ -DNDEBUG -g -O2 -march=native -pipe -c arc4.cpp
g++ -DNDEBUG -g -O2 -march=native -pipe -c asn.cpp
asn.cpp: In member function ‘void
CryptoPP:
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])
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 <file:/
make: *** [asn.o] Error 1
=======
$ 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@
=======
Also reported to GCC at http://
Changed in gcc: | |
importance: | Unknown → Medium |
status: | Unknown → New |
Changed in gcc-4.5 (Ubuntu): | |
importance: | Undecided → Medium |
status: | Incomplete → Triaged |
Changed in gcc: | |
status: | New → Invalid |
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 :OID::DEREncode (CryptoPP: :BufferedTransf ormation& ) const’:
(const_ int 4 [0x4])) [16 S1 A32])) -1 (nil)) //usr/share/ doc/gcc- 4.5/README. Bugs> for instructions.
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:
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])
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 <file:/
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 bruno:~ /Desktop/ order-status$
Linux bruno 2.6.38-8-generic #42-Ubuntu SMP Mon Apr 11 03:31:50 UTC 2011 i686 i686 i386 GNU/Linux
jeffrey@