Hi.
I uninstalled bazel first,
$ sudo rm -rf ~/.bazel
$ sudo rm -rf ~/.bazelrc
$ sudo rm -rf ~/.cache/bazel
$ sudo rm ~/bin/bazel
and I got the package from the link you suggested.
I get the download file moved to third_party directory,
$ cp -a ~/Downloads/dagger-2.14.1 ~/bazel-0.24.0-dist/third_party
and add the below code to WORKSPACE file.
# bazel-0.24.0-dist/WORKSPACE
local_repository(
name = "com_google_dagger",
path = "./third_party/dagger-2.14.1/",
)
Bazel is successfully build, but I tried to last command,
$ sudo bazel build --define tensorflow_mkldnn_contraction_kernel=0 ...
I got error again.
$ bazel build --define tensorflow_mkldnn_contraction_kernel=0 ...
DEBUG: /home/nvidia/.cache/bazel/_bazel_nvidia/c242bbd98573f3716705baaefd7d5e0a/external/bazel_tools/tools/cpp/lib_cc_configure.bzl:115:5:
Auto-Configuration Warning: 'TMP' environment variable is not set, using 'C:\Windows\Temp' as default
DEBUG: /home/nvidia/.cache/bazel/_bazel_nvidia/c242bbd98573f3716705baaefd7d5e0a/external/bazel_tools/tools/build_defs/pkg/pkg.bzl:259:17: @//tensorflow/tools/lib_package:libtensorflow_jni: you provided a non dictionary to the pkg_tar `files` attribute. This attribute was renamed to `srcs`. Consider renaming it in your BUILD file.
DEBUG: /home/nvidia/.cache/bazel/_bazel_nvidia/c242bbd98573f3716705baaefd7d5e0a/external/bazel_tools/tools/build_defs/pkg/pkg.bzl:259:17: @//tensorflow/tools/lib_package:common_deps: you provided a non dictionary to the pkg_tar `files` attribute. This attribute was renamed to `srcs`. Consider renaming it in your BUILD file.
DEBUG: /home/nvidia/.cache/bazel/_bazel_nvidia/c242bbd98573f3716705baaefd7d5e0a/external/bazel_tools/tools/build_defs/pkg/pkg.bzl:259:17: @//tensorflow/tools/lib_package:cheaders: you provided a non dictionary to the pkg_tar `files` attribute. This attribute was renamed to `srcs`. Consider renaming it in your BUILD file.
DEBUG: /home/nvidia/.cache/bazel/_bazel_nvidia/c242bbd98573f3716705baaefd7d5e0a/external/bazel_tools/tools/build_defs/pkg/pkg.bzl:259:17: @//tensorflow/tools/lib_package:eager_cheaders: you provided a non dictionary to the pkg_tar `files` attribute. This attribute was renamed to `srcs`. Consider renaming it in your BUILD file.
DEBUG: /home/nvidia/.cache/bazel/_bazel_nvidia/c242bbd98573f3716705baaefd7d5e0a/external/bazel_tools/tools/build_defs/pkg/pkg.bzl:259:17: @//tensorflow/tools/lib_package:clicenses: you provided a non dictionary to the pkg_tar `files` attribute. This attribute was renamed to `srcs`. Consider renaming it in your BUILD file.
ERROR: /home/nvidia/Projects/buildTensorFlow_onJetsonTX2/tensorflow/third_party/toolchains/cpus/arm/BUILD:3:1: third-party rule '//third_party/toolchains/cpus/arm:toolchain' lacks a license declaration with one of the following types: notice, reciprocal, permissive, restricted, unencumbered, by_exception_only
ERROR: /home/nvidia/Projects/buildTensorFlow_onJetsonTX2/tensorflow/third_party/toolchains/cpus/arm/BUILD:16:1: third-party rule '//third_party/toolchains/cpus/arm:empty' lacks a license declaration with one of the following types: notice, reciprocal, permissive, restricted, unencumbered, by_exception_only
ERROR: /home/nvidia/Projects/buildTensorFlow_onJetsonTX2/tensorflow/third_party/toolchains/cpus/arm/BUILD:21:1: third-party rule '//third_party/toolchains/cpus/arm:arm_linux_all_files' lacks a license declaration with one of the following types: notice, reciprocal, permissive, restricted, unencumbered, by_exception_only
ERROR: /home/nvidia/Projects/buildTensorFlow_onJetsonTX2/tensorflow/third_party/toolchains/cpus/arm/BUILD:28:1: third-party rule '//third_party/toolchains/cpus/arm:cc-compiler-local' lacks a license declaration with one of the following types: notice, reciprocal, permissive, restricted, unencumbered, by_exception_only
ERROR: /home/nvidia/Projects/buildTensorFlow_onJetsonTX2/tensorflow/third_party/toolchains/cpus/arm/BUILD:41:1: third-party rule '//third_party/toolchains/cpus/arm:cc-compiler-armeabi' lacks a license declaration with one of the following types: notice, reciprocal, permissive, restricted, unencumbered, by_exception_only
ERROR: package contains errors: third_party/toolchains/cpus/arm
ERROR: error loading package 'third_party/toolchains/cpus/arm': Package 'third_party/toolchains/cpus/arm' contains errors
INFO: Elapsed time: 1.637s
INFO: 0 processes.
FAILED: Build did NOT complete successfully (0 packages loaded)
Thanks.