On May 4, 8:17 am, 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. -m64 and -mtune=core2 should work out of the box (you might need to tweak CXX options in GNUMakefile). I don't recall any problems in the past on Snow Leopard, but I was not using GCC 4.6. Also see http://gcc.gnu.org/onlinedocs/gcc/i386-and-x86_002d64-Options.html. > > Any advise would highly appreciated. Have you had a look at http://www.cryptopp.com/wiki/Linux or http://www.cryptopp.com/wiki/IOS? If you are building from the command line (which I suspect), you are probably closer to Linux than iOS.
Jeff -- 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.
