Skip to content

Cannot install CocoaPods 1.12 in CI, failed installing dependency json 2.6.3 with native extensions #122057

@jmagman

Description

@jmagman

Dependabot tried to bump the cocoapods gem from 1.11.3 to 1.12.0 in #122051, but gem installation json dependency fails:

Installing json 2.6.3 with native extensions
Gem::Ext::BuildError: ERROR: Failed to build gem native extension.

current directory:
/Volumes/Work/s/w/ir/x/w/gems/ruby/3.1.0/gems/json-2.6.3/ext/json/ext/parser
/Volumes/Work/s/w/ir/cache/ruby/.cipd/pkgs/0/TyvPskvefNRkTDmiDcwRHrdL_a2FQE_4wBojOqhxdtYC/bin/ruby
-I
/Volumes/Work/s/w/ir/cache/ruby/.cipd/pkgs/0/TyvPskvefNRkTDmiDcwRHrdL_a2FQE_4wBojOqhxdtYC/lib/ruby/3.1.0
extconf.rb
checking for rb_enc_raise() in ruby.h... *** extconf.rb failed ***
Could not create Makefile due to some reason, probably lack of necessary
libraries and/or headers.  Check the mkmf.log file for more details.  You may
need configuration options.

Provided configuration options:
	--with-opt-dir
	--with-opt-include
	--without-opt-include=${opt-dir}/include
	--with-opt-lib
	--without-opt-lib=${opt-dir}/lib
	--with-make-prog
	--without-make-prog
	--srcdir=.
	--curdir
--ruby=/Volumes/Work/s/w/ir/cache/ruby/.cipd/pkgs/0/TyvPskvefNRkTDmiDcwRHrdL_a2FQE_4wBojOqhxdtYC/bin/$(RUBY_BASE_NAME)
/Volumes/Work/s/w/ir/cache/ruby/.cipd/pkgs/0/TyvPskvefNRkTDmiDcwRHrdL_a2FQE_4wBojOqhxdtYC/lib/ruby/3.1.0/mkmf.rb:490:in
`try_do': The compiler failed to generate an executable file. (RuntimeError)
You have to install development tools first.
from
/Volumes/Work/s/w/ir/cache/ruby/.cipd/pkgs/0/TyvPskvefNRkTDmiDcwRHrdL_a2FQE_4wBojOqhxdtYC/lib/ruby/3.1.0/mkmf.rb:583:in
`try_link0'
from
/Volumes/Work/s/w/ir/cache/ruby/.cipd/pkgs/0/TyvPskvefNRkTDmiDcwRHrdL_a2FQE_4wBojOqhxdtYC/lib/ruby/3.1.0/mkmf.rb:601:in
`try_link'
from
/Volumes/Work/s/w/ir/cache/ruby/.cipd/pkgs/0/TyvPskvefNRkTDmiDcwRHrdL_a2FQE_4wBojOqhxdtYC/lib/ruby/3.1.0/mkmf.rb:812:in
`try_func'
from
/Volumes/Work/s/w/ir/cache/ruby/.cipd/pkgs/0/TyvPskvefNRkTDmiDcwRHrdL_a2FQE_4wBojOqhxdtYC/lib/ruby/3.1.0/mkmf.rb:1116:in
`block in have_func'
from
/Volumes/Work/s/w/ir/cache/ruby/.cipd/pkgs/0/TyvPskvefNRkTDmiDcwRHrdL_a2FQE_4wBojOqhxdtYC/lib/ruby/3.1.0/mkmf.rb:989:in
`block in checking_for'
from
/Volumes/Work/s/w/ir/cache/ruby/.cipd/pkgs/0/TyvPskvefNRkTDmiDcwRHrdL_a2FQE_4wBojOqhxdtYC/lib/ruby/3.1.0/mkmf.rb:354:in
`block (2 levels) in postpone'
from
/Volumes/Work/s/w/ir/cache/ruby/.cipd/pkgs/0/TyvPskvefNRkTDmiDcwRHrdL_a2FQE_4wBojOqhxdtYC/lib/ruby/3.1.0/mkmf.rb:324:in
`open'
from
/Volumes/Work/s/w/ir/cache/ruby/.cipd/pkgs/0/TyvPskvefNRkTDmiDcwRHrdL_a2FQE_4wBojOqhxdtYC/lib/ruby/3.1.0/mkmf.rb:354:in
`block in postpone'
from
/Volumes/Work/s/w/ir/cache/ruby/.cipd/pkgs/0/TyvPskvefNRkTDmiDcwRHrdL_a2FQE_4wBojOqhxdtYC/lib/ruby/3.1.0/mkmf.rb:324:in
`open'
from
/Volumes/Work/s/w/ir/cache/ruby/.cipd/pkgs/0/TyvPskvefNRkTDmiDcwRHrdL_a2FQE_4wBojOqhxdtYC/lib/ruby/3.1.0/mkmf.rb:350:in
`postpone'
from
/Volumes/Work/s/w/ir/cache/ruby/.cipd/pkgs/0/TyvPskvefNRkTDmiDcwRHrdL_a2FQE_4wBojOqhxdtYC/lib/ruby/3.1.0/mkmf.rb:988:in
`checking_for'
from
/Volumes/Work/s/w/ir/cache/ruby/.cipd/pkgs/0/TyvPskvefNRkTDmiDcwRHrdL_a2FQE_4wBojOqhxdtYC/lib/ruby/3.1.0/mkmf.rb:1115:in
`have_func'
	from extconf.rb:4:in `<main>'

To see why this extension failed to compile, please check the mkmf.log which can
be found here:

/Volumes/Work/s/w/ir/x/w/gems/ruby/3.1.0/extensions/x86_64-darwin-21/3.1.0-static/json-2.6.3/mkmf.log

extconf failed, exit code 1

Gem files will remain installed in
/Volumes/Work/s/w/ir/x/w/gems/ruby/3.1.0/gems/json-2.6.3 for inspection.
Results logged to
/Volumes/Work/s/w/ir/x/w/gems/ruby/3.1.0/extensions/x86_64-darwin-21/3.1.0-static/json-2.6.3/gem_make.out

An error occurred while installing json (2.6.3), and Bundler cannot continue.
Make sure that `gem install json -v '2.6.3' --source 'https://rubygems.org//'`
succeeds before bundling.

In Gemfile:
  cocoapods was resolved to 1.12.0, which depends on
    cocoapods-core was resolved to 1.12.0, which depends on
      algoliasearch was resolved to 1.27.5, which depends on
        json

https://logs.chromium.org/logs/flutter/buildbucket/cr-buildbucket/8787336528606460385/+/u/Install_gems/install_gems/stdout

Metadata

Metadata

Assignees

Labels

P1High-priority issues at the top of the work listteam-infraOwned by Infrastructure teamtriaged-infraTriaged by Infrastructure team

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions