bash-4.4$ gcc -v
Using built-in specs.
COLLECT_GCC=gcc
COLLECT_LTO_WRAPPER=/opt/freeware/libexec/gcc/powerpc-ibm-aix6.1.0.0/6.2.0/lto-wrapper
Target: powerpc-ibm-aix6.1.0.0
Configured with: ../gcc-6.2.0/configure --prefix=/opt/freeware --mandir=/opt/freeware/man --infodir=/opt/freeware/info --with-local-prefix=/opt/freeware --with-as=/usr/bin/as --with-ld=/usr/bin/ld --enable-languages=c,c++,fortran,objc,obj-c++ --enable-version-specific-runtime-libs --disable-nls --enable-decimal-float=dpd --with-cloog=no --with-ppl=no --disable-libstdcxx-pch --enable-__cxa_atexit --host=powerpc-ibm-aix6.1.0.0
Thread model: aix
gcc version 6.2.0 (GCC)
bash-4.4$
bash-4.4$ CXX=g++ CXXFLAGS="-DNDEBUG -g2 -O3 -DCRYPTOPP_DISABLE_POWER8=1" make
g++ -DNDEBUG -g2 -O3 -DCRYPTOPP_DISABLE_POWER8=1 -fPIC -pthread -pipe -mcpu=power7 -maltivec -c ppc-simd.cpp
ppc-simd.cpp: In function 'bool CryptoPP::CPU_ProbeSHA256()':
ppc-simd.cpp:238:13: error: 'VectorSHA256' was not declared in this scope
x = VectorSHA256<0,0>(x);
^~~~~~~~~~~~
ppc-simd.cpp: In function 'bool CryptoPP::CPU_ProbeSHA512()':
ppc-simd.cpp:282:13: error: 'VectorSHA512' was not declared in this scope
x = VectorSHA512<0,0>(x);
^~~~~~~~~~~~
GNUmakefile:1059: recipe for target 'ppc-simd.o' failed
make: *** [ppc-simd.o] Error 1
bash-4.4$
bob@bobspc ~/s/cryptopp> grep -C 2 ppc-simd ./ppc-simd.cpp
// ppc-simd.cpp - written and placed in the public domain by
// Jeffrey Walton, Uri Blumenthal and Marcel Raad.
//
--
#if defined(CRYPTOPP_ALTIVEC_AVAILABLE)
# include "ppc-simd.h"
#endif
bob@bobspc ~/s/cryptopp>
So I try adding -DCRYPTOPP_ALTIVEC_AVAILABLE=1 so I get the header file
bash-4.4$ CXX=g++ CXXFLAGS="-DNDEBUG -g2 -O3 -DCRYPTOPP_DISABLE_POWER8=1 -DCRYPTOPP_ALTIVEC_AVAILABLE=1" make
g++ -DNDEBUG -g2 -O3 -DCRYPTOPP_DISABLE_POWER8=1 -DCRYPTOPP_ALTIVEC_AVAILABLE=1 -fPIC -pthread -pipe -mcpu=power7 -maltivec -c ppc-simd.cpp
ppc-simd.cpp: In function 'bool CryptoPP::CPU_ProbeSHA256()':
ppc-simd.cpp:238:13: error: 'VectorSHA256' was not declared in this scope
x = VectorSHA256<0,0>(x);
^~~~~~~~~~~~
ppc-simd.cpp: In function 'bool CryptoPP::CPU_ProbeSHA512()':
ppc-simd.cpp:282:13: error: 'VectorSHA512' was not declared in this scope
x = VectorSHA512<0,0>(x);
^~~~~~~~~~~~
GNUmakefile:1059: recipe for target 'ppc-simd.o' failed
make: *** [ppc-simd.o] Error 1
bash-4.4$
So next I try CXX=g++ CXXFLAGS="-DNDEBUG -g2 -O3 -DCRYPTOPP_DISABLE_POWER8=1 -DCRYPTOPP_NO_CPU_FEATURE_PROBES=1" make
which does compile the errant file.
I do not know whether adding -DCRYPTOPP_NO_CPU_FEATURE_PROBES=1 is a good idea?
However, thank you for your swift help in getting my compilation to work - it is still going, but I am optimistic :-)
Maybe you could use this information to patch the build system?
The build has just completed :-)
Bob