https://gcc.gnu.org/bugzilla/show_bug.cgi?id=68799
Bug ID: 68799 Summary: lto ICE on powerpc64le-linux-gnu builing python 2.7.x Product: gcc Version: 5.3.1 Status: UNCONFIRMED Severity: normal Priority: P3 Component: lto Assignee: unassigned at gcc dot gnu.org Reporter: doko at gcc dot gnu.org Target Milestone: --- seen with the current 5.3 branch, binutils from the 2.26 branch, powerpc64le-linux-gnu only, big endian powerpc targets seem to succeed. powerpc64le-linux-gnu-gcc -pthread -Wl,-z,relro -fno-strict-aliasing -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototype s -D_FORTIFY_SOURCE=2 -g -fstack-protector-strong -Wformat -Werror=format-security -fprofile-use -fprofile-correction -g -flto -fuse-linker-plugin -ffat-lto-objects -Xlinker -export-dynamic -Wl,-O1 -Wl,-Bsymbolic-functions -o python \ Modules/python.o \ -Wl,--whole-archive libpython2.7.a -Wl,--no-whole-archive -lpthread -ldl -lutil -L/usr/lib -lz -lm ../Python/peephole.c: In function 'PyCode_Optimize': ../Python/peephole.c:299:1: internal compiler error: Segmentation fault PyCode_Optimize(PyObject *code, PyObject* consts, PyObject *names, ^ 0x1026a64b crash_signal ../../src/gcc/toplev.c:383 0x10e1f1f8 phi_add_costs ../../src/gcc/gimple-ssa-strength-reduction.c:2397 0x10e1de17 replace_uncond_cands_and_profitable_phis ../../src/gcc/gimple-ssa-strength-reduction.c:2440 0x10e1dd3b replace_uncond_cands_and_profitable_phis ../../src/gcc/gimple-ssa-strength-reduction.c:2464 0x10e1dd3b replace_uncond_cands_and_profitable_phis ../../src/gcc/gimple-ssa-strength-reduction.c:2464 0x10e1dd3b replace_uncond_cands_and_profitable_phis ../../src/gcc/gimple-ssa-strength-reduction.c:2464 0x10e1dd3b replace_uncond_cands_and_profitable_phis ../../src/gcc/gimple-ssa-strength-reduction.c:2464 0x10e1dd3b replace_uncond_cands_and_profitable_phis ../../src/gcc/gimple-ssa-strength-reduction.c:2464 0x10e1dd3b replace_uncond_cands_and_profitable_phis ../../src/gcc/gimple-ssa-strength-reduction.c:2464 0x10e1dd3b replace_uncond_cands_and_profitable_phis ../../src/gcc/gimple-ssa-strength-reduction.c:2464 0x10e1dd3b replace_uncond_cands_and_profitable_phis ../../src/gcc/gimple-ssa-strength-reduction.c:2464 0x10e1dd3b replace_uncond_cands_and_profitable_phis ../../src/gcc/gimple-ssa-strength-reduction.c:2464 0x10bb46cf analyze_candidates_and_replace ../../src/gcc/gimple-ssa-strength-reduction.c:3570 0x10bb46cf execute ../../src/gcc/gimple-ssa-strength-reduction.c:3681 Please submit a full bug report, with preprocessed source if appropriate. Please include the complete backtrace with any bug report. See <file:///usr/share/doc/gcc-5/README.Bugs> for instructions. lto-wrapper: fatal error: powerpc64le-linux-gnu-gcc returned 1 exit status compilation terminated. /usr/bin/ld: error: lto-wrapper failed collect2: error: ld returned 1 exit status Makefile:496: recipe for target 'python' failed object files at https://people.debian.org/~doko/tmp/lto-tst.tar.xz