Skip to content

fix(cmake): report the real protobuf failure instead of a download error - #527

Merged
philomath213 merged 1 commit into
mainfrom
fix/protobuf-error-messages
Sep 5, 2026
Merged

fix(cmake): report the real protobuf failure instead of a download error#527
philomath213 merged 1 commit into
mainfrom
fix/protobuf-error-messages

Conversation

@philomath213

Copy link
Copy Markdown
Member

Issue #526 reports that a source build on Alpine fails with Failed to download protobuf. The message is wrong. The build downloads nothing at that step. FetchContent already fetched the sources. The step that fails configures them.

The configure message now points to the nested CMake output. It also names the CMAKE_POLICY_VERSION_MINIMUM=3.5 workaround. This is the usual cause. Vendored protobuf 3.15.8 declares a pre-3.5 minimum, and CMake 4.x rejects it.

I tested both cases on python:alpine with CMake 4.2.3. Without the workaround, the new message reports the correct cause. With the workaround, the build completes and HE arithmetic gives correct results.

@philomath213
philomath213 requested a review from youben11 August 22, 2026 08:36
@philomath213 philomath213 added the Build Related to the build of the package label Aug 22, 2026
@philomath213
philomath213 force-pushed the fix/protobuf-error-messages branch from ed3c22e to 80900a4 Compare September 5, 2026 16:08
@philomath213
philomath213 merged commit 77833b4 into main Sep 5, 2026
14 checks passed
@philomath213
philomath213 deleted the fix/protobuf-error-messages branch September 5, 2026 18:32
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Build Related to the build of the package

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants