Sorry about not replying to the last response, but am still having this 
issue even after removing the -fembed-bitcode.  I have included the output 
of the errors below.  I am unfortunately stuck with iOS 10 and cannot use 
an older version due to a different library.  Any help or an idea of where 
to look would be much appreciated.  CryptoPP was built in arm64 so it is 
indeed the right architecture.  I can add the output of the build if it is 
needed but it did build without any issues.

"CryptoPP::Filter::TransferTo2(CryptoPP::BufferedTransformation&, unsigned 
long long&, std::__1::basic_string<char, std::__1::char_traits<char>, 
std::__1::allocator<char> > const&, bool)", referenced from:
      vtable for CryptoPP::StringSource in libA.a(ClassA.o)
      vtable for CryptoPP::SourceTemplate<CryptoPP::StringStore> in 
libA.a(ClassA.o)
  "CryptoPP::Filter::CopyRangeTo2(CryptoPP::BufferedTransformation&, 
unsigned long long&, unsigned long long, std::__1::basic_string<char, 
std::__1::char_traits<char>, std::__1::allocator<char> > const&, bool) 
const", referenced from:
      vtable for CryptoPP::StringSource in libA.a(ClassA.o)
      vtable for CryptoPP::SourceTemplate<CryptoPP::StringStore> in 
libA.a(ClassA.o)
  "CryptoPP::BufferedTransformation::Skip(unsigned long long)", referenced 
from:
      vtable for CryptoPP::StringSource in libA.a(ClassA.o)
      vtable for CryptoPP::SourceTemplate<CryptoPP::StringStore> in 
libA.a(ClassA.o)
  "CryptoPP::StringStore::TransferTo2(CryptoPP::BufferedTransformation&, 
unsigned long long&, std::__1::basic_string<char, 
std::__1::char_traits<char>, std::__1::allocator<char> > const&, bool)", 
referenced from:
      CryptoPP::SourceTemplate<CryptoPP::StringStore>::Pump2(unsigned long 
long&, bool) in libA.a(ClassA.o)

      ld: symbol(s) not found for architecture arm64
      clang: error: linker command failed with exit code 1 (use -v to see 
invocation)

Patrick
On Monday, October 31, 2016 at 3:54:45 PM UTC-5, Jeffrey Walton wrote:
>
>
>
> On Monday, October 31, 2016 at 12:55:56 PM UTC-4, [email protected] 
> wrote:
>>
>> I am still having the issue that I had posted about last week.  I have 
>> dug deeper and still haven't found a solution.  I have called the set-env 
>> function correctly I believe as well as made sure that the line for 
>> -stdlib=libc++ are properly set.  Below I have the output of . ./setenv-ios 
>> iphoneos arm64 as well as the first line output after calling make -f 
>> GNUmakefile-cross -j 4.  I also have the errors that I am getting posted in 
>> my previous reply.  Any ideas would be greatly appreciated.  
>>
>> output of setenv:
>>
>> Configuring for iPhoneOS (arm64)
>>
>> XCODE_SDK: iPhoneOS10.0.sdk
>>
>> XCODE_DEVELOPER: /Applications/Xcode.app/Contents/Developer
>>
>> XCODE_TOOLCHAIN: /Applications/Xcode.app/Contents/Developer/usr/bin
>>
>> XCODE_DEVELOPER_TOP: 
>> /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer
>>
>> IOS_ARCH: arm64
>>
>> IOS_TOOLCHAIN: 
>> /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/
>>
>> IOS_FLAGS: -miphoneos-version-min=7
>>
>> IOS_SYSROOT: 
>> /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS10.0.sdk
>>
>>  
>>
>>
>> *******************************************************************************
>>
>> It looks the the environment is set correctly. Your next step is
>>
>> build the library with 'make -f GNUmakefile-cross'
>>
>>
>> *******************************************************************************
>>
>>  
>>
>>
>> output of make -f GNUmakefile-cross -j 4:
>>
>>
>> clang++ -DNDEBUG -g2 -Os -fPIC -pipe -Wall -miphoneos-version-min=7 -arch 
>> arm64 -isysroot 
>> /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS10.0.sdk
>>  
>> -stdlib=libc++ -fembed-bitcode -c cryptlib.cpp
>>
>
> Avoid -fembed-bitcode.
>
> I only have access to Xcode 4.3 through 8.2. I cannot duplicate the issue 
> because Xcode dies on -fembed-bitcode.
>
> Jeff
>
> ********************
>
> $ export CXXFLAGS="-DNDEBUG -g2 -O2 -fPIC -fembed-bitcode"
> $ . ./setenv-ios.sh arm64
> Configuring for iPhoneOS (arm64)
> XCODE_SDK: iPhoneOS8.2.sdk
> XCODE_DEVELOPER: /Applications/Xcode.app/Contents/Developer
> XCODE_TOOLCHAIN: /Applications/Xcode.app/Contents/Developer/usr/bin
> XCODE_DEVELOPER_TOP: 
> /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer
> IOS_ARCH: arm64
> IOS_TOOLCHAIN: 
> /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/
> IOS_FLAGS: -miphoneos-version-min=7
> IOS_SYSROOT: 
> /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS8.2.sdk
>
>
> *******************************************************************************
> It looks the the environment is set correctly. Your next step is
> build the library with 'make -f GNUmakefile-cross'
>
> *******************************************************************************
>
> $ make -f GNUmakefile-cross
> clang++ -DNDEBUG -g2 -O2 -fPIC -fembed-bitcode -Wall 
> -miphoneos-version-min=7 -arch arm64 -isysroot 
> /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS8.2.sdk
>  
> -stdlib=libc++ -c cryptlib.cpp
> clang: error: unknown argument: '-fembed-bitcode'
> make: *** [cryptlib.o] Error 1
>
>

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

Reply via email to