Ubuntu 22.04 arm deb build fails

This support forum board is for support questions relating to Nagios XI, our flagship commercial network monitoring solution.
Post Reply
fullsail
Posts: 11
Joined: Tue Feb 25, 2020 10:18 am

Ubuntu 22.04 arm deb build fails

Post by fullsail »

NCPA build for ARM fails with error message

Collecting cryptography==2.8
Using cached cryptography-2.8.tar.gz (504 kB)
Installing build dependencies ... error
ERROR: Command errored out with exit status 1:
command: /usr/local/bin/python2.7 /usr/local/lib/python2.7/site-packages/pip install --ignore-installed --no-user --prefix /tmp/pip-build-env-snTfGN/overlay --no-warn-script-location --no-binary :all: --only-binary :none: -i https://pypi.org/simple -- 'setuptools>=40.6.0' wheel 'cffi>=1.8,!=1.11.3; platform_python_implementation != '"'"'PyPy'"'"''
cwd: None
Complete output (63 lines):
DEPRECATION: Python 2.7 reached the end of its life on January 1st, 2020. Please upgrade your Python as Python 2.7 is no longer maintained. pip 21.0 will drop support for Python 2.7 in January 2021. More details about Python 2 support in pip can be found at https://pip.pypa.io/en/latest/developme ... -2-support pip 21.0 will remove support for this functionality.
Collecting setuptools>=40.6.0
Using cached setuptools-44.1.1.zip (858 kB)
Collecting wheel
Using cached wheel-0.37.1.tar.gz (66 kB)
Collecting cffi!=1.11.3,>=1.8
Using cached cffi-1.15.1.tar.gz (508 kB)
Collecting pycparser
Using cached pycparser-2.21.tar.gz (170 kB)
Skipping wheel build for setuptools, due to binaries being disabled for it.
Skipping wheel build for wheel, due to binaries being disabled for it.
Skipping wheel build for cffi, due to binaries being disabled for it.
Skipping wheel build for pycparser, due to binaries being disabled for it.
Installing collected packages: setuptools, wheel, pycparser, cffi
Running setup.py install for setuptools: started
Running setup.py install for setuptools: finished with status 'done'
Running setup.py install for wheel: started
Running setup.py install for wheel: finished with status 'done'
Running setup.py install for pycparser: started
Running setup.py install for pycparser: finished with status 'done'
Running setup.py install for cffi: started
Running setup.py install for cffi: still running...
Running setup.py install for cffi: finished with status 'error'
ERROR: Command errored out with exit status 1:
command: /usr/local/bin/python2.7 -u -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'/tmp/pip-install-9hzf5I/cffi/setup.py'"'"'; __file__='"'"'/tmp/pip-install-9hzf5I/cffi/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-R2ot8U/install-record.txt --single-version-externally-managed --prefix /tmp/pip-build-env-snTfGN/overlay --compile --install-headers /tmp/pip-build-env-snTfGN/overlay/include/python2.7/cffi
cwd: /tmp/pip-install-9hzf5I/cffi/
Complete output (34 lines):
running install
running build
running build_py
creating build
creating build/lib.linux-aarch64-2.7
creating build/lib.linux-aarch64-2.7/cffi
copying cffi/model.py -> build/lib.linux-aarch64-2.7/cffi
copying cffi/pkgconfig.py -> build/lib.linux-aarch64-2.7/cffi
copying cffi/recompiler.py -> build/lib.linux-aarch64-2.7/cffi
copying cffi/cparser.py -> build/lib.linux-aarch64-2.7/cffi
copying cffi/error.py -> build/lib.linux-aarch64-2.7/cffi
copying cffi/setuptools_ext.py -> build/lib.linux-aarch64-2.7/cffi
copying cffi/verifier.py -> build/lib.linux-aarch64-2.7/cffi
copying cffi/cffi_opcode.py -> build/lib.linux-aarch64-2.7/cffi
copying cffi/commontypes.py -> build/lib.linux-aarch64-2.7/cffi
copying cffi/vengine_gen.py -> build/lib.linux-aarch64-2.7/cffi
copying cffi/lock.py -> build/lib.linux-aarch64-2.7/cffi
copying cffi/ffiplatform.py -> build/lib.linux-aarch64-2.7/cffi
copying cffi/backend_ctypes.py -> build/lib.linux-aarch64-2.7/cffi
copying cffi/__init__.py -> build/lib.linux-aarch64-2.7/cffi
copying cffi/vengine_cpy.py -> build/lib.linux-aarch64-2.7/cffi
copying cffi/api.py -> build/lib.linux-aarch64-2.7/cffi
copying cffi/_cffi_include.h -> build/lib.linux-aarch64-2.7/cffi
copying cffi/parse_c_type.h -> build/lib.linux-aarch64-2.7/cffi
copying cffi/_embedding.h -> build/lib.linux-aarch64-2.7/cffi
copying cffi/_cffi_errors.h -> build/lib.linux-aarch64-2.7/cffi
running build_ext
building '_cffi_backend' extension
creating build/temp.linux-aarch64-2.7
creating build/temp.linux-aarch64-2.7/c
gcc -fno-strict-aliasing -g -O2 -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -fPIC -DFFI_BUILDING=1 -DUSE__THREAD -DHAVE_SYNC_SYNCHRONIZE -I/usr/include/ffi -I/usr/include/libffi -I/usr/local/include/python2.7 -c c/_cffi_backend.c -o build/temp.linux-aarch64-2.7/c/_cffi_backend.o
gcc: fatal error: Killed signal terminated program cc1
compilation terminated.
error: command 'gcc' failed with exit status 1
----------------------------------------
ERROR: Command errored out with exit status 1: /usr/local/bin/python2.7 -u -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'/tmp/pip-install-9hzf5I/cffi/setup.py'"'"'; __file__='"'"'/tmp/pip-install-9hzf5I/cffi/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-R2ot8U/install-record.txt --single-version-externally-managed --prefix /tmp/pip-build-env-snTfGN/overlay --compile --install-headers /tmp/pip-build-env-snTfGN/overlay/include/python2.7/cffi Check the logs for full command output.
----------------------------------------
ERROR: Command errored out with exit status 1: /usr/local/bin/python2.7 /usr/local/lib/python2.7/site-packages/pip install --ignore-installed --no-user --prefix /tmp/pip-build-env-snTfGN/overlay --no-warn-script-location --no-binary :all: --only-binary :none: -i https://pypi.org/simple -- 'setuptools>=40.6.0' wheel 'cffi>=1.8,!=1.11.3; platform_python_implementation != '"'"'PyPy'"'"'' Check the logs for full command output.



on Ubuntu 22.04 from git repository
phred

Re: Ubuntu 22.04 arm deb build fails

Post by phred »

Hey @fullsail:

The first error seems to be: platform_python_implementation != '"'"'PyPy'"'"''

This could be due to an out of date installation of pip. All the rest are probably due to this first failure.

Upgrade pip and try again.

Let me know how it goes.
Post Reply