internal compiler error: Segmentation fault

47 views
Skip to first unread message

Jacob Chan

unread,
Jan 11, 2017, 3:56:10 AM1/11/17
to python-cffi
OS: Raspbian Jessie
Hardware: Banana Pi M3

root@bpi-iot-ros-ai:/tmp# pip install cffi
Collecting cffi
    100% |████████████████████████████████| 409kB 1.2MB/s
Requirement already satisfied: pycparser in /usr/local/lib/python2.7/dist-packages (from cffi)
Installing collected packages: cffi
  Running setup.py install for cffi ... error
    Complete output from command /usr/bin/python -u -c "import setuptools, tokenize;__file__='/tmp/pip-build-LGEuON/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-AXMWp6-record/install-record.txt --single-version-externally-managed --compile:
    running install
    running build
    running build_py
    creating build
    creating build/lib.linux-armv7l-2.7
    creating build/lib.linux-armv7l-2.7/cffi
    copying cffi/commontypes.py -> build/lib.linux-armv7l-2.7/cffi
    copying cffi/lock.py -> build/lib.linux-armv7l-2.7/cffi
    copying cffi/cparser.py -> build/lib.linux-armv7l-2.7/cffi
    copying cffi/model.py -> build/lib.linux-armv7l-2.7/cffi
    copying cffi/vengine_gen.py -> build/lib.linux-armv7l-2.7/cffi
    copying cffi/recompiler.py -> build/lib.linux-armv7l-2.7/cffi
    copying cffi/__init__.py -> build/lib.linux-armv7l-2.7/cffi
    copying cffi/cffi_opcode.py -> build/lib.linux-armv7l-2.7/cffi
    copying cffi/backend_ctypes.py -> build/lib.linux-armv7l-2.7/cffi
    copying cffi/api.py -> build/lib.linux-armv7l-2.7/cffi
    copying cffi/setuptools_ext.py -> build/lib.linux-armv7l-2.7/cffi
    copying cffi/vengine_cpy.py -> build/lib.linux-armv7l-2.7/cffi
    copying cffi/ffiplatform.py -> build/lib.linux-armv7l-2.7/cffi
    copying cffi/verifier.py -> build/lib.linux-armv7l-2.7/cffi
    copying cffi/_cffi_include.h -> build/lib.linux-armv7l-2.7/cffi
    copying cffi/parse_c_type.h -> build/lib.linux-armv7l-2.7/cffi
    copying cffi/_embedding.h -> build/lib.linux-armv7l-2.7/cffi
    running build_ext
    building '_cffi_backend' extension
    creating build/temp.linux-armv7l-2.7
    creating build/temp.linux-armv7l-2.7/c
    arm-linux-gnueabihf-gcc -pthread -DNDEBUG -g -fwrapv -O2 -Wall -Wstrict-prototypes -fno-strict-aliasing -D_FORTIFY_SOURCE=2 -g -fstack-protector-strong -Wformat -Werror=format-security -fPIC -DUSE__THREAD -I/usr/include/python2.7 -c c/_cffi_backend.c -o build/temp.linux-armv7l-2.7/c/_cffi_backend.o
    c/_cffi_backend.c: In function ‘_testfunc10’:
    c/_cffi_backend.c:6309:1: internal compiler error: Segmentation fault
     }
     ^
    Please submit a full bug report,
    with preprocessed source if appropriate.
    See <file:///usr/share/doc/gcc-4.9/README.Bugs> for instructions.
    Preprocessed source stored into /tmp/ccXhbKmU.out file, please attach this to your bugreport.
    error: command 'arm-linux-gnueabihf-gcc' failed with exit status 1

    ----------------------------------------
Command "/usr/bin/python -u -c "import setuptools, tokenize;__file__='/tmp/pip-build-LGEuON/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-AXMWp6-record/install-record.txt --single-version-externally-managed --compile" failed with error code 1 in /tmp/pip-build-LGEuON/cffi/                                             

ccXhbKmU.out

Armin Rigo

unread,
Jan 11, 2017, 5:06:26 AM1/11/17
to pytho...@googlegroups.com
Hi Jacob,

On 11 January 2017 at 09:56, Jacob Chan <coo...@gmail.com> wrote:
> c/_cffi_backend.c:6309:1: internal compiler error: Segmentation fault
> }
> ^
> Please submit a full bug report,
> with preprocessed source if appropriate.
> See <file:///usr/share/doc/gcc-4.9/README.Bugs> for instructions.
> Preprocessed source stored into /tmp/ccXhbKmU.out file, please attach
> this to your bugreport.

This says "this exact version of gcc that you're using has a bug: it
segfaults when compiling this C source". The problem is gcc, not
cffi. I guess try upgrading to a newer gcc, and if it still
segfaults, submit a bug report to gcc people. Follow the instructions
given here.


A bientôt,

Armin.
Reply all
Reply to author
Forward
0 new messages