From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id 442223858D35; Mon, 11 Oct 2021 20:24:37 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 442223858D35 From: "ahajkova at redhat dot com" To: gdb-prs@sourceware.org Subject: [Bug gdb/28444] New: gdb fails to build on ppc64le when building with -flto Date: Mon, 11 Oct 2021 20:24:37 +0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: new X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gdb X-Bugzilla-Component: gdb X-Bugzilla-Version: 11.2 X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: ahajkova at redhat dot com X-Bugzilla-Status: NEW X-Bugzilla-Resolution: X-Bugzilla-Priority: P2 X-Bugzilla-Assigned-To: unassigned at sourceware dot org X-Bugzilla-Target-Milestone: --- X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: bug_id short_desc product version bug_status bug_severity priority component assigned_to reporter target_milestone Message-ID: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: http://sourceware.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-BeenThere: gdb-prs@sourceware.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Gdb-prs mailing list List-Unsubscribe: , List-Archive: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 11 Oct 2021 20:24:37 -0000 https://sourceware.org/bugzilla/show_bug.cgi?id=3D28444 Bug ID: 28444 Summary: gdb fails to build on ppc64le when building with -flto Product: gdb Version: 11.2 Status: NEW Severity: normal Priority: P2 Component: gdb Assignee: unassigned at sourceware dot org Reporter: ahajkova at redhat dot com Target Milestone: --- gcc-11.2.1-1.fc35.ppc64le gdb-10.2-6.fc35.ppc64le Fedora-Rawhide clone gdb and build it as follows 1.flags=3D"-g3 -Og -flto" CFLAGS=3D"$flags" CXXFLAGS=3D"$flags" ../binutils-gdb/configure --disable-binutils --disable-elfcpp --disable-gas --disable-gold --disable-gprof --disable-ld --enable-unit-tests --with-system-readline --with-separate-debug-dir=3D/usr --disable-sim 2.make -j `nproc` results: ../../binutils-gdb/gdbserver/../gdb/arch/ppc-linux-tdesc.h:44:28: error: =E2=80=98tdesc_powerpc_isa207_htm_vsx64l=E2=80=99 violates the C++ One Defi= nition Rule [-Werror=3Dodr] 44 | extern struct target_desc *tdesc_powerpc_isa207_htm_vsx64l; Note: struct target_desc is actually defined in gdb/target-descriptions.c. Not in= a header. --=20 You are receiving this mail because: You are on the CC list for the bug.=