tree-sitter-langs icon indicating copy to clipboard operation
tree-sitter-langs copied to clipboard

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

Open ahihi opened this issue 2 years ago • 0 comments

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?

ahihi avatar Feb 02 '23 22:02 ahihi