From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id BDDDB385841D; Mon, 14 Aug 2023 09:27:14 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org BDDDB385841D DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=sourceware.org; s=default; t=1692005234; bh=gk3cuvQkJ8j2W9V3NxgXHyjMKNXCaAh/sYR1ZvPxZzY=; h=From:To:Subject:Date:From; b=yIz1xmupBBP1jxleUBPHTDnW4DneI/g9Dk2UrSeur2Q+FGZnWk9SLe2cJfUbKY2XU GGW4xzbq1StKyZd3TrH7++oLAt0BW16Q3unZCTbdEZ6TBdmYxXuPNw4KHJn9eAAFzR 7TaGjEYLqzXcvzz8hhlw4UXUMEGbrkaE9YI2QQaM= From: "vries at gcc dot gnu.org" To: gdb-prs@sourceware.org Subject: [Bug build/30751] New: [gdb/build] ODR violation for struct btrace_target_info Date: Mon, 14 Aug 2023 09:27:13 +0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: new 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: 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 List-Id: https://sourceware.org/bugzilla/show_bug.cgi?id=3D30751 Bug ID: 30751 Summary: [gdb/build] ODR violation for struct btrace_target_info Product: gdb Version: HEAD Status: NEW Severity: normal Priority: P2 Component: build Assignee: unassigned at sourceware dot org Reporter: vries at gcc dot gnu.org Target Milestone: --- When building gdb with -O2 -flto -Wall we run into: ... /data/vries/gdb/src/gdb/nat/linux-btrace.h:84:8: warning: type 'struct btrace_target_info' violates the C++ One Definition Rule [-Wodr] struct btrace_target_info ^ /data/vries/gdb/src/gdb/remote.c:14140:0: note: a different type is defined= in another translation unit struct btrace_target_info /data/vries/gdb/src/gdb/nat/linux-btrace.h:101:5: note: the first differenc= e of corresponding definitions is field 'variant' } variant; ^ /data/vries/gdb/src/gdb/remote.c:14140:0: note: a type with different numbe= r of fields is defined in another translation unit struct btrace_target_info ... --=20 You are receiving this mail because: You are on the CC list for the bug.=