<p dir="auto"><em>Please make sure that this is a build/installation issue. As per our <a href="https://github.com/tensorflow/tensorflow/blob/master/ISSUES.md">GitHub Policy</a>, we only address code/doc bugs, performance issues, feature requests and build/installation issues on GitHub. tag:build_template</em></p>
<p dir="auto"><strong>System information</strong></p>
<ul dir="auto">
<li>OS Platform and Distribution (e.g., Linux Ubuntu 16.04):</li>
<li>Mobile device (e.g. iPhone 8, Pixel 2, Samsung Galaxy) if the issue happens on mobile device:</li>
<li>TensorFlow installed from (source or binary):</li>
<li>TensorFlow version:</li>
<li>Python version:</li>
<li>Installed using virtualenv? pip? conda?:</li>
<li>Bazel version (if compiling from source):</li>
<li>GCC/Compiler version (if compiling from source):</li>
<li>CUDA/cuDNN version:</li>
<li>GPU model and memory:</li>
</ul>
<p dir="auto"><strong>Describe the problem</strong></p>
<p dir="auto"><strong>Provide the exact sequence of commands / steps that you executed before running into the problem</strong></p>
<p dir="auto"><strong>Any other info / logs</strong><br>
Include any logs or source code that would be helpful to diagnose the problem. If including tracebacks, please include the full traceback. Large logs and files should be attached.</p>
<p dir="auto">I am trying to solve the problem of running a retrained model on iOS described in issue <a href="https://github.com/tensorflow/tensorflow/issues/2883" data-hovercard-type="issue" data-hovercard-url="/tensorflow/tensorflow/issues/2883/hovercard">2883</a>. However when I call this command I run into linker error:</p>
<blockquote>
<p dir="auto">bazel build tensorflow/python/tools:strip_unused</p>
</blockquote>
<p dir="auto">The linker error says:</p>
<blockquote>
<p dir="auto">bazel-out/local-fastbuild/bin/tensorflow/core/libversion_lib.a(version_info.pic.o): In function <code class="notranslate">tf_git_version()': version_info.cc:(.text+0x0): multiple definition of</code>tf_git_version()'<br>
bazel-out/local-fastbuild/bin/tensorflow/core/libframework_internal.lo(version_info.pic.o):version_info.cc:(.text+0x0): first defined here<br>
bazel-out/local-fastbuild/bin/tensorflow/core/libversion_lib.a(version_info.pic.o): In function <code class="notranslate">tf_compiler_version()': version_info.cc:(.text+0xd): multiple definition of</code>tf_compiler_version()'<br>
bazel-out/local-fastbuild/bin/tensorflow/core/libframework_internal.lo(version_info.pic.o):version_info.cc:(.text+0xd): first defined here<br>
collect2: error: ld returned 1 exit status<br>
Target //tensorflow/python/tools:strip_unused failed to build</p>
</blockquote>
<p dir="auto">I tried it on both Mac and Ubuntu Linux with the same error. I am operating on git commit <a class="commit-link" data-hovercard-type="commit" data-hovercard-url="https://github.com/tensorflow/tensorflow/commit/a6c5f8e4e013e54fed8dfcf49fb6de365f018022/hovercard" href="https://github.com/tensorflow/tensorflow/commit/a6c5f8e4e013e54fed8dfcf49fb6de365f018022"><tt>a6c5f8e</tt></a>. Can someone help me how to build this tool?</p>