From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id F36C33858291; Mon, 21 Aug 2023 06:55:14 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org F36C33858291 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=sourceware.org; s=default; t=1692600915; bh=l0pTbO9nfKSM2a94skLbjyNcmfQo2vduukUT9Q/cwds=; h=From:To:Subject:Date:In-Reply-To:References:From; b=McJ+ohshHsARxhB9gKGvYBBVKMfwOgDajPASQjrwQG/bdYs3I1RnYwzGMWwtmZBCo C7cNifLbACZj4YWCE34jc9Lw6ENIduglL52Da+uDSrLsD+Yj2vfeu7L+W3wvQ9D/AX AIUmjtxdonGKoL9/aT0W1bcvqOP7G7OF5l0rYRLQ= From: "vries at gcc dot gnu.org" To: gdb-prs@sourceware.org Subject: [Bug build/30751] [gdb/build] ODR violation for struct btrace_target_info Date: Mon, 21 Aug 2023 06:55:14 +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: vries at gcc dot gnu.org 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 #8 from Tom de Vries --- (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. I think what may be happening is that if you're getting an error while buil= ding sim, gdb is not build at all, because all-gdb requires maybe-all-sim. In that case, you could try building with --disable-sim. --=20 You are receiving this mail because: You are on the CC list for the bug.=