You are not logged in.

#1 2022-10-05 19:29:26

pelegs
Member
Registered: 2020-10-18
Posts: 31

[SOLVED] neovim issue with libluv: "undefined symbol"

I installed neovim 0.8.0-3 from the community repository. When I run nvim I get the following error:

nvim: symbol lookup error: /usr/lib/libluv.so.1: undefined symbol: uv_available_parallelism

I dug a bit, and it seems that this version of neovim requires libluv >= 1.44 which I have (specifically 1.44.2_1-1).

However, looking at the source code for libluv I found the following line:

#if LUV_UV_VERSION_GEQ(1, 44, 0)
static int luv_available_parallelism(lua_State* L) {
  lua_pushinteger(L, uv_available_parallelism());
  return 1;
}
#endif

(lines 224-229 here)

If I read this correctly, since I have libluv>=1.44, uv_available_parallelism() is called, but I couldn't find where it is defined: the header file luv.h of the same repository definitely doesn't contain it. However, the source code for libuv (not to be confused with libluv, I believe the l stands for lua) does contain it (here, starting at line 1634).

At this point I'm at a dead end.
Does anyone have any suggestions on how to proceed from here?

Last edited by pelegs (2022-10-06 10:33:41)

Offline

#2 2022-10-05 19:50:29

jasonwryan
Anarchist
From: .nz
Registered: 2009-05-09
Posts: 30,426
Website

Re: [SOLVED] neovim issue with libluv: "undefined symbol"

pacman -Syu

Arch + dwm   •   Mercurial repos  •   Surfraw

Registered Linux User #482438

Offline

#3 2022-10-05 23:42:01

Scimmia
Fellow
Registered: 2012-09-01
Posts: 13,729

Re: [SOLVED] neovim issue with libluv: "undefined symbol"

libluv is linked to libuv, so that's where it's defined. See `lddtree -a /usr/bin/nvim`, you should see it, and make sure it's loading the correct libs.

Last edited by Scimmia (2022-10-05 23:42:15)

Offline

#4 2022-10-06 10:33:13

pelegs
Member
Registered: 2020-10-18
Posts: 31

Re: [SOLVED] neovim issue with libluv: "undefined symbol"

jasonwryan wrote:
pacman -Syu

That actually worked. Thanks!

Offline

Board footer

Powered by FluxBB