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

            Bug ID: 104749
           Summary: [12 regression] stage1 d21 fails to link on
                    Solaris/x86
           Product: gcc
           Version: 12.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: d
          Assignee: ibuclaw at gdcproject dot org
          Reporter: ro at gcc dot gnu.org
  Target Milestone: ---
            Target: i?86-pc-solaris2.11

Between 20220228 (3f3246eb16f554c70c5ce87ad2c785f83adb4625) and 20220301
(673a10aee1aafe0c99bfadc29a7458339bdddb3a),
stage1 d21 fails to link on Solaris/x86:

ld: fatal: symbol '___s.24736' is multiply-defined:
        (file d/statementsem.o type=OBJT; file d/typesem.o type=OBJT);
ld: fatal: symbol '___s.24712' is multiply-defined:
        (file d/statementsem.o type=OBJT; file d/typesem.o type=OBJT);

This doesn't happen on Solaris/SPARC, though.

This is with gdc 9.1.0 as bootstrap compiler.  The problem seems to vanish
(haven't run a full bootstrap yet) with gdc 11.1.0, and gdc 9.1.0 -m64 (i.e.
building an amd64-pc-solaris2.11 compiler) works, too.

I'll attach the assembler output.

Reply via email to