./stack.sh execution error: command 'x86_64-linux-gnu-gcc' failed with exit status 1

asked 2019-09-02 15:26:34 -0500

anonymous user

Anonymous

When attempting to install Devstack using the ./stack.sh command, a cryptography error appears stating that:

error: command 'x86_64-linux-gnu-gcc' failed with exit status 1

----------------------------------------

Rolling back uninstall of cryptography Command "/usr/bin/python -u -c "import setuptools, tokenize;__file__='/tmp/pip-build-XMHaQ6/cryptography/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-EFm7X7-record/install-record.txt --single-version-externally-managed --compile" failed with error code 1 in /tmp/pip-build-XMHaQ6/cryptography/ You are using pip version 9.0.3, however version 19.2.3 is available. You should consider upgrading via the 'pip install --upgrade pip' command. +inc/python:pip_install:1 exit_trap +./stack.sh:exit_trap:511 local r=1 ++./stack.sh:exit_trap:512 jobs -p +./stack.sh:exit_trap:512 jobs= +./stack.sh:exit_trap:515 [[ -n '' ]] +./stack.sh:exit_trap:521 kill_spinner +./stack.sh:kill_spinner:407 '[' '!' -z '' ']' +./stack.sh:exit_trap:523 [[ 1 -ne 0 ]] +./stack.sh:exit_trap:524 echo 'Error on exit' Error on exit +./stack.sh:exit_trap:525 generate-subunit 1567454709 269 fail +./stack.sh:exit_trap:526 [[ -z /opt/stack/logs ]] +./stack.sh:exit_trap:529 /opt/stack/devstack/tools/worlddump.py -d /opt/stack/logs World dumping... see /opt/stack/logs/worlddump-2019-09-02-200939.txt for details +./stack.sh:exit_trap:535 exit 1

The version 19.2.3 of the pip has been installed, so the message about the 19.2.3 being available must be due to a setting somewhere.

Any ideas about this would be a great help.

Regards.

edit retag flag offensive close merge delete

Comments

The reference to a newer pip version is unlikely to indicate a problem. Happens all the time.

Can you install cryptography manually, before running stack.sh? What are the cc error messages?

There are sometimes version glitches, i.e. Devstack requires a broken package. Might be temporary.

Bernd Bausch gravatar imageBernd Bausch ( 2019-09-02 18:50:40 -0500 )edit

The cryptography has been installed manually using pip install cryptography command. The installation results in the same error.

Could you explain what "cc error messages" are?

Is there a way to install devstack without this cryptography, if its being used on a secure intranet?

Regards.

AM80 gravatar imageAM80 ( 2019-09-05 10:33:47 -0500 )edit

Could you explain what "cc error messages" are?

Error messages issued by the C compiler.

I suppose cryptography is fundamental software for several other packages. For example, Swift probably needs it to implement erasure coding.

Bernd Bausch gravatar imageBernd Bausch ( 2019-09-05 16:55:48 -0500 )edit