libffi-dev missing
skylerknecht opened this issue · 0 comments
skylerknecht commented
Executing docker compose build
on Debian 11.7 failed with the following error;
23.18 gcc -Wno-unused-result -Wsign-compare -DNDEBUG -g -fwrapv -O3 -Wall -fPIC -DFFI_BUILDING=1 -DUSE__THREAD -DHAVE_SYNC_SYNCHRONIZE -I/usr/include/ffi -I/usr/include/libffi -I/usr/local/include/python3.10 -c src/c/_cffi_backend.c -o build/temp.linux-aarch64-cpython-310/src/c/_cffi_backend.o
23.18 src/c/_cffi_backend.c:15:10: fatal error: ffi.h: No such file or directory
23.18 15 | #include <ffi.h>
23.18 | ^~~~~~~
23.18 compilation terminated.
23.18 error: command '/usr/bin/gcc' failed with exit code 1
23.18 [end of output]
Adding libffi-dev to the Dockerfile for each application remediatied the issue.