romgrk / fzy-lua-native

Luajit FFI bindings to FZY
118 stars 16 forks source link

Crash on macOS 10.13 #16

Closed hronro closed 3 years ago

hronro commented 3 years ago
dyld: lazy symbol binding failed: Symbol not found: ____chkstk_darwin
Referenced from: ~/.local/share/nvim/site/pack/packer/start/telescope-fzy-native.nvim/deps/fzy-lua-native/lua/../static/libfzy-darwin-x86_64.so (which was built for Mac OS X 10.15
Expected in: /usr/lib/libSystem.B.dylib
romgrk commented 3 years ago

Can't debug, don't have a macOS :|

Not sure if it's the same for macOS, but what does ldd ./static/libfzy-darwin-x86_64.so outputs?

And can you try to run make, and check if that solves the issue?

romgrk commented 3 years ago

Probable cause: https://github.com/nodegui/nodegui/issues/391#issuecomment-582328912

Unfortunately, GH actions doesn't offer a macOS 10.13 environment, so nothing I can do here. I suggest to upgrade to the latest version of the OS. But running make should fix your issue for now.

hronro commented 3 years ago

@romgrk Hi romgrk, what do you think if we use zig as the C compiler to cross compile it? I've test it for myself to cross compile a libfzy-darwin-x86_64.so from Arch Linux and it works pretty well (and also works on macOS 10.13). If so, this can help simplify the CI as well. Please let me know what you think, and I'm happy to make a PR.