Bug 251818 - editors/neovim 0.4.4_2 fails on linker error with LUAJIT=off
Summary: editors/neovim 0.4.4_2 fails on linker error with LUAJIT=off
Status: Closed Works As Intended
Alias: None
Product: Ports & Packages
Classification: Unclassified
Component: Individual Port(s) (show other bugs)
Version: Latest
Hardware: Any Any
: --- Affects Only Me
Assignee: Adam Weinberger
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2020-12-13 16:39 UTC by p5B2EA84B3
Modified: 2020-12-22 00:20 UTC (History)
1 user (show)

See Also:
bugzilla: maintainer-feedback? (adamw)


Attachments
Poudriere build logfile (363.58 KB, text/plain)
2020-12-13 16:39 UTC, p5B2EA84B3
no flags Details

Note You need to log in before you can comment on or make changes to this bug.
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.