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

julia_13 doesn't build #82008

Closed
olynch opened this issue Mar 7, 2020 · 10 comments
Closed

julia_13 doesn't build #82008

olynch opened this issue Mar 7, 2020 · 10 comments
Labels
0.kind: bug Something is broken

Comments

@olynch
Copy link
Contributor

olynch commented Mar 7, 2020

Describe the bug
I haven't tried to build it on my local machine (because it would take forever), but it doesn't build on hydra: https://hydra.nixos.org/build/113989863/nixlog/1/tail. I don't know if people are working on this; is there current information that I could use to debug this?

Maintainer information:

# a list of nixpkgs attributes affected by the problem
attribute:
- julia_13
# a list of nixos modules affected by the problem
module:
@olynch olynch added the 0.kind: bug Something is broken label Mar 7, 2020
@ivan-timokhin
Copy link
Contributor

ivan-timokhin commented Apr 2, 2020

I have tried reproducing test failures locally, and, curiously, while I can reproduce them via nix-build, I can't reproduce them via nix-shell --pure --command genericBuild, which I tried per the advice from the wiki (I get additional libgit2-related errors, but those are a known upstream issue with patch available). So whatever is causing these issues appears to be sensitive to where (and by whom) exactly the package is being built.

@ivan-timokhin
Copy link
Contributor

Pinging maintainers: @7c6f434c @rbvermaa @garrison

In the meanwhile, Julia 1.4 is out, but my attempt to update the expression led to the same build errors, so I would suspect the same cause.

@7c6f434c
Copy link
Member

Does it also kind-of-work if you disable the tests, like 1.3?

@ivan-timokhin
Copy link
Contributor

ivan-timokhin commented Apr 17, 2020

No; it complains about missing libLLVM-8jl.so which, apparently, doesn't get installed with the rest of the libraries for some reason (the install directory does contain libLLVM.so and libLLVM-8.0.1jl.so, both hanging symlinks to the same missing library). I'll see if I can just copy it over manually in install phase.

Update: If I manually copy over libLLVM-8jl.so in post-install phase, at least the REPL seems to work fine. Now running the tests from it.

Update 2: And, if run from the REPL, all tests pass except for

  • libgit2 problems;
  • even with the patch above, some sort of libgit2 version mismatch in this line;
  • one test in loading that complains about a read-only filesystem;
  • the datetime tests being unreasonably sensitive to the system's locale (pass with LC_TIME=C)
  • and a TMPDIR issue.

Now to test with 1.4.1

Update 3: Same results with 1.4.1

@olynch
Copy link
Contributor Author

olynch commented Apr 24, 2020

For those who are frustrated by this, dropping in

      (stdenv.mkDerivation {
            name = "julia";
            src = pkgs.fetchurl {
                  url = "https://julialang-s3.julialang.org/bin/linux/x64/1.4/julia-1.4.1-linux-x86_64.tar.gz";
                  sha256 = "02k1a17lw7jdzc1ngbr6z6lqs3ivg8h95yxf7i61fy6nmsnqqvgx";
            };
            installPhase = ''
              mkdir $out
              cp -R * $out/
            '';
            dontStrip = true;
      })

into the packages list of a fully-loaded FHS works. I run julia in a FHS anyways, because libraries need it, so it's not a big drawback.

@rikhuijzer
Copy link
Contributor

rikhuijzer commented Jun 9, 2020

@olynch That sounds very interesting. I was not able to run Julia 1.4 based on your instructions. Do you happen to have a link to a good reference, or even your .nix files?
EDIT: Obviously, I could just have checked your GitHub repositories. Found it and Julia 1.4 is working for me now. Thanks.
EDIT2: Even Weave works now unlike in pkgs.julia_11. Awesome

@samuela
Copy link
Member

samuela commented Oct 4, 2020

I just came across this as well. Here's my complete log: https://gist.github.com/samuela/a04e336f8fb89926517acb5888c2c6d4.

Are there any updates on getting julia to build?

@7c6f434c
Copy link
Member

7c6f434c commented Oct 4, 2020 via email

@samuela
Copy link
Member

samuela commented Oct 4, 2020

Many of the failing tests are known upstream to be kind of suboptimally done but happen to run on the upstream testing infrastructure fine. I think we never got completely sure if it is all of the failing tests, though.

Oh interesting. Have we filed issues on the julia project for these failures? I'd be interested in working towards getting a working julia 1.5 derivation up.

@7c6f434c
Copy link
Member

7c6f434c commented Oct 4, 2020 via email

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
0.kind: bug Something is broken
Projects
None yet
Development

No branches or pull requests

5 participants