Skip to content

The max version of bazel supported by tensorflow should be increased to 4.1.0 or higher #50966

@Cheney-W

Description

@Cheney-W

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: Windows 10 21H1
  • TensorFlow installed from (source or binary): source
  • TensorFlow version: 2.4

Describe the problem
I'm a member of Microsoft VCPKG team, we recently upgraded the version of bazel used in vcpkg to 4.1.0, then tensorflow build failed with following error:

You have bazel 4.1.0 installed.
Please downgrade your bazel installation to version 3.99.0 or lower to build TensorFlow! To downgrade: download the installer for the old version (from https://github.com/bazelbuild/bazel/releases) then run the installer.

This issue is due to the fact that tensorflow has set the maximum supported version of bazel to 3.99.0 on line 53 of the https://github.com/tensorflow/tensorflow/blob/master/configure.py file.

For fixing this issue, the max version of bazel supported by tensorflow should be increased to 4.1.0 or higher.

Any other info / logs
I have tested that tensorflow could installed successfully when using bazel 4.1.0.

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions