Issue #2 resolved

pip install cffi failed in Archlinux using virtualenv

jqxl0205
created an issue

OS: Archlinux x86_64 3.4.2

Python: 2.7.3

Virtualenv: 1.7.1.2

libffi: 3.0.11

pkg-config --libs --cflags libffi => -I/usr/lib/libffi-3.0.11/include -lffi

pip install cffi ouput

{{{

!shell

Installing collected packages: cffi Running setup.py install for cffi building '_ffi_backend' extension gcc -pthread -fno-strict-aliasing -march=x86-64 -mtune=generic -O2 -pipe -fstack-protector --param=ssp-buffer-size=4 -D_FORTIFY_SOURCE=2 -DNDEBUG -march=x86-64 -mtune=generic -O2 -pipe -fstack-protector --param=ssp-buffer-size=4 -D_FORTIFY_SOURCE=2 -fPIC -I/usr/include/python2.7 -c c/_ffi_backend.c -o build/temp.linux-x86_64-2.7/c/_ffi_backend.o c/_ffi_backend.c:13:17: fatal error: ffi.h: No such file or directory compilation terminated. error: command 'gcc' failed with exit status 1 Complete output from command /home/gd/.virtualenvs/dev/bin/python2 -c "import setuptools;file='/home/gd/.virtualenvs/dev/build/cffi/setup.py';exec(compile(open(file).read().replace('\r\n', '\n'), file, 'exec'))" install --single-version-externally-managed --record /tmp/pip-PaP11i-record/install-record.txt --install-headers /home/gd/.virtualenvs/dev/include/site/python2.7: running install

running build

running build_py

running build_ext

building '_ffi_backend' extension

gcc -pthread -fno-strict-aliasing -march=x86-64 -mtune=generic -O2 -pipe -fstack-protector --param=ssp-buffer-size=4 -D_FORTIFY_SOURCE=2 -DNDEBUG -march=x86-64 -mtune=generic -O2 -pipe -fstack-protector --param=ssp-buffer-size=4 -D_FORTIFY_SOURCE=2 -fPIC -I/usr/include/python2.7 -c c/_ffi_backend.c -o build/temp.linux-x86_64-2.7/c/_ffi_backend.o

c/_ffi_backend.c:13:17: fatal error: ffi.h: No such file or directory

compilation terminated.

error: command 'gcc' failed with exit status 1

}}}

Here, http://bugs.python.org/issue6943 , is a bug about setup.py using libffi.

Comments (3)

  1. Log in to comment