python3安装make过程出错[Objects/unicodeobject.o] Error

来源:互联网 发布:摄影基础理论知识知乎 编辑:程序博客网 时间:2024/05/12 17:55
It's a GCC bug, not a Python bug: "gcc: Internal error: ...".What is your OS? What is your GCC version? How much memory do you have?Do you get the same error if you run "make" again?Try to run "gcc -pthread -c  -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -I. -I./Include -DPy_BUILD_CORE -o Objects/unicodeobject.o" again.Do you modify MAKEFLAGS to set -j to run GCC in parallel?Usually, you can workaround GCC bugs by disabling optimizations. You can try to modify Makefile to replace "-O3" with "-O2" or even "-O0" (disable all optimizations), and then try to run "make" again.Again, it's not a Python bug, but a GCC bug, probably already fixed in a more recent GCC version (the latest is 4.9.1):

https://gcc.gnu.org/

修改Makefile文件,把‘-DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes’中的‘03’改为‘02’即可。

阅读全文
0 0
原创粉丝点击