【发布时间】:2018-02-27 00:18:50
【问题描述】:
我正在尝试在带有选项的 Debian Jessie 机器上编译 Python 3.6.2
./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'
但是我在构建共享模块时遇到了分段错误:
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
有什么想法吗?
【问题讨论】: