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

Build failure: nodePackages.typescript-language-server #311638

Closed
tomaskallup opened this issue May 14, 2024 · 7 comments
Closed

Build failure: nodePackages.typescript-language-server #311638

tomaskallup opened this issue May 14, 2024 · 7 comments

Comments

@tomaskallup
Copy link

Steps To Reproduce

Steps to reproduce the behavior:

  1. nix-build '<unstable>' -A 'nodePackages.typescript-language-server' --verbose

Build log

Output from build command

unpacking source archive /nix/store/3b3nhgrrhjiwsdmlvqcmj7b4adbxdww9-typescript-language-server-4.3.3.tgz
chmod: changing permissions of './package/CHANGELOG.md': Invalid argument
chmod: changing permissions of './package/README.md': Invalid argument
chmod: changing permissions of './package/test-data': Invalid argument
chmod: changing permissions of './package/test-data/yarn-pnp': Invalid argument
chmod: changing permissions of './package/test-data/yarn-pnp/.yarn': Invalid argument
chmod: changing permissions of './package/test-data/yarn-pnp/.yarn/sdks': Invalid argument
chmod: changing permissions of './package/lib': Invalid argument
chmod: changing permissions of './package/lib/cli.mjs.map': Invalid argument
chmod: changing permissions of './package/lib/cli.mjs': Invalid argument
chmod: changing permissions of './package/LICENSE': Invalid argument
chmod: changing permissions of './package/package.json': Invalid argument
error: builder for '/nix/store/jp2ws3baw7xhvgsv5h5p3xbigl7nj3vp-typescript-language-server-4.3.3.drv' failed with exit code 1;

Log

[user@system:~]$ nix log '/nix/store/jp2ws3baw7xhvgsv5h5p3xbigl7nj3vp-typescript-language-server-4.3.3.drv^*'
@nix { "action": "setPhase", "phase": "unpackPhase" }
Running phase: unpackPhase
@nix { "action": "setPhase", "phase": "patchPhase" }
Running phase: patchPhase
@nix { "action": "setPhase", "phase": "updateAutotoolsGnuConfigScriptsPhase" }
Running phase: updateAutotoolsGnuConfigScriptsPhase
@nix { "action": "setPhase", "phase": "configurePhase" }
Running phase: configurePhase
no configure script, doing nothing
@nix { "action": "setPhase", "phase": "buildPhase" }
Running phase: buildPhase
@nix { "action": "setPhase", "phase": "installPhase" }
Running phase: installPhase
unpacking source archive /nix/store/3b3nhgrrhjiwsdmlvqcmj7b4adbxdww9-typescript-language-server-4.3.3.tgz
chmod: changing permissions of './package/CHANGELOG.md': Invalid argument
chmod: changing permissions of './package/README.md': Invalid argument
chmod: changing permissions of './package/test-data': Invalid argument
chmod: changing permissions of './package/test-data/yarn-pnp': Invalid argument
chmod: changing permissions of './package/test-data/yarn-pnp/.yarn': Invalid argument
chmod: changing permissions of './package/test-data/yarn-pnp/.yarn/sdks': Invalid argument
chmod: changing permissions of './package/lib': Invalid argument
chmod: changing permissions of './package/lib/cli.mjs.map': Invalid argument
chmod: changing permissions of './package/lib/cli.mjs': Invalid argument
chmod: changing permissions of './package/LICENSE': Invalid argument
chmod: changing permissions of './package/package.json': Invalid argument

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"
 - system: `"x86_64-linux"`
 - host os: `Linux 6.5.11-lqx2, NixOS, 23.11 (Tapir), 23.11.4516.e0da498ad77a`
 - multi-user?: `yes`
 - sandbox: `yes`
 - version: `nix-env (Nix) 2.18.1`
 - channels(root): `"home-manager-23.11.tar.gz, nixos-23.11, unstable"`
 - channels(armeeh): `""`
 - nixpkgs: `/nix/var/nix/profiles/per-user/root/channels/nixos`
@tomaskallup
Copy link
Author

I can't seem to build other packages as well:

  • nodePackages.peerflix
  • nodePackages."@prisma/language-server"

@gepbird
Copy link
Contributor

gepbird commented May 14, 2024

I can't reproduce this failure. I have tried nix build nixpkgs/e0da498ad77a#nodePackages.typescript-language-server and the command you provided (with an extra -I because nix-build was complaining it can't find file) which builds the package without any errors.

This doesn't seem like a package specific issue, my guess is it's an issue with Nix. Can you try updating your channel, and build this package with Nix 2.18.2?

@tomaskallup
Copy link
Author

I wanted to update, which is how I found the error and it's currently preventing me from updating.

I'll try to remove all of those packages, rebuild my system and then re-add them to see if that allows Nix to update and then successfully builds.
I hope this is not an issue with me mixing channels, if so, I might switch to unstable completely.

@tomaskallup
Copy link
Author

tomaskallup commented May 15, 2024

So I removed those packages from config, did a sudo nixos-rebuild switch --upgrade, then re-added them and I still cannot build. I have no idea what to do, since the build log doesn't contain any error. My Nix is still at 2.18.1 after the upgrade, which makes sense, since that is the version in 23.11.

However running the nix build nixpkgs/e0da498ad77a#nodePackages.typescript-language-server command you provided, that seems to build fine, but running nix build nixpkgs/2bbfcd0deebb8b3a8d2514e87746eb055982d08c#nodePackages.typescript-language-server fails.

@gepbird
Copy link
Contributor

gepbird commented May 15, 2024

This is weird, for me nix build nixpkgs/2bbfcd0deebb8b3a8d2514e87746eb055982d08c#nodePackages.typescript-language-server also works. It even works when I downgrade Nix to 2.18.1.

Do you get that chown: changing permissions of ...: invalid argument error for the other packages that failed to build for you?

@tomaskallup
Copy link
Author

Yes, I get those errors for all of the failed packages.

@tomaskallup
Copy link
Author

So it seems like this problem was related to another issue I had. My nix started failing completely, because of a bug with lqx kernel (NixOS/nix#9725)

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