public inbox for gdb-prs@sourceware.org
help / color / mirror / Atom feed
* [Bug gdb/28444] New: gdb fails to build on ppc64le when building with -flto
@ 2021-10-11 20:24 ahajkova at redhat dot com
  2022-03-06 17:10 ` [Bug gdb/28444] " tromey at sourceware dot org
  2023-09-11  7:35 ` vries at gcc dot gnu.org
  0 siblings, 2 replies; 3+ messages in thread
From: ahajkova at redhat dot com @ 2021-10-11 20:24 UTC (permalink / raw)
  To: gdb-prs

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

            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="-g3 -Og -flto" CFLAGS="$flags" CXXFLAGS="$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=/usr --disable-sim
2.make -j `nproc`

results:
../../binutils-gdb/gdbserver/../gdb/arch/ppc-linux-tdesc.h:44:28: error:
‘tdesc_powerpc_isa207_htm_vsx64l’ violates the C++ One Definition Rule
[-Werror=odr]
   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.

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

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

* [Bug gdb/28444] gdb fails to build on ppc64le when building with -flto
  2021-10-11 20:24 [Bug gdb/28444] New: gdb fails to build on ppc64le when building with -flto ahajkova at redhat dot com
@ 2022-03-06 17:10 ` tromey at sourceware dot org
  2023-09-11  7:35 ` vries at gcc dot gnu.org
  1 sibling, 0 replies; 3+ messages in thread
From: tromey at sourceware dot org @ 2022-03-06 17:10 UTC (permalink / raw)
  To: gdb-prs

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

Tom Tromey <tromey at sourceware dot org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |RESOLVED
         Resolution|---                         |DUPLICATE
                 CC|                            |tromey at sourceware dot org

--- Comment #1 from Tom Tromey <tromey at sourceware dot org> ---
Marking as dup of the generic ODR bug.

*** This bug has been marked as a duplicate of bug 22395 ***

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

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

* [Bug gdb/28444] gdb fails to build on ppc64le when building with -flto
  2021-10-11 20:24 [Bug gdb/28444] New: gdb fails to build on ppc64le when building with -flto ahajkova at redhat dot com
  2022-03-06 17:10 ` [Bug gdb/28444] " tromey at sourceware dot org
@ 2023-09-11  7:35 ` vries at gcc dot gnu.org
  1 sibling, 0 replies; 3+ messages in thread
From: vries at gcc dot gnu.org @ 2023-09-11  7:35 UTC (permalink / raw)
  To: gdb-prs

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

Tom de Vries <vries at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
            Version|11.2                        |10.1
                 CC|                            |vries at gcc dot gnu.org

--- Comment #2 from Tom de Vries <vries at gcc dot gnu.org> ---
If this still occurs, we need to reopen it.

If it does occur, please post the entire warning.

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

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

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

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-10-11 20:24 [Bug gdb/28444] New: gdb fails to build on ppc64le when building with -flto ahajkova at redhat dot com
2022-03-06 17:10 ` [Bug gdb/28444] " tromey at sourceware dot org
2023-09-11  7:35 ` 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).