Building for iOs fails with "ld: 44 duplicate symbols for architecture armv7" error
Hi all,
Trying to build Tensorflow for iOs. The step tensorflow/contrib/makefile/build_all_ios.sh after around 20 minutes of building returns errors including duplicate symbols for architecture armv7. Please find the details bellow.
Environment info
Operating System: Mac OS X 10.11.6 (15G31) Xcode 7.3.1 (7D1014)
Steps to reproduce
In terminal:
git clone [email protected]:tensorflow/tensorflow.gitcd tensorflowtensorflow/contrib/makefile/download_dependencies.shtensorflow/contrib/makefile/build_all_ios.sh
What have you tried?
- Removing the repository directory and going through the steps again.
- Going through "Building by hand" steps described here. Error:
ld: 44 duplicate symbols for architecture armv7s(Error log).
Error log (Full log)
...
ld: 44 duplicate symbols for architecture armv7
clang: error: linker command failed with exit code 1 (use -v to see invocation)
make: *** [/Users/b0915218/Xcode/tensorflow/tensorflow/contrib/makefile/gen/bin/ios_ARMV7/benchmark] Error 1
+ '[' 2 -ne 0 ']'
+ echo 'armv7 compilation failed.'
armv7 compilation failed.
+ exit 1
Hi,
I'm having the exact same error message.
OS: OS X 10.11.6 Xcode 7.3.1
Many thanks,
Joe
Today tried to pull the project again and go through all the steps from the beginning. It worked. Thanks for fixing!