Skip to content

gRPC gem can't be built on aarch64 system #31855

@Danissss

Description

@Danissss

What version of gRPC and what language are you using?

gPRC gem version: 1.48.0 and 1.50.0
Ruby version: 2.7.5

What operating system (Linux, Windows,...) and version?

uname -a
Linux docker.ao.ubuntu 5.15.49-linuxkit #1 SMP PREEMPT Tue Sep 13 07:51:32 UTC 2022 aarch64 aarch64 aarch64 GNU/Linux

cat /etc/lsb-release 
DISTRIB_ID=Ubuntu
DISTRIB_RELEASE=20.04
DISTRIB_CODENAME=focal
DISTRIB_DESCRIPTION="Ubuntu 20.04.5 LTS"

What runtime / compiler are you using (e.g. python version or version of gcc)

gcc --version
gcc (Ubuntu 9.4.0-1ubuntu1~20.04.1) 9.4.0

ldd --version
ldd (Ubuntu GLIBC 2.31-0ubuntu9.9) 2.31
Copyright (C) 2020 Free Software Foundation, Inc.

What did you do?

  1. create docker container from arm64v8/ubuntu:20.04
  2. run gem install grpc

What did you see instead?

gem install grpc -v '1.48.0' # 1.50.0 has the same error
...
*** 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=/root/.rbenv/versions/2.7.5/bin/$(RUBY_BASE_NAME)

Anything else we should know about your project / environment?

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions