Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Neovim (luajitPackages.luv) does not install correctly #80704

Closed
y-usuzumi opened this issue Feb 21, 2020 · 4 comments
Closed

Neovim (luajitPackages.luv) does not install correctly #80704

y-usuzumi opened this issue Feb 21, 2020 · 4 comments
Labels
0.kind: bug Something is broken

Comments

@y-usuzumi
Copy link

Describe the bug
I have neovim in my systemPackages, I did nix-channel --update and nixos-rebuild switch today and it stuck at building luajit:

To Reproduce
Steps to reproduce the behavior:

  1. Add neovim to environment.systemPackages
  2. Run nix-channel --update
  3. Run nixos-rebuild switch

Expected behavior
The system should upgrade properly.

Additional context
Output:

# nixos-rebuild switch
building Nix...
building the system configuration...
these derivations will be built:
  /nix/store/r1r1sprc1r1yb29w17vfyfnmi2r09zjv-luajit-2.1.0-beta3-luv-1.34.1-1.drv
  /nix/store/0xasdnwd3fvxzl7qrs2zf5wsh2f86yrj-neovim-unwrapped-0.4.3.drv
  /nix/store/6v9iv9jrlwik9a3m5v4hn6gwhph1sc27-neovim-0.4.3.drv
  /nix/store/chlys5ihvxllkfdrpdxrssgfycyjwlb3-system-path.drv
  /nix/store/knjjhw14i55dnb0f34k9lxjks4hkr8jz-unit-polkit.service.drv
  /nix/store/ys2y4qjp6x78813l7zjr0iyfd2p2l2c6-dbus-1.drv
  /nix/store/nc4fxkfdmkr9vdhp1divs0w72l12q2ij-unit-dbus.service.drv
  /nix/store/wbdxd6s8vbhv8yi3hpv2l4bqb4h67c9n-unit-systemd-fsck-.service.drv
  /nix/store/0x79iyhxplm1jajiffzkhpklrsvkblfb-system-units.drv
  /nix/store/an5xzvddamzanbh8800bn3c6pvg6aa2b-unit-dbus.service.drv
  /nix/store/yyaj6djyh21lrqsv6aiban63q1c2y8xz-user-units.drv
  /nix/store/kkhv203dzw38y5lsb1c8h9mdskklnlxf-etc.drv
  /nix/store/xdifd63sygqxswwh67vm1dyh95dl72yn-nixos-system-DCHORUS-LEGION-NIXOS-20.09pre213994.e2b4abe3c8f.drv
building '/nix/store/r1r1sprc1r1yb29w17vfyfnmi2r09zjv-luajit-2.1.0-beta3-luv-1.34.1-1.drv'...
unpacking sources
unpacking source archive /nix/store/f0az73f8fi7fp7cz55iapzwr0wh1kd93-luv-1.34.1-1.src.rock

Done. You may now enter directory 
luv-1.34.1-1/luv-1.34.1-1
and type 'luarocks make' to build.
source root is ./luv-1.34.1-1/luv-1.34.1-1
setting SOURCE_DATE_EPOCH to timestamp 1579323846 of file ./luv-1.34.1-1/luv-1.34.1-1/src/work.c
patching sources
configuring
building
patching script interpreter paths in .
./deps/lua-compat-5.3/tests/test.lua: interpreter directive changed from "/usr/bin/env lua" to "/nix/store/zhsgiagaqx27hp5j94hy6i46rv3gnh75-luajit-2.1.0-beta3/bin/lua"
installing

luv 1.34.1-1 depends on lua >= 5.1 (5.1-1 provided by VM)
Warning: unmatched variable LUA_LIBDIR
-- The C compiler identification is GNU 9.2.0
-- The ASM compiler identification is GNU
-- Found assembler: /nix/store/fqhjxf9ii4w4gqcsx59fyw2vvj91486a-gcc-wrapper-9.2.0/bin/gcc
-- Check for working C compiler: /nix/store/fqhjxf9ii4w4gqcsx59fyw2vvj91486a-gcc-wrapper-9.2.0/bin/gcc
-- Check for working C compiler: /nix/store/fqhjxf9ii4w4gqcsx59fyw2vvj91486a-gcc-wrapper-9.2.0/bin/gcc -- works
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Detecting C compile features
-- Detecting C compile features - done
-- Found LIBUV: /nix/store/gk304dpcw0x4fx7vp3di9v1lv9s8rhdc-libuv-1.34.2/lib/libuv.so  
-- Lua: using information from luarocks
-- LUA_LIBDIR: 
-- LUA_INCDIR: /nix/store/zhsgiagaqx27hp5j94hy6i46rv3gnh75-luajit-2.1.0-beta3/include/luajit-2.1
-- LUA: /nix/store/zhsgiagaqx27hp5j94hy6i46rv3gnh75-luajit-2.1.0-beta3/bin/luajit
-- Lua library: LUA_LIBRARIES-NOTFOUND
-- Configuring done
-- Generating done
-- Build files have been written to: /build/luv-1.34.1-1/luv-1.34.1-1/build.luarocks
Scanning dependencies of target luv
[ 50%] Building C object CMakeFiles/luv.dir/src/luv.c.o
[100%] Linking C shared library libluv.so
[100%] Built target luv
[100%] Built target luv
Install the project...
-- Install configuration: ""
-- Installing: /nix/store/s7kkgp1i5nl383wkc392zwpb88fl03cr-luajit-2.1.0-beta3-luv-1.34.1-1/luv-1.34.1-1-rocks/luv/1.34.1-1/lib/libluv.so.1.34.1
-- Installing: /nix/store/s7kkgp1i5nl383wkc392zwpb88fl03cr-luajit-2.1.0-beta3-luv-1.34.1-1/luv-1.34.1-1-rocks/luv/1.34.1-1/lib/libluv.so.1
-- Installing: /nix/store/s7kkgp1i5nl383wkc392zwpb88fl03cr-luajit-2.1.0-beta3-luv-1.34.1-1/luv-1.34.1-1-rocks/luv/1.34.1-1/lib/libluv.so
-- Installing: /nix/store/s7kkgp1i5nl383wkc392zwpb88fl03cr-luajit-2.1.0-beta3-luv-1.34.1-1/luv-1.34.1-1-rocks/luv/1.34.1-1/lib/pkgconfig/libluv.pc
-- Installing: /nix/store/s7kkgp1i5nl383wkc392zwpb88fl03cr-luajit-2.1.0-beta3-luv-1.34.1-1/include/luv/luv.h
-- Installing: /nix/store/s7kkgp1i5nl383wkc392zwpb88fl03cr-luajit-2.1.0-beta3-luv-1.34.1-1/include/luv/util.h
-- Installing: /nix/store/s7kkgp1i5nl383wkc392zwpb88fl03cr-luajit-2.1.0-beta3-luv-1.34.1-1/include/luv/lhandle.h
-- Installing: /nix/store/s7kkgp1i5nl383wkc392zwpb88fl03cr-luajit-2.1.0-beta3-luv-1.34.1-1/include/luv/lreq.h
cp: cannot stat '/nix/store/s7kkgp1i5nl383wkc392zwpb88fl03cr-luajit-2.1.0-beta3-luv-1.34.1-1/luv-1.34.1-1-rocks/luv/1.34.1-1/lib/libluv.so': No such file or directory

Error: Failed copying /nix/store/s7kkgp1i5nl383wkc392zwpb88fl03cr-luajit-2.1.0-beta3-luv-1.34.1-1/luv-1.34.1-1-rocks/luv/1.34.1-1/lib/libluv.so to /nix/store/s7kkgp1i5nl383wkc392zwpb88fl03cr-luajit-2.1.0-beta3-luv-1.34.1-1/lib/lua/5.1/libluv.so
builder for '/nix/store/r1r1sprc1r1yb29w17vfyfnmi2r09zjv-luajit-2.1.0-beta3-luv-1.34.1-1.drv' failed with exit code 1
cannot build derivation '/nix/store/0xasdnwd3fvxzl7qrs2zf5wsh2f86yrj-neovim-unwrapped-0.4.3.drv': 1 dependencies couldn't be built
cannot build derivation '/nix/store/6v9iv9jrlwik9a3m5v4hn6gwhph1sc27-neovim-0.4.3.drv': 1 dependencies couldn't be built
cannot build derivation '/nix/store/chlys5ihvxllkfdrpdxrssgfycyjwlb3-system-path.drv': 1 dependencies couldn't be built
cannot build derivation '/nix/store/xdifd63sygqxswwh67vm1dyh95dl72yn-nixos-system-DCHORUS-LEGION-NIXOS-20.09pre213994.e2b4abe3c8f.drv': 1 dependencies couldn't be built
error: build of '/nix/store/xdifd63sygqxswwh67vm1dyh95dl72yn-nixos-system-DCHORUS-LEGION-NIXOS-20.09pre213994.e2b4abe3c8f.drv' failed

Metadata

  • system: "x86_64-linux"
  • host os: Linux 5.4.20, NixOS, 20.09pre213994.e2b4abe3c8f (Nightingale)
  • multi-user?: yes
  • sandbox: yes
  • version: nix-env (Nix) 2.3.3
  • channels(root): "nixos-20.09pre213994.e2b4abe3c8f"
  • channels(kj): ""
  • nixpkgs: /nix/var/nix/profiles/per-user/root/channels/nixos

Maintainer information:

# a list of nixpkgs attributes affected by the problem
attribute:
# a list of nixos modules affected by the problem
module:
@y-usuzumi y-usuzumi added the 0.kind: bug Something is broken label Feb 21, 2020
@y-usuzumi y-usuzumi changed the title Neovim (luajit) does not build correctly Neovim (luajit) does not install correctly Feb 21, 2020
@doronbehar
Copy link
Contributor

doronbehar commented Feb 21, 2020

Possible fix is in #80528. There was already an open issue about it (#79870) but from an unclear reason people have reached the conclusion it was fixed on latest master.

@doronbehar

This comment has been minimized.

@vcunat vcunat changed the title Neovim (luajit) does not install correctly Neovim (luajitPackages.luv) does not install correctly Feb 21, 2020
@vcunat
Copy link
Member

vcunat commented Feb 21, 2020

Well, I agree with that conclusion. For me, on e2b4abe the build is broken with the error above and on current master it isn't. EDIT: note that the channels lag behind, usually less than a couple days, but sometimes we get a week or two due to some harder regression.

@y-usuzumi
Copy link
Author

y-usuzumi commented Feb 21, 2020

Yea right. For me on NixOS I tried with the nixpkgs-unstable channel and could install successfully. The nixos-unstable still fails though.

teto referenced this issue Feb 27, 2020
It can be source of trouble for some read-only folders (libluv for
instance) and slow down install.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
0.kind: bug Something is broken
Projects
None yet
Development

No branches or pull requests

3 participants