tensorflow: no such package 'util/hash': BUILD file not found
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): FreeBSD 12.0-ALPHA3
- Mobile device (e.g. iPhone 8, Pixel 2, Samsung Galaxy) if the issue happens on mobile device:
- TensorFlow installed from (source or binary): source
- TensorFlow version (use command below): 1.11.0
- Python version: 2.7.15
- Bazel version (if compiling from source): 0.17.1
- GCC/Compiler version (if compiling from source): clang version 6.0.1
- CUDA/cuDNN version:
- GPU model and memory:
- Exact command to reproduce:
bazel fetch --repository_cache=/path/to/empty/bazel_cache //tensorflow:libtensorflow.so
Describe the problem
I’m doing the port for tensorflow and trying to fetch everything that’s required for build first. After extracting tensorflow tarball I run bazel fetch --repository_cache=/path/to/empty/bazel_cache //tensorflow:libtensorflow.so and get the following error:
ERROR: /wrkdirs/usr/ports/science/tensorflow-core/work/tensorflow-1.11.0/tensorflow/core/common_runtime/eager/BUILD:215:1: no such package 'util/hash': BUILD file not found on package path and referenced by '//tensorflow/core/common_runtime/eager:attr_builder'
ERROR: Evaluation of query "deps(//tensorflow:libtensorflow.so)" failed: errors were encountered while computing transitive closure
About this issue
- Original URL
- State: closed
- Created 6 years ago
- Comments: 16 (6 by maintainers)
I’d like to add a confirmation that I have this issue, too. In NixOS we try to use bazel by fetching, patching, then building. I am using a built-from-source version of AMD’s ROCm patches to tensorflow, but had to ultimately create a new bazel wrapper to apply the needed patches during the build since the fetch command fails with this problem.