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

            Bug ID: 123633
           Summary: gdc cannot handle pragma(mangle, "qsort_r at FBSD_1 dot 0")
           Product: gcc
           Version: 16.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: amd64-pc-freebsd15.0

Even with PR d/123632 fixed, libphobos doesn't build on FreeBSD 15.0 (and
hasn't
for quite some time).  The assembler output for
libdruntime/core/internal/qsort.d
won't assemble:

core/internal/.libs/qsort.s: Assembler messages:
core/internal/.libs/qsort.s:45: Error: junk `@FBSD_1.0@PLT' after expression

due to the use of

pragma(mangle, "qsort_r@FBSD_1.0")

It seems gdc needs some handling for .symver to cope with this.

Reply via email to