macbook_pro:cryptopp tim$ make static
c++ -DNDEBUG -g -O2 -arch x86_64 -arch i386 -DCRYPTOPP_DISABLE_ASM -pipe -c 3way.cpp
In file included from /opt/local/include/gcc48/c++/bits/stl_algo.h:59:0,
from /opt/local/include/gcc48/c++/algorithm:62,
from stdcpp.h:18,
from cryptlib.h:83,
from seckey.h:8,
from 3way.h:7,
from 3way.cpp:5:
/opt/local/include/gcc48/c++/cstdlib:178:10: error: expected unqualified-id before '__int128'
inline __int128
^
make: *** [3way.o] Error 1
Hi Jeff,
Many thanks for your suggestion. The closest match I could find in my GNUmakefile happens at line 38 and was:
ifneq ($(GCC42_OR_LATER),0)
ifeq ($(UNAME),Darwin)
CXXFLAGS += -arch x86_64 -arch i386
else
CXXFLAGS += -march=native
endif
endif
Replacing this with your suggested code then performing a make clean before attempting a build yields:
macbook_pro:cryptopp tim$ make static test
c++ -DNDEBUG -g -O2 -march=native -DCRYPTOPP_DISABLE_ASM -pipe -c 3way.cpp
:2565:no such instruction: `vzeroupper'
:2675:no such instruction: `vzeroupper'
:2694:no such instruction: `vzeroupper'
:517:no such instruction: `vzeroupper'
:630:no such instruction: `vzeroupper'
:772:no such instruction: `vzeroupper'
:793:no such instruction: `vzeroupper'
:811:no such instruction: `vzeroupper'
:949:no such instruction: `vzeroupper'
:970:no such instruction: `vzeroupper'
:988:no such instruction: `vzeroupper'
:1372:no such instruction: `vzeroupper'
:1403:no such instruction: `vzeroupper'
:1845:no such instruction: `vzeroupper'
:1876:no such instruction: `vzeroupper'
:1927:no such instruction: `vzeroupper'
:1935:no such instruction: `vzeroupper'
:1952:no such instruction: `vzeroupper'
:1960:no such instruction: `vzeroupper'
:1977:no such instruction: `vzeroupper'
:2552:no such instruction: `vzeroupper'
:2570:no such instruction: `vzeroupper'
make: *** [3way.o] Error 1
I assume that this isn’t what you get on your system and I’m curious about the difference in the BNUmakefile. Do you have any more suggestions, please?
Best wishes.
Tim Burgess--
--
You received this message because you are subscribed to the "Crypto++ Users" Google Group.
To unsubscribe, send an email to cryptopp-user...@googlegroups.com.
More information about Crypto++ and this group is available at http://www.cryptopp.com.
---
You received this message because you are subscribed to the Google Groups "Crypto++ Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to cryptopp-user...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.
My Mac is about 2.5 years old and is a quad core Intel. Unfortunately, this change doesn't seem to change the build output - I'm still getting unknown instruction messages.
macbook_pro:~ tim$ c++ --version
c++ (MacPorts gcc48 4.8.2_0) 4.8.2
Copyright (C) 2013 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.
Unfortunately I'm forced to use GCC as I'm using other libraries in my actual XCode 4.6 application project that still have some issues with clang. In fact my overall project seems to be plagued by version issues as I have one module that will only build using Apple's provided GCC 4.2 variant, as its written using Objective-C++ and GCC 4.8's Objective-C++ implementation doesn't support some of Apple's methods. The rest of my modules require GCC 4.8 as Apple's 4.2 hits a documented issue when using Boost shared pointers to an object containing variants. Anyway, that background isn't really relevant here. My C++ version output is:
macbook_pro:cryptopp tim$ make VERBOSE=1
--
--
--
You received this message because you are subscribed to the "Crypto++ Users" Google Group.
To unsubscribe, send an email to cryptopp-user...@googlegroups.com.
More information about Crypto++ and this group is available at http://www.cryptopp.com.
---
You received this message because you are subscribed to the Google Groups "Crypto++ Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to cryptopp-user...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.
macbook_pro:cryptopp tim$ make static test
g++ -DNDEBUG -g -O2 -ansi -fPIC -ffunction-sections -fdata-sections -maes -mpclmul -mtune=core-avx2 -arch x86_64 -DCRYPTOPP_DISABLE_ASM -c 3way.cpp
g++ -DNDEBUG -g -O2 -ansi -fPIC -ffunction-sections -fdata-sections -maes -mpclmul -mtune=core-avx2 -arch x86_64 -DCRYPTOPP_DISABLE_ASM -c adler32.cpp
g++ -DNDEBUG -g -O2 -ansi -fPIC -ffunction-sections -fdata-sections -maes -mpclmul -mtune=core-avx2 -arch x86_64 -DCRYPTOPP_DISABLE_ASM -c algebra.cpp
g++ -DNDEBUG -g -O2 -ansi -fPIC -ffunction-sections -fdata-sections -maes -mpclmul -mtune=core-avx2 -arch x86_64 -DCRYPTOPP_DISABLE_ASM -c algparam.cpp
g++ -DNDEBUG -g -O2 -ansi -fPIC -ffunction-sections -fdata-sections -maes -mpclmul -mtune=core-avx2 -arch x86_64 -DCRYPTOPP_DISABLE_ASM -c arc4.cpp
g++ -DNDEBUG -g -O2 -ansi -fPIC -ffunction-sections -fdata-sections -maes -mpclmul -mtune=core-avx2 -arch x86_64 -DCRYPTOPP_DISABLE_ASM -c asn.cpp
g++ -DNDEBUG -g -O2 -ansi -fPIC -ffunction-sections -fdata-sections -maes -mpclmul -mtune=core-avx2 -arch x86_64 -DCRYPTOPP_DISABLE_ASM -c authenc.cpp
g++ -DNDEBUG -g -O2 -ansi -fPIC -ffunction-sections -fdata-sections -maes -mpclmul -mtune=core-avx2 -arch x86_64 -DCRYPTOPP_DISABLE_ASM -c base32.cpp
g++ -DNDEBUG -g -O2 -ansi -fPIC -ffunction-sections -fdata-sections -maes -mpclmul -mtune=core-avx2 -arch x86_64 -DCRYPTOPP_DISABLE_ASM -c base64.cpp
g++ -DNDEBUG -g -O2 -ansi -fPIC -ffunction-sections -fdata-sections -maes -mpclmul -mtune=core-avx2 -arch x86_64 -DCRYPTOPP_DISABLE_ASM -c basecode.cpp
g++ -DNDEBUG -g -O2 -ansi -fPIC -ffunction-sections -fdata-sections -maes -mpclmul -mtune=core-avx2 -arch x86_64 -DCRYPTOPP_DISABLE_ASM -c bfinit.cpp
g++ -DNDEBUG -g -O2 -ansi -fPIC -ffunction-sections -fdata-sections -maes -mpclmul -mtune=core-avx2 -arch x86_64 -DCRYPTOPP_DISABLE_ASM -c blowfish.cpp
g++ -DNDEBUG -g -O2 -ansi -fPIC -ffunction-sections -fdata-sections -maes -mpclmul -mtune=core-avx2 -arch x86_64 -DCRYPTOPP_DISABLE_ASM -c blumshub.cpp
g++ -DNDEBUG -g -O2 -ansi -fPIC -ffunction-sections -fdata-sections -maes -mpclmul -mtune=core-avx2 -arch x86_64 -DCRYPTOPP_DISABLE_ASM -c camellia.cpp
g++ -DNDEBUG -g -O2 -ansi -fPIC -ffunction-sections -fdata-sections -maes -mpclmul -mtune=core-avx2 -arch x86_64 -DCRYPTOPP_DISABLE_ASM -c cast.cpp
g++ -DNDEBUG -g -O2 -ansi -fPIC -ffunction-sections -fdata-sections -maes -mpclmul -mtune=core-avx2 -arch x86_64 -DCRYPTOPP_DISABLE_ASM -c casts.cpp
g++ -DNDEBUG -g -O2 -ansi -fPIC -ffunction-sections -fdata-sections -maes -mpclmul -mtune=core-avx2 -arch x86_64 -DCRYPTOPP_DISABLE_ASM -c cbcmac.cpp
g++ -DNDEBUG -g -O2 -ansi -fPIC -ffunction-sections -fdata-sections -maes -mpclmul -mtune=core-avx2 -arch x86_64 -DCRYPTOPP_DISABLE_ASM -c ccm.cpp
g++ -DNDEBUG -g -O2 -ansi -fPIC -ffunction-sections -fdata-sections -maes -mpclmul -mtune=core-avx2 -arch x86_64 -DCRYPTOPP_DISABLE_ASM -c channels.cpp
g++ -DNDEBUG -g -O2 -ansi -fPIC -ffunction-sections -fdata-sections -maes -mpclmul -mtune=core-avx2 -arch x86_64 -DCRYPTOPP_DISABLE_ASM -c cmac.cpp
g++ -DNDEBUG -g -O2 -ansi -fPIC -ffunction-sections -fdata-sections -maes -mpclmul -mtune=core-avx2 -arch x86_64 -DCRYPTOPP_DISABLE_ASM -c cpu.cpp
g++ -DNDEBUG -g -O2 -ansi -fPIC -ffunction-sections -fdata-sections -maes -mpclmul -mtune=core-avx2 -arch x86_64 -DCRYPTOPP_DISABLE_ASM -c crc.cpp
g++ -DNDEBUG -g -O2 -ansi -fPIC -ffunction-sections -fdata-sections -maes -mpclmul -mtune=core-avx2 -arch x86_64 -DCRYPTOPP_DISABLE_ASM -c cryptlib.cpp
g++ -DNDEBUG -g -O2 -ansi -fPIC -ffunction-sections -fdata-sections -maes -mpclmul -mtune=core-avx2 -arch x86_64 -DCRYPTOPP_DISABLE_ASM -c cryptlib_bds.cpp
g++ -DNDEBUG -g -O2 -ansi -fPIC -ffunction-sections -fdata-sections -maes -mpclmul -mtune=core-avx2 -arch x86_64 -DCRYPTOPP_DISABLE_ASM -c default.cpp
g++ -DNDEBUG -g -O2 -ansi -fPIC -ffunction-sections -fdata-sections -maes -mpclmul -mtune=core-avx2 -arch x86_64 -DCRYPTOPP_DISABLE_ASM -c des.cpp
g++ -DNDEBUG -g -O2 -ansi -fPIC -ffunction-sections -fdata-sections -maes -mpclmul -mtune=core-avx2 -arch x86_64 -DCRYPTOPP_DISABLE_ASM -c dessp.cpp
g++ -DNDEBUG -g -O2 -ansi -fPIC -ffunction-sections -fdata-sections -maes -mpclmul -mtune=core-avx2 -arch x86_64 -DCRYPTOPP_DISABLE_ASM -c dh.cpp
g++ -DNDEBUG -g -O2 -ansi -fPIC -ffunction-sections -fdata-sections -maes -mpclmul -mtune=core-avx2 -arch x86_64 -DCRYPTOPP_DISABLE_ASM -c dh2.cpp
g++ -DNDEBUG -g -O2 -ansi -fPIC -ffunction-sections -fdata-sections -maes -mpclmul -mtune=core-avx2 -arch x86_64 -DCRYPTOPP_DISABLE_ASM -c dll.cpp
g++ -DNDEBUG -g -O2 -ansi -fPIC -ffunction-sections -fdata-sections -maes -mpclmul -mtune=core-avx2 -arch x86_64 -DCRYPTOPP_DISABLE_ASM -c dsa.cpp
g++ -DNDEBUG -g -O2 -ansi -fPIC -ffunction-sections -fdata-sections -maes -mpclmul -mtune=core-avx2 -arch x86_64 -DCRYPTOPP_DISABLE_ASM -c eax.cpp
g++ -DNDEBUG -g -O2 -ansi -fPIC -ffunction-sections -fdata-sections -maes -mpclmul -mtune=core-avx2 -arch x86_64 -DCRYPTOPP_DISABLE_ASM -c ec2n.cpp
g++ -DNDEBUG -g -O2 -ansi -fPIC -ffunction-sections -fdata-sections -maes -mpclmul -mtune=core-avx2 -arch x86_64 -DCRYPTOPP_DISABLE_ASM -c eccrypto.cpp
g++ -DNDEBUG -g -O2 -ansi -fPIC -ffunction-sections -fdata-sections -maes -mpclmul -mtune=core-avx2 -arch x86_64 -DCRYPTOPP_DISABLE_ASM -c ecp.cpp
g++ -DNDEBUG -g -O2 -ansi -fPIC -ffunction-sections -fdata-sections -maes -mpclmul -mtune=core-avx2 -arch x86_64 -DCRYPTOPP_DISABLE_ASM -c elgamal.cpp
g++ -DNDEBUG -g -O2 -ansi -fPIC -ffunction-sections -fdata-sections -maes -mpclmul -mtune=core-avx2 -arch x86_64 -DCRYPTOPP_DISABLE_ASM -c emsa2.cpp
g++ -DNDEBUG -g -O2 -ansi -fPIC -ffunction-sections -fdata-sections -maes -mpclmul -mtune=core-avx2 -arch x86_64 -DCRYPTOPP_DISABLE_ASM -c eprecomp.cpp
g++ -DNDEBUG -g -O2 -ansi -fPIC -ffunction-sections -fdata-sections -maes -mpclmul -mtune=core-avx2 -arch x86_64 -DCRYPTOPP_DISABLE_ASM -c esign.cpp
g++ -DNDEBUG -g -O2 -ansi -fPIC -ffunction-sections -fdata-sections -maes -mpclmul -mtune=core-avx2 -arch x86_64 -DCRYPTOPP_DISABLE_ASM -c files.cpp
g++ -DNDEBUG -g -O2 -ansi -fPIC -ffunction-sections -fdata-sections -maes -mpclmul -mtune=core-avx2 -arch x86_64 -DCRYPTOPP_DISABLE_ASM -c filters.cpp
g++ -DNDEBUG -g -O2 -ansi -fPIC -ffunction-sections -fdata-sections -maes -mpclmul -mtune=core-avx2 -arch x86_64 -DCRYPTOPP_DISABLE_ASM -c fips140.cpp
g++ -DNDEBUG -g -O2 -ansi -fPIC -ffunction-sections -fdata-sections -maes -mpclmul -mtune=core-avx2 -arch x86_64 -DCRYPTOPP_DISABLE_ASM -c fipstest.cpp
g++ -DNDEBUG -g -O2 -ansi -fPIC -ffunction-sections -fdata-sections -maes -mpclmul -mtune=core-avx2 -arch x86_64 -DCRYPTOPP_DISABLE_ASM -c gcm.cpp
:50:no such instruction: `pclmulqdq $1, %xmm5,%xmm9'
:64:no such instruction: `pclmulqdq $1, %xmm4,%xmm8'
:69:no such instruction: `pclmulqdq $1, %xmm10,%xmm2'
:42:no such instruction: `pclmulqdq $16, %xmm5,%xmm7'
:48:no such instruction: `pclmulqdq $16, %xmm4,%xmm6'
:66:no such instruction: `pclmulqdq $16, %xmm10,%xmm3'
:52:no such instruction: `pclmulqdq $0, %xmm5,%xmm13'
:58:no such instruction: `pclmulqdq $1, %xmm4,%xmm1'
:89:no such instruction: `pclmulqdq $0, %xmm10,%xmm0'
:162:no such instruction: `pclmulqdq $16, %xmm14,%xmm2'
:195:no such instruction: `pclmulqdq $0, %xmm14,%xmm13'
:53:no such instruction: `pclmulqdq $16, %xmm5,%xmm13'
:59:no such instruction: `pclmulqdq $17, %xmm4,%xmm1'
:91:no such instruction: `pclmulqdq $16, %xmm10,%xmm0'
:63:no such instruction: `pclmulqdq $0, %xmm3,%xmm4'
:95:no such instruction: `pclmulqdq $16, %xmm3,%xmm2'
:102:no such instruction: `pclmulqdq $1, %xmm3,%xmm0'
:144:no such instruction: `pclmulqdq $16, %xmm5,%xmm6'
:169:no such instruction: `pclmulqdq $17, %xmm3,%xmm2'
:187:no such instruction: `pclmulqdq $0, %xmm5,%xmm4'
:298:no such instruction: `pclmulqdq $0, %xmm3,%xmm4'
:313:no such instruction: `pclmulqdq $16, %xmm3,%xmm1'
:319:no such instruction: `pclmulqdq $1, %xmm3,%xmm0'
:350:no such instruction: `pclmulqdq $17, %xmm3,%xmm1'
:367:no such instruction: `pclmulqdq $16, %xmm5,%xmm2'
:404:no such instruction: `pclmulqdq $0, %xmm5,%xmm2'
make: *** [gcm.o] Error 1
Many thanks for this help - I'll also take a look at the O'Reilly book.
--
--
You received this message because you are subscribed to the "Crypto++ Users" Google Group.
To unsubscribe, send an email to cryptopp-user...@googlegroups.com.
More information about Crypto++ and this group is available at http://www.cryptopp.com.
---
You received this message because you are subscribed to the Google Groups "Crypto++ Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to cryptopp-user...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.