On Thu, Jul 7, 2011 at 8:20 PM, Jeffrey Walton <noloader@xxxxxxxxx> wrote: > Hi All, > > I'm attempting to compile the latest Crypto++ [1] on Ubuntu 11.04 (GCC > 4.5.2), and I received the following panic. > > What should I attempt to tweak so that different `insn instructions` > (?) are generated in an attempt to side step the issue? > `-mtune=native` did not help. > > Jeff > > $ export PREFIX=/usr/local; make > g++ -DNDEBUG -g -O2 -m32 -mtune=pentium4 -pipe -c 3way.cpp > g++ -DNDEBUG -g -O2 -m32 -mtune=pentium4 -pipe -c adler32.cpp > g++ -DNDEBUG -g -O2 -m32 -mtune=pentium4 -pipe -c algebra.cpp > g++ -DNDEBUG -g -O2 -m32 -mtune=pentium4 -pipe -c algparam.cpp > g++ -DNDEBUG -g -O2 -m32 -mtune=pentium4 -pipe -c arc4.cpp > g++ -DNDEBUG -g -O2 -m32 -mtune=pentium4 -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 <file:///usr/share/doc/gcc-4.5/README.Bugs> for instructions. > make: *** [asn.o] Error 1 > Removing `-mtune=native` from the makefile's CXXFLAGS seems to have fixed the problem. For others who might come across this thread: http://gcc.gnu.org/bugzilla/show_bug.cgi?id=49670. Jeff