public inbox for gdb-prs@sourceware.org
help / color / mirror / Atom feed
* [Bug build/30751] New: [gdb/build] ODR violation for struct btrace_target_info
@ 2023-08-14  9:27 vries at gcc dot gnu.org
  2023-08-14  9:28 ` [Bug build/30751] " vries at gcc dot gnu.org
                   ` (13 more replies)
  0 siblings, 14 replies; 15+ messages in thread
From: vries at gcc dot gnu.org @ 2023-08-14  9:27 UTC (permalink / raw)
  To: gdb-prs

https://sourceware.org/bugzilla/show_bug.cgi?id=30751

            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 difference of
corresponding definitions is field 'variant'
   } variant;
     ^
/data/vries/gdb/src/gdb/remote.c:14140:0: note: a type with different number of
fields is defined in another translation unit
 struct btrace_target_info
...

-- 
You are receiving this mail because:
You are on the CC list for the bug.

^ permalink raw reply	[flat|nested] 15+ messages in thread

end of thread, other threads:[~2023-09-11  6:55 UTC | newest]

Thread overview: 15+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2023-08-14  9:27 [Bug build/30751] New: [gdb/build] ODR violation for struct btrace_target_info vries at gcc dot gnu.org
2023-08-14  9:28 ` [Bug build/30751] " vries at gcc dot gnu.org
2023-08-14  9:35 ` sam at gentoo dot org
2023-08-14 12:36 ` tromey at sourceware dot org
2023-08-14 12:56 ` vries at gcc dot gnu.org
2023-08-14 13:20 ` markus.t.metzger at intel dot com
2023-08-14 18:03 ` tromey at sourceware dot org
2023-08-18 10:07 ` markus.t.metzger at intel dot com
2023-08-18 14:12 ` tromey at sourceware dot org
2023-08-18 14:29 ` vries at gcc dot gnu.org
2023-08-18 15:56 ` vries at gcc dot gnu.org
2023-08-21  6:55 ` vries at gcc dot gnu.org
2023-09-06  7:18 ` markus.t.metzger at intel dot com
2023-09-11  6:18 ` cvs-commit at gcc dot gnu.org
2023-09-11  6:55 ` vries at gcc dot gnu.org

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).