-
-
Notifications
You must be signed in to change notification settings - Fork 5.5k
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
generate_precompile script is requiring network access #40185
Comments
You may be able to see more by toggling julia/contrib/generate_precompile.jl Line 183 in f25d988
|
Yeah, it can be two things:
|
Thanks, I rebuilt following @Sacha0 suggestion. It seems that the only thing going bad is the Pkg.add part (because the build happens in an environment with no internet connection, so cloning registry from "https://github.com/JuliaRegistries/General.git" fails). This leads to Pkg.develop to fail, and then Pkg.add. I think I'll just lower the threshold for the guix package... |
Oh, hm. That is a mistake from our side, that shouldn't run (exactly because it shouldn't require internet access to run that part). |
Wait, I got the error wrong. It also complained about certificates, so I added nss-certs (mozilla CA certificates) to the build environment and now it did work (Executing precompile statements... 1323/1323) |
I thought we had issue before about avoiding network access in generate_precompile. This might be a regression? |
IIRC generate_precompile builds a mock registry to avoid going to network, but the cert issue that nico202 mentioned breaks that mock setup, and downstream operations subsequently try to go to network. (We ran into the same issue :).) So I think all is well, it's just the cert issue. |
Yep, I tried it myself without internet connection and it worked fine. |
Encountered the same issue with Nix and it was addressed by adding |
OT: @ninjin
when running the built julia? I could fix this by wrapping the binary with LD_LIBRARY_PATH, but I guess it would be better to set the proper RPATH at build time (I'm writing the package for guix) |
@nico202 Not yet as I suspect you have gotten slightly further than me. This is probably not a good place for discussion, feel free to either drop me an e-mail or by all means join me in |
Hi, when building the latest release tarball, I get
Generating REPL precompile statements... 29/29
Executing precompile statements... 1148/1148
ERROR: LoadError: AssertionError: n_succeeded > 1200
Any idea on why the total number of precompile statements is less than expected?
Thanks
The text was updated successfully, but these errors were encountered: