Skip to content

Pin rbs to >= 4.1.0.pre.2 to fix JRuby CI#442

Merged
flavorjones merged 1 commit into
masterfrom
jruby-rbs-java-platform
Jul 6, 2026
Merged

Pin rbs to >= 4.1.0.pre.2 to fix JRuby CI#442
flavorjones merged 1 commit into
masterfrom
jruby-rbs-java-platform

Conversation

@flavorjones

@flavorjones flavorjones commented Jul 6, 2026

Copy link
Copy Markdown
Member

Problem

The jruby CI job fails at bundle install:

Installing rbs 4.0.3 with native extensions
Gem::Ext::BuildError: ERROR: Failed to build gem native extension.
...
RuntimeError: The compiler failed to generate an executable file.
You have to install development tools first.

rdoc 8 added a dependency on rbs (pulled in transitively: rubygems-tasksirbrdoc). Before 4.1.0.pre.2, rbs shipped only a C-extension gem, so bundle install tries to compile a native extension — which fails on the JRuby CI runner because it has no C compiler toolchain.

Upstream: ruby/rdoc#1746

Fix

Pin rbs to >= 4.1.0.pre.2 on JRuby only — that release publishes a java platform variant with no native extension to build. Other Rubies are unaffected and keep resolving whatever rdoc/rbs they normally would.

rdoc 8 added a dependency on rbs, which has no java platform gem before
4.1.0.pre.2, so bundle install fails building rbs's C extension on JRuby.
Pin rbs to >= 4.1.0.pre.2 on JRuby only. See ruby/rdoc#1746
@flavorjones flavorjones force-pushed the jruby-rbs-java-platform branch from e34b898 to 5d90063 Compare July 6, 2026 17:19
@flavorjones flavorjones merged commit 0b3c51f into master Jul 6, 2026
10 checks passed
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.

1 participant