Issue 1:
System information

Have I written custom code (as opposed to using a stock example script provided in TensorFlow): No

OS Platform and Distribution (e.g., Linux Ubuntu 16.04): Ubuntu 16.04 LTS

TensorFlow installed from (source or binary): source

TensorFlow version (use command below): 1.1 (latest master)

Bazel version (if compiling from source): 0.4.5

CUDA/cuDNN version: 8.0/5.1

GPU model and memory: Tegra X1

Exact command to reproduce:

bazel build --config=opt --config=cuda //tensorflow/tools/pip_package:build_pip_package

Describe the problem

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 --config=cuda 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 ./configure).

Note: I changed the bazel files as seen in this guide: http://zhiyisun.github.io/2017/02/15/Running-Google-Machine-Learning-Library-Tensorflow-On-ARM-64-bit-Platform.html , in order to get bazel to build for aarch64.

Is there anything more that I have to change? using the suggested command of bazel build -c opt --copt="-funsafe-math-optimizations" --copt="-ftree-vectorize" --copt="-fomit-frame-pointer" --verbose_failures tensorflow/tools/pip_package:build_pip_package I get the same error too.

I saw this issue over here: bazelbuild/bazel#1855

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?

Thank you for your help. :D

Source code / logs

Here is the error I got:

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

Issue 2:
System information

OS Platform and Distribution: Linux Ubuntu 16.4

Bazel version (if compiling from source): 0.4.4

CUDA/cuDNN version: cuda-8.0

Describe the problem

I want to install tensorflow 1.0.0 in Nvidia TX1. I am following this so as to install version 1.0.0. But while installing bazel-0.4.4... I am getting this error

Logs

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

Any suggestion on this, why this is happing, really helpful.

Thanks,