From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id 3B6743858CD1; Sat, 30 Dec 2023 00:44:05 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 3B6743858CD1 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gcc.gnu.org; s=default; t=1703897045; bh=A47Q1XtTfIAw62jGNwVLrxs+cZBKR0r+kp4HvKxnjSY=; h=From:To:Subject:Date:In-Reply-To:References:From; b=Qre1lWdXQI/iqTlbBchtMX6/r14qbd00VuIp0VDgMJK58xkpWuMhU74w4yNKY5a/9 h5B/VNa45phZkajdg2QfKGpK/M40GBtsV7OYID00YJAnX0RCAgHrpv8fmn6FqBRbth ghYiSayIj8XsNmTUmmtIHSV95hJjVVXZC1RkDSXc= From: "gcc at octaforge dot org" To: gcc-bugs@gcc.gnu.org Subject: [Bug bootstrap/113174] gcc fails to bootstrap on pp64le with clang-based host environment (internal compiler error) Date: Sat, 30 Dec 2023 00:44:00 +0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: bootstrap X-Bugzilla-Version: 13.2.1 X-Bugzilla-Keywords: build, ice-on-valid-code X-Bugzilla-Severity: normal X-Bugzilla-Who: gcc at octaforge dot org X-Bugzilla-Status: WAITING X-Bugzilla-Resolution: X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org X-Bugzilla-Target-Milestone: --- X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 List-Id: https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D113174 --- Comment #6 from Daniel Kolesa --- If it helps, I have reduced the patches to just the two that strictly neces= sary for stage 1 build (I can't get rid of those, sorry, that would be asking for the impossible), which are: https://github.com/chimera-linux/cports/blob/master/experimental/gcc/patche= s/clang-tree-vect.patch https://github.com/chimera-linux/cports/blob/master/experimental/gcc/patche= s/clang17.patch and reproduced the exact same segfault on the same files with the exact same backtrace. Therefore, I can safely conclude that the patches are 100% irrelevant to the problem at hand, as the two remaining ones are merely small build fixes. ------ libtool: compile: /builddir/gcc-13.2.1_git20231014/build/./gcc/xgcc -shared-libgcc -B/builddir/gcc-13.2.1_git20231014/build/./gcc -nostdinc++ -L/builddir/gcc-13.2.1_git20231014/build/powerpc64le-chimera-linux-musl/lib= stdc++-v3/src -L/builddir/gcc-13.2.1_git20231014/build/powerpc64le-chimera-linux-musl/lib= stdc++-v3/src/.libs -L/builddir/gcc-13.2.1_git20231014/build/powerpc64le-chimera-linux-musl/lib= stdc++-v3/libsupc++/.libs -B/usr/powerpc64le-chimera-linux-musl/bin/ -B/usr/powerpc64le-chimera-linux-musl/lib/ -isystem /usr/powerpc64le-chimera-linux-musl/include -isystem /usr/powerpc64le-chimera-linux-musl/sys-include -fno-checking -I/builddir/gcc-13.2.1_git20231014/libstdc++-v3/../libgcc -I/builddir/gcc-13.2.1_git20231014/build/powerpc64le-chimera-linux-musl/lib= stdc++-v3/include/powerpc64le-chimera-linux-musl -I/builddir/gcc-13.2.1_git20231014/build/powerpc64le-chimera-linux-musl/lib= stdc++-v3/include -I/builddir/gcc-13.2.1_git20231014/libstdc++-v3/libsupc++ -std=3Dgnu++17 -nostdinc++ -D_GLIBCXX_SHARED -fno-implicit-templates -Wall -Wextra -Wwrite-strings -Wcast-qual -Wabi=3D2 -fdiagnostics-show-location=3Donce -ffunction-sections -fdata-sections -frandom-seed=3Dfloating_from_chars.lo -fimplicit-templates -fstack-clash-protection -mtune=3Dpower9 -O2 -ffile-prefix-map=3D/builddir/gcc-13.2.1_git20231014=3D. -g2 -D_GNU_SOURCE = -c /builddir/gcc-13.2.1_git20231014/libstdc++-v3/src/c++17/floating_from_chars= .cc=20 -fPIC -DPIC -D_GLIBCXX_SHARED -o floating_from_chars.o during RTL pass: combine In file included from /builddir/gcc-13.2.1_git20231014/libstdc++-v3/src/c++17/floating_from_chars= .cc:86: /builddir/gcc-13.2.1_git20231014/libstdc++-v3/src/c++17/fast_float/fast_flo= at.h: In function '{anonymous}::fast_float::adjusted_mantissa {anonymous}::fast_float::digit_comp(parsed_number_string&, adjusted_mantiss= a) [with T =3D float]': /builddir/gcc-13.2.1_git20231014/libstdc++-v3/src/c++17/fast_float/fast_flo= at.h:2850:1: internal compiler error: Segmentation fault 2850 | } | ^ 0x1279a323 crash_signal(int) /builddir/gcc-13.2.1_git20231014/gcc/toplev.cc:314 cc1plus: /builddir/gcc-13.2.1_git20231014/build/./gcc/cc1plus -quiet -nostdinc++ -nostdinc++ -v -I /builddir/gcc-13.2.1_git20231014/libstdc++-v3/../libgcc -I /builddir/gcc-13.2.1_git20231014/build/powerpc64le-chimera-linux-musl/libst= dc++-v3/include/powerpc64le-chimera-linux-musl -I /builddir/gcc-13.2.1_git20231014/build/powerpc64le-chimera-linux-musl/libst= dc++-v3/include -I /builddir/gcc-13.2.1_git20231014/libstdc++-v3/libsupc++ -iprefix /builddir/gcc-13.2.1_git20231014/build/gcc/../lib/gcc/powerpc64le-chimera-l= inux-musl/13.2.1/ -isystem /builddir/gcc-13.2.1_git20231014/build/./gcc/include -isystem /builddir/gcc-13.2.1_git20231014/build/./gcc/include-fixed -D_GNU_SOURCE -D _GLIBCXX_SHARED -D _GNU_SOURCE -D PIC -D _GLIBCXX_SHARED -isystem /usr/powerpc64le-chimera-linux-musl/include -isystem /usr/powerpc64le-chimera-linux-musl/sys-include /builddir/gcc-13.2.1_git20231014/libstdc++-v3/src/c++17/floating_from_chars= .cc -msecure-plt -quiet -dumpbase floating_from_chars.cc -dumpbase-ext .cc -mtune=3Dpower9 -mabi=3Delfv2 -g2 -O2 -Wall -Wextra -Wwrite-strings -Wcast-= qual -Wabi=3D2 -std=3Dgnu++17 -version -fno-checking -fdiagnostics-show-location= =3Donce -ffunction-sections -fdata-sections -frandom-seed=3Dfloating_from_chars.lo -fimplicit-templates -fstack-clash-protection -ffile-prefix-map=3D/builddir/gcc-13.2.1_git20231014=3D. -fPIC -o /tmp/ccLD= fChm.s backtrace: * thread #1, name =3D 'cc1plus', stop reason =3D signal SIGSEGV: address no= t mapped to object (fault address: 0x100000062) frame #0: 0x00000000115b750c cc1plus`recog_114(x1=3D0x00003fffe897a5a0, insn=3D0x00003fffe8979b00, pnum_clobbers=3D0x00003fffffffda0c) at rs6000.md= :8019:7 8016 li %0,%1 8017 mf%1 %0 8018 mt%0 %1 -> 8019 lwz%U1%X1 %0,%1 8020 stw%U0%X0 %1,%0" 8021 [(set_attr_alternative "type" 8022 [(const_string "cr_logical") (lldb) bt * thread #1, name =3D 'cc1plus', stop reason =3D signal SIGSEGV: address no= t mapped to object (fault address: 0x100000062) * frame #0: 0x00000000115b750c cc1plus`recog_114(x1=3D0x00003fffe897a5a0, insn=3D0x00003fffe8979b00, pnum_clobbers=3D0x00003fffffffda0c) at rs6000.md= :8019:7 frame #1: 0x000000001154aa50 cc1plus`recog_126(x1=3D0x00003fffe897a5a0, insn=3D0x00003fffe8979b00, pnum_clobbers=3D0x00003fffffffda0c) at vsx.md:28= 0:13 frame #2: 0x00000000114f5fd0 cc1plus`recog_188(x1=3D0x00003fffe897a5a0, insn=3D0x00003fffe8979b00, pnum_clobbers=3D0x00003fffffffda0c) at vector.md= :851:14 frame #3: 0x00000000114f0b74 cc1plus`recog(x1=3D0x00003fffe897a5a0, insn=3D0x00003fffe8979b00, pnum_clobbers=3D0x00003fffffffda0c) at altivec.md:1124:14 frame #4: 0x00000000118a4d78 cc1plus`recog_for_combine_1(pnewpat=3D0x00003fffffffe7e0, insn=3D0x00003fffe8979b00, pnotes=3D0x00003fffffffe798) at combine.cc:11356= :22 frame #5: 0x0000000011890644 cc1plus`recog_for_combine(pnewpat=3D0x00003fffffffe7e0, insn=3D0x00003fffe8= 979b00, pnotes=3D0x00003fffffffe798) at combine.cc:11626:26 frame #6: 0x00000000118823e4 cc1plus`try_combine(i3=3D0x00003fffe8979b0= 0, i2=3D0x00003fffe8979a40, i1=3D0x0000000000000000, i0=3D0x0000000000000000, new_direct_jump_p=3D0x00003fffffffeb34, last_combined_insn=3D0x00003fffe897= 9b00) at combine.cc:3544:24 frame #7: 0x000000001187c008 cc1plus`combine_instructions(f=3D0x00003fffe890f268, nregs=3D1007) at combine.cc:1266:18 frame #8: 0x000000001187b0b4 cc1plus`rest_of_handle_combine() at combine.cc:14982:7 frame #9: 0x000000001187b008 cc1plus`(anonymous namespace)::pass_combine::execute(this=3D0x00003fffef6069f0, (null)=3D0x00003fffe8cb5730) at combine.cc:15027:14 frame #10: 0x00000000123cfe94 cc1plus`execute_one_pass(pass=3D0x00003fffef6069f0) at passes.cc:2651:22 frame #11: 0x00000000123d10f8 cc1plus`execute_pass_list_1(pass=3D0x00003fffef6069f0) at passes.cc:2760:11 frame #12: 0x00000000123d1124 cc1plus`execute_pass_list_1(pass=3D0x00003fffef606ad0) at passes.cc:2761:2 frame #13: 0x00000000123be268 cc1plus`execute_pass_list(fn=3D0x00003fffe8cb5730, pass=3D0x00003fffef600b7= 0) at passes.cc:2771:3 frame #14: 0x00000000117ba19c cc1plus`cgraph_node::expand(this=3D0x00003fffe8cdf220) at cgraphunit.cc:184= 1:3 frame #15: 0x00000000117bd18c cc1plus`expand_all_functions() at cgraphunit.cc:2024:14 frame #16: 0x00000000117bbe80 cc1plus`symbol_table::compile(this=3D0x00003fffeda06000) at cgraphunit.cc:2= 398:3 frame #17: 0x00000000117bda24 cc1plus`symbol_table::finalize_compilation_unit(this=3D0x00003fffeda06000) = at cgraphunit.cc:2583:3 frame #18: 0x000000001279aa38 cc1plus`compile_file() at toplev.cc:471:15 frame #19: 0x0000000012799adc cc1plus`do_compile(no_backend=3Dfalse) at toplev.cc:2125:11 frame #20: 0x00000000127977c0 cc1plus`toplev::main(this=3D0x00003ffffff= ff3ee, argc=3D61, argv=3D0x00003ffffffff4d8) at toplev.cc:2277:7 frame #21: 0x0000000013069aa0 cc1plus`main(argc=3D61, argv=3D0x00003ffffffff4d8) at main.cc:39:18 frame #22: 0x00003fffefa66b70 frame #23: 0x00003fffefa66ae0 frame #24: 0x0000000010dda1bc cc1plus`_start_c(p=3D) at crt1.c:18:2 frame #25: 0x0000000010dda178 cc1plus`_start + 40=