public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug modula2/107629] New: runtime libs don't link on macOS
@ 2022-11-11  9:05 ro at gcc dot gnu.org
  2022-11-11  9:06 ` [Bug modula2/107629] " ro at gcc dot gnu.org
                   ` (2 more replies)
  0 siblings, 3 replies; 4+ messages in thread
From: ro at gcc dot gnu.org @ 2022-11-11  9:05 UTC (permalink / raw)
  To: gcc-bugs

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

            Bug ID: 107629
           Summary: runtime libs don't link on macOS
           Product: gcc
           Version: 13.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: modula2
          Assignee: gaius at gcc dot gnu.org
          Reporter: ro at gcc dot gnu.org
  Target Milestone: ---
              Host: x86_64-apple-darwin11.4.2
            Target: x86_64-apple-darwin11.4.2
             Build: x86_64-apple-darwin11.4.2

The gm2 runtime libs don't link on macOS, e.g. libm2log:

Undefined symbols for architecture x86_64:
  "_DynamicStrings_ConCat", referenced from:
      _FileSystem_Create in FileSystem.o
      _InOut_OpenInput in InOut.o
      _InOut_OpenOutput in InOut.o
      _RealConversions_LongRealToString in RealConversions.o
      _Pad.part.0 in RealInOut.o
      _Strings_Delete in Strings.o
      _Strings_Insert in Strings.o
      ...

and many more.

While libtool knows about the ld option to lift that requirement, there seems
to be no way to activate it.  For now, I've just manually added

LDFLAGS = -Wl,-undefined -Wl,dynamic_lookup

to the various libgm2 Makefiles.  I suspect something along the lines of
libitm/configure.tgt or libsanitizer/configure.tgt will be necessary to handle
this for real.  However, the best way would be to make the libs self-contained,
actually, so the issue would just vanish.

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

* [Bug modula2/107629] runtime libs don't link on macOS
  2022-11-11  9:05 [Bug modula2/107629] New: runtime libs don't link on macOS ro at gcc dot gnu.org
@ 2022-11-11  9:06 ` ro at gcc dot gnu.org
  2022-11-15 13:51 ` ro at gcc dot gnu.org
  2023-01-17 15:22 ` iains at gcc dot gnu.org
  2 siblings, 0 replies; 4+ messages in thread
From: ro at gcc dot gnu.org @ 2022-11-11  9:06 UTC (permalink / raw)
  To: gcc-bugs

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

Rainer Orth <ro at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
   Target Milestone|---                         |13.0

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

* [Bug modula2/107629] runtime libs don't link on macOS
  2022-11-11  9:05 [Bug modula2/107629] New: runtime libs don't link on macOS ro at gcc dot gnu.org
  2022-11-11  9:06 ` [Bug modula2/107629] " ro at gcc dot gnu.org
@ 2022-11-15 13:51 ` ro at gcc dot gnu.org
  2023-01-17 15:22 ` iains at gcc dot gnu.org
  2 siblings, 0 replies; 4+ messages in thread
From: ro at gcc dot gnu.org @ 2022-11-15 13:51 UTC (permalink / raw)
  To: gcc-bugs

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

--- Comment #1 from Rainer Orth <ro at gcc dot gnu.org> ---
Created attachment 53903
  --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=53903&action=edit
Initial patch

This patch allowed me to finish the libgm2 build on macOS.  As usuual, it
contains
only the non-generated parts.  Again, it would be better to centralize this
to avoid adding to the current duplication with libcc1, libitm, and
libsanitizer.

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

* [Bug modula2/107629] runtime libs don't link on macOS
  2022-11-11  9:05 [Bug modula2/107629] New: runtime libs don't link on macOS ro at gcc dot gnu.org
  2022-11-11  9:06 ` [Bug modula2/107629] " ro at gcc dot gnu.org
  2022-11-15 13:51 ` ro at gcc dot gnu.org
@ 2023-01-17 15:22 ` iains at gcc dot gnu.org
  2 siblings, 0 replies; 4+ messages in thread
From: iains at gcc dot gnu.org @ 2023-01-17 15:22 UTC (permalink / raw)
  To: gcc-bugs

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

Iain Sandoe <iains at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
         Resolution|---                         |FIXED
             Status|UNCONFIRMED                 |RESOLVED
                 CC|                            |iains at gcc dot gnu.org

--- Comment #2 from Iain Sandoe <iains at gcc dot gnu.org> ---
this is fixed in trunk.

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

end of thread, other threads:[~2023-01-17 15:22 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-11-11  9:05 [Bug modula2/107629] New: runtime libs don't link on macOS ro at gcc dot gnu.org
2022-11-11  9:06 ` [Bug modula2/107629] " ro at gcc dot gnu.org
2022-11-15 13:51 ` ro at gcc dot gnu.org
2023-01-17 15:22 ` iains 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).