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

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’即可。

相关文章
相关标签/搜索