Has anyone been able to get neovim 0.7.0 to work on aarch64?

I am trying to update the neovim package on Void Linux but the cross-builds for aarch64 are failing. Link to GitHub Action.

The error message is:

FAILED: runtime/pack/dist/opt/matchit/doc/tags /builddir/neovim-0.7.0/build/runtime/pack/dist/opt/matchit/doc/tags 
cd /builddir/neovim-0.7.0/build/runtime/pack/dist/opt/matchit && /usr/bin/cmake -E copy_directory /builddir/neovim-0.7.0/runtime/pack/dist/opt/matchit /builddir/neovim-0.7.0/build/runtime/pack/dist/opt/matchit && /usr/bin/qemu-aarch64-static /builddir/neovim-0.7.0/build/bin/nvim -u NONE -i NONE -e --headless -c helptags\ doc -c quit
vim/_init_packages.lua: cannot load incompatible bytecode
stack traceback:
	[C]: at 0x55001d3ba0
	[C]: at 0x550272f410
E970: Failed to initialize builtin lua modules

I have tried a few things and the problems according to my hunch is with LuaJIT not working out-of-the-box with the combination of the architecture and neovim.

I am not sure how to debug the actual cause of the issue too. But in the past the LuaJIT package has required patches to work for neovim on aarch64 on Void Linux.

So if anyone has any tips or advice I would appreciate it.

I have the same problem

I was able to get it to run at least. I didn’t do thorough testing so there is a possibility that it still crashes at some point.

I compiled LuaJIT branch v2.1 commit ddb955376457461bbcc62d4c7fee86669adad20c with these sets of patches: void-packages/srcpkgs/LuaJIT/patches at update-neovim · kartikynwa/void-packages · GitHub

After that neovim worked fine.

Getting the same issue, not on aarach64, just an arch linux install of x86_64, pulled the most recent neovim version from pacman and the issue started anytime I try to run neovim.

You can workaround this by adding -DCOMPILE_LUA=OFF to the CMake build flags. This will disable pre-compilation of embedded Lua into bytecode.

1 Like

Thank you. Will try this.