Gem::Ext::BuildError: ERROR: Failed to build gem native extension.
Trying to install gitlab on a clean system from 0. This problem has arisen even earlier, since 13.11.X, but now I cannot solve it again
...
Installing activesupport 6.0.3.6
Fetching octokit 4.20.0
Fetching grpc 1.30.2 (x86_64-linux)
Installing octokit 4.20.0
Installing grpc 1.30.2 (x86_64-linux)
Installing grpc 1.30.2 (x86_64-linux)
Gem::Ext::BuildError: ERROR: Failed to build gem native extension.
current directory: /var/tmp/portage/www-apps/gitlab-13.12.1/work/gitlab-gitaly-13.12.1/ruby/vendor/bundle/ruby/2.7.0/gems/racc-1.5.2/ext/racc/cparse
/usr/bin/ruby27 -I /usr/lib64/ruby/site_ruby/2.7.0 -r ./siteconf20210601-7895-1h7sovu.rb extconf.rb
/usr/lib64/ruby/site_ruby/2.7.0/rubygems/core_ext/kernel_require.rb:83:in `require': cannot load such file -- did_you_mean (LoadError)
from /usr/lib64/ruby/site_ruby/2.7.0/rubygems/core_ext/kernel_require.rb:83:in `require'
from <internal:gem_prelude>:2:in `<internal:gem_prelude>'
extconf failed, exit code 1
Gem files will remain installed in /var/tmp/portage/www-apps/gitlab-13.12.1/work/gitlab-gitaly-13.12.1/ruby/vendor/bundle/ruby/2.7.0/gems/racc-1.5.2 for inspection.
Results logged to /var/tmp/portage/www-apps/gitlab-13.12.1/work/gitlab-gitaly-13.12.1/ruby/vendor/bundle/ruby/2.7.0/extensions/x86_64-linux/2.7.0/racc-1.5.2/gem_make.out
An error occurred while installing racc (1.5.2), and Bundler cannot continue.
Make sure that `gem install racc -v '1.5.2' --source 'https://rubygems.org/'` succeeds before bundling.
In Gemfile:
gitlab-labkit was resolved to 0.16.2, which depends on
actionpack was resolved to 6.0.3.6, which depends on
actionview was resolved to 6.0.3.6, which depends on
rails-dom-testing was resolved to 2.0.3, which depends on
nokogiri was resolved to 1.11.1, which depends on
racc
Gem::Ext::BuildError: ERROR: Failed to build gem native extension.
current directory: /var/tmp/portage/www-apps/gitlab-13.12.1/work/gitlab-gitaly-13.12.1/ruby/vendor/bundle/ruby/2.7.0/gems/charlock_holmes-0.7.7/ext/charlock_holmes
/usr/bin/ruby27 -I /usr/lib64/ruby/site_ruby/2.7.0 -r ./siteconf20210601-7895-y3h1ug.rb extconf.rb
/usr/lib64/ruby/site_ruby/2.7.0/rubygems/core_ext/kernel_require.rb:83:in `require': cannot load such file -- did_you_mean (LoadError)
from /usr/lib64/ruby/site_ruby/2.7.0/rubygems/core_ext/kernel_require.rb:83:in `require'
from <internal:gem_prelude>:2:in `<internal:gem_prelude>'
extconf failed, exit code 1
Gem files will remain installed in /var/tmp/portage/www-apps/gitlab-13.12.1/work/gitlab-gitaly-13.12.1/ruby/vendor/bundle/ruby/2.7.0/gems/charlock_holmes-0.7.7 for inspection.
Results logged to /var/tmp/portage/www-apps/gitlab-13.12.1/work/gitlab-gitaly-13.12.1/ruby/vendor/bundle/ruby/2.7.0/extensions/x86_64-linux/2.7.0/charlock_holmes-0.7.7/gem_make.out
An error occurred while installing charlock_holmes (0.7.7), and Bundler cannot continue.
Make sure that `gem install charlock_holmes -v '0.7.7' --source 'https://rubygems.org/'` succeeds before bundling.
In Gemfile:
github-linguist was resolved to 7.12.1, which depends on
charlock_holmes
Gem::Ext::BuildError: ERROR: Failed to build gem native extension.
current directory: /var/tmp/portage/www-apps/gitlab-13.12.1/work/gitlab-gitaly-13.12.1/ruby/vendor/bundle/ruby/2.7.0/gems/escape_utils-1.2.1/ext/escape_utils
/usr/bin/ruby27 -I /usr/lib64/ruby/site_ruby/2.7.0 -r ./siteconf20210601-7895-npj3r0.rb extconf.rb
/usr/lib64/ruby/site_ruby/2.7.0/rubygems/core_ext/kernel_require.rb:83:in `require': cannot load such file -- did_you_mean (LoadError)
from /usr/lib64/ruby/site_ruby/2.7.0/rubygems/core_ext/kernel_require.rb:83:in `require'
from <internal:gem_prelude>:2:in `<internal:gem_prelude>'
extconf failed, exit code 1
Gem files will remain installed in /var/tmp/portage/www-apps/gitlab-13.12.1/work/gitlab-gitaly-13.12.1/ruby/vendor/bundle/ruby/2.7.0/gems/escape_utils-1.2.1 for inspection.
Results logged to /var/tmp/portage/www-apps/gitlab-13.12.1/work/gitlab-gitaly-13.12.1/ruby/vendor/bundle/ruby/2.7.0/extensions/x86_64-linux/2.7.0/escape_utils-1.2.1/gem_make.out
An error occurred while installing escape_utils (1.2.1), and Bundler cannot continue.
Make sure that `gem install escape_utils -v '1.2.1' --source 'https://rubygems.org/'` succeeds before bundling.
In Gemfile:
github-linguist was resolved to 7.12.1, which depends on
escape_utils
Gem::Ext::BuildError: ERROR: Failed to build gem native extension.
current directory: /var/tmp/portage/www-apps/gitlab-13.12.1/work/gitlab-gitaly-13.12.1/ruby/vendor/bundle/ruby/2.7.0/gems/ffi-1.13.1/ext/ffi_c
/usr/bin/ruby27 -I /usr/lib64/ruby/site_ruby/2.7.0 -r ./siteconf20210601-7895-wir85b.rb extconf.rb
/usr/lib64/ruby/site_ruby/2.7.0/rubygems/core_ext/kernel_require.rb:83:in `require': cannot load such file -- did_you_mean (LoadError)
from /usr/lib64/ruby/site_ruby/2.7.0/rubygems/core_ext/kernel_require.rb:83:in `require'
from <internal:gem_prelude>:2:in `<internal:gem_prelude>'
extconf failed, exit code 1
Gem files will remain installed in /var/tmp/portage/www-apps/gitlab-13.12.1/work/gitlab-gitaly-13.12.1/ruby/vendor/bundle/ruby/2.7.0/gems/ffi-1.13.1 for inspection.
Results logged to /var/tmp/portage/www-apps/gitlab-13.12.1/work/gitlab-gitaly-13.12.1/ruby/vendor/bundle/ruby/2.7.0/extensions/x86_64-linux/2.7.0/ffi-1.13.1/gem_make.out
An error occurred while installing ffi (1.13.1), and Bundler cannot continue.
Make sure that `gem install ffi -v '1.13.1' --source 'https://rubygems.org/'` succeeds before bundling.
In Gemfile:
rbtrace was resolved to 0.4.14, which depends on
ffi
Gem::Ext::BuildError: ERROR: Failed to build gem native extension.
current directory: /var/tmp/portage/www-apps/gitlab-13.12.1/work/gitlab-gitaly-13.12.1/ruby/vendor/bundle/ruby/2.7.0/gems/json-2.5.1/ext/json/ext/generator
/usr/bin/ruby27 -I /usr/lib64/ruby/site_ruby/2.7.0 -r ./siteconf20210601-7895-1mkcebt.rb extconf.rb
/usr/lib64/ruby/site_ruby/2.7.0/rubygems/core_ext/kernel_require.rb:83:in `require': cannot load such file -- did_you_mean (LoadError)
from /usr/lib64/ruby/site_ruby/2.7.0/rubygems/core_ext/kernel_require.rb:83:in `require'
from <internal:gem_prelude>:2:in `<internal:gem_prelude>'
extconf failed, exit code 1
Gem files will remain installed in /var/tmp/portage/www-apps/gitlab-13.12.1/work/gitlab-gitaly-13.12.1/ruby/vendor/bundle/ruby/2.7.0/gems/json-2.5.1 for inspection.
Results logged to /var/tmp/portage/www-apps/gitlab-13.12.1/work/gitlab-gitaly-13.12.1/ruby/vendor/bundle/ruby/2.7.0/extensions/x86_64-linux/2.7.0/json-2.5.1/gem_make.out
An error occurred while installing json (2.5.1), and Bundler cannot continue.
Make sure that `gem install json -v '2.5.1' --source 'https://rubygems.org/'` succeeds before bundling.
In Gemfile:
gitlab-gollum-lib was resolved to 4.2.7.10.gitlab.1, which depends on
gemojione was resolved to 3.3.0, which depends on
json
Gem::Ext::BuildError: ERROR: Failed to build gem native extension.
current directory: /var/tmp/portage/www-apps/gitlab-13.12.1/work/gitlab-gitaly-13.12.1/ruby/vendor/bundle/ruby/2.7.0/gems/thrift-0.14.1/ext
/usr/bin/ruby27 -I /usr/lib64/ruby/site_ruby/2.7.0 -r ./siteconf20210601-7895-hgkj7u.rb extconf.rb
/usr/lib64/ruby/site_ruby/2.7.0/rubygems/core_ext/kernel_require.rb:83:in `require': cannot load such file -- did_you_mean (LoadError)
from /usr/lib64/ruby/site_ruby/2.7.0/rubygems/core_ext/kernel_require.rb:83:in `require'
from <internal:gem_prelude>:2:in `<internal:gem_prelude>'
extconf failed, exit code 1
Gem files will remain installed in /var/tmp/portage/www-apps/gitlab-13.12.1/work/gitlab-gitaly-13.12.1/ruby/vendor/bundle/ruby/2.7.0/gems/thrift-0.14.1 for inspection.
Results logged to /var/tmp/portage/www-apps/gitlab-13.12.1/work/gitlab-gitaly-13.12.1/ruby/vendor/bundle/ruby/2.7.0/extensions/x86_64-linux/2.7.0/thrift-0.14.1/gem_make.out
An error occurred while installing thrift (0.14.1), and Bundler cannot continue.
Make sure that `gem install thrift -v '0.14.1' --source 'https://rubygems.org/'` succeeds before bundling.
In Gemfile:
gitlab-labkit was resolved to 0.16.2, which depends on
jaeger-client was resolved to 1.1.0, which depends on
thrift
Gem::Ext::BuildError: ERROR: Failed to build gem native extension.
current directory: /var/tmp/portage/www-apps/gitlab-13.12.1/work/gitlab-gitaly-13.12.1/ruby/vendor/bundle/ruby/2.7.0/gems/pg_query-1.3.0/ext/pg_query
/usr/bin/ruby27 -I /usr/lib64/ruby/site_ruby/2.7.0 -r ./siteconf20210601-7895-a0f5i1.rb extconf.rb
/usr/lib64/ruby/site_ruby/2.7.0/rubygems/core_ext/kernel_require.rb:83:in `require': cannot load such file -- did_you_mean (LoadError)
from /usr/lib64/ruby/site_ruby/2.7.0/rubygems/core_ext/kernel_require.rb:83:in `require'
from <internal:gem_prelude>:2:in `<internal:gem_prelude>'
extconf failed, exit code 1
Gem files will remain installed in /var/tmp/portage/www-apps/gitlab-13.12.1/work/gitlab-gitaly-13.12.1/ruby/vendor/bundle/ruby/2.7.0/gems/pg_query-1.3.0 for inspection.
Results logged to /var/tmp/portage/www-apps/gitlab-13.12.1/work/gitlab-gitaly-13.12.1/ruby/vendor/bundle/ruby/2.7.0/extensions/x86_64-linux/2.7.0/pg_query-1.3.0/gem_make.out
An error occurred while installing pg_query (1.3.0), and Bundler cannot continue.
Make sure that `gem install pg_query -v '1.3.0' --source 'https://rubygems.org/'` succeeds before bundling.
In Gemfile:
gitlab-labkit was resolved to 0.16.2, which depends on
pg_query
Gem::Ext::BuildError: ERROR: Failed to build gem native extension.
current directory: /var/tmp/portage/www-apps/gitlab-13.12.1/work/gitlab-gitaly-13.12.1/ruby/vendor/bundle/ruby/2.7.0/gems/msgpack-1.3.3/ext/msgpack
/usr/bin/ruby27 -I /usr/lib64/ruby/site_ruby/2.7.0 -r ./siteconf20210601-7895-1r3n54u.rb extconf.rb
/usr/lib64/ruby/site_ruby/2.7.0/rubygems/core_ext/kernel_require.rb:83:in `require': cannot load such file -- did_you_mean (LoadError)
from /usr/lib64/ruby/site_ruby/2.7.0/rubygems/core_ext/kernel_require.rb:83:in `require'
from <internal:gem_prelude>:2:in `<internal:gem_prelude>'
extconf failed, exit code 1
Gem files will remain installed in /var/tmp/portage/www-apps/gitlab-13.12.1/work/gitlab-gitaly-13.12.1/ruby/vendor/bundle/ruby/2.7.0/gems/msgpack-1.3.3 for inspection.
Results logged to /var/tmp/portage/www-apps/gitlab-13.12.1/work/gitlab-gitaly-13.12.1/ruby/vendor/bundle/ruby/2.7.0/extensions/x86_64-linux/2.7.0/msgpack-1.3.3/gem_make.out
An error occurred while installing msgpack (1.3.3), and Bundler cannot continue.
Make sure that `gem install msgpack -v '1.3.3' --source 'https://rubygems.org/'` succeeds before bundling.
In Gemfile:
rbtrace was resolved to 0.4.14, which depends on
msgpack
make: *** [Makefile:349: /var/tmp/portage/www-apps/gitlab-13.12.1/work/gitlab-gitaly-13.12.1/.ruby-bundle] Error 5
* ERROR: www-apps/gitlab-13.12.1::gitlab failed (compile phase):
* emake failed
*
* If you need support, post the output of `emerge --info '=www-apps/gitlab-13.12.1::gitlab'`,
* the complete build log and the output of `emerge -pqv '=www-apps/gitlab-13.12.1::gitlab'`.
* The complete build log is located at '/var/tmp/portage/www-apps/gitlab-13.12.1/temp/build.log'.
* The ebuild environment file is located at '/var/tmp/portage/www-apps/gitlab-13.12.1/temp/environment'.
* Working directory: '/var/tmp/portage/www-apps/gitlab-13.12.1/work/gitlab-gitaly-13.12.1'
* S: '/var/tmp/portage/www-apps/gitlab-13.12.1/work/gitlab-13.12.1'
>>> Failed to emerge www-apps/gitlab-13.12.1, Log file:
>>> '/var/tmp/portage/www-apps/gitlab-13.12.1/temp/build.log'
* Messages for package www-apps/gitlab-13.12.1:
* This is a new installation.
* ERROR: www-apps/gitlab-13.12.1::gitlab failed (compile phase):
* emake failed
*
* If you need support, post the output of `emerge --info '=www-apps/gitlab-13.12.1::gitlab'`,
* the complete build log and the output of `emerge -pqv '=www-apps/gitlab-13.12.1::gitlab'`.
* The complete build log is located at '/var/tmp/portage/www-apps/gitlab-13.12.1/temp/build.log'.
* The ebuild environment file is located at '/var/tmp/portage/www-apps/gitlab-13.12.1/temp/environment'.
* Working directory: '/var/tmp/portage/www-apps/gitlab-13.12.1/work/gitlab-gitaly-13.12.1'
* S: '/var/tmp/portage/www-apps/gitlab-13.12.1/work/gitlab-13.12.1'
Edited by Ghost User