-
-
Notifications
You must be signed in to change notification settings - Fork 14.7k
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: python3Packages.jaxlibWithCuda
#296737
Comments
Huh, weird. When I wrote #288857 that hash worked fine. I wonder what changed? |
Yes I was wondering about the same thing because I knew you updated that hash not long ago. Does that hash depend on any online resources that may change or on other packages? If not, then this package may have some obscure reproducibility issues. This package is so complex that I cannot see what it is doing there at glances. |
Yes, but it is my understanding that its pulling resources that are hash-fixed in bazel-land, so iiuc they shouldn't change unless |
|
@UlyssesZh Is this issue still reproducible for you? |
Yes. I just tested on master branch at commit e4a33b6. The exact same error. |
Are you using any overlays? Have you set any nixpkgs |
I have a local clone of nixpkgs at NIXPKGS_ALLOW_UNFREE=1 nix build --print-build-logs --file ~/projects/nixpkgs python3Packages.jaxlibWithCuda Does it depend on my nixos system config? |
iirc it will depend on eg What commit of nixpkgs are you on? Does it reproduce on the latest master? |
I don't have |
Latest (at the time of writing) is 07262b1. does building on that commit work for you? |
That commit does not build either. |
Hi, I'm also having the same issue with same hash mismatch. I tested the build on two different systems. If you happen to have a system in which the build runs fine, would you mind sharing the
so I can diff it? I could also send you mine. |
Should be fixed by #291705 |
Fixed by #291705 |
Hi everyone, sorry to reactivate this issue but if I check out the current master branch 219bc27 and run Can anyone reproduce this behaviour? |
what hashes are you seeing now? |
I can rebuild the package just fine... |
I am puzzled by the fact that this exact commands builds fine for @GaetanLepage . My expectation would have been that the behaviour should be the same if we are on the same platform (I am on x86_64-linux). Do you have an idea how we can dig deeper into this? |
I also just stumbled upon this issue and I do get the exact same hash mismatch as @phiadaarr :
|
Well, my only hypothesis is that the bazel dependencies derivation is nothing more than non-deterministic :'( |
@GaetanLepage Does this still build for you? If it does I can offer to send you an archive of my jaxlib with the changed hash so you can run a diff to find out what is wrong. (Or the other way round ofc) |
Yes, I have tried once again right now and it works fine...
Sure, Send me what you have :) |
Alright, I've updated today and will build against nixpkgs |
I'm getting a similar problem when I'm trying to compile [user@system:~/jax]# nix develop
warning: updating lock file '/root/jax/flake.lock':
• Updated input 'nixpkgs':
'github:nixos/nixpkgs/70bdadeb94ffc8806c0570eb5c2695ad29f0e421' (2024-01-03)
→ 'github:nixos/nixpkgs/a71e967ef3694799d0c418c98332f7ff4cc5f6af' (2024-06-22)
trace: warning: cudaPackages.autoAddDriverRunpath is deprecated, use pkgs.autoAddDriverRunpath instead
error: hash mismatch in fixed-output derivation '/nix/store/hsqlgbs9adm65rxxwwzdfp7lmg2i49dv-bazel-build-jaxlib-0.4.28-deps.tar.gz.drv':
specified: sha256-VGNMf5/DgXbgsu1w5J1Pmrukw+7UO31BNU+crKVsX5k=
got: sha256-vAF5JwpINIp4pn1tFFl5059m/8/hn2cmEia04h9hHAw=
error: 1 dependencies of derivation '/nix/store/xza31n967qncpwinwyb62bf8a16c31vn-bazel-build-jaxlib-0.4.28.drv' failed to build
error: 1 dependencies of derivation '/nix/store/kl4wc1fl4jwl169f5zp79lqfjdf66nv8-python3.11-jaxlib-0.4.28.drv' failed to build
error: 1 dependencies of derivation '/nix/store/0xxkiqnajmcw1v7pb0grpnv827wn8h7i-jax-devshell-env.drv' failed to build The commit I have also observed this issue when compiling |
I'm not sure if this is helpful--or noise!--but I just hit a similar issue with OutputINFO: Analyzed 2 targets (227 packages loaded, 20572 targets configured).
INFO: Found 2 targets...
INFO: Elapsed time: 153.583s, Critical Path: 0.00s
INFO: 0 processes.
INFO: Build completed successfully, 0 total actions
buildPhase completed in 2 minutes 34 seconds
Running phase: installPhase
installPhase completed in 59 seconds
error: hash mismatch in fixed-output derivation '/nix/store/r52y4kivjn6jgwg9mf7xpsfcalc1p8j1-bazel-build-jaxlib-0.4.28-deps.tar.gz.drv':
specified: sha256-vUoAPkYKEnHkV4fw6BI0mCeuP2e8BMCJnVuZMm9LwSA=
got: sha256-vAF5JwpINIp4pn1tFFl5059m/8/hn2cmEia04h9hHAw=
error: 1 dependencies of derivation '/nix/store/1sz9z9zjrrr232l4nvmqf252pzb00fsq-bazel-build-jaxlib-0.4.28.drv' failed to build
error: 1 dependencies of derivation '/nix/store/mkwl4813vvmb58qdqxv37v93lbc2yb7a-python3.12-jaxlib-0.4.28.drv' failed to build Reproeighty:λ nix-shell --pure # shell.nix
let
nixpkgs = fetchTarball
"https://github.com/NixOS/nixpkgs/archive/b9ea3884e9a0c08e5c408bdd22f10eff9467d82d.tar.gz";
pkgs = import nixpkgs {
config = { allowUnfree = true; };
overlays = [ ];
};
cudaPkgs = pkgs.cudaPackages_12_2;
pythonPkgs = pkgs.python312Packages;
in pkgs.mkShell {
packages = with pkgs;
[
cudaPkgs.cudatoolkit
pythonPkgs.jaxlibWithCuda
];
} Systemeighty:λ nix-shell -p nix-info --run "nix-info -m"
- system: `"x86_64-linux"`
- host os: `Linux 6.9.3-76060903-generic, Pop!_OS, 22.04 LTS, nobuild`
- multi-user?: `yes`
- sandbox: `yes`
- version: `nix-env (Nix) 2.22.1`
- channels(root): `"nixpkgs"`
- nixpkgs: `/home/eighty/.nix-defexpr/channels/nixpkgs`
eighty:λ nix-channel --list
nixpkgs https://nixos.org/channels/nixpkgs-unstable |
Btw we're tracking the hash issues in #321920. |
Steps To Reproduce
Build
python3Packages.jaxlibWithCuda
.Build log
Additional context
Because this hash was updated not long ago by #288857, I think the package may still need some refactor?
We may also expect #291705 to get everything settled.
Notify maintainers
@samuela @ndl
Metadata
Please run
nix-shell -p nix-info --run "nix-info -m"
and paste the result."x86_64-linux"
Linux 6.1.81, NixOS, 23.11 (Tapir), 23.11.5353.878ef7d9721b
yes
yes
nix-env (Nix) 2.18.1
"nixos-23.11, nixos-hardware, nixos-unstable"
/nix/var/nix/profiles/per-user/root/channels/nixos
Add a 👍 reaction to issues you find important.
The text was updated successfully, but these errors were encountered: