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?
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)
Thanks for the tip, I'll try that
Hmm, that lead to considerable progress but then errored out with CMake Error at CMakeLists.txt:39 (message):
llvm-config failed with status 1
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)
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
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
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 ¯\_(ツ)_/¯
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
?
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
for me, I am looking to build on unsupported OS, so it is expected to have USE_BINARYBUILDER=0
.
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?
just pulled the latest master branch, I'm still seeing the same 502 error
trashed the repo and downloaded a fresh one, same error
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.
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.
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
)
@mnemnion could test https://github.com/JuliaLang/julia/pull/53304 and report on the PR if it is working for you ?
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)
yes, it (should) only fixes the llvm-config --src-root
usage. so please try it with USE_BINARYBUILDER=0
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)
I'll try patching in the actual hashes in /deps
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
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 22 2024 at 04:41 UTC