Skip to content

build: bump abseil-cpp to 20260526.0 for torch_tpu compatibility - #483

Draft
yinlin09 wants to merge 1 commit into
mainfrom
yinlin/absl-compat-bump
Draft

build: bump abseil-cpp to 20260526.0 for torch_tpu compatibility#483
yinlin09 wants to merge 1 commit into
mainfrom
yinlin/absl-compat-bump

Conversation

@yinlin09

Copy link
Copy Markdown
Collaborator

Fixes the module-resolution failure reported when building raiden's torch extension against a current torch_tpu checkout (e.g. in vLLM setups):

ERROR: Error computing the main repository mapping: torch_tpu@_ depends on abseil-cpp@20260526.0 with compatibility level 0, but <root> depends on abseil-cpp@20260107.1 with compatibility level 1 which is different

torch_tpu moved to abseil-cpp 20260526.0 as part of its XLA revision bump. That BCR entry has no compatibility_level (defaults to 0) while older abseil releases are level 1, and bzlmod refuses to unify across levels — so the version bump alone is not enough; the added single_version_override is what forces selection past the mismatch (transitive deps such as protobuf 33.5 still request level-1 releases).

Validated in the ml-build container:

  • torch wheel builds against torch_tpu main HEAD (a7191cab), which previously failed as above
  • jax wheel builds unchanged
  • raiden's pinned XLA (5a9e73cb) compiles against the new abseil; no XLA bump needed

Note: after this lands, building against torch_tpu checkouts older than its abseil bump (e20c0244) fails with the mirror-image error — keep torch_tpu checkouts current.

torch_tpu main moved to abseil-cpp 20260526.0, whose BCR entry carries a
different bzlmod compatibility level than older releases, so raiden's
20260107.1 pin fails module resolution when building the torch extension
against a current torch_tpu checkout:

  ERROR: torch_tpu@_ depends on abseil-cpp@20260526.0 with compatibility
  level 0, but <root> depends on abseil-cpp@20260107.1 with compatibility
  level 1 which is different

Bump the dep and force it with a single_version_override, which selects
across the compatibility-level mismatch that a plain bazel_dep cannot
(transitive deps such as protobuf still request level-1 releases).
@yinlin09
yinlin09 force-pushed the yinlin/absl-compat-bump branch from 48b0493 to e9fd9b7 Compare July 30, 2026 08:01
@yinlin09
yinlin09 marked this pull request as draft July 30, 2026 19:10
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants