-
Notifications
You must be signed in to change notification settings - Fork 214
Bazel errors building latest Master #336
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
Comments
Yes @JimClarke5 , since we've migrated to TF2.5, a newer version of Bazel is now required. The CI build now uses 3.7.2. So you just need to update it on your side as well. Sorry I just have sent a communication about this, we probably need to update the contributor guide to specify it but even there you would not have been notified. |
Thanks @karllessard. |
Sure! Want to add it up? |
I pushed it in the latest Metrics PR #337. If you think that will take too long to merge, I can do a standalone PR just for that. |
Yes if you can make a separate PR just for this @JimClarke5 , that would be great. Closing this issue now. |
@JimClarke5 I can add it to #235, I had it there at one point. |
I am getting bazel errors when building from Master.
At first, with my original bazel version "bazel 3.1.0"
The first errors where in the TensorFlow build itself, so I updated to
baselisk
as per the build instructions for TensorFlow.Build from source.
After that I started getting errors in tensorflow-core-api.
I tried to add
-incompatible_restrict_string_escapes=false
to build.sh"BUILD_FLAGS="$BUILD_FLAGS --experimental_repo_remote_exec --python_path="$PYTHON_BIN_PATH" --output_filter=DONT_MATCH_ANYTHING --verbose_failures -incompatible_restrict_string_escapes=false"
But the build did not recognize the option
-incompatible_restrict_string_escapes
Finally, I had to copy the
.bazelversion
file (presently version 3.7.2) from the@org_tensorflow
source, totensorflow-core-api/.bazelversion
.Shouldn't we update out build system to match the current TensorFlow build (e.g copy .bazelversion to tensorflow-core-api/?
TensorFlow only requires the bazel version to be between
_TF_MIN_BAZEL_VERSION
and_TF_MAX_BAZEL_VERSION
, as defined in@org_tensorflow/configure.py
.Presently defined as:
The text was updated successfully, but these errors were encountered: