【问题标题】:Compile Python 3.6.2 on Debian Jessie segfaults on sharedmods在 sharedmods 上的 Debian Jessie 段错误上编译 Python 3.6.2
【发布时间】: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

有什么想法吗?

【问题讨论】:

    标签: python debian


    【解决方案1】:

    我有同样的问题,并通过将编译器更改为像这样来解决它:

    ./configure CC=clang CXX=clang++
    

    在我的例子中,我在 armv7l 上编译,我发现 gcc 的问题也在此处描述:
    https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=848405?

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 2016-06-07
      • 1970-01-01
      • 1970-01-01
      • 2017-10-29
      • 1970-01-01
      • 2016-06-24
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多