You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
google-cloud-errors: Ruby 3.2 CI fails to build google-protobuf 3.25.8 on ubuntu-26.04 #36685
Since 2026-10-26, the CI (ubuntu-latest, 3.2, --test) job fails for google-cloud-errors. Bundler can't build the google-protobuf 3.25.8 native extension. Every other matrix job passes.
This keeps the nightly CI run red and blocks the release PR #36668. That PR's only change is docs.
Error
From the failed job (runner image ubuntu-26.04, Ruby 3.2.11):
Installing google-protobuf 3.25.8 with native extensions
Gem::Ext::BuildError: ERROR: Failed to build gem native extension.
...
compiling protobuf.c
In file included from .../include/ruby-3.2.0/ruby/internal/arithmetic/long.h:42,
...
error: unknown type name 'bool'
error: 'true' undeclared (first use in this function)
error: 'false' undeclared (first use in this function)
...
An error occurred while installing google-protobuf (3.25.8), and Bundler cannot continue.
Cause
Several facts combine:
ubuntu-latest now resolves to the ubuntu-26.04 runner image, and its GCC defaults to C23.
Ruby 3.2's include/ruby/internal/stdbool.h includes <stdbool.h> only when the build config defines HAVE_STDBOOL_H (source). Ruby 3.3 includes it unconditionally (source), so the 3.3, 3.4 and 4.0 jobs pass.
google-protobuf forces -std=gnu99 in its extconf.rb, so bool is undefined. Native gems that keep the compiler default (json, prism, racc) still build on Ruby 3.2 in the same job.
google-cloud-errors is the only gem that compiles protobuf from source at all. Its Gemfile still pulls the legacy google-gax ~> 1.8, which caps google-protobuf at 3.x. The lockfile has only the source (ruby platform) variant of 3.25.8. The precompiled 3.25.8 build covers only Ruby < 3.4, so it gets dropped from locks generated on newer Ruby. Other gems lock google-protobuf 4.x with precompiled x86_64-linux-gnu builds and never compile it.
The library code doesn't use google-gax. Only the tests reference it: wrapped_gax_test.rb, plus unused requires in two REST error tests.
Proposed fix
Remove the google-gax test dependency and wrapped_gax_test.rb from google-cloud-errors. Then regenerate the lockfile so google-protobuf resolves to 4.x with precompiled builds for Ruby 3.2 through 4.0.
Activity
quartzmo commentedon Oct 29, 2026
Related to googleapis/google-api-ruby-client#28001
chore: drop legacy google-gax test dependency from google-cloud-errors (