Skip to content

MacOS ld warning: -undefined dynamic_lookup may not work with chained fixups

Getting a linker warning after upgrading to MacOS Monterey (12.6). Repro steps:

  1. Create empty Bar.hs module (module Bar where)
  2. Run ghc -shared Bar.hs
[1 of 1] Compiling Bar              ( Bar.hs, Bar.o )
Linking a.out ...
ld: warning: -undefined dynamic_lookup may not work with chained fixups

Artifacts still seem to work, but it would be nice to resolve (or hide?) the warning.

From the man page:

     -undefined treatment
             Specifies how undefined symbols are to be treated. Options are: error, warning,
             suppress, or dynamic_lookup.  The default is error. Note: dynamic_lookup that
             depends on lazy binding will not work with chained fixups.
Edited by Brandon Chinn
To upload designs, you'll need to enable LFS and have an admin enable hashed storage. More information