<p dir="auto"><a target="_blank" rel="noopener noreferrer nofollow" href="https://cloud.githubusercontent.com/assets/14129554/22622882/bd9c80a0-eb15-11e6-9ee1-3269efd7e0bd.png"><img src="https://cloud.githubusercontent.com/assets/14129554/22622882/bd9c80a0-eb15-11e6-9ee1-3269efd7e0bd.png" alt="error_2_4" style="max-width: 100%;"></a></p>
<p dir="auto">Hello,<br>
I am tring to do install core of tensorflow on Raspberry PI 3, on Ubuntu 16.04 LTS using python 3.5.2, exactly following the instruction on <a href="https://github.com/tensorflow/tensorflow/tree/master/tensorflow/contrib/makefile">https://github.com/tensorflow/tensorflow/tree/master/tensorflow/contrib/makefile</a>, but got error messages at last step "make -f tensorflow/contrib/makefile/Makefile HOST_OS=PI TARGET=PI OPTFLAGS="-Os" CXX=g++-4.8".</p>
<p dir="auto">Note that I tried the method shared on  <a href="https://github.com/samjabrahams/tensorflow-on-raspberry-pi">https://github.com/samjabrahams/tensorflow-on-raspberry-pi</a>, but there are also error occured.</p>
<p dir="auto">I am wondering is it due to some update of tensorflow? Looking forward to your reply. Thank you!</p>
<p dir="auto">Hello,</p>
<p dir="auto">I was told to post this question here:</p>
<p dir="auto">I am trying to complete a fresh install of Tensorflow on my Raspberry Pi following a failed previous install. I figured it would be easier trying to start fresh so I could more easily document my progress, and what solutions worked or failed. Additionally the new guide is easier to follow than the old guide I was using.</p>
<p dir="auto">I am following the guide <a href="https://github.com/tensorflow/tensorflow/tree/master/tensorflow/contrib/makefile#raspberry-pi">here</a> and have been able to complete all of the steps up until the <code class="notranslate">make -f tensorflow/contrib/makefile/Makefile HOST_OS=PI TARGET=PI OPTFLAGS="-Os" CXX=g++-4.8 </code>command. NOTE: I did not install the example graph.</p>
<p dir="auto">However when attempting to run this command I am left with several errors. The full output is rather long, but the main recurring error is similar to:</p>
<p dir="auto"><code class="notranslate">test_log.pb.cc:(.text+0x784): undefined reference to </code>google::protobuf::internal::fixed_address_empty_string'<code class="notranslate">This kind of error is repeated several times throughout the output for the</code>make -f command with test_log.pb.cc:(.text+0x784): ` being replaced with different designations. The output ends with the Following error state:</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="step_stats_collector.cc:(.text+0x46c): undefined reference to `google::protobuf::internal::fixed_address_empty_string'
/home/pi/makevoicedemo/tf/tensorflow/tensorflow/contrib/makefile/gen/lib/libtensorflow-core.a(debug_io_utils.o):debug_io_utils.cc:(.text+0x8e8): more undefined references to `google::protobuf::internal::fixed_address_empty_string' follow
collect2: error: ld returned 1 exit status
tensorflow/contrib/makefile/Makefile:501: recipe for target '/home/pi/makevoicedemo/tf/tensorflow/tensorflow/contrib/makefile/gen/bin/benchmark' failed
make: *** [/home/pi/makevoicedemo/tf/tensorflow/tensorflow/contrib/makefile/gen/bin/benchmark] Error 1"><pre class="notranslate"><code class="notranslate">step_stats_collector.cc:(.text+0x46c): undefined reference to `google::protobuf::internal::fixed_address_empty_string'
/home/pi/makevoicedemo/tf/tensorflow/tensorflow/contrib/makefile/gen/lib/libtensorflow-core.a(debug_io_utils.o):debug_io_utils.cc:(.text+0x8e8): more undefined references to `google::protobuf::internal::fixed_address_empty_string' follow
collect2: error: ld returned 1 exit status
tensorflow/contrib/makefile/Makefile:501: recipe for target '/home/pi/makevoicedemo/tf/tensorflow/tensorflow/contrib/makefile/gen/bin/benchmark' failed
make: *** [/home/pi/makevoicedemo/tf/tensorflow/tensorflow/contrib/makefile/gen/bin/benchmark] Error 1
</code></pre></div>
<p dir="auto">I feel like the problem is likely do to an error with protobuf, however I am using the latest version and had no errors installing it. I am using the most recent version of tensorflow and followed the Before you start section in the guide to make sure all dependencies were installed and up to date.</p>
<p dir="auto">What exactly might be causing this error and how would I go about fixing it?</p>
<h3 dir="auto">What related GitHub issues or StackOverflow threads have you found by searching the web for your problem?</h3>
<p dir="auto"><a href="http://stackoverflow.com/questions/38915709/problems-on-builiding-tensorflow-on-rpi-2" rel="nofollow">http://stackoverflow.com/questions/38915709/problems-on-builiding-tensorflow-on-rpi-2</a></p>
<h3 dir="auto">Environment info</h3>
<p dir="auto">Operating System:<br>
Raspbian Jessie</p>
<p dir="auto">Installed version of CUDA and cuDNN:<br>
N/A<br>
(please attach the output of <code class="notranslate">ls -l /path/to/cuda/lib/libcud*</code>):<br>
<code class="notranslate">ls: cannot access /path/to/cuda/lib/libcud*: No such file or directory </code><br>
If installed from source, provide</p>
<ol dir="auto">
<li>
<p dir="auto">The commit hash (<code class="notranslate">git rev-parse HEAD</code>)<br>
<code class="notranslate">a2d96ca09e9943b4bad65b674d29d380dc6a8327</code></p>
</li>
<li>
<p dir="auto">The output of <code class="notranslate">bazel version</code></p>
</li>
</ol>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="...........................................................................
Build label: 0.2.1-2016-09-15 (@e7a95e5)
Build target: bazel-out/local_linux-fastbuild/bin/src/main/java/com/google/devtools/build/lib/bazel/BazelServer_deploy.jar
Build time: Fri Sep 16 00:46:39 2016 (1473986799)
Build timestamp: 1473986799
Build timestamp as int: 1473986799
"><pre class="notranslate"><code class="notranslate">...........................................................................
Build label: 0.2.1-2016-09-15 (@e7a95e5)
Build target: bazel-out/local_linux-fastbuild/bin/src/main/java/com/google/devtools/build/lib/bazel/BazelServer_deploy.jar
Build time: Fri Sep 16 00:46:39 2016 (1473986799)
Build timestamp: 1473986799
Build timestamp as int: 1473986799

</code></pre></div>
<h3 dir="auto">If possible, provide a minimal reproducible example (We usually don't have time to read hundreds of lines of your code)</h3>
<p dir="auto">Steps taken (in order) from pre-created directory /tf:</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="git clone https://github.com/tensorflow/tensorflow.git

cd tensorflow

tensorflow/contrib/makefile/download_dependencies.sh

sudo apt-get install -y autoconf automake libtool gcc-4.8 g++-4.8

cd tensorflow/contrib/makefile/downloads/protobuf/

./autogen.sh

./configure

make

sudo make install

sudo ldconfig

cd ../../../../..

make -f tensorflow/contrib/makefile/Makefile HOST_OS=PI TARGET=PI OPTFLAGS=&quot;-Os&quot; CXX=g++-4.8"><pre class="notranslate"><code class="notranslate">git clone https://github.com/tensorflow/tensorflow.git

cd tensorflow

tensorflow/contrib/makefile/download_dependencies.sh

sudo apt-get install -y autoconf automake libtool gcc-4.8 g++-4.8

cd tensorflow/contrib/makefile/downloads/protobuf/

./autogen.sh

./configure

make

sudo make install

sudo ldconfig

cd ../../../../..

make -f tensorflow/contrib/makefile/Makefile HOST_OS=PI TARGET=PI OPTFLAGS="-Os" CXX=g++-4.8
</code></pre></div>
<p dir="auto">The final command results in the error and is as far as I have been able to progress.</p>
<h3 dir="auto">What other attempted solutions have you tried?</h3>
<p dir="auto">I have not come across any applicable solutions to try.</p>
<p dir="auto">Any help would be appreciated.</p>