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

builder for '/nix/store/5j3l8lpk4s6l80bw9jip3x0pld1kgfj4-luv-1.43.0-0.drv' failed with exit code 1; #167573

Closed
a9b3 opened this issue Apr 6, 2022 · 4 comments

Comments

@a9b3
Copy link

a9b3 commented Apr 6, 2022

Describe the bug

I was trying to use home-manager to install neovim and it resulted in this error. I have nixpkgs channel set to unstable but I've also tried 21.11 with the same error.
Is there a quick workaround for this? 🙏

building '/nix/store/5j3l8lpk4s6l80bw9jip3x0pld1kgfj4-luv-1.43.0-0.drv'...
unpacking sources
unpacking source archive /nix/store/ajf96bi4gp1547gdm0vkdmh609jld5mq-luv
source root is luv
patching sources
updateAutotoolsGnuConfigScriptsPhase
configuring
fixing cmake files...
cmake flags: -DCMAKE_FIND_USE_SYSTEM_PACKAGE_REGISTRY=OFF -DCMAKE_FIND_USE_PACKAGE_REGISTRY=OFF -DCMAKE_EXPORT_NO_PACKAGE_REGISTRY=ON -DCMAKE_BUILD_TYPE=Release -DCMAKE_SKIP_BUILD_RPATH=ON -DBUILD_TESTING=OFF -DCMAKE_INSTALL_LOCALEDIR=/nix/store/h6wj9p6j46jgcwznj36lk63gbfrhrn9b-luv-1.43.0-0/share/locale -DCMAKE_INSTALL_LIBEXECDIR=/nix/store/h6wj9p6j46jgcwznj36lk63gbfrhrn9b-luv-1.43.0-0/libexec -DCMAKE_INSTALL_LIBDIR=/nix/store/h6wj9p6j46jgcwznj36lk63gbfrhrn9b-luv-1.43.0-0/lib -DCMAKE_INSTALL_DOCDIR=/nix/store/h6wj9p6j46jgcwznj36lk63gbfrhrn9b-luv-1.43.0-0/share/doc/luv -DCMAKE_INSTALL_INFODIR=/nix/store/h6wj9p6j46jgcwznj36lk63gbfrhrn9b-luv-1.43.0-0/share/info -DCMAKE_INSTALL_MANDIR=/nix/store/h6wj9p6j46jgcwznj36lk63gbfrhrn9b-luv-1.43.0-0/share/man -DCMAKE_INSTALL_OLDINCLUDEDIR=/nix/store/h6wj9p6j46jgcwznj36lk63gbfrhrn9b-luv-1.43.0-0/include -DCMAKE_INSTALL_INCLUDEDIR=/nix/store/h6wj9p6j46jgcwznj36lk63gbfrhrn9b-luv-1.43.0-0/include -DCMAKE_INSTALL_SBINDIR=/nix/store/h6wj9p6j46jgcwznj36lk63gbfrhrn9b-luv-1.43.0-0/sbin -DCMAKE_INSTALL_BINDIR=/nix/store/h6wj9p6j46jgcwznj36lk63gbfrhrn9b-luv-1.43.0-0/bin -DCMAKE_INSTALL_NAME_DIR=/nix/store/h6wj9p6j46jgcwznj36lk63gbfrhrn9b-luv-1.43.0-0/lib -DCMAKE_POLICY_DEFAULT_CMP0025=NEW -DCMAKE_OSX_SYSROOT= -DCMAKE_FIND_FRAMEWORK=LAST -DCMAKE_STRIP=/nix/store/qc4fzcja2bs760vsqcsc6v28imjwy0wi-clang-wrapper-11.1.0/bin/strip -DCMAKE_RANLIB=/nix/store/hwjqaci7cz4r7sxivsciil0ipfdg1nwf-cctools-binutils-darwin-949.0.1/bin/ranlib -DCMAKE_AR=/nix/store/hwjqaci7cz4r7sxivsciil0ipfdg1nwf-cctools-binutils-darwin-949.0.1/bin/ar -DCMAKE_C_COMPILER=clang -DCMAKE_CXX_COMPILER=clang++ -DCMAKE_INSTALL_PREFIX=/nix/store/h6wj9p6j46jgcwznj36lk63gbfrhrn9b-luv-1.43.0-0 -DBUILD_SHARED_LIBS=ON -DBUILD_MODULE=OFF -DWITH_SHARED_LIBUV=ON
CMake Deprecation Warning at CMakeLists.txt:1 (cmake_minimum_required):
  Compatibility with CMake < 2.8.12 will be removed from a future version of
  CMake.

  Update the VERSION argument <min> value or use a ...<max> suffix to tell
  CMake that the project does not need compatibility with older versions.


-- The C compiler identification is Clang 11.1.0
-- The ASM compiler identification is Clang with GNU-like command-line
-- Found assembler: /nix/store/qc4fzcja2bs760vsqcsc6v28imjwy0wi-clang-wrapper-11.1.0/bin/clang
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - failed
-- Check for working C compiler: /nix/store/qc4fzcja2bs760vsqcsc6v28imjwy0wi-clang-wrapper-11.1.0/bin/clang
-- Check for working C compiler: /nix/store/qc4fzcja2bs760vsqcsc6v28imjwy0wi-clang-wrapper-11.1.0/bin/clang - broken
CMake Error at /nix/store/nqq9ibczlajray3qfg0b1m8cc2qjvik1-cmake-3.22.2/share/cmake-3.22/Modules/CMakeTestCCompiler.cmake:69 (message):
  The C compiler

    "/nix/store/qc4fzcja2bs760vsqcsc6v28imjwy0wi-clang-wrapper-11.1.0/bin/clang"

  is not able to compile a simple test program.

  It fails with the following output:

    Change Dir: /tmp/nix-build-luv-1.43.0-0.drv-0/luv/build/CMakeFiles/CMakeTmp

    Run Build Command(s):/nix/store/1nvk71lbggjfvjh6gppb3kbkq60l88l2-gnumake-4.3/bin/make -f Makefile cmTC_2832c/fast && /nix/store/1nvk71lbggjfvjh6gppb3kbkq60l88l2-gnumake-4.3/bin/make  -f CMakeFiles/cmTC_2832c.dir/build.make CMakeFiles/cmTC_2832c.dir/build
    make[1]: Entering directory '/private/tmp/nix-build-luv-1.43.0-0.drv-0/luv/build/CMakeFiles/CMakeTmp'
    Building C object CMakeFiles/cmTC_2832c.dir/testCCompiler.c.o
    /nix/store/qc4fzcja2bs760vsqcsc6v28imjwy0wi-clang-wrapper-11.1.0/bin/clang    -MD -MT CMakeFiles/cmTC_2832c.dir/testCCompiler.c.o -MF CMakeFiles/cmTC_2832c.dir/testCCompiler.c.o.d -o CMakeFiles/cmTC_2832c.dir/testCCompiler.c.o -c /tmp/nix-build-luv-1.43.0-0.drv-0/luv/build/CMakeFiles/CMakeTmp/testCCompiler.c
    Linking C executable cmTC_2832c
    /nix/store/nqq9ibczlajray3qfg0b1m8cc2qjvik1-cmake-3.22.2/bin/cmake -E cmake_link_script CMakeFiles/cmTC_2832c.dir/link.txt --verbose=1
    /nix/store/qc4fzcja2bs760vsqcsc6v28imjwy0wi-clang-wrapper-11.1.0/bin/clang -Wl,-search_paths_first -Wl,-headerpad_max_install_names CMakeFiles/cmTC_2832c.dir/testCCompiler.c.o -o cmTC_2832c
    ld: library not found for -lluajit-5.1
    clang-11: error: linker command failed with exit code 1 (use -v to see invocation)
    make[1]: *** [CMakeFiles/cmTC_2832c.dir/build.make:100: cmTC_2832c] Error 1
    make[1]: Leaving directory '/private/tmp/nix-build-luv-1.43.0-0.drv-0/luv/build/CMakeFiles/CMakeTmp'
    make: *** [Makefile:127: cmTC_2832c/fast] Error 2





  CMake will not be able to correctly generate this project.
Call Stack (most recent call first):
  CMakeLists.txt:7 (project)


-- Configuring incomplete, errors occurred!
See also "/tmp/nix-build-luv-1.43.0-0.drv-0/luv/build/CMakeFiles/CMakeOutput.log".
See also "/tmp/nix-build-luv-1.43.0-0.drv-0/luv/build/CMakeFiles/CMakeError.log".
error: builder for '/nix/store/5j3l8lpk4s6l80bw9jip3x0pld1kgfj4-luv-1.43.0-0.drv' failed with exit code 1;
       last 10 log lines:
       >
       >
       >   CMake will not be able to correctly generate this project.
       > Call Stack (most recent call first):
       >   CMakeLists.txt:7 (project)
       >
       >
       > -- Configuring incomplete, errors occurred!
       > See also "/tmp/nix-build-luv-1.43.0-0.drv-0/luv/build/CMakeFiles/CMakeOutput.log".
       > See also "/tmp/nix-build-luv-1.43.0-0.drv-0/luv/build/CMakeFiles/CMakeError.log".
       For full logs, run 'nix log /nix/store/5j3l8lpk4s6l80bw9jip3x0pld1kgfj4-luv-1.43.0-0.drv'.
error: 1 dependencies of derivation '/nix/store/xgr17r0kz9ddrd2b5qp34wj9anmcnfn4-neovim-unwrapped-master.drv' failed to build
error: 1 dependencies of derivation '/nix/store/r6d7v7rldwpsaska7qxn4n5jvjryf6ff-neovim-master.drv' failed to build
error: 1 dependencies of derivation '/nix/store/jlr2zp7ix8b7vqkcw3b9wm3s4yavr2fz-home-manager-fonts.drv' failed to build
error: 1 dependencies of derivation '/nix/store/szps6xd3pvcbx0hxa3hyj7vcyc9x3vc7-home-manager-path.drv' failed to build
error: 1

Steps To Reproduce

Steps to reproduce the behavior:
1.

nix-channel --add https://github.com/nix-community/home-manager/archive/master.tar.gz home-manager
nix-channel --add https://nixos.org/channels/nixpkgs-unstable nixpkgs
nix-channel --update
nix-shell '<home-manager>' -A install

home.nix

{ config, pkgs, ... }:

{
  # Get overlay for neovim-nightly
  nixpkgs.overlays = [
   (import (builtins.fetchTarball {
     url = https://github.com/nix-community/neovim-nightly-overlay/archive/master.tar.gz;
   }))
  ];

   programs.neovim = {
    enable = true;
    package = pkgs.neovim-developer;
  };
}

Expected behavior

Expect the build the succeed.

Screenshots

n/a

Additional context

Notify maintainers

@teto seems related to this #166162

Metadata

Please run nix-shell -p nix-info --run "nix-info -m" and paste the result.

[user@system:~]$ nix-shell -p nix-info --run "nix-info -m"
these 2 paths will be fetched (0.01 MiB download, 0.14 MiB unpacked):
  /nix/store/hs4jlkfq2imyg4hs7v4dii762lbfmn5n-DarwinTools-1
  /nix/store/r6r37wmgrhg8ff1v5hq4xr2dmnmxy0dv-nix-info
copying path '/nix/store/hs4jlkfq2imyg4hs7v4dii762lbfmn5n-DarwinTools-1' from 'https://cache.nixos.org'...
copying path '/nix/store/r6r37wmgrhg8ff1v5hq4xr2dmnmxy0dv-nix-info' from 'https://cache.nixos.org'...
 - system: `"aarch64-darwin"`
 - host os: `Darwin 21.2.0, macOS 12.1`
 - multi-user?: `yes`
 - sandbox: `no`
 - version: `nix-env (Nix) 2.7.0`
 - channels(sam): `"home-manager, nixpkgs"`
 - channels(root): `"nixpkgs"`
 - nixpkgs: `/Users/sam/.nix-defexpr/channels/nixpkgs`
@teto
Copy link
Member

teto commented Apr 6, 2022

You are using a neovim from another repo so you should report the issue over there. Can you build neovim from unstable ?

the nix-community flake does neovim-flake.inputs.nixpkgs.follows = "nixpkgs"; which means "let's try our luck and see if that can compile".

@a9b3
Copy link
Author

a9b3 commented Apr 6, 2022

Ah i see that makes sense, thanks for the help

With this configuration it works :)

{ config, pkgs, ... }:

{
   home.packages = [pkgs.neovim];
}

but for some reason this doesn't

{ config, pkgs, ... }:

{
   programs.neovim = {
    enable = true;
    withPython3 = true;
    package = pkgs.neovim;
  };
}

it results in this error

Creating initial Home Manager generation...

these 5 derivations will be built:
  /nix/store/ivjwgn534b90k540gs5rja47jsl256fx-neovim-0.6.1.drv
  /nix/store/74r42yjfwlkz2q1xwbpfz1mii8pjqch8-home-manager-path.drv
  /nix/store/i5450av6g9yi1zs4gy06ljas3awq33ah-home-manager-fonts.drv
  /nix/store/3cwk5ql14rwbgrjlp94xbcdmqx74782g-activation-script.drv
  /nix/store/h2v1p6ryfawjq4abhdc0n3nmqmj5934p-home-manager-generation.drv
building '/nix/store/ivjwgn534b90k540gs5rja47jsl256fx-neovim-0.6.1.drv'...
/nix/store/0pyviwkwqv7q4zx4dx5hx92clr0b2hz2-hook/nix-support/setup-hook: line 109: /nix/store/6y1m04wxswi05hjz7gwwlnw90xp0szyb-neovim-0.6.1/bin/nvim-python3: Permission denied
error: builder for '/nix/store/ivjwgn534b90k540gs5rja47jsl256fx-neovim-0.6.1.drv' failed with exit code 1;
       last 1 log lines:
       > /nix/store/0pyviwkwqv7q4zx4dx5hx92clr0b2hz2-hook/nix-support/setup-hook: line 109: /nix/store/6y1m04wxswi05hjz7gwwlnw90xp0szyb-neovim-0.6.1/bin/nvim-python3: Permission denied
       For full logs, run 'nix log /nix/store/ivjwgn534b90k540gs5rja47jsl256fx-neovim-0.6.1.drv'.
error: 1 dependencies of derivation '/nix/store/i5450av6g9yi1zs4gy06ljas3awq33ah-home-manager-fonts.drv' failed to build
error: 1 dependencies of derivation '/nix/store/74r42yjfwlkz2q1xwbpfz1mii8pjqch8-home-manager-path.drv' failed to build
error: 1 dependencies of derivation '/nix/store/h2v1p6ryfawjq4abhdc0n3nmqmj5934p-home-manager-generation.drv' failed to build

@teto Would you kindly point me towards where you think this issues might be? Maybe the problems lies in home-manager 🤔

@a9b3
Copy link
Author

a9b3 commented Apr 6, 2022

oh i just googled this new error https://discourse.nixos.org/t/help-needed-neovim-completions-fail-to-build/14223/3

and using neovim-unwrapped worked.

Closing now thanks for the help!

@a9b3 a9b3 closed this as completed Apr 6, 2022
@teto
Copy link
Member

teto commented Apr 6, 2022

it's tricky, home-manager expects the "unwrapped" version of neovim so it should be

programs.neovim = {
 enable = true;
 withPython3 = true;
 package = pkgs.neovim-unwrapped;
};

but even better: dont specify the package if you are not sure.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants