Skip to content

Conversation

qihqi
Copy link
Collaborator

@qihqi qihqi commented Sep 19, 2025

No description provided.

@qihqi qihqi requested review from bhavya01 and ysiraichi September 24, 2025 17:58
Copy link
Collaborator

@ysiraichi ysiraichi left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thank you.

While this fixes #9653, I think that this should be fixed directly inside PyTorch by installing the header (old behavior).
The reason being that we don't depend directly on fmtlib, PyTorch does.

@qihqi qihqi merged commit 0fc62aa into master Sep 24, 2025
30 of 31 checks passed
@qihqi
Copy link
Collaborator Author

qihqi commented Sep 24, 2025

Thank you.

While this fixes #9653, I think that this should be fixed directly inside PyTorch by installing the header (old behavior). The reason being that we don't depend directly on fmtlib, PyTorch does.

Right, we don't depend on fmtlib, and Pytorch does. However, we are defining the bazel target for PyTorch by specifying a build rule, and the build rule is controlled by us but considers as "Pytorch's build rule".

Note that pytorch also have their own bazel target (as they support bazel build: https://github.com/pytorch/pytorch/blob/main/BUILD.bazel) but instead of we depending on that, we created another bazel target for Pytorch by referring to their .so file (which is built by CMake) and headers.

pytorchmergebot pushed a commit to pytorch/pytorch that referenced this pull request Sep 30, 2025
`fmtlib` version was updated to 12.0.0 in #163441.

In this new version, due to fmtlib/fmt#4536, PyTorch started not installing `fmtlib` headers anymore. Because of that, PyTorch/XLA build CI started to fail pytorch/xla#9653. While we did fix it internally pytorch/xla#9650, I believe that PyTorch should continue installing the `fmtlib` headers, since it is a dependency of its C API [`python_arg_parser.h`][1].

PyTorch/XLA CI was moved to `unstable.yml` in #159272, and later removed in #163564. This PyTorch/XLA build failure went under the radar, since the `fmtlib` update only landed on September 22.

[1]: https://github.com/pytorch/pytorch/blob/84d673ef577d42d6ec20c6c9f09863583c3111f5/torch/csrc/utils/python_arg_parser.h#L42
Pull Request resolved: #164139
Approved by: https://github.com/Skylion007, https://github.com/malfet
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.

3 participants