You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Attempting to follow the instructions provided here, I am unable to build a wheel using the provided script. Bazel fails immediately:
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:
/usr/local/src/tensorflow/tools/bazel.rc
Starting local Bazel server and connecting to it...
INFO: Invocation ID: 478f11e1-6cfc-42ec-96c4-61cefa74fb83
Loading:
Loading: 0 packages loaded
ERROR: error loading package '': Encountered error while reading extension file 'closure/defs.bzl': no such package '@io_bazel_rules_closure//closure': The native http_archive rule is deprecated. load("@bazel_tools//tools/build_defs/repo:http.bzl", "http_archive") for a drop-in replacement.
Use --incompatible_remove_native_http_archive=false to temporarily continue using the native rule.
ERROR: error loading package '': Encountered error while reading extension file 'closure/defs.bzl': no such package '@io_bazel_rules_closure//closure': The native http_archive rule is deprecated. load("@bazel_tools//tools/build_defs/repo:http.bzl", "http_archive") for a drop-in replacement.
Use --incompatible_remove_native_http_archive=false to temporarily continue using the native rule.
INFO: Elapsed time: 1.795s
INFO: 0 processes.
FAILED: Build did NOT complete successfully (0 packages loaded)
FAILED: Build did NOT complete successfully (0 packages loaded)
The command '/bin/sh -c cd /usr/local/src/tensorflow && cat /dev/null | ./configure && bazel build --config=opt //tensorflow/tools/pip_package:build_pip_package && bazel-bin/tensorflow/tools/pip_package/build_pip_package /tmp/tensorflow_cpu && bazel clean' returned a non-zero code: 1
The exact command that fails is below. bazel build --config=opt //tensorflow/tools/pip_package:build_pip_package
While the error message suggests using --incompatible_remove_native_http_archive=false, I would actually suggest that the Dockerfile not fetch the latest version of bazel, but instead use the latest version officially tested, which is 0.15.0 as of writing.
Using a newer version of bazel can lead to other issues, as well.
The text was updated successfully, but these errors were encountered:
Attempting to follow the instructions provided here, I am unable to build a wheel using the provided script. Bazel fails immediately:
The exact command that fails is below.
bazel build --config=opt //tensorflow/tools/pip_package:build_pip_package
While the error message suggests using
--incompatible_remove_native_http_archive=false
, I would actually suggest that the Dockerfile not fetch the latest version of bazel, but instead use the latest version officially tested, which is0.15.0
as of writing.Using a newer version of bazel can lead to other issues, as well.
The text was updated successfully, but these errors were encountered: