Compiling Python 3.6.2 on Debian Jessie segfaults on generic models

I am trying to compile Python 3.6.2 in a Debian Jessie field with parameters

./configure --prefix="/opt/python3" \
--enable-optimizations \
 --with-lto \
--enable-profiling \
--enable-unicode=ucs4 \
--with-system-expat \
--with-threads \
--with-system-ffi \
'CFLAGS=-D_FORTIFY_SOURCE=2 -g -fstack-protector-strong -Wformat -Werror=format-security ' \
'LDFLAGS=-Wl,-z,relro'

But I get a segmentation error in the assembly of common modules:

renaming build/scripts-3.6/pyvenv to build/scripts-3.6/pyvenv-3.6
Segmentation fault
Makefile:586: recipe for target 'sharedmods' failed
make[2]: *** [sharedmods] Error 139

Any ideas what is going on?

+4
source share

Source: https://habr.com/ru/post/1685879/


All Articles