smartgic / docker-mycroft

Mycroft AI Voice Assistant Docker images and docker-compose.yml files for x86_64, arm7vl and aarch64 CPU architectures.
https://hub.docker.com/u/smartgic
Apache License 2.0
41 stars 8 forks source link

Package libffi was not found in the pkg-config search path #6

Closed goldyfruit closed 3 years ago

goldyfruit commented 3 years ago

base image cannot be build due to libffi-dev missing package.

#15 354.7   Building wheels for collected packages: cffi
#15 354.7     Running setup.py bdist_wheel for cffi: started
#15 354.7     Running setup.py bdist_wheel for cffi: finished with status 'error'
#15 354.7     Complete output from command /opt/mycroft-venv/bin/python3 -u -c "import setuptools, tokenize;__file__='/tmp/pip-install-za1wrhmd/cffi/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-prmglp4b --python-tag cp37:
#15 354.7     Package libffi was not found in the pkg-config search path.
#15 354.7     Perhaps you should add the directory containing `libffi.pc'
#15 354.7     to the PKG_CONFIG_PATH environment variable
#15 354.7     No package 'libffi' found
#15 354.7     Package libffi was not found in the pkg-config search path.
#15 354.7     Perhaps you should add the directory containing `libffi.pc'
#15 354.7     to the PKG_CONFIG_PATH environment variable
#15 354.7     No package 'libffi' found
#15 354.7     Package libffi was not found in the pkg-config search path.
#15 354.7     Perhaps you should add the directory containing `libffi.pc'
#15 354.7     to the PKG_CONFIG_PATH environment variable
#15 354.7     No package 'libffi' found
#15 354.7     Package libffi was not found in the pkg-config search path.
#15 354.7     Perhaps you should add the directory containing `libffi.pc'
#15 354.7     to the PKG_CONFIG_PATH environment variable
#15 354.7     No package 'libffi' found
#15 354.7     Package libffi was not found in the pkg-config search path.
#15 354.7     Perhaps you should add the directory containing `libffi.pc'
#15 354.7     to the PKG_CONFIG_PATH environment variable
#15 354.7     No package 'libffi' found
#15 354.7     running bdist_wheel
#15 354.7     running build
#15 354.7     running build_py
#15 354.7     creating build
#15 354.7     creating build/lib.linux-armv7l-3.7
#15 354.7     creating build/lib.linux-armv7l-3.7/cffi
#15 354.7     copying cffi/pkgconfig.py -> build/lib.linux-armv7l-3.7/cffi
#15 354.7     copying cffi/error.py -> build/lib.linux-armv7l-3.7/cffi
#15 354.7     copying cffi/backend_ctypes.py -> build/lib.linux-armv7l-3.7/cffi
#15 354.7     copying cffi/setuptools_ext.py -> build/lib.linux-armv7l-3.7/cffi
#15 354.7     copying cffi/api.py -> build/lib.linux-armv7l-3.7/cffi
#15 354.7     copying cffi/recompiler.py -> build/lib.linux-armv7l-3.7/cffi
#15 354.7     copying cffi/cffi_opcode.py -> build/lib.linux-armv7l-3.7/cffi
#15 354.7     copying cffi/commontypes.py -> build/lib.linux-armv7l-3.7/cffi
#15 354.7     copying cffi/vengine_cpy.py -> build/lib.linux-armv7l-3.7/cffi
#15 354.7     copying cffi/vengine_gen.py -> build/lib.linux-armv7l-3.7/cffi
#15 354.7     copying cffi/lock.py -> build/lib.linux-armv7l-3.7/cffi
#15 354.7     copying cffi/__init__.py -> build/lib.linux-armv7l-3.7/cffi
#15 354.7     copying cffi/ffiplatform.py -> build/lib.linux-armv7l-3.7/cffi
#15 354.7     copying cffi/cparser.py -> build/lib.linux-armv7l-3.7/cffi
#15 354.7     copying cffi/verifier.py -> build/lib.linux-armv7l-3.7/cffi
#15 354.7     copying cffi/model.py -> build/lib.linux-armv7l-3.7/cffi
#15 354.7     copying cffi/_cffi_include.h -> build/lib.linux-armv7l-3.7/cffi
#15 354.7     copying cffi/parse_c_type.h -> build/lib.linux-armv7l-3.7/cffi
#15 354.7     copying cffi/_embedding.h -> build/lib.linux-armv7l-3.7/cffi
#15 354.7     copying cffi/_cffi_errors.h -> build/lib.linux-armv7l-3.7/cffi
#15 354.7     running build_ext
#15 354.7     building '_cffi_backend' extension
#15 354.7     creating build/temp.linux-armv7l-3.7
#15 354.7     creating build/temp.linux-armv7l-3.7/c
#15 354.7     arm-linux-gnueabihf-gcc -pthread -DNDEBUG -g -fwrapv -O2 -Wall -g -fstack-protector-strong -Wformat -Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=2 -fPIC -DUSE__THREAD -DHAVE_SYNC_SYNCHRONIZE -I/usr/include/ffi -I/usr/include/libffi -I/opt/mycroft-venv/include -I/usr/include/python3.7m -c c/_cffi_backend.c -o build/temp.linux-armv7l-3.7/c/_cffi_backend.o
#15 354.7     c/_cffi_backend.c:15:10: fatal error: ffi.h: No such file or directory
#15 354.7      #include <ffi.h>
#15 354.7               ^~~~~~~
#15 354.7     compilation terminated.
#15 354.7     error: command 'arm-linux-gnueabihf-gcc' failed with exit status 1
#15 354.7   
#15 354.7     ----------------------------------------
#15 354.7     Failed building wheel for cffi
#15 354.7     Running setup.py clean for cffi
#15 354.7   Failed to build cffi
#15 354.7   Installing collected packages: setuptools, wheel, pycparser, cffi
#15 354.7     Running setup.py install for cffi: started
#15 354.7       Running setup.py install for cffi: finished with status 'error'
#15 354.7       Complete output from command /opt/mycroft-venv/bin/python3 -u -c "import setuptools, tokenize;__file__='/tmp/pip-install-za1wrhmd/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-2s1x1mhd/install-record.txt --single-version-externally-managed --prefix /tmp/pip-build-env-sptwjy9n --compile --install-headers /opt/mycroft-venv/include/site/python3.7/cffi:
#15 354.7       Package libffi was not found in the pkg-config search path.
#15 354.7       Perhaps you should add the directory containing `libffi.pc'
#15 354.7       to the PKG_CONFIG_PATH environment variable
#15 354.7       No package 'libffi' found
#15 354.7       Package libffi was not found in the pkg-config search path.
#15 354.7       Perhaps you should add the directory containing `libffi.pc'
#15 354.7       to the PKG_CONFIG_PATH environment variable
#15 354.7       No package 'libffi' found
#15 354.7       Package libffi was not found in the pkg-config search path.
#15 354.7       Perhaps you should add the directory containing `libffi.pc'
#15 354.7       to the PKG_CONFIG_PATH environment variable
#15 354.7       No package 'libffi' found
#15 354.7       Package libffi was not found in the pkg-config search path.
#15 354.7       Perhaps you should add the directory containing `libffi.pc'
#15 354.7       to the PKG_CONFIG_PATH environment variable
#15 354.7       No package 'libffi' found
#15 354.7       Package libffi was not found in the pkg-config search path.
#15 354.7       Perhaps you should add the directory containing `libffi.pc'
#15 354.7       to the PKG_CONFIG_PATH environment variable
#15 354.7       No package 'libffi' found
#15 354.7       running install
#15 354.7       running build
#15 354.7       running build_py
#15 354.7       creating build
#15 354.7       creating build/lib.linux-armv7l-3.7
#15 354.7       creating build/lib.linux-armv7l-3.7/cffi
#15 354.7       copying cffi/pkgconfig.py -> build/lib.linux-armv7l-3.7/cffi
#15 354.7       copying cffi/error.py -> build/lib.linux-armv7l-3.7/cffi
#15 354.7       copying cffi/backend_ctypes.py -> build/lib.linux-armv7l-3.7/cffi
#15 354.7       copying cffi/setuptools_ext.py -> build/lib.linux-armv7l-3.7/cffi
#15 354.7       copying cffi/api.py -> build/lib.linux-armv7l-3.7/cffi
#15 354.7       copying cffi/recompiler.py -> build/lib.linux-armv7l-3.7/cffi
#15 354.7       copying cffi/cffi_opcode.py -> build/lib.linux-armv7l-3.7/cffi
#15 354.7       copying cffi/commontypes.py -> build/lib.linux-armv7l-3.7/cffi
#15 354.7       copying cffi/vengine_cpy.py -> build/lib.linux-armv7l-3.7/cffi
#15 354.7       copying cffi/vengine_gen.py -> build/lib.linux-armv7l-3.7/cffi
#15 354.7       copying cffi/lock.py -> build/lib.linux-armv7l-3.7/cffi
#15 354.7       copying cffi/__init__.py -> build/lib.linux-armv7l-3.7/cffi
#15 354.7       copying cffi/ffiplatform.py -> build/lib.linux-armv7l-3.7/cffi
#15 354.7       copying cffi/cparser.py -> build/lib.linux-armv7l-3.7/cffi
#15 354.7       copying cffi/verifier.py -> build/lib.linux-armv7l-3.7/cffi
#15 354.7       copying cffi/model.py -> build/lib.linux-armv7l-3.7/cffi
#15 354.7       copying cffi/_cffi_include.h -> build/lib.linux-armv7l-3.7/cffi
#15 354.7       copying cffi/parse_c_type.h -> build/lib.linux-armv7l-3.7/cffi
#15 354.7       copying cffi/_embedding.h -> build/lib.linux-armv7l-3.7/cffi
#15 354.7       copying cffi/_cffi_errors.h -> build/lib.linux-armv7l-3.7/cffi
#15 354.7       running build_ext
#15 354.7       building '_cffi_backend' extension
#15 354.7       creating build/temp.linux-armv7l-3.7
#15 354.7       creating build/temp.linux-armv7l-3.7/c
#15 354.7       arm-linux-gnueabihf-gcc -pthread -DNDEBUG -g -fwrapv -O2 -Wall -g -fstack-protector-strong -Wformat -Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=2 -fPIC -DUSE__THREAD -DHAVE_SYNC_SYNCHRONIZE -I/usr/include/ffi -I/usr/include/libffi -I/opt/mycroft-venv/include -I/usr/include/python3.7m -c c/_cffi_backend.c -o build/temp.linux-armv7l-3.7/c/_cffi_backend.o
#15 354.7       c/_cffi_backend.c:15:10: fatal error: ffi.h: No such file or directory
#15 354.7        #include <ffi.h>
#15 354.7                 ^~~~~~~
#15 354.7       compilation terminated.
#15 354.7       error: command 'arm-linux-gnueabihf-gcc' failed with exit status 1
#15 354.7   
#15 354.7       ----------------------------------------
#15 354.7   Command "/opt/mycroft-venv/bin/python3 -u -c "import setuptools, tokenize;__file__='/tmp/pip-install-za1wrhmd/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-2s1x1mhd/install-record.txt --single-version-externally-managed --prefix /tmp/pip-build-env-sptwjy9n --compile --install-headers /opt/mycroft-venv/include/site/python3.7/cffi" failed with error code 1 in /tmp/pip-install-za1wrhmd/cffi/
#15 354.7   
#15 354.7   ----------------------------------------
#15 356.0 Command "/opt/mycroft-venv/bin/python3 -m pip install --ignore-installed --no-user --prefix /tmp/pip-build-env-sptwjy9n --no-warn-script-location --no-binary :none: --only-binary :none: -i https://pypi.org/simple -- setuptools>=40.8.0 wheel "cffi>=1.4.1; python_implementation != 'PyPy'"" failed with error code 1 in None
#15 ERROR: executor failed running [/bin/sh -c git clone https://github.com/MycroftAI/mycroft-core.git   $MYCROFT_DIR -b $BRANCH &&   pip3 install wheel &&   pip3 install -r ${MYCROFT_DIR}/requirements/requirements.txt &&   echo "${MYCROFT_DIR}" > ${VIRTUAL_ENV}/lib/python$(eval ${PYTHON_VERSION})/site-packages/mycroft.pth &&   rm -rf ${HOME}/.cache &&   mkdir -p /tmp/mycroft/ipc /home/mycroft/.mycroft /tmp/mycroft/cache]: exit code: 1

#9 [linux/arm64 3/3] RUN git clone https://github.com/MycroftAI/mycroft-core.git   /home/mycroft/core -b dev &&   pip3 install wheel &&   pip3 install -r /home/mycroft/core/requirements/requirements.txt &&   echo "/home/mycroft/core" > /opt/mycroft-venv/lib/python$(eval python3 -c 'from sys import version_info as i; print(f"{i[0]}.{i[1]}")')/site-packages/mycroft.pth &&   rm -rf ${HOME}/.cache &&   mkdir -p /tmp/mycroft/ipc /home/mycroft/.mycroft /tmp/mycroft/cache
#9 sha256:222eef62311fc0e9f7f3df7477bb6eab4ecf1d5b6d4bdfd8570e03d208b80a08
#9 CANCELED
goldyfruit commented 3 years ago

libffi-dev package has been added to base image https://github.com/smartgic/docker-mycroft/commit/a4e7759dd935226a122fb460bfac994a715f3a34 Building in process...

goldyfruit commented 3 years ago

Build succeeded.