Can't install from source on ARMv7 due to grpc 1.19.0 dependency

Summary

When installing from source, installing Ruby Gems fails due to GRPC 1.19.0

Steps to reproduce

Attempt to install from source in ARMv7 Arch Linux environment.

uname -a
Linux xu4 4.14.141-2-ARCH #1 SMP PREEMPT Sun Sep 1 19:25:25 UTC 2019 armv7l GNU/Linux
rbenv version
2.6.3 (set by /mnt/var/lib/git/.ruby-version)

gitlab version 12-3

What is the current bug behavior?

Installation Fails, same error reported in issue #34425 (closed)

What is the expected correct behavior?

Successful Gem installation

Relevant logs and/or screenshots

third_party/cares/cares/ares_init.c: At top level:
cc1: error: unrecognized command line option ‘-Wno-invalid-source-encoding’ [-Werror]
cc1: all warnings being treated as errors
make: *** [Makefile:2972:
/mnt/var/lib/git/gitlab/vendor/bundle/ruby/2.6.0/gems/grpc-1.19.0/src/ruby/ext/grpc/objs/opt/third_party/cares/cares/ares_init.o]
Error 1
make: *** Waiting for unfinished jobs....
make: Leaving directory '/mnt/var/lib/git/gitlab/vendor/bundle/ruby/2.6.0/gems/grpc-1.19.0'
*** 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
	--without-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=/mnt/var/lib/git/.rbenv/versions/2.6.3/bin/$(RUBY_BASE_NAME)

extconf failed, exit code 1

Gem files will remain installed in /mnt/var/lib/git/gitlab/vendor/bundle/ruby/2.6.0/gems/grpc-1.19.0 for inspection.
Results logged to /mnt/var/lib/git/gitlab/vendor/bundle/ruby/2.6.0/extensions/armv7l-linux/2.6.0-static/grpc-1.19.0/gem_make.out

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

In Gemfile:
  gitaly was resolved to 1.58.0, which depends on
    grpc


Gem::Ext::BuildError: ERROR: Failed to build gem native extension.

Results of GitLab environment info

Expand for output related to GitLab environment info

(For installations with omnibus-gitlab package run and paste the output of: sudo gitlab-rake gitlab:env:info)

(For installations from source run and paste the output of: sudo -u git -H bundle exec rake gitlab:env:info RAILS_ENV=production)

Could not find grpc-1.19.0 in any of the sources

Possible fixes

Inside #34425 (closed) it is mentioned that an upgrade to gRPC >1.22.0 is needed.

Edited Oct 19, 2019 by Sergio Moretti
Assignee Loading
Time tracking Loading