Dependency Scanning Job Fails with 'No Acceptable C compiler found in $PATH'
Dependency Scanning Job Fails with 'No Acceptable C compiler found in $PATH'
unable to execute 'gcc': No such file or directory error: command 'gcc' failed with exit status 1
I believe this issue is on the GitLab side, we are simply importing the template and running it on a python repo. Other security jobs run fine on this repo.
Here is a fully copy of the error (sorry I can't include the entire pipeline job):
docker run ...
....
....
....
running build_ext
Running '(cd "/tmp/pip-install-5pbqy8ei/gevent/deps/libev" && sh ./configure && cp config.h "$OLDPWD" ) > configure-output.txt' in /tmp/pip-install-5pbqy8ei/gevent/build/temp.linux-x86_64-3.7/libev
configure: error: in `/tmp/pip-install-5pbqy8ei/gevent/deps/libev':
configure: error: no acceptable C compiler found in $PATH
See `config.log' for more details
Traceback (most recent call last):
File "<string>", line 1, in <module>
File "/tmp/pip-install-5pbqy8ei/gevent/setup.py", line 427, in <module>
run_setup(EXT_MODULES, run_make=_BUILDING)
File "/tmp/pip-install-5pbqy8ei/gevent/setup.py", line 411, in run_setup
"signal_os_incompat = gevent.monkey:_subscribe_signal_os",
File "/usr/local/lib/python3.7/site-packages/setuptools/__init__.py", line 145, in setup
return distutils.core.setup(**attrs)
File "/usr/local/lib/python3.7/distutils/core.py", line 148, in setup
dist.run_commands()
File "/usr/local/lib/python3.7/distutils/dist.py", line 966, in run_commands
self.run_command(cmd)
File "/usr/local/lib/python3.7/distutils/dist.py", line 985, in run_command
cmd_obj.run()
File "/usr/local/lib/python3.7/site-packages/wheel/bdist_wheel.py", line 192, in run
self.run_command('build')
File "/usr/local/lib/python3.7/distutils/cmd.py", line 313, in run_command
self.distribution.run_command(command)
File "/usr/local/lib/python3.7/distutils/dist.py", line 985, in run_command
cmd_obj.run()
File "/usr/local/lib/python3.7/distutils/command/build.py", line 135, in run
self.run_command(cmd_name)
File "/usr/local/lib/python3.7/distutils/cmd.py", line 313, in run_command
self.distribution.run_command(command)
File "/usr/local/lib/python3.7/distutils/dist.py", line 985, in run_command
cmd_obj.run()
File "/usr/local/lib/python3.7/site-packages/setuptools/command/build_ext.py", line 78, in run
_build_ext.run(self)
File "/usr/local/lib/python3.7/distutils/command/build_ext.py", line 340, in run
self.build_extensions()
File "/usr/local/lib/python3.7/distutils/command/build_ext.py", line 449, in build_extensions
self._build_extensions_serial()
File "/usr/local/lib/python3.7/distutils/command/build_ext.py", line 474, in _build_extensions_serial
self.build_extension(ext)
File "/tmp/pip-install-5pbqy8ei/gevent/_setuputils.py", line 222, in build_extension
self.gevent_prepare(ext)
File "/tmp/pip-install-5pbqy8ei/gevent/_setuputils.py", line 219, in gevent_prepare
configure(self, ext)
File "/tmp/pip-install-5pbqy8ei/gevent/_setuplibev.py", line 56, in configure_libev
system(libev_configure_command)
File "/tmp/pip-install-5pbqy8ei/gevent/_setuputils.py", line 150, in system
if _system(cmd, cwd=cwd, env=env, **kwargs):
File "/tmp/pip-install-5pbqy8ei/gevent/_setuputils.py", line 146, in _system
return check_call(cmd, cwd=cwd, env=env, **kwargs)
File "/usr/local/lib/python3.7/subprocess.py", line 347, in check_call
raise CalledProcessError(retcode, cmd)
subprocess.CalledProcessError: Command '(cd "/tmp/pip-install-5pbqy8ei/gevent/deps/libev" && sh ./configure && cp config.h "$OLDPWD" ) > configure-output.txt' returned non-zero exit status 1.
----------------------------------------
Failed building wheel for gevent
Running setup.py clean for gevent
Building wheel for pymongo (setup.py): started
Building wheel for pymongo (setup.py): finished with status 'done'
Stored in directory: /.cache/pip/wheels/b7/6a/2f/ba9ea55caca26cd342ca9cbfb9ec0782c8b91c1ed1c7c18b5b
Building wheel for greenlet (setup.py): started
Building wheel for greenlet (setup.py): finished with status 'error'
Complete output from command /usr/local/bin/python -u -c "import setuptools, tokenize;__file__='/tmp/pip-install-5pbqy8ei/greenlet/setup.py';f=getattr(tokenize, 'open', open)(__file__);code=f.read().replace('\r\n', '\n');f.close();exec(compile(code, __file__, 'exec'))" bdist_wheel -d /tmp/pip-wheel-8n7bduru --python-tag cp37:
running bdist_wheel
running build
running build_ext
building 'greenlet' extension
creating build
creating build/temp.linux-x86_64-3.7
gcc -Wno-unused-result -Wsign-compare -DNDEBUG -g -fwrapv -O3 -Wall -DTHREAD_STACK_SIZE=0x100000 -fPIC -I/usr/local/include/python3.7m -c greenlet.c -o build/temp.linux-x86_64-3.7/greenlet.o
unable to execute 'gcc': No such file or directory
error: command 'gcc' failed with exit status 1
----------------------------------------
Failed building wheel for greenlet
Running setup.py clean for greenlet
Successfully built tornado pykafka tabulate pymongo
Failed to build gevent greenlet
Installing collected packages: tornado, jsonschema, six, kazoo, tabulate, greenlet, gevent, pykafka, pymongo, motor
Running setup.py install for greenlet: started
Running setup.py install for greenlet: finished with status 'error'
Complete output from command /usr/local/bin/python -u -c "import setuptools, tokenize;__file__='/tmp/pip-install-5pbqy8ei/greenlet/setup.py';f=getattr(tokenize, 'open', open)(__file__);code=f.read().replace('\r\n', '\n');f.close();exec(compile(code, __file__, 'exec'))" install --record /tmp/pip-record-2068cq2u/install-record.txt --single-version-externally-managed --compile:
running install
running build
running build_ext
building 'greenlet' extension
creating build
creating build/temp.linux-x86_64-3.7
gcc -Wno-unused-result -Wsign-compare -DNDEBUG -g -fwrapv -O3 -Wall -DTHREAD_STACK_SIZE=0x100000 -fPIC -I/usr/local/include/python3.7m -c greenlet.c -o build/temp.linux-x86_64-3.7/greenlet.o
unable to execute 'gcc': No such file or directory
error: command 'gcc' failed with exit status 1
----------------------------------------
Command "/usr/local/bin/python -u -c "import setuptools, tokenize;__file__='/tmp/pip-install-5pbqy8ei/greenlet/setup.py';f=getattr(tokenize, 'open', open)(__file__);code=f.read().replace('\r\n', '\n');f.close();exec(compile(code, __file__, 'exec'))" install --record /tmp/pip-record-2068cq2u/install-record.txt --single-version-externally-managed --compile" failed with error code 1 in /tmp/pip-install-5pbqy8ei/greenlet/
2019/04/11 20:42:27 exit status 1
2019/04/11 20:42:28 Container exited with non zero status code
Uploading artifacts...
WARNING: gl-dependency-scanning-report.json: no matching files
ERROR: No files to upload
ERROR: Job failed: exit code 1
Edited by 🤖 GitLab Bot 🤖