Great the compile works now for the unmodified make file. There's
another problem that was introduced recently (for the Mac OS X build).



If you replace the "CXXFLAGS = -DNDEBUG -g -O2" line with:

"CXXFLAGS = -DNDEBUG -Os -s -arch ppc -arch i386 -arch x86_64 -mmacosx-
version-min=10.5"

That is, you add "ppc" as a target architecture, the compile fails
with the following error:

...
...
c++ -DNDEBUG -Os -s -arch ppc -arch i386 -arch x86_64 -mmacosx-version-
min=10.5 -arch x86_64 -arch i386 -DCRYPTOPP_DISABLE_ASM -pipe -c
gcm.cpp
gcm.cpp: In member function ‘virtual unsigned int
CryptoPP::GCM_Base::OptimalDataAlignment() const’:
gcm.cpp:339: error: ‘HasSSE2’ was not declared in this scope



This compilation error wasn't present a few revisions ago (I can't
remember which one, but I can look it up if you need). Are you
dropping support for ppc builds, or is this just a bug?


Thanks again for fixing the other bug.


On Jul 25, 5:42 pm, "Wei Dai" <[email protected]> wrote:
> Thanks, it's been fixed in SVN. BTW, I'm planning a new release in the next
> week or so. Here are the main changes:
>
> 5.6.1 - added support for AES-NI and CLMUL instruction sets in AES and
> GMAC/GCM
>       - removed WAKE-CFB
>       - fixed several bugs in the SHA-256 x86/x64 assembly code:
>           * incorrect hash on non-SSE2 x86 machines on non-aligned input
>           * incorrect hash on x86 machines when input crosses 0x80000000
>           * incorrect hash on x64 when compiled with GCC with optimizations
> enabled
>       - fixed bugs in AES x86 and x64 assembly causing crashes in some MSVC
> build configurations
>       - switched to a public domain implementation of MARS
>       - ported to MSVC 2010, Sun Studio 12u1
>       - renamed the MSVC DLL project to "cryptopp" for compatibility with
> MSVC 2010
>
> --------------------------------------------------
> From: "Wyatt" <[email protected]>
> Sent: Saturday, July 24, 2010 3:32 AM
> To: "Crypto++ Users" <[email protected]>
> Subject: Crypto++ svn revision 509 fails to compile on Mac OS X
>
>
>
> > Hey Wei Dai,
>
> > Just letting you know your latest changes break compilation on Mac OS
> > X. After checking out the lates revision and running make, the
> > following error occurs:
>
> > ...
> > ...
> > c++ -DNDEBUG -g -O2 -arch x86_64 -arch i386 -DCRYPTOPP_DISABLE_ASM -
> > pipe -c cpu.cpp
> > cpu.cpp: In function bool CryptoPP::TrySSE2() :
> > cpu.cpp:133: error: __mm128i was not declared in this scope
> > cpu.cpp:133: error: expected `;' before x
> > cpu.cpp:134: error: x was not declared in this scope
> > cpu.cpp:134: error: _mm_cvtsi128_si32 was not declared in this scope
>
> > Looking at the latest revisions it looks like the bug was introduced
> > in revision 508.
>
> > No rush to fix it. Love your work.
>
> > --
> > 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.

-- 
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.

Reply via email to