tensorflow: 1.13.2 build failed with "Not Found" error for file that exists

System information

  • OS Platform and Distribution: Ubuntu 18.04 (Windows 10 subsystem)
  • TensorFlow installed from: source
  • TensorFlow version: 1.13.2
  • Python version: 3.6.8
  • Bazel version: 0.21.0
  • GCC version: 7.4.0

Describe the problem Just trying to get a CPU hardware-specific install; selected “No” to all except XLA JIT support during configuration. I don’t need CUDA/GPU support.

ERROR: /mnt/c/Users/peter/Desktop/projects/tensorflow/tensorflow/python/BUILD:5873:1: Executing genrule //tensorflow/python:nccl_ops_pygenrule failed (Aborted): bash failed: error executing command /bin/bash bazel-out/k8-opt/genfiles/tensorflow/python/nccl_ops_pygenrule.genrule_script.sh
2019-08-11 14:35:54.567507: F tensorflow/python/framework/python_op_gen_main.cc:123] Non-OK-status: api_def_map.LoadFileList(env, api_files) status: Not found: tensorflow/core/api_def/base_api/api_def_Imag.pbtxt; No such file or directory
...
Target //tensorflow/tools/pip_package:build_pip_package failed to build
Use --verbose_failures to see the command lines of failed build steps.
INFO: Elapsed time: 11735.779s, Critical Path: 3155.14s
INFO: 7082 processes: 7082 local.
FAILED: Build did NOT complete successfully

Provide the exact sequence of commands / steps that you executed before running into the problem

bazel clean --expunge
./configure
bazel build --config=opt //tensorflow/tools/pip_package:build_pip_package

Any other info / logs

I verified that tensorflow/core/api_def/base_api/api_def_Imag.pbtxt does indeed exist.

About this issue

  • Original URL
  • State: closed
  • Created 5 years ago
  • Comments: 17 (3 by maintainers)

Most upvoted comments

Found out the problem: it was a multithreading bug from the host Windows OS that causes these kinds of ‘file not found’ errors in WSL if using Windows 10 OS versions before 17655.

For future reference, the problem can be resolved by updating Windows 10 to some version after 17655; thread detailing this issue here. After this I was able to build and install successfully.