NixOS / nixpkgs

Nix Packages collection & NixOS
MIT License
17.59k stars 13.74k forks source link

Build failure: julia.withPackages with Plots #319149

Closed Locorock closed 3 months ago

Locorock commented 3 months ago

Steps To Reproduce

Steps to reproduce the behavior:

  1. nix-shell -p 'julia.withPackages ["Plots"]' or any other way to build julia.withPackages["Plots"]

Build log

julia-depot> ERROR: could not find entry with uuid 187b0558-2788-49d3-abe0-74a17ed4e7c9 in manifest /nix/store/jzq4yb1cldj292sn4s6q6h68vpsi7jry-julia-depot/project/Manifest.toml
julia-depot> Stacktrace:
julia-depot>  [1] error(s::String)
julia-depot>    @ Base ./error.jl:35
julia-depot>  [2] build_versions(ctx::Pkg.Types.Context, uuids::Set{Base.UUID}; verbose::Bool)
julia-depot>    @ Pkg.Operations /nix/store/4k3rnx1d5l5fqlx4n4gg9yxjy7d2vvvx-julia-1.10.3/share/julia/stdlib/v1.10/Pkg/src/Operations.jl:1068
julia-depot>  [3] build_versions
julia-depot>    @ /nix/store/4k3rnx1d5l5fqlx4n4gg9yxjy7d2vvvx-julia-1.10.3/share/julia/stdlib/v1.10/Pkg/src/Operations.jl:1056 [inlined]
julia-depot>  [4] add(ctx::Pkg.Types.Context, pkgs::Vector{Pkg.Types.PackageSpec}, new_git::Set{Base.UUID}; preserve::Pkg.Types.PreserveLevel, platform::Base.BinaryPlatforms.Platform)
julia-depot>    @ Pkg.Operations /nix/store/4k3rnx1d5l5fqlx4n4gg9yxjy7d2vvvx-julia-1.10.3/share/julia/stdlib/v1.10/Pkg/src/Operations.jl:1399
julia-depot>  [5] add
julia-depot>    @ /nix/store/4k3rnx1d5l5fqlx4n4gg9yxjy7d2vvvx-julia-1.10.3/share/julia/stdlib/v1.10/Pkg/src/Operations.jl:1377 [inlined]
julia-depot>  [6] add(ctx::Pkg.Types.Context, pkgs::Vector{Pkg.Types.PackageSpec}; preserve::Pkg.Types.PreserveLevel, platform::Base.BinaryPlatforms.Platform, kwargs::@Kwargs{io::Base.TTY})
julia-depot>    @ Pkg.API /nix/store/4k3rnx1d5l5fqlx4n4gg9yxjy7d2vvvx-julia-1.10.3/share/julia/stdlib/v1.10/Pkg/src/API.jl:278
julia-depot>  [7] add(pkgs::Vector{Pkg.Types.PackageSpec}; io::Base.TTY, kwargs::@Kwargs{preserve::Pkg.Types.PreserveLevel})
julia-depot>    @ Pkg.API /nix/store/4k3rnx1d5l5fqlx4n4gg9yxjy7d2vvvx-julia-1.10.3/share/julia/stdlib/v1.10/Pkg/src/API.jl:159
julia-depot>  [8] #add#25
julia-depot>    @ /nix/store/4k3rnx1d5l5fqlx4n4gg9yxjy7d2vvvx-julia-1.10.3/share/julia/stdlib/v1.10/Pkg/src/API.jl:147 [inlined]
julia-depot>  [9] top-level scope
julia-depot>    @ none:17
error: builder for '/nix/store/w3gf0rp2b725rc6xvnlif8d0gclk523l-julia-depot.drv' failed with exit code 1;
       last 10 log lines:
       >  [5] add
       >    @ /nix/store/4k3rnx1d5l5fqlx4n4gg9yxjy7d2vvvx-julia-1.10.3/share/julia/stdlib/v1.10/Pkg/src/Operations.jl:1377 [inlined]
       >  [6] add(ctx::Pkg.Types.Context, pkgs::Vector{Pkg.Types.PackageSpec}; preserve::Pkg.Types.PreserveLevel, platform::Base.BinaryPlatforms.Platform, kwargs::@Kwargs{io::Base.TTY})
       >    @ Pkg.API /nix/store/4k3rnx1d5l5fqlx4n4gg9yxjy7d2vvvx-julia-1.10.3/share/julia/stdlib/v1.10/Pkg/src/API.jl:278
       >  [7] add(pkgs::Vector{Pkg.Types.PackageSpec}; io::Base.TTY, kwargs::@Kwargs{preserve::Pkg.Types.PreserveLevel})
       >    @ Pkg.API /nix/store/4k3rnx1d5l5fqlx4n4gg9yxjy7d2vvvx-julia-1.10.3/share/julia/stdlib/v1.10/Pkg/src/API.jl:159
       >  [8] #add#25
       >    @ /nix/store/4k3rnx1d5l5fqlx4n4gg9yxjy7d2vvvx-julia-1.10.3/share/julia/stdlib/v1.10/Pkg/src/API.jl:147 [inlined]
       >  [9] top-level scope
       >    @ none:17

Additional context

Also fails for makie and gadfly

Notify maintainers

Metadata

[user@system:~]$ nix-shell -p nix-info --run "nix-info -m"
 - system: `"x86_64-linux"`
 - host os: `Linux 6.6.32, NixOS, 24.11 (Vicuña), 24.11.20240609.c7b821b`
 - multi-user?: `yes`
 - sandbox: `yes`
 - version: `nix-env (Nix) 2.18.2`
 - nixpkgs: `/nix/store/rljkm6h18fjvavm6l17jiil8glphc44f-source`

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

thomasjm commented 3 months ago

Yes, there are some problems with Julia 1.10 I've been meaning to investigate.

In the meantime 1.9 should work: nix-shell -p 'julia_19.withPackages ["Plots"]'