Bug 251818

Summary: editors/neovim 0.4.4_2 fails on linker error with LUAJIT=off
Product: Ports & Packages Reporter: p5B2EA84B3
Component: Individual Port(s)Assignee: Adam Weinberger <adamw>
Status: Closed Works As Intended    
Severity: Affects Only Me CC: checo1705
Priority: --- Flags: bugzilla: maintainer-feedback? (adamw)
Version: Latest   
Hardware: Any   
OS: Any   
Attachments:
Description Flags
Poudriere build logfile none

Description p5B2EA84B3 2020-12-13 16:39:15 UTC
Created attachment 220533 [details]
Poudriere build logfile

ld: error: /usr/local/lib/libluv.so: undefined reference to luaL_loadbuffer
ld: error: /usr/local/lib/libluv.so: undefined reference to luaL_register
ld: error: /usr/local/lib/libluv.so: undefined reference to lua_call
ld: error: /usr/local/lib/libluv.so: undefined reference to lua_objlen
ld: error: /usr/local/lib/libluv.so: undefined reference to lua_pcall
ld: error: /usr/local/lib/libluv.so: undefined reference to lua_tointeger
ld: error: /usr/local/lib/libluv.so: undefined reference to lua_tonumber
cc: error: linker command failed with exit code 1 (use -v to see invocation)
ninja: build stopped: subcommand failed.
===> Compilation failed unexpectedly.
Try to set MAKE_JOBS_UNSAFE=yes and rebuild before reporting the failure to
the maintainer.
*** Error code 1

Stop.
make: stopped in /usr/ports/editors/neovim
=>> Cleaning up wrkdir
===>  Cleaning for neovim-0.4.4_2
build of editors/neovim | neovim-0.4.4_2 ended at Sun Dec 13 17:27:34 CET 2020
build time: 00:01:03
!!! build failure encountered !!!
Comment 1 Adam Weinberger freebsd_committer freebsd_triage 2020-12-22 00:13:46 UTC
Sorry for taking so long to get to this. My guess is that updating devel/luv may address this. It's 7 releases behind at this point so it's probably worth doing anyway.

I'm Cc'ing the maintainer of devel/luv.
Comment 2 Adam Weinberger freebsd_committer freebsd_triage 2020-12-22 00:20:54 UTC
Ah! No, sorry, I called that one wrong. This is caused by devel/luv being built with the LUAJIT option enabled. Because you have LUAJIT off in neovim, it needs to be off in luv as well. Turning them both off fixes the build.