public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug bootstrap/115167] New: CFG edge visualization to path-printing bootstrap failure
@ 2024-05-20 18:37 dje at gcc dot gnu.org
  2024-05-20 20:57 ` [Bug bootstrap/115167] [15 Regression] " dmalcolm at gcc dot gnu.org
                   ` (8 more replies)
  0 siblings, 9 replies; 10+ messages in thread
From: dje at gcc dot gnu.org @ 2024-05-20 18:37 UTC (permalink / raw)
  To: gcc-bugs

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=115167

            Bug ID: 115167
           Summary: CFG edge visualization to path-printing bootstrap
                    failure
           Product: gcc
           Version: 15.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: bootstrap
          Assignee: unassigned at gcc dot gnu.org
          Reporter: dje at gcc dot gnu.org
                CC: dmalcolm at gcc dot gnu.org
  Target Milestone: ---
            Target: powerpc-ibm-aix*

Unfortunately r15-636-g770657d02c986c causes a bootstrap failure on AIX when
building f951 in stage2.  cc1 and cc1plus link successfully. There doesn't seem
to be a similar failure for powerpc64-linux BE or LE.

The failure is

ld: 0711-317 ERROR: Undefined symbol: _ZTV29range_label_for_type_mismatch
ld: 0711-317 ERROR: Undefined symbol:
._ZNK29range_label_for_type_mismatch8get_textEj

which corresponds to

vtable for range_label_for_type_mismatch
range_label_for_type_mismatch::get_text(unsigned int) const

I suspect that something is not being explicitly instantiated, which is running
afoul of the AIX linker.

Somehow your patch is causing the f951 compiler to reference these additional,
undefined symbols.  I suspect that they also are undefined for Linux targets,
but the linker ignores the error and nothing is amiss if the symbols never are
called.

It seems that the patch has created a reference to get_text() that only has
been instantiated for the C languages:
./c/c-objc-common.cc:range_label_for_type_mismatch::get_text (unsigned
/*range_idx*/) const
./cp/error.cc:range_label_for_type_mismatch::get_text (unsigned /*range_idx*/)
const

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

end of thread, other threads:[~2024-05-28 17:16 UTC | newest]

Thread overview: 10+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2024-05-20 18:37 [Bug bootstrap/115167] New: CFG edge visualization to path-printing bootstrap failure dje at gcc dot gnu.org
2024-05-20 20:57 ` [Bug bootstrap/115167] [15 Regression] " dmalcolm at gcc dot gnu.org
2024-05-20 22:03 ` dje at gcc dot gnu.org
2024-05-21  0:46 ` dje at gcc dot gnu.org
2024-05-21  6:42 ` rguenth at gcc dot gnu.org
2024-05-21 13:38 ` dmalcolm at gcc dot gnu.org
2024-05-24  1:42 ` dmalcolm at gcc dot gnu.org
2024-05-24 12:09 ` dje at gcc dot gnu.org
2024-05-28 17:08 ` cvs-commit at gcc dot gnu.org
2024-05-28 17:16 ` dmalcolm 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).