<h3 dir="auto">System information</h3>
<ul dir="auto">
<li><strong>Have I written custom code (as opposed to using a stock example script provided in TensorFlow)</strong>: No</li>
<li><strong>OS Platform and Distribution (e.g., Linux Ubuntu 16.04)</strong>: Ubuntu 16.04 LTS</li>
<li><strong>TensorFlow installed from (source or binary)</strong>: source</li>
<li><strong>TensorFlow version (use command below)</strong>: 1.1 (latest master)</li>
<li><strong>Bazel version (if compiling from source)</strong>: 0.4.5</li>
<li><strong>CUDA/cuDNN version</strong>: 8.0/5.1</li>
<li><strong>GPU model and memory</strong>: Tegra X1</li>
<li><strong>Exact command to reproduce</strong>:<br>
bazel build --config=opt --config=cuda //tensorflow/tools/pip_package:build_pip_package</li>
</ul>
<h3 dir="auto">Describe the problem</h3>
<p dir="auto">Using the bazel build command above, I am unable to find a valid toolchain to support the aarch64 architecture in the Jetson TX1. However, by removing the <code class="notranslate">--config=cuda</code> option, the error is gone, although I am still unable to finish building the pip file (probably due to the fact that I configured TF for GPU using <code class="notranslate">./configure</code>).</p>
<p dir="auto">Note: I changed the bazel files as seen in this guide: <a href="http://zhiyisun.github.io/2017/02/15/Running-Google-Machine-Learning-Library-Tensorflow-On-ARM-64-bit-Platform.html" rel="nofollow">http://zhiyisun.github.io/2017/02/15/Running-Google-Machine-Learning-Library-Tensorflow-On-ARM-64-bit-Platform.html</a> , in order to get bazel to build for aarch64.</p>
<p dir="auto">Is there anything more that I have to change? using the suggested command of <code class="notranslate">bazel build -c opt --copt="-funsafe-math-optimizations" --copt="-ftree-vectorize" --copt="-fomit-frame-pointer" --verbose_failures tensorflow/tools/pip_package:build_pip_package</code> I get the same error too.</p>
<p dir="auto">I saw this issue over here: <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="179924041" data-permission-text="Title is private" data-url="https://github.com/bazelbuild/bazel/issues/1855" data-hovercard-type="issue" data-hovercard-url="/bazelbuild/bazel/issues/1855/hovercard" href="https://github.com/bazelbuild/bazel/issues/1855">bazelbuild/bazel#1855</a><br>
and it says it has something related to the cuda crosstool. Is there a way to fix this to configure TensorFlow-GPU on the Jetson TX1?</p>
<p dir="auto">Thank you for your help. :D</p>
<h3 dir="auto">Source code / logs</h3>
<p dir="auto">Here is the error I got:</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="ubuntu@tegra-ubuntu:~/tensorflow$ bazel build --config=opt --config=cuda //tensorflow/tools/pip_package:build_pip_package
WARNING: Sandboxed execution is not supported on your system and thus hermeticity of actions cannot be guaranteed. See http://bazel.build/docs/bazel-user-manual.html#sandboxing for more information. You can turn off this warning via --ignore_unsupported_sandboxing.
ERROR: No toolchain found for cpu 'aarch64'. Valid cpus are: [
  k8,
  piii,
  arm,
  darwin,
  ppc,
].
INFO: Elapsed time: 1.589s
"><pre class="notranslate"><code class="notranslate">ubuntu@tegra-ubuntu:~/tensorflow$ bazel build --config=opt --config=cuda //tensorflow/tools/pip_package:build_pip_package
WARNING: Sandboxed execution is not supported on your system and thus hermeticity of actions cannot be guaranteed. See http://bazel.build/docs/bazel-user-manual.html#sandboxing for more information. You can turn off this warning via --ignore_unsupported_sandboxing.
ERROR: No toolchain found for cpu 'aarch64'. Valid cpus are: [
  k8,
  piii,
  arm,
  darwin,
  ppc,
].
INFO: Elapsed time: 1.589s

</code></pre></div>
<h3 dir="auto">System information</h3>
<ul dir="auto">
<li>OS Platform and Distribution: Linux Ubuntu 16.4</li>
<li>Bazel version (if compiling from source): 0.4.4</li>
<li>CUDA/cuDNN version: cuda-8.0</li>
</ul>
<h3 dir="auto">Describe the problem</h3>
<p dir="auto">I want to install tensorflow 1.0.0 in Nvidia TX1. I am following <a href="http://www.yuthon.com/2017/03/10/TensorFlow-r1-0-on-TX1/" rel="nofollow">this</a> so as to install version 1.0.0. But while installing bazel-0.4.4... I am getting this error</p>
<h3 dir="auto">Logs</h3>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="INFO: You can skip this first step by providing a path to the bazel binary as second argument:
INFO:    ./compile.sh compile /path/to/bazel
🍃  Building Bazel from scratch.......
🍃  Building Bazel with Bazel.
.WARNING: /tmp/bazel_OpcCR2sk/out/external/bazel_tools/WORKSPACE:1: Workspace name in /tmp/bazel_OpcCR2sk/out/external/bazel_tools/WORKSPACE (@io_bazel) does not match the name given in the repository's definition (@bazel_tools); this will cause a build error in future versions.
ERROR: No toolchain found for cpu 'unknown'. Valid cpus are: [
  arm,
  armeabi-v7a,
  x64_windows_msvc,
  s390x,
].
INFO: Elapsed time: 6.533s

ERROR: Could not build Bazel
cp: cannot stat 'output/bazel': No such file or directory"><pre class="notranslate"><code class="notranslate">INFO: You can skip this first step by providing a path to the bazel binary as second argument:
INFO:    ./compile.sh compile /path/to/bazel
🍃  Building Bazel from scratch.......
🍃  Building Bazel with Bazel.
.WARNING: /tmp/bazel_OpcCR2sk/out/external/bazel_tools/WORKSPACE:1: Workspace name in /tmp/bazel_OpcCR2sk/out/external/bazel_tools/WORKSPACE (@io_bazel) does not match the name given in the repository's definition (@bazel_tools); this will cause a build error in future versions.
ERROR: No toolchain found for cpu 'unknown'. Valid cpus are: [
  arm,
  armeabi-v7a,
  x64_windows_msvc,
  s390x,
].
INFO: Elapsed time: 6.533s

ERROR: Could not build Bazel
cp: cannot stat 'output/bazel': No such file or directory
</code></pre></div>
<p dir="auto">Any suggestion on this, why this is happing, really helpful.</p>
<p dir="auto">Thanks,</p>