我试图在带有选项的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
任何想法会发生什么?
答案 0 :(得分:0)
我遇到了同样的问题并通过将编译器更改为clang来解决它:
./configure CC=clang CXX=clang++
在我的情况下,我正在编译armv7l,我发现gcc的问题也在这里描述:
https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=848405?