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: PACKAGENAME #359584

Open
SullivanNagler opened this issue Nov 27, 2024 · 2 comments
Open

Build failure: PACKAGENAME #359584

SullivanNagler opened this issue Nov 27, 2024 · 2 comments
Labels
0.kind: build failure A package fails to build

Comments

@SullivanNagler
Copy link

SullivanNagler commented Nov 27, 2024

Steps To Reproduce

Steps to reproduce the behavior:

  1. failed rebuild switch

Build log

Build Log
sudo nixos-rebuild switch
this derivation will be built:
  /nix/store/3dswk0nq4qi89y24cqp3fm2ysw594kq7-nixos-rebuild.drv
these 2 paths will be fetched (0.02 MiB download, 0.07 MiB unpacked):
  /nix/store/x09cv5skyv8kcx8f0mjz429ap2k752nh-install-shell-files
  /nix/store/z50gnrdklgq4sfq59z2sw80mbnr9nrk3-stdenv-linux
copying path '/nix/store/x09cv5skyv8kcx8f0mjz429ap2k752nh-install-shell-files' from 'https://cache.nixos.org'...
copying path '/nix/store/z50gnrdklgq4sfq59z2sw80mbnr9nrk3-stdenv-linux' from 'https://cache.nixos.org'...
building '/nix/store/3dswk0nq4qi89y24cqp3fm2ysw594kq7-nixos-rebuild.drv'...
/nix/store/z50gnrdklgq4sfq59z2sw80mbnr9nrk3-stdenv-linux/setup: line 1072: /nix/store/andg6mzrnmz1nvfchgrzls6mw6xypl4j-nixos-rebuild/bin/nixos-rebuild: No such file or directory
error: builder for '/nix/store/3dswk0nq4qi89y24cqp3fm2ysw594kq7-nixos-rebuild.drv' failed with exit code 1
building Nix...
nix-instantiate: error while loading shared libraries: /nix/store/rlmyizjw96rfpi544511lqbsdqdjsrcb-keyutils-1.6.3-lib/lib/libkeyutils.so.1: file too short
building the system configuration...
nix-build: error while loading shared libraries: /nix/store/rlmyizjw96rfpi544511lqbsdqdjsrcb-keyutils-1.6.3-lib/lib/libkeyutils.so.1: file too short

Additional context

system.stateVersion = "24.11";

Metadata

nix-info -m
 - system: `"x86_64-linux"`
 - host os: `Linux 6.6.60, NixOS, 24.05 (Uakari), 24.05.6565.689fed12a013`
 - multi-user?: `no`
 - sandbox: `yes`
 - version: `nix-env (Nix) 2.18.8`
 - channels(root): `"nixos-24.11, nixos-save-24.05, unstable"`
 - nixpkgs: `/nix/var/nix/profiles/per-user/root/channels/nixos`

Notify maintainers


Note for maintainers: Please tag this issue in your PR.


Add a 👍 reaction to issues you find important.

Hello ! The gen 170 is okay not the next, i can not rebuild since :
image

It’s been 3 month i’ve been using nixos, it’s possibly a skill issue.
Thx for the help,
Sullivan

@SullivanNagler SullivanNagler added the 0.kind: build failure A package fails to build label Nov 27, 2024
@TomaSajt
Copy link
Contributor

TomaSajt commented Nov 27, 2024

It would be helpful if you shared more information about your issue, like what do the logs show when failing and what's the trace?

If you look at the error logs shown by sudo nixos-rebuild build --show-trace you might get a better idea of what's causing the issue.
If you do not figure it out, please send the logs.

If you have your configs publicly available, it would also help if you shared a link to it.


Edit: just realized there's a dropdown menu with the logs, sorry.

@TomaSajt
Copy link
Contributor

I'm not an expert on NixOS related failures, so I can't help a lot.

Is it on purpose that gen 171,172,173 has a lower linux kernel version?
Maybe you added something that overrides it (perhaps from nixos-hardware)?

Have you lost the working config?
If you have version control over your configs, you might be able to do some diff-ing.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
0.kind: build failure A package fails to build
Projects
None yet
Development

No branches or pull requests

2 participants