Is there any reason you're trying to build "fat" binaries? It used to make 
sense several years ago, and Apple still allows that - but not any more. Now no 
system binary is "fat" (they're all 64-bit), and you'd be much better off with 
just "-arch x86_64".

Sent from my iPad

On Aug 19, 2016, at 00:44, Manish Gautam <[email protected]> wrote:

>> I tried 5.6.3, I am getting follwoing errors
> 
> mgautam-mbp:cryptopp563 mgautam$ export CXXFLAGS="-DNDEBUG -g2 -O2 
> -stdlib=libc++ -arch i386 -arch x86_64"
> 
> mgautam-mbp:cryptopp563 mgautam$ CXX=clang++ make -j 4
> 
> WARNING: CRYPTOPP_NO_UNALIGNED_DATA_ACCESS is not defined in config.h.
> 
> WARNING: CRYPTOPP_INIT_PRIORITY is not defined in config.h.
> 
> WARNING: CRYPTOPP_MAINTAIN_BACKWARDS_COMPATIBILITY_562 is defined in config.h.
> 
> WARNING: You should make these changes in config.h, and not CXXFLAGS.
> 
> WARNING: You can 'mv config.recommend config.h', but it breaks versioning.
> 
> WARNING: See http://cryptopp.com/wiki/config.h for more details.
> 
> 
> 
> clang++ -DNDEBUG -g2 -O2 -stdlib=libc++ -arch i386 -arch x86_64 -fPIC 
> -march=native -pipe -c cpu.cpp
> 
> clang++ -DNDEBUG -g2 -O2 -stdlib=libc++ -arch i386 -arch x86_64 -fPIC 
> -march=native -pipe -c blowfish.cpp
> 
> clang++ -DNDEBUG -g2 -O2 -stdlib=libc++ -arch i386 -arch x86_64 -fPIC 
> -march=native -pipe -c blumshub.cpp
> 
> clang++ -DNDEBUG -g2 -O2 -stdlib=libc++ -arch i386 -arch x86_64 -fPIC 
> -march=native -pipe -c camellia.cpp
> 
> cpu.cpp:104:4: error: register %rbx is only available in 64-bit mode
> 
>                         "pushq %%rbx; cpuid; mov %%ebx, %%edi; popq %%rbx"
> 
>                         ^
> 
> <inline asm>:1:8: note: instantiated into assembly here
> 
>         pushq %rbx; cpuid; mov %ebx, %edi; popq %rbx
> 
>               ^~~~~
> 
> cpu.cpp:104:4: error: register %rbx is only available in 64-bit mode
> 
>                         "pushq %%rbx; cpuid; mov %%ebx, %%edi; popq %%rbx"
> 
>                         ^
> 
> <inline asm>:1:42: note: instantiated into assembly here
> 
>         pushq %rbx; cpuid; mov %ebx, %edi; popq %rbx
> 
>                                                 ^~~~
> 
> 2 errors generated.
> 
> make: *** [cpu.o] Error 1
> 
> make: *** Waiting for unfinished jobs.... 
> -- 
> -- 
> 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 Google Groups 
> "Crypto++ Users" group.
> To unsubscribe from this group and stop receiving emails from it, send an 
> email to [email protected].
> For more options, visit https://groups.google.com/d/optout.

-- 
-- 
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 Google Groups 
"Crypto++ Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
For more options, visit https://groups.google.com/d/optout.

Attachment: smime.p7s
Description: S/MIME cryptographic signature

Reply via email to