tensorflow: Tensorflowlite 1.14: bazel windows build is broken
Please make sure that this is a build/installation issue. As per our GitHub Policy, we only address code/doc bugs, performance issues, feature requests and build/installation issues on GitHub. tag:build_template
System information
OS Platform and Distribution (e.g., Linux Ubuntu 16.04): Windows 10
Mobile device (e.g. iPhone 8, Pixel 2, Samsung Galaxy) if the issue happens on mobile device: n/a
TensorFlow installed from (source or binary): Build from source
TensorFlow version: r1.14, 456fbc0e498e3d10604973de9f46ca48d62267cc
Python version: 2.7.15
Installed using virtualenv? pip? conda?: n/a
Bazel version (if compiling from source): 0.21.0
GCC/Compiler version (if compiling from source): MSVC 2017
CUDA/cuDNN version: n/a
GPU model and memory: n/a
Describe the problem Windows build of tensorflow lite fails.
Provide the exact sequence of commands / steps that you executed before running into the problem
$ bazel --output_user_root=D:\test\tensorflow_1.14.windows build --jobs 1 -c opt --cxxopt=--std=c++11 //tensorflow/lite:libtensorflowlite.so
INFO: Repository 'flatbuffers' used the following cache hits instead of downloading the corresponding file.
* Hash '3f4a286642094f45b1b77228656fbd7ea123964f19502f9ecfd29933fd23a50b' for http://mirror.tensorflow.org/github.com/google/flatbuffers/archive/v1.11.0.tar.gz
If the definition of 'flatbuffers' was updated, verify that the hashes were also updated.
ERROR: An error occurred during the fetch of repository 'flatbuffers':
java.io.IOException: Could not create symlink from
D:/test/tensorflow/third_party/flatbuffers/build_defs.bzl to
D:/test/tensorflow_1.14.windows/s5ozolul/external/flatbuffers/build_defs.bzl:
D:/test/tensorflow_1.14.windows/s5ozolul/external/flatbuffers/build_defs.bzl (File exists)
ERROR: D:/test/tensorflow/tensorflow/lite/BUILD:149:1: //tensorflow/lite:framework depends on
//tensorflow/lite/schema:schema_fbs in repository @ which failed to fetch. no such package
'@flatbuffers//': java.io.IOException: Could not create symlink from
D:/test/tensorflow/third_party/flatbuffers/build_defs.bzl to
D:/test/tensorflow_1.14.windows/s5ozolul/external/flatbuffers/build_defs.bzl:
D:/test/tensorflow_1.14.windows/s5ozolul/external/flatbuffers/build_defs.bzl (File exists)
ERROR: Analysis of target '//tensorflow/lite:libtensorflowlite.so' failed; build aborted: no such package
'@flatbuffers//': java.io.IOException: Could not create symlink from
D:/test/tensorflow/third_party/flatbuffers/build_defs.bzl to
D:/test/tensorflow_1.14.windows/s5ozolul/external/flatbuffers/build_defs.bzl:
D:/test/tensorflow_1.14.windows/s5ozolul/external/flatbuffers/build_defs.bzl (File exists)
INFO: Elapsed time: 96.770s
INFO: 0 processes.
FAILED: Build did NOT complete successfully (22 packages loaded, 98 targets configured)
currently loading: tensorflow/lite/schema
About this issue
- Original URL
- State: closed
- Created 5 years ago
- Reactions: 1
- Comments: 29 (3 by maintainers)
Anyway, just tried with 0.24.1 and ‘configure.py’:
D:\Test\tf_1.14>bazel --output_user_root=…/tf_1.14-windows-build build --jobs 1 -c opt --cxxopt=–std=c++11 //tensorflow/lite:libtensorflowlite.so
Extracting Bazel installation... Starting local Bazel server and connecting to it... INFO: Repository 'flatbuffers' used the following cache hits instead of downloading the corresponding file. * Hash '3f4a286642094f45b1b77228656fbd7ea123964f19502f9ecfd29933fd23a50b' for http://mirror.tensorflow.org/github.com/google/flatbuffers/archive/v1.11.0.tar.gz If the definition of 'flatbuffers' was updated, verify that the hashes were also updated. ERROR: D:/test/tf_1.14/tensorflow/lite/kernels/BUILD:286:1: no such package '@flatbuffers//': java.io.IOException: Could not create symlink from D:/test/tf_1.14/third_party/flatbuffers/build_defs.bzl to D:/test/tf_1.14-windows-build/dutqtkj7/external/flatbuffers/build_defs.bzl: D:/test/tf_1.14-windows-build/dutqtkj7/external/flatbuffers/build_defs.bzl (File exists) and referenced by '//tensorflow/lite/kernels:builtin_op_kernels' ERROR: Analysis of target '//tensorflow/lite:libtensorflowlite.so' failed; build aborted: no such package '@flatbuffers//': java.io.IOException: Could not create symlink from D:/test/tf_1.14/third_party/flatbuffers/build_defs.bzl to D:/test/tf_1.14-windows-build/dutqtkj7/external/flatbuffers/build_defs.bzl: D:/test/tf_1.14-windows-build/dutqtkj7/external/flatbuffers/build_defs.bzl (File exists) INFO: Elapsed time: 43.454s INFO: 0 processes. FAILED: Build did NOT complete successfully (18 packages loaded, 81 targets configured) currently loading: tensorflow/lite/schema