tensorflow icon indicating copy to clipboard operation
tensorflow copied to clipboard

Building for iOs fails with "ld: 44 duplicate symbols for architecture armv7" error

Open timosadchiy opened this issue 10 years ago • 2 comments

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:

  1. git clone [email protected]:tensorflow/tensorflow.git
  2. cd tensorflow
  3. tensorflow/contrib/makefile/download_dependencies.sh
  4. tensorflow/contrib/makefile/build_all_ios.sh

What have you tried?

  1. Removing the repository directory and going through the steps again.
  2. 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

timosadchiy avatar Aug 26 '16 14:08 timosadchiy

Hi,

I'm having the exact same error message.

OS: OS X 10.11.6 Xcode 7.3.1

Many thanks,

Joe

joeling2001 avatar Aug 28 '16 02:08 joeling2001

Today tried to pull the project again and go through all the steps from the beginning. It worked. Thanks for fixing!

timosadchiy avatar Aug 30 '16 12:08 timosadchiy