Unable to install grpcio on pypy:3.9 base image
- Dominant language
- C++
- Stars
- 45.3k
- Forks
- 11.4k
- Avg merge
- 2d 12h
- Merged PRs (30d)
- 47
Description
### What version of gRPC and what language are you using?
1.44.0
### What operating system (Linux, Windows,...) and version?
debian base image pypy:3.9-slim-bullseye
### What runtime / compiler are you using (e.g. python version or version of gcc)
pypy:3.9
### What did you do?
Unable to install grpcio (a dependency of google-auth)
```
FROM pypy:3.9-slim-bullseye
RUN apt-get update -y \
&& apt-get install devscripts build-essential cargo -y \
&& pypy3 -m pip install --upgrade setuptools \
&& pypy3 -m pip install --no-cache-dir \
google-auth google-cloud-tasks \
&& apt-get remove devscripts build-essential -y
```
### What did you see instead?
Warnings and errors are too numerous, 1000's of lines, difficult to see which is the root error message
```
gcc -pthread -DNDEBUG -O2 -fPIC -I/opt/pypy/include/pypy3.9 -c /tmp/tmp4njm0j5n/a.c -o None/tmp/tmp4njm0j5n/a.o
Traceback (most recent call last):
File "/opt/pypy/lib/pypy3.9/site-packages/setuptools/_distutils/unixccompiler.py", line 173, in _compile
self.spawn(compiler_so + cc_args + [src, '-o', obj] +
File "/tmp/pip-install-51in7ieq/grpcio_73fa8248b06f4e14944a74af58684e5d/src/python/grpcio/_spawn_patch.py", line 54, in _commandfile_spawn
_classic_spawn(self, command)
File "/opt/pypy/lib/pypy3.9/site-packages/setuptools/_distutils/ccompiler.py", line 917, in spawn
spawn(cmd, dry_run=self.dry_run, **kwargs)
File "/opt/pypy/lib/pypy3.9/site-packages/setuptools/_distutils/spawn.py", line 68, in spawn
raise DistutilsExecError(
distutils.errors.DistutilsExecError: command '/usr/bin/gcc' failed with exit code 1
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/tmp/pip-install-51in7ieq/grpcio_73fa8248b06f4e14944a74af58684e5d/src/python/grpcio/commands.py", line 280, in build_extensions
build_ext.build_ext.build_extensions(self)
File "/opt/pypy/lib/pypy3.9/site-packages/setuptools/_distutils/command/build_ext.py", line 448, in build_extensions
self._build_extensions_serial()
File "/opt/pypy/lib/pypy3.9/site-packages/setuptools/_distutils/command/build_ext.py", line 473, in _build_extensions_serial
self.build_extension(ext)
File "/opt/pypy/lib/pypy3.9/site-packages/setuptools/command/build_ext.py", line 202, in build_extension
_build_ext.build_extension(self, ext)
File "/opt/pypy/lib/pypy3.9/site-packages/setuptools/_distutils/command/build_ext.py", line 528, in build_extension
objects = self.compiler.compile(sources,
File "/tmp/pip-install-51in7ieq/grpcio_73fa8248b06f4e14944a74af58684e5d/src/python/grpcio/_parallel_compile_patch.py", line 58, in _parallel_compile
multiprocessing.pool.ThreadPool(BUILD_EXT_COMPILER_JOBS).map(
File "/opt/pypy/lib/pypy3.9/multiprocessing/pool.py", line 364, in map
return self._map_async(func, iterable, mapstar, chunksize).get()
File "/opt/pypy/lib/pypy3.9/multiprocessing/pool.py", line 771, in get
raise self._value
File "/opt/pypy/lib/pypy3.9/multiprocessing/pool.py", line 125, in worker
result = (True, func(*args, **kwds))
File "/opt/pypy/lib/pypy3.9/multiprocessing/pool.py", line 48, in mapstar
return list(map(*args))
File "/tmp/pip-install-51in7ieq/grpcio_73fa8248b06f4e14944a74af58684e5d/src/python/grpcio/_parallel_compile_patch.py", line 54, in _compile_single_file
self._compile(obj, src, ext, cc_args, extra_postargs, pp_opts)
File "/opt/pypy/lib/pypy3.9/site-packages/setuptools/_distutils/unixccompiler.py", line 176, in _compile
raise CompileError(msg)
distutils.errors.CompileError: command '/usr/bin/gcc' failed with exit code 1
During handling of the above exception, another exception occurred:
```
Contributor guide
Assessment
This issue has not been assessed yet.