ansible / awx-ee

An Ansible execution environment for AWX project
https://quay.io/ansible/awx-ee
Other
139 stars 162 forks source link

AWX-EE build fails, error: command 'gcc' failed: No such file or directory #253

Closed D1StrX closed 2 months ago

D1StrX commented 3 months ago

Since yesterday my scheduled AWX-EE build fails, using the latest quay.io/ansible/awx-ee:latest. It still fails today. It was all good before yesterday, and I haven't made any changes to the setup. Building on an Ubuntu K8s container (Runner).

Using legacy 'setup.py install' for pyVmomi, since package 'wheel' is not installed.
Using legacy 'setup.py install' for vsphere-automation-sdk, since package 'wheel' is not installed.
Using legacy 'setup.py install' for ovirt-engine-sdk-python, since package 'wheel' is not installed.
Using legacy 'setup.py install' for ovirt-imageio, since package 'wheel' is not installed.

...

    Running setup.py install for pyVmomi: started
    Running setup.py install for pyVmomi: finished with status 'done'
    Running setup.py install for vsphere-automation-sdk: started
    Running setup.py install for vsphere-automation-sdk: finished with status 'done'
    Running setup.py install for ovirt-imageio: started
    Running setup.py install for ovirt-imageio: finished with status 'error'
    ERROR: Command errored out with exit status 1:
     command: /usr/bin/python3 -u -c 'import io, os, sys, setuptools, tokenize; sys.argv[0] = '"'"'/tmp/pip-install-2jrufl7_/ovirt-imageio_e8b6abfb3730439993e380ac069e09a7/setup.py'"'"'; __file__='"'"'/tmp/pip-install-2jrufl7_/ovirt-imageio_e8b6abfb3730439993e380ac069e09a7/setup.py'"'"';f = getattr(tokenize, '"'"'open'"'"', open)(__file__) if os.path.exists(__file__) else io.StringIO('"'"'from setuptools import setup; setup()'"'"');code = f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, __file__, '"'"'exec'"'"'))' install --record /tmp/pip-record-96sncpfm/install-record.txt --single-version-externally-managed --compile --install-headers /usr/local/include/python3.9/ovirt-imageio
         cwd: /tmp/pip-install-2jrufl7_/ovirt-imageio_e8b6abfb3730439993e380ac069e09a7/
    Complete output (84 lines):
    running install
    /usr/local/lib/python3.9/site-packages/setuptools/_distutils/cmd.py:66: SetuptoolsDeprecationWarning: setup.py install is deprecated.
    !!

            ********************************************************************************
            Please avoid running ``setup.py`` directly.
            Instead, use pypa/build, pypa/installer or other
            standards-based tools.

            See https://blog.ganssle.io/articles/2021/10/setup-py-deprecated.html for details.
            ********************************************************************************

    !!
      self.initialize_options()
    running build
    running build_py
    creating build
    creating build/lib.linux-x86_64-cpython-39
    creating build/lib.linux-x86_64-cpython-39/ovirt_imageio
    copying ovirt_imageio/__init__.py -> build/lib.linux-x86_64-cpython-39/ovirt_imageio
    creating build/lib.linux-x86_64-cpython-39/ovirt_imageio/_internal
    copying ovirt_imageio/_internal/ssl.py -> build/lib.linux-x86_64-cpython-39/ovirt_imageio/_internal
    copying ovirt_imageio/_internal/server.py -> build/lib.linux-x86_64-cpython-39/ovirt_imageio/_internal
    copying ovirt_imageio/_internal/cors.py -> build/lib.linux-x86_64-cpython-39/ovirt_imageio/_internal
    copying ovirt_imageio/_internal/units.py -> build/lib.linux-x86_64-cpython-39/ovirt_imageio/_internal
    copying ovirt_imageio/_internal/util.py -> build/lib.linux-x86_64-cpython-39/ovirt_imageio/_internal
    copying ovirt_imageio/_internal/ipv6.py -> build/lib.linux-x86_64-cpython-39/ovirt_imageio/_internal
    copying ovirt_imageio/_internal/__init__.py -> build/lib.linux-x86_64-cpython-39/ovirt_imageio/_internal
    copying ovirt_imageio/_internal/stats.py -> build/lib.linux-x86_64-cpython-39/ovirt_imageio/_internal
    copying ovirt_imageio/_internal/nbdutil.py -> build/lib.linux-x86_64-cpython-39/ovirt_imageio/_internal
    copying ovirt_imageio/_internal/blkhash.py -> build/lib.linux-x86_64-cpython-39/ovirt_imageio/_internal
    copying ovirt_imageio/_internal/extent.py -> build/lib.linux-x86_64-cpython-39/ovirt_imageio/_internal
    copying ovirt_imageio/_internal/auth.py -> build/lib.linux-x86_64-cpython-39/ovirt_imageio/_internal
    copying ovirt_imageio/_internal/config.py -> build/lib.linux-x86_64-cpython-39/ovirt_imageio/_internal
    copying ovirt_imageio/_internal/errors.py -> build/lib.linux-x86_64-cpython-39/ovirt_imageio/_internal
    copying ovirt_imageio/_internal/validate.py -> build/lib.linux-x86_64-cpython-39/ovirt_imageio/_internal
    copying ovirt_imageio/_internal/http.py -> build/lib.linux-x86_64-cpython-39/ovirt_imageio/_internal
    copying ovirt_imageio/_internal/qemu_img.py -> build/lib.linux-x86_64-cpython-39/ovirt_imageio/_internal
    copying ovirt_imageio/_internal/configloader.py -> build/lib.linux-x86_64-cpython-39/ovirt_imageio/_internal
    copying ovirt_imageio/_internal/directio.py -> build/lib.linux-x86_64-cpython-39/ovirt_imageio/_internal
    copying ovirt_imageio/_internal/uhttp.py -> build/lib.linux-x86_64-cpython-39/ovirt_imageio/_internal
    copying ovirt_imageio/_internal/ops.py -> build/lib.linux-x86_64-cpython-39/ovirt_imageio/_internal
    copying ovirt_imageio/_internal/version.py -> build/lib.linux-x86_64-cpython-39/ovirt_imageio/_internal
    copying ovirt_imageio/_internal/measure.py -> build/lib.linux-x86_64-cpython-39/ovirt_imageio/_internal
    copying ovirt_imageio/_internal/qemu_nbd.py -> build/lib.linux-x86_64-cpython-39/ovirt_imageio/_internal
    copying ovirt_imageio/_internal/sockutil.py -> build/lib.linux-x86_64-cpython-39/ovirt_imageio/_internal
    copying ovirt_imageio/_internal/services.py -> build/lib.linux-x86_64-cpython-39/ovirt_imageio/_internal
    copying ovirt_imageio/_internal/nbd.py -> build/lib.linux-x86_64-cpython-39/ovirt_imageio/_internal
    creating build/lib.linux-x86_64-cpython-39/ovirt_imageio/_internal/backends
    copying ovirt_imageio/_internal/backends/file.py -> build/lib.linux-x86_64-cpython-39/ovirt_imageio/_internal/backends
    copying ovirt_imageio/_internal/backends/__init__.py -> build/lib.linux-x86_64-cpython-39/ovirt_imageio/_internal/backends
    copying ovirt_imageio/_internal/backends/common.py -> build/lib.linux-x86_64-cpython-39/ovirt_imageio/_internal/backends
    copying ovirt_imageio/_internal/backends/http.py -> build/lib.linux-x86_64-cpython-39/ovirt_imageio/_internal/backends
    copying ovirt_imageio/_internal/backends/memory.py -> build/lib.linux-x86_64-cpython-39/ovirt_imageio/_internal/backends
    copying ovirt_imageio/_internal/backends/nbd.py -> build/lib.linux-x86_64-cpython-39/ovirt_imageio/_internal/backends
    creating build/lib.linux-x86_64-cpython-39/ovirt_imageio/_internal/handlers
    copying ovirt_imageio/_internal/handlers/checksum.py -> build/lib.linux-x86_64-cpython-39/ovirt_imageio/_internal/handlers
    copying ovirt_imageio/_internal/handlers/profile.py -> build/lib.linux-x86_64-cpython-39/ovirt_imageio/_internal/handlers
    copying ovirt_imageio/_internal/handlers/images.py -> build/lib.linux-x86_64-cpython-39/ovirt_imageio/_internal/handlers
    copying ovirt_imageio/_internal/handlers/info.py -> build/lib.linux-x86_64-cpython-39/ovirt_imageio/_internal/handlers
    copying ovirt_imageio/_internal/handlers/tickets.py -> build/lib.linux-x86_64-cpython-39/ovirt_imageio/_internal/handlers
    copying ovirt_imageio/_internal/handlers/extents.py -> build/lib.linux-x86_64-cpython-39/ovirt_imageio/_internal/handlers
    creating build/lib.linux-x86_64-cpython-39/ovirt_imageio/client
    copying ovirt_imageio/client/_download.py -> build/lib.linux-x86_64-cpython-39/ovirt_imageio/client
    copying ovirt_imageio/client/_api.py -> build/lib.linux-x86_64-cpython-39/ovirt_imageio/client
    copying ovirt_imageio/client/__init__.py -> build/lib.linux-x86_64-cpython-39/ovirt_imageio/client
    copying ovirt_imageio/client/_tool.py -> build/lib.linux-x86_64-cpython-39/ovirt_imageio/client
    copying ovirt_imageio/client/_upload.py -> build/lib.linux-x86_64-cpython-39/ovirt_imageio/client
    copying ovirt_imageio/client/_io.py -> build/lib.linux-x86_64-cpython-39/ovirt_imageio/client
    copying ovirt_imageio/client/_options.py -> build/lib.linux-x86_64-cpython-39/ovirt_imageio/client
    copying ovirt_imageio/client/_app.py -> build/lib.linux-x86_64-cpython-39/ovirt_imageio/client
    copying ovirt_imageio/client/_ui.py -> build/lib.linux-x86_64-cpython-39/ovirt_imageio/client
    copying ovirt_imageio/client/_ovirt.py -> build/lib.linux-x86_64-cpython-39/ovirt_imageio/client
    creating build/lib.linux-x86_64-cpython-39/ovirt_imageio/admin
    copying ovirt_imageio/admin/_api.py -> build/lib.linux-x86_64-cpython-39/ovirt_imageio/admin
    copying ovirt_imageio/admin/__init__.py -> build/lib.linux-x86_64-cpython-39/ovirt_imageio/admin
    copying ovirt_imageio/admin/tool.py -> build/lib.linux-x86_64-cpython-39/ovirt_imageio/admin
    running build_ext
    building 'ovirt_imageio/_internal/ioutil' extension
    creating build/temp.linux-x86_64-cpython-39
    creating build/temp.linux-x86_64-cpython-39/ovirt_imageio
    creating build/temp.linux-x86_64-cpython-39/ovirt_imageio/_internal
    gcc -Wno-unused-result -Wsign-compare -DDYNAMIC_ANNOTATIONS_ENABLED=1 -DNDEBUG -O2 -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -fstack-protector-strong -m64 -march=x86-64-v2 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -D_GNU_SOURCE -fPIC -fwrapv -O2 -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -fstack-protector-strong -m64 -march=x86-64-v2 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -D_GNU_SOURCE -fPIC -fwrapv -O2 -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -fstack-protector-strong -m64 -march=x86-64-v2 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -D_GNU_SOURCE -fPIC -fwrapv -fPIC -I/usr/include/python3.9 -c ovirt_imageio/_internal/ioutil.c -o build/temp.linux-x86_64-cpython-39/ovirt_imageio/_internal/ioutil.o
    error: command 'gcc' failed: No such file or directory
    ----------------------------------------
ERROR: Command errored out with exit status 1: /usr/bin/python3 -u -c 'import io, os, sys, setuptools, tokenize; sys.argv[0] = '"'"'/tmp/pip-install-2jrufl7_/ovirt-imageio_e8b6abfb3730439993e380ac069e09a7/setup.py'"'"'; __file__='"'"'/tmp/pip-install-2jrufl7_/ovirt-imageio_e8b6abfb3730439993e380ac069e09a7/setup.py'"'"';f = getattr(tokenize, '"'"'open'"'"', open)(__file__) if os.path.exists(__file__) else io.StringIO('"'"'from setuptools import setup; setup()'"'"');code = f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, __file__, '"'"'exec'"'"'))' install --record /tmp/pip-record-96sncpfm/install-record.txt --single-version-externally-managed --compile --install-headers /usr/local/include/python3.9/ovirt-imageio Check the logs for full command output.
WARNING: You are using pip version 21.3.1; however, version 24.2 is available.
You should consider upgrading via the '/usr/bin/python3 -m pip install --upgrade pip' command.
error building image: error building stage: failed to execute command: waiting for process to exit: exit status 1

Seems to have similarities to https://github.com/ansible/awx-ee/issues/236? Adding wheel to requirements.txt doesn't fix the setup.py warning. Also, could you upgrade pip in the base image (whatever the difference may be)?