With LUA_SINGLE_TARGET=luajit, neovim fails to build on arm64: > -- Checking Lua interpreter: luajit > -- [luajit] file not found > -- [luajit] The 'lpeg' lua package is required for building Neovim > CMake Error at CMakeLists.txt:564 (message): > Failed to find a Lua 5.1-compatible interpreter dev-lua/lpeg is installed with LUA_TARGETS="lua5-1 luajit" and installs the following files (which seems correct): > /usr/lib64/lua/5.1/lpeg.so > /usr/share/lua/5.1/re.lua Neither CMakeOutput.log nor CMakeError.log have any mention of 'lua' or 'lpeg'. I see that dev-lang/luajit (2.1.0_beta3-r2) doesn't install /usr/bin/luajit (only /usr/bin/luajit-2.1.0-beta3). Adding a symlink allows src_configure to work, but src_compile fails. The lack of a luajit symlink looks the same as bug 833449. With dev-lang/luajit-2.1.0_beta3_p20220127-r1 installed, neovim builds fine. I suspect that this bug has only affected arm64 because dev-lang/luajit-2.1.0_beta3-r2 is only stable on arm64. I think it needs the same symlink handling as 2.1.0_beta3_p20220127-r1.
Fixed by stabilizing dev-lang/luajit-2.1.0_beta3_p20220127-r1 on arm64.