Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 851744 - app-editors/neovim fails to build with LUA_SINGLE_TARGET=luajit on arm64
Summary: app-editors/neovim fails to build with LUA_SINGLE_TARGET=luajit on arm64
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: William Hubbs
URL:
Whiteboard:
Keywords:
Depends on: 851747
Blocks:
  Show dependency tree
 
Reported: 2022-06-13 19:34 UTC by Matt Turner
Modified: 2022-06-19 22:30 UTC (History)
3 users (show)

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Matt Turner gentoo-dev 2022-06-13 19:34:29 UTC
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.
Comment 1 Matt Turner gentoo-dev 2022-06-19 22:30:11 UTC
Fixed by stabilizing dev-lang/luajit-2.1.0_beta3_p20220127-r1 on arm64.