-
Notifications
You must be signed in to change notification settings - Fork 74k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Tensorflowlite 1.14: bazel windows build is broken #31118
Comments
I've tried that but it didn't help. Please note that I'm not doing windows => android cross-compilation. What I'm trying to get is windows build (dll or whatever). Also, not sure why, maybe due to the latest changes in 1.14 branch now I see this error: "D:\Test\tensorflow_1.14>bazel-0.20.0-windows-x86_64.exe --output_user_root D:\test\tensorflow_1.14-windows build --jobs 1 -c opt --cxxopt --std WARNING: The following rc files are no longer being read, please transfer their contents or import their path into one of the standard rc files: d:\test\tensorflow_1.14/.bazelrc Extracting Bazel installation... Starting local Bazel server and connecting to it... INFO: Invocation ID: 3928ae41-cf2a-4404-8fff-f3faa653acfd ERROR: D:/test/tensorflow_1.14-windows/sricgeud/external/io_bazel_rules_closure/closure/protobuf/closure_proto_library.bzl:66:21: name 'ProtoInfo' is not defined (did you mean 'protos'?) ERROR: error loading package '': in D:/test/tensorflow_1.14-windows/sricgeud/external/io_bazel_rules_closure/closure/defs.bzl: Extension 'closure/protobuf/closure_proto_library.bzl' has errors ERROR: error loading package '': in D:/test/tensorflow_1.14-windows/sricgeud/external/io_bazel_rules_closure/closure/defs.bzl: Extension 'closure/protobuf/closure_proto_library.bzl' has errors Is there any working guide on bazel build for tensorflowlite 1.14 for windows? |
@ElderOrb Have you implemented. / configure yet? |
No, I stopped wasting time on this and still hope the issue will be fixed. |
I think you're using a bazel that is too old |
@ElderOrb I mean to execute the “. / configure” instruction first and then continue compiling,and I didn't report this mistake after I implemented it. |
@mihaimaruseac @Huangswust182 |
See https://www.tensorflow.org/install/source_windows#tested_build_configurations for the exact configurations we have used when building. |
@mihaimaruseac I followed link and found this:
... and then after couple lines:
So what is the right version? |
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
|
Also tried with bazel 0.25.2 (latest supported based on configure.py output) and got this: D:\Test\tf_1.14>configure.py Found possible Python library paths: Do you wish to build TensorFlow with XLA JIT support? [y/N]: Do you wish to build TensorFlow with ROCm support? [y/N]: Do you wish to build TensorFlow with CUDA support? [y/N]: Please specify optimization flags to use during compilation when bazel option "--config=opt" is specified [Default is /arch:AVX]: Would you like to override eigen strong inline for some C++ compilation to reduce the compilation time? [Y/n]: Preconfigured Bazel build configs. You can use any of the below by adding "--config=<>" to your build command. See .bazelrc for more details. 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
[ERROR:typescript.bat] TypeScript was not added to PATH since a valid installation was not found [ERROR:typescript.bat] TypeScript was not added to PATH since a valid installation was not found |
any progress here? |
Can you try with master instead of 1.14? Seems 1.14 is badly broken |
On the latest master (c022a58) I see this:
|
Is it possible to add tensorflowlite for windows to CI? |
No solution still? |
I have same problem! |
Please watch #31601, most likely after that PR is merged this issue can be solved. I estimate one more week at most until solution. |
I constantly run accross the bug. It's really annoying. It has nothing to do with my code since usually after several docker restarting or code recompiling, it works again. |
@mihaimaruseac I guess the issue still here? Any ETA on fixing it finally? |
I have same problem!I'm so tired!!! |
As TF 1.14 is in a very bad state, I would recommend trying 1.15 or 2.0 or 2.1 |
D:\test\tensorflow-r1.15>bazel --output_user_root=..\tensorflow_1.15.windows 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: Options provided by the client: Inherited 'common' options: --isatty=1 --terminal_columns=211 INFO: Options provided by the client: 'build' options: --python_path=C:/Python27/python.exe INFO: Reading rc options for 'build' from d:\test\tensorflow-r1.15.bazelrc: 'build' options: --apple_platform_type=macos --define framework_shared_object=true --define open_source_build=true --define=use_fast_cpp_protos=true --define=allow_oversize_protos=true --spawn_strategy=standalone --strategy=Genrule=standalone -c opt --announce_rc --define=grpc_no_ares=true --define=PREFIX=/usr --define=LIBDIR=$(PREFIX)/lib --define=INCLUDEDIR=$(PREFIX)/include ERROR: error loading package '': Encountered error while reading extension file 'repositories/repositories.bzl': no such package '@io_bazel_rules_docker//repositories': Traceback (most recent call last): File "D:/test/tensorflow_1.15.windows/pmsk6zot/external/bazel_tools/tools/build_defs/repo/git.bzl", line 164 _clone_or_update(ctx) File "D:/test/tensorflow_1.15.windows/pmsk6zot/external/bazel_tools/tools/build_defs/repo/git.bzl", line 74, in _clone_or_update fail(("error cloning %s:\n%s" % (ctx....))) error cloning io_bazel_rules_docker: + cd D:/test/tensorflow_1.15.windows/pmsk6zot/external + rm -rf D:/test/tensorflow_1.15.windows/pmsk6zot/external/io_bazel_rules_docker D:/test/tensorflow_1.15.windows/pmsk6zot/external/io_bazel_rules_docker /usr/bin/bash: line 5: rm: command not found ERROR: error loading package '': Encountered error while reading extension file 'repositories/repositories.bzl': no such package '@io_bazel_rules_docker//repositories': Traceback (most recent call last): File "D:/test/tensorflow_1.15.windows/pmsk6zot/external/bazel_tools/tools/build_defs/repo/git.bzl", line 164 _clone_or_update(ctx) File "D:/test/tensorflow_1.15.windows/pmsk6zot/external/bazel_tools/tools/build_defs/repo/git.bzl", line 74, in _clone_or_update fail(("error cloning %s:\n%s" % (ctx....))) error cloning io_bazel_rules_docker: + cd D:/test/tensorflow_1.15.windows/pmsk6zot/external + rm -rf D:/test/tensorflow_1.15.windows/pmsk6zot/external/io_bazel_rules_docker D:/test/tensorflow_1.15.windows/pmsk6zot/external/io_bazel_rules_docker /usr/bin/bash: line 5: rm: command not found INFO: Elapsed time: 16.173s INFO: 0 processes. FAILED: Build did NOT complete successfully (0 packages loaded) |
Error is Din you run Also, please use |
Run configure.cmd (which calls configure.py), the error is pretty the same:
|
Does it mean I should you wsl for building for windows? |
Or MSYS2. See https://www.tensorflow.org/install/source_windows |
Hi There, We are checking to see if you still need help on this, as you are using an older version of tensorflow which is officially considered end of life . We recommend that you upgrade to the latest 2.x version and let us know if the issue still persists in newer versions. Please open a new issue for any help you need against 2.x, and we will get you the right help. This issue will be closed automatically 7 days from now. If you still need help with this issue, please provide us with more information. |
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, 456fbc0
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
The text was updated successfully, but these errors were encountered: