Please note that I can compile cryptopp using gcc 4.2.1. However, as I mentioned earlier I need it to be compiled with gcc4.4+
Cheers, Moadeli On May 5, 2:31 pm, MMoadeli <[email protected]> wrote: > Hi Jeffery, > > Many thanks for the reply. > With your advised compiler directives I got similar errors. I tried > both gcc-4.4 and gcc-4.6. > Actually, the errors are the result of compiling gcm.cpp. Following > are the errors generated as the result of using different compiler > directives. > > --------------------------- > 1- Using advised directives > > MyMacOSX>c++ -m64 -mtune=core2 -g3 -ggdb -DDEBUG -O0 - > DCRYPTOPP_DISABLE_ASM -pipe -c gcm.cpp > > cpu.h:53:no such instruction: `pclmulqdq $16, -368(%rbp),%xmm0' > cpu.h:53:no such instruction: `pclmulqdq $0, -224(%rbp),%xmm0' > cpu.h:53:no such instruction: `pclmulqdq $0, -208(%rbp),%xmm0' > cpu.h:53:no such instruction: `pclmulqdq $16, -160(%rbp),%xmm0' > cpu.h:53:no such instruction: `pclmulqdq $1, -112(%rbp),%xmm0' > cpu.h:53:no such instruction: `pclmulqdq $17, -32(%rbp),%xmm0' > cpu.h:53:no such instruction: `pclmulqdq $0, -1344(%rbp),%xmm0' > cpu.h:53:no such instruction: `pclmulqdq $1, -1264(%rbp),%xmm0' > cpu.h:53:no such instruction: `pclmulqdq $0, -1152(%rbp),%xmm0' > cpu.h:53:no such instruction: `pclmulqdq $1, -1024(%rbp),%xmm0' > cpu.h:53:no such instruction: `pclmulqdq $1, -944(%rbp),%xmm0' > cpu.h:53:no such instruction: `pclmulqdq $1, -832(%rbp),%xmm0' > cpu.h:53:no such instruction: `pclmulqdq $16, -672(%rbp),%xmm0' > cpu.h:53:no such instruction: `pclmulqdq $17, -592(%rbp),%xmm0' > cpu.h:53:no such instruction: `pclmulqdq $16, -480(%rbp),%xmm0' > cpu.h:53:no such instruction: `pclmulqdq $16, -352(%rbp),%xmm0' > cpu.h:53:no such instruction: `pclmulqdq $16, -272(%rbp),%xmm0' > cpu.h:53:no such instruction: `pclmulqdq $16, -160(%rbp),%xmm0' > > -------------------------- > 2- Other variations, -pipe doesn't affect > > MyMacOSX> c++ -m64 -mtune=core2 -g3 -ggdb -DDEBUG -O0 -mpclmul -maes - > DCRYPTOPP_DISABLE_ASM -c gcm.cpp > :3422:no such instruction: `pclmulqdq $16, %xmm1,%xmm0' > :3472:no such instruction: `pclmulqdq $0, %xmm1,%xmm0' > :3581:no such instruction: `pclmulqdq $0, %xmm1,%xmm0' > :3588:no such instruction: `pclmulqdq $16, %xmm1,%xmm0' > :3593:no such instruction: `pclmulqdq $1, %xmm2,%xmm1' > :3611:no such instruction: `pclmulqdq $17, %xmm1,%xmm0' > :52:no such instruction: `pclmulqdq $0, %xmm1,%xmm0' > :69:no such instruction: `pclmulqdq $1, %xmm1,%xmm0' > :102:no such instruction: `pclmulqdq $0, %xmm1,%xmm0' > :38:no such instruction: `pclmulqdq $1, %xmm1,%xmm0' > :55:no such instruction: `pclmulqdq $1, %xmm1,%xmm0' > :86:no such instruction: `pclmulqdq $1, %xmm1,%xmm0' > :52:no such instruction: `pclmulqdq $16, %xmm1,%xmm0' > :69:no such instruction: `pclmulqdq $17, %xmm1,%xmm0' > :102:no such instruction: `pclmulqdq $16, %xmm1,%xmm0' > :38:no such instruction: `pclmulqdq $16, %xmm1,%xmm0' > :55:no such instruction: `pclmulqdq $16, %xmm1,%xmm0' > :86:no such instruction: `pclmulqdq $16, %xmm1,%xmm0' > --------------------------------------------------------------------------- > ----------- > > Kind regards, > Moadeli > > On May 4, 1:17 pm, MMoadeli <[email protected]> wrote: > > > > > > > > > Hi all, > > > It may sound an easy question for you, but took me over a week now, > > and no success. > > I am using a Mac running Snow Leopard OS X, on an Intel Core 2 Duo. I > > recently built gcc 4.6 on my machine as I need some features including > > c++0x ones. > > when I try to compile the cryptopp I get the following errors. > > --------- > > cpu.h:53:no such instruction: `pclmulqdq $16, -64(%rbp),%xmm0' > > cpu.h:53:no such instruction: `pclmulqdq $0, -192(%rbp),%xmm0' > > cpu.h:53:no such instruction: `pclmulqdq $0, -80(%rbp),%xmm0' > > cpu.h:53:no such instruction: `pclmulqdq $16, -112(%rbp),%xmm0' > > cpu.h:53:no such instruction: `pclmulqdq $1, -144(%rbp),%xmm1' > > cpu.h:53:no such instruction: `pclmulqdq $17, -208(%rbp),%xmm0' > > cpu.h:53:no such instruction: `pclmulqdq $0, -592(%rbp),%xmm0' > > cpu.h:53:no such instruction: `pclmulqdq $1, -656(%rbp),%xmm0' > > cpu.h:53:no such instruction: `pclmulqdq $0, -752(%rbp),%xmm0' > > cpu.h:53:no such instruction: `pclmulqdq $1, -864(%rbp),%xmm0' > > cpu.h:53:no such instruction: `pclmulqdq $1, -928(%rbp),%xmm0' > > cpu.h:53:no such instruction: `pclmulqdq $1, -1024(%rbp),%xmm0' > > cpu.h:53:no such instruction: `pclmulqdq $16, -1168(%rbp),%xmm0' > > cpu.h:53:no such instruction: `pclmulqdq $17, -1232(%rbp),%xmm0' > > cpu.h:53:no such instruction: `pclmulqdq $16, -1328(%rbp),%xmm0' > > cpu.h:53:no such instruction: `pclmulqdq $16, -1440(%rbp),%xmm0' > > cpu.h:53:no such instruction: `pclmulqdq $16, -1504(%rbp),%xmm0' > > cpu.h:53:no such instruction: `pclmulqdq $16, -1600(%rbp),%xmm0' > > ------- > > I tried a few compiler directives including -m32, but all fail in > > linking or compiling. > > > Any advise would highly appreciated. > > Moadeli -- You received this message because you are subscribed to the "Crypto++ Users" Google Group. To unsubscribe, send an email to [email protected]. More information about Crypto++ and this group is available at http://www.cryptopp.com.
