<p dir="auto">Hi,<br>
I am trying build the ios app detailed in <a href="https://petewarden.com/2016/09/27/tensorflow-for-mobile-poets/" rel="nofollow">https://petewarden.com/2016/09/27/tensorflow-for-mobile-poets/</a></p>
<p dir="auto">but it fails with:</p>
<p dir="auto"><strong>checking whether we are cross compiling... configure: error: in <code class="notranslate">/projects/tensorflow/tensorflow/tensorflow/contrib/makefile/downloads/protobuf': configure: error: cannot run C compiled programs. If you meant to cross compile, use</code>--host'.<br>
See `config.log' for more details</strong></p>
<p dir="auto">system details;<br>
macos sierra, 10.12</p>
<p dir="auto">brew config output: Any pointers will be appreciated.</p>
<p dir="auto">MacBook-Pro:tensorflow $ brew config<br>
HOMEBREW_VERSION: 1.0.6<br>
ORIGIN: https:/<br>
HEAD: 35ee2831086e923e7fcaf75fb440b01312e3f9c5<br>
Last commit: 7 days ago<br>
Core tap ORIGIN: https:/<br>
Core tap HEAD: 80f18defefc814d60d3799e58835cbeffc8e93c8<br>
Core tap last commit: 2 hours ago<br>
HOMEBREW_PREFIX: /usr/local<br>
HOMEBREW_REPOSITORY: /usr/local/Homebrew<br>
HOMEBREW_CELLAR: /usr/local/Cellar<br>
HOMEBREW_BOTTLE_DOMAIN: https:/<br>
CPU: quad-core 64-bit broadwell<br>
Homebrew Ruby: 2.0.0-p648<br>
Clang: 8.0 build 800<br>
Git: 2.8.4 =&gt; /Applications/Xcode.app/Contents/Developer/usr/bin/git<br>
Perl: /usr/bin/perl<br>
Python: /usr/bin/python<br>
Ruby: /usr/bin/ruby =&gt; /System/Library/Frameworks/Ruby.framework/Versions/2.0/usr/bin/ruby<br>
Java: 1.8.0_60<br>
macOS: 10.12-x86_64<br>
Xcode: 8.0<br>
CLT: 8.0.0.0.1.1472435881<br>
X11: N/A</p>
<p dir="auto">When running <code class="notranslate">compile_ios_protobuf.sh</code>, it says:<br>
checking whether we are cross compiling... configure: error: in '.../tensorflow/tensorflow/contrib/makefile/downloads/protobuf':<br>
configure: error: cannot run C compiled programs.<br>
If you meant to cross compile, use <code class="notranslate">--host'. See</code>config.log' for more details</p>