emacs-tree-sitter/tree-sitter-langs

can't load dylibs on macos 10.14 (load command 0x80000034 is unknown)

ahihi opened this issue · 0 comments

ahihi commented

hi,

i am trying to use tree-sitter with emacs 27.1 on macos 10.14. however, executing tree-sitter-hl-mode gives me the following error:

let: Language load failed: "dlopen(/Users/ahihi/.emacs.d/elpa/tree-sitter-langs-20230128.1459/bin/python.dylib, 5): no suitable image found.  Did find:
	/Users/ahihi/.emacs.d/elpa/tree-sitter-langs-20230128.1459/bin/python.dylib: cannot load 'python.dylib' (load command 0x80000034 is unknown)
	/Users/ahihi/.emacs.d/elpa/tree-sitter-langs-20230128.1459/bin/python.dylib: stat() failed with errno=4"

it seems that load command 0x80000034 refers to LC_DYLD_CHAINED_FIXUPS which is not supported by dyld on macos <10.15.

would it be possible to build the binaries with support for 10.14?