Skip to content

Forward CMake 4.x policy minimum to host-protoc cross-compilation build - #180240

Closed
zklaus wants to merge 1 commit into
mainfrom
gh/zklaus/46/head
Closed

zklaus wants to merge 1 commit into
mainfrom
gh/zklaus/46/head

Conversation

@zklaus

@zklaus zklaus commented Apr 13, 2026 •

Copy link
Copy Markdown
Collaborator

The host-protoc build runs as a separate CMake invocation and doesn't
inherit the localized CMAKE_POLICY_VERSION_MINIMUM guards that the
main build already has around third-party add_subdirectory calls.
Pass -DCMAKE_POLICY_VERSION_MINIMUM=3.5 so protobuf (which requires
CMake 3.1.3) can build under CMake 4.x.

Co-Generated with Claude Code

cc @amjames

@pytorch-bot pytorch-bot Bot added the topic: not user facing topic category label Apr 13, 2026
@pytorch-bot

pytorch-bot Bot commented Apr 13, 2026 •

Copy link
Copy Markdown

🔗 Helpful Links

🧪 See artifacts and rendered test results at hud.pytorch.org/pr/180240

Note: Links to docs will display an error until the docs builds have been completed.

❌ 1 New Failure, 63 Cancelled Jobs, 195 Pending

As of commit 29b4fd9 with merge base 7e49a76 (image):

NEW FAILURE - The following job has failed:

  • Check mergeability of ghstack PR / ghstack-mergeability-check (gh)
    RuntimeError: PR 180240 is out of sync with the corresponding revision 8656d316d2ffcbdf0d5d9b26b9604fb3f15c7d4b on branch gh/zklaus/46/orig that would be merged into main. This usually happens because there is a non ghstack change in the PR. Please sync them and try again (ex. make the changes on origin/gh/zklaus/46/orig and run ghstack).

CANCELLED JOBS - The following jobs were cancelled. Please retry:

This comment was automatically generated by Dr. CI and updates every 15 minutes.

zklaus added a commit to zklaus/pytorch that referenced this pull request Apr 13, 2026
The host-protoc build runs as a separate CMake invocation and doesn't
inherit the localized CMAKE_POLICY_VERSION_MINIMUM guards that the
main build already has around third-party add_subdirectory calls.
Pass -DCMAKE_POLICY_VERSION_MINIMUM=3.5 so protobuf (which requires
CMake 3.1.3) can build under CMake 4.x.

Co-Generated with [Claude Code](https://claude.com/claude-code)


ghstack-source-id: ce0d36f
Pull-Request: pytorch#180240
@zklaus
zklaus marked this pull request as ready for review April 14, 2026 18:31
@zklaus zklaus added ciflow/binaries Trigger all binary build and upload jobs on the PR release notes: releng release notes category and removed topic: not user facing topic category labels Apr 14, 2026
zklaus added a commit to zklaus/pytorch that referenced this pull request Apr 15, 2026
The host-protoc build runs as a separate CMake invocation and doesn't
inherit the localized CMAKE_POLICY_VERSION_MINIMUM guards that the
main build already has around third-party add_subdirectory calls.
Pass -DCMAKE_POLICY_VERSION_MINIMUM=3.5 so protobuf (which requires
CMake 3.1.3) can build under CMake 4.x.

Co-Generated with [Claude Code](https://claude.com/claude-code)


ghstack-source-id: ce0d36f
Pull-Request: pytorch#180240
zklaus added a commit to zklaus/pytorch that referenced this pull request Apr 17, 2026
The host-protoc build runs as a separate CMake invocation and doesn't
inherit the localized CMAKE_POLICY_VERSION_MINIMUM guards that the
main build already has around third-party add_subdirectory calls.
Pass -DCMAKE_POLICY_VERSION_MINIMUM=3.5 so protobuf (which requires
CMake 3.1.3) can build under CMake 4.x.

Co-Generated with [Claude Code](https://claude.com/claude-code)


ghstack-source-id: ce0d36f
Pull-Request: pytorch#180240
@pytorch-bot pytorch-bot Bot added the topic: not user facing topic category label Apr 20, 2026
@zklaus
zklaus changed the base branch from gh/zklaus/46/base to main May 1, 2026 11:43
@zklaus zklaus removed module: compiled autograd compiled_autograd module: dynamo module: inductor ciflow/torchtitan Run TorchTitan integration tests ciflow/inductor ciflow/h100 ciflow/dtensor Run DTensor specific tests ciflow/rocm-mi300 Trigger "default" config CI on ROCm MI300 ciflow/b200 labels May 1, 2026
@zklaus

zklaus commented May 1, 2026

Copy link
Copy Markdown
Collaborator Author

Will reopen as clean PR.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

ciflow/binaries Trigger all binary build and upload jobs on the PR open source release notes: releng release notes category topic: not user facing topic category

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants