Opened 16 months ago

Closed 3 months ago

#66658 closed defect (fixed)

emacs @28.2_1: "-undefined dynamic_lookup may not work with chained fixups"

Reported by: vallon (Justin) Owned by: drkp (Dan Ports)
Priority: Normal Milestone:
Component: ports Version: 2.8.0
Keywords: Cc: catap (Kirill A. Korinsky), cooljeanius (Eric Gallager)
Port: emacs, emacs-app

Description

Running emacs shows the following in the *Warnings* buffer:

Warning (comp): ld: warning: -undefined dynamic_lookup may not work with chained fixups Disable showing Disable logging

Emacs bug: https://debbugs.gnu.org/57849

Commit that fixes: https://github.com/emacs-mirror/emacs/commit/97b928ce09d6034ebcb541fb548e5d4862302add

That commit is after emacs-28.2, and 28.3 has not been tagged yet.

Workaround is to set native-comp-driver-options. Something like the following in init.el:

;;; emacs 28.2 fix
(setq native-comp-driver-options (when (eq system-type 'darwin) '("-Wl,-w")))

Change History (5)

comment:1 Changed 11 months ago by neverpanic (Clemens Lang)

https://github.com/python/cpython/issues/97524#issuecomment-1442449271 suggests that a newer Xcode version will eventually fix this, too.

On older Xcode versions, -Wl,-no_fixup_chains should be passed instead of silencing the warning.

comment:2 Changed 7 months ago by cooljeanius (Eric Gallager)

Cc: cooljeanius added

comment:3 Changed 7 months ago by ryandesign (Ryan Carsten Schmidt)

The commit you mentioned was included in emacs 29.1 which is the version in MacPorts now so please retry with that version.

comment:4 Changed 3 months ago by vallon (Justin)

Fixed in current macports emacs 29.2.

comment:5 Changed 3 months ago by drkp (Dan Ports)

Resolution: fixed
Status: assignedclosed
Note: See TracTickets for help on using tickets.