From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id 158593858C33; Wed, 6 Sep 2023 07:18:36 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 158593858C33 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=sourceware.org; s=default; t=1693984717; bh=Npph7yX1Am9KZLfIoQA0Nal+kYeo2LS2LwgVCztvE/4=; h=From:To:Subject:Date:In-Reply-To:References:From; b=XOgfiAyMLxybyZP2Geu8fnUEWmwC4gz3JRnouNq32g73eLSUiLWcrlpmfoUONfpt7 e1pBlPYmjtqpU6drshlCr7yfq86RQNUTX2mamwYUgQri/UUUWEXFruUXuADHig8oZA tjVLzWdCi/CXyCH+YrM6QuaZtXfbpfEy2XOWKi/Y= From: "markus.t.metzger at intel dot com" To: gdb-prs@sourceware.org Subject: [Bug build/30751] [gdb/build] ODR violation for struct btrace_target_info Date: Wed, 06 Sep 2023 07:18:36 +0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gdb X-Bugzilla-Component: build X-Bugzilla-Version: HEAD X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: markus.t.metzger at intel 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: Message-ID: In-Reply-To: References: 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 List-Id: https://sourceware.org/bugzilla/show_bug.cgi?id=3D30751 --- Comment #9 from Markus Metzger --- (In reply to Tom de Vries from comment #8) > (In reply to Markus Metzger from comment #4) > > After configuring, I build GDB with: > >=20 > > $ make -sj$(nproc) CFLAGS=3D'-O2 -flto -Wall' CXXFLAGS=3D'-O2 -flto= -Wall' > >=20 > > and I get several fails, e.g. > >=20 > > .../sim/m32r/traps.c:115:43: error: type of 'm32r2f_h_psw_get' does not > > match original declaration [-Werror=3Dlto-type-mismatch] > > 115 | m32r2f_h_bpsw_set (current_cpu, m32r2f_h_psw_get > > (current_cpu)); > >=20 > > but no -Wodr warnings nor any other warnings related to btrace. >=20 > I think what may be happening is that if you're getting an error while > building sim, gdb is not build at all, because all-gdb requires > maybe-all-sim. >=20 > In that case, you could try building with --disable-sim. After disabling sim, I get bfd/elf32-xtensa.c:5725:41: error: 'MEM[(struct removal_by_action_entry *)ientry_91 + -24B].offset' may be used uninitialized [-Werror=3Dmaybe-uninitialized] 5725 | if (ctx->map.n_entries && (ientry - 1)->offset =3D=3D r->offset) |=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20= =20=20=20=20=20=20=20=20=20=20=20=20=20=20 but when I build with 'make -k' I can now reproduce the error and confirm t= hat it is fixed with my patch. --=20 You are receiving this mail because: You are on the CC list for the bug.=