Stream: helpdesk (published)

Topic: SHA checksum error building julia from source


view this post on Zulip mnemnion (Feb 11 2024 at 18:24):

Hi, trying to build Julia from source, macOS 12.6.3. When I try to simply make I get a curl 502 error. When I add USE_BINARYBUILDER=0 to Make.user, I get a different error: sha512 checksum failure on llvm-julia-16.0.6-2.tar.gz. Any idea what's going on here?

view this post on Zulip Sebastien Marie (semarie) (Feb 11 2024 at 19:11):

I have seeing it too (and I workarounded it by I overrided the deps/checksums/llvm entry for the file with the one from the file)

view this post on Zulip mnemnion (Feb 11 2024 at 21:21):

Thanks for the tip, I'll try that

view this post on Zulip mnemnion (Feb 11 2024 at 22:20):

Hmm, that lead to considerable progress but then errored out with CMake Error at CMakeLists.txt:39 (message): llvm-config failed with status 1

view this post on Zulip mnemnion (Feb 11 2024 at 22:22):

which leads me to think that perhaps the SHA bug is not a shallow one (in the sense that the SHA is simply incorrect / wasn't updated)

view this post on Zulip mnemnion (Feb 11 2024 at 22:27):

hmm, it's calling ./usr/tools/llvm-config --includedir --prefix --src-root but --src-root does not appear to be a valid flag. llvm-config --version reports 16.0.6jl, if that's useful info

view this post on Zulip mnemnion (Feb 11 2024 at 22:40):

looks like the offending flag is in deps/patches/llvm-libunwind-revert-monorepo-requirement.patch. I'll try removing it but my instinct is that the flag itself is not the issue here

view this post on Zulip mnemnion (Feb 11 2024 at 22:48):

hrm, removing that flag from the patch did not, in fact, prevent it from being spuriously called in the build. Ah well. Might be time to do something else with my day ¯\_(ツ)_/¯

view this post on Zulip Mosè Giordano (Feb 11 2024 at 23:52):

While the issues with the manual build system should be fixed (maybe by someone motivated enough to track down the issue), do you have any particular reason for trying to build julia with USE_BINARYBUILDER=0?

view this post on Zulip mnemnion (Feb 12 2024 at 04:11):

without it the process immediately errors on curl, a 502

more specifically, in case it's useful:

curl: (22) The requested URL returned error: 502
curl: Failed to extract a sensible file name from the URL to use for storage
curl: (3) URL using bad/illegal format or missing URL
make[1]: *** [[...]/julia/stdlib/srccache/Pkg-.tar.gz] Error 3

view this post on Zulip Sebastien Marie (semarie) (Feb 12 2024 at 09:00):

for me, I am looking to build on unsupported OS, so it is expected to have USE_BINARYBUILDER=0.

view this post on Zulip mnemnion (Feb 12 2024 at 14:32):

searching the issue tracker for USE_BINARYBUILDER turns up this (and a few more), which isn't the same issue I experienced. Is this a cross-platform issue? Should I file an issue on the problems I'm seeing?

view this post on Zulip mnemnion (Feb 12 2024 at 14:35):

just pulled the latest master branch, I'm still seeing the same 502 error

view this post on Zulip mnemnion (Feb 12 2024 at 14:38):

trashed the repo and downloaded a fresh one, same error

view this post on Zulip Sebastien Marie (semarie) (Feb 12 2024 at 15:06):

the checksum was modified with https://github.com/JuliaLang/julia/pull/53195 . I asked if the change was intented or not, as the remote file still match the old checksum.

view this post on Zulip mnemnion (Feb 12 2024 at 16:03):

Sebastien Marie (semarie) said:

the checksum was modified with https://github.com/JuliaLang/julia/pull/53195 . I asked if the change was intented or not, as the remote file still match the old checksum.

It seems like there's more than one problem there, because the version of llvm_config with the updated checksum doesn't have --src-root listed as a flag, which causes any operation involving that binary and that flag to fail.

view this post on Zulip Sebastien Marie (semarie) (Feb 12 2024 at 18:31):

I agree that there is several different problems.
the llvm-config --src-root change could be related to llvm 16 update.
only Darwin OS is using the llvmunwind component (which is using --src-root) (others Linux, BSD are using unwind)

view this post on Zulip Sebastien Marie (semarie) (Feb 12 2024 at 18:53):

@mnemnion could test https://github.com/JuliaLang/julia/pull/53304 and report on the PR if it is working for you ?

view this post on Zulip mnemnion (Feb 12 2024 at 19:19):

That branch doesn't fix the issue with a simple build, I'll try it with USE_BINARYBUILDER though (I think that was what you were expecting)

view this post on Zulip Sebastien Marie (semarie) (Feb 12 2024 at 19:22):

yes, it (should) only fixes the llvm-config --src-root usage. so please try it with USE_BINARYBUILDER=0

view this post on Zulip mnemnion (Feb 12 2024 at 19:24):

This branch has the same SHA error as the other one (I don't know if the hashes are the same error, but it's the same mismatch between expected and actual)

view this post on Zulip mnemnion (Feb 12 2024 at 19:26):

I'll try patching in the actual hashes in /deps

view this post on Zulip mnemnion (Feb 12 2024 at 19:29):

it looks like that also fails, but in a different way. I'm running cleanall and then a single-thread make, make -j makes it inconvenient to find the actual step that's failing

view this post on Zulip mnemnion (Feb 12 2024 at 20:24):

man that takes a long time on just one thread. So the build isn't successful, but llvm-config is no longer responsible for the errors. So that's something at least


Last updated: Nov 06 2024 at 04:40 UTC