NixOS / nixpkgs

Nix Packages collection & NixOS
MIT License
18.07k stars 14.05k forks source link

Build failure: libidn2 #315742

Open lomenzel opened 5 months ago

lomenzel commented 5 months ago

Steps To Reproduce

Steps to reproduce the behavior:

  1. enable programs.steam

Build log

error: builder for '/nix/store/vscv4yqqm99f379v2icqjy3z24frjbfq-libidn2-2.3.7.drv' failed with exit code 1;
       last 1 log lines:
       > error: executing '/nix/store/3c54hwp1zji0h8yl66860cp8zp2vsrzv-bash-5.2p26/bin/bash': No such file or directory
       For full logs, run 'nix log /nix/store/vscv4yqqm99f379v2icqjy3z24frjbfq-libidn2-2.3.7.drv'.

Additional context

happens on master and on nixos-unstable

Notify maintainers

@jagajaga @jonringer

Metadata

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

leonard@desktop: /home/leonard/.config/nix-config git:(master) 
➜   nix-shell -p nix-info --run "nix-info -m"
 - system: `"x86_64-linux"`
 - host os: `Linux 6.9.1, NixOS, 24.11 (Vicuña), 24.11.20240527.9ca3f64`
 - multi-user?: `yes`
 - sandbox: `yes`
 - version: `nix-env (Nix) 2.18.2`
 - channels(root): `"nixos-23.11"`
 - nixpkgs: `/nix/store/b2xy0gk6sd3fc8zamarfzach5f3wpkvi-source`
leonard@laptop: /home/leonard  
➜   nix-shell -p nix-info --run "nix-info -m"                      
 - system: `"x86_64-linux"`
 - host os: `Linux 6.9.1, NixOS, 24.11 (Vicuña), 24.11.20240524.bfb7a88`
 - multi-user?: `yes`
 - sandbox: `yes`
 - version: `nix-env (Nix) 2.18.2`
 - channels(leonard): `""`
 - channels(root): `"nixos-23.11, nixpkgs-unstable"`
 - nixpkgs: `/nix/store/z71lmgd0ydfnax1b13zbrls5idf1y7ak-source`

Add a :+1: reaction to issues you find important.

jonringer commented 4 months ago

This seems to be building on unstable. Do you mind bumping and trying again?

[15:39:53] jon@jon-desktop /home/jon/projects/nixpkgs (master)
$ nix-build -A libidn2
/nix/store/kiqzr1v51rrqm9armhyfl9s9sv9vz9a6-libidn2-2.3.7-bin
lomenzel commented 4 months ago

building libidn2 by itself seems to work just fine

leonard@laptop: /home/leonard  
➜   nix build nixpkgs#steam --impure
error: builder for '/nix/store/vscv4yqqm99f379v2icqjy3z24frjbfq-libidn2-2.3.7.drv' failed with exit code 1;
       last 1 log lines:
       > error: executing '/nix/store/3c54hwp1zji0h8yl66860cp8zp2vsrzv-bash-5.2p26/bin/bash': No such file or directory
       For full logs, run 'nix log /nix/store/vscv4yqqm99f379v2icqjy3z24frjbfq-libidn2-2.3.7.drv'.
error: 1 dependencies of derivation '/nix/store/pra7k37v60qmys1j06da8f90kd0095x0-steam-usr-multi.drv' failed to build
error: 1 dependencies of derivation '/nix/store/yn6v75bqhkld8825mv1l0iy4q13h1hkf-steam-fhs.drv' failed to build
error: 1 dependencies of derivation '/nix/store/gbjs09288qhi1hy4vixr926w5iz9npyq-steam-bwrap.drv' failed to build
error: 1 dependencies of derivation '/nix/store/66dll4dcy9d31svp6fspysiwj853cyq7-steam.drv' failed to build
leonard@laptop: /home/leonard  
➜   nix build nixpkgs#libidn2
leonard@laptop: /home/leonard  
➜   

i dont know why this happens.

CryoMyst commented 3 months ago

I am also having this issue and would like to know what's causing it.

➜  nixpkgs git:(master) git rev-parse HEAD
70fbdac057270cdb0a2a2ba4d14f801417d4fc73
➜  nixpkgs git:(master) nix-build -A libidn2
/nix/store/xhvlsn3rjywq4924q0jxlsb4m7ln3hif-libidn2-2.3.7-bin
➜  nixpkgs git:(master) NIXPKGS_ALLOW_UNFREE=1 nix-build -A steam
these 5 derivations will be built:
  /nix/store/d19k729nyp2nr53jvn4dyyxl66pgjwni-libidn2-2.3.7.drv
  /nix/store/fxbpplhd3fail9lp5smrrawxy8spyplh-steam-usr-multi.drv
  /nix/store/xk2jp6wmw7jra5pxi39di5h0mgvfay80-steam-fhs.drv
  /nix/store/g5yk06d353ydsa0649x554p1a4cmmnbv-steam-bwrap.drv
  /nix/store/37zvc7bjxn97ygg00jpylhr7bwm1vl3x-steam.drv
building '/nix/store/d19k729nyp2nr53jvn4dyyxl66pgjwni-libidn2-2.3.7.drv'...
error: executing '/nix/store/jcpms6w7yps5w0h6al2h9wsgy4wimsac-bash-5.2p26/bin/bash': No such file or directory
error: builder for '/nix/store/d19k729nyp2nr53jvn4dyyxl66pgjwni-libidn2-2.3.7.drv' failed with exit code 1;
       last 1 log lines:
       > error: executing '/nix/store/jcpms6w7yps5w0h6al2h9wsgy4wimsac-bash-5.2p26/bin/bash': No such file or directory
       For full logs, run 'nix log /nix/store/d19k729nyp2nr53jvn4dyyxl66pgjwni-libidn2-2.3.7.drv'.
error: 1 dependencies of derivation '/nix/store/fxbpplhd3fail9lp5smrrawxy8spyplh-steam-usr-multi.drv' failed to build
error: 1 dependencies of derivation '/nix/store/xk2jp6wmw7jra5pxi39di5h0mgvfay80-steam-fhs.drv' failed to build
error: 1 dependencies of derivation '/nix/store/g5yk06d353ydsa0649x554p1a4cmmnbv-steam-bwrap.drv' failed to build
error: 1 dependencies of derivation '/nix/store/37zvc7bjxn97ygg00jpylhr7bwm1vl3x-steam.drv' failed to build
CryoMyst commented 3 months ago

I removed boot.binfmt.emulatedSystems and nix.settings.extra-platforms options I had and it seemed to build now on my computer.

krad246 commented 1 month ago

Running into this I think too.

nixos-discourse commented 1 month ago

This issue has been mentioned on NixOS Discourse. There might be relevant details there:

https://discourse.nixos.org/t/nixos-unstable-steam-install-fail-because-of-libidn2/38582/5