-
-
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
Idiosyncratic failure building Julia on macOS #53444
Comments
I was able to build master today using the following.
|
Why |
I've tried it both ways, I figured a newer version was better, and that the error messages were somewhat more informative. Here's what I get attempting to build /usr/bin/tar -xmUf /path/to/julia/usr-staging/libwhich-99a0ea12689e41164456dba03e93bc40924de880.tar -C /path/to/julia/usr
echo 'libwhich-99a0ea12689e41164456dba03e93bc40924de880 staged-uninstaller' > /path/to/julia/usr/manifest/libwhich
/path/to/julia/deps/tools/jldownload /path/to/julia/stdlib/srccache/Pkg-.tar.gz
% Total % Received % Xferd Average Speed Time Time Time Current
Dload Upload Total Spent Left Speed
100 285 100 285 0 0 3659 0 --:--:-- --:--:-- --:--:-- 3701
100 361 100 361 0 0 3501 0 --:--:-- --:--:-- --:--:-- 3501
100 513 100 513 0 0 4000 0 --:--:-- --:--:-- --:--:-- 4000
100 817 100 817 0 0 5300 0 --:--:-- --:--:-- --:--:-- 5300
100 1425 100 1425 0 0 7940 0 --:--:-- --:--:-- --:--:-- 7940
100 2641 100 2641 0 0 12842 0 --:--:-- --:--:-- --:--:-- 12842
100 5073 100 5073 0 0 21785 0 --:--:-- --:--:-- --:--:-- 21785
0 157 0 0 0 0 0 0 --:--:-- --:--:-- --:--:-- 0
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]: *** [/path/to/julia/stdlib/srccache/Pkg-.tar.gz] Error 3
make: *** [julia-stdlib] Error 2 So same failure point, with the details of the error different. @mkitti, is that a build from a fresh clone? It doesn't look like it's doing the initial downloads, which is where this fails for me. I also notice you're on macOS 13.x, I'm still on 12.x. I'm not quite at the upgrade-the-os stage to get this to build, but I'm getting there. |
The problem seems to be with the Pkg library download and a missing hash / version.
I believe this was a fresh clone since I usually do not develop Julia on macOS, but I can check. |
That was more-or-less what we concluded on the Zulip, and it looked enough like a bug in the build process to be worth filing an issue over. Could still be some weirdness in my system, but I can't figure out how that might be. |
Here is what the relevant section should look like via
|
What is the output of Mine is now as follows.
That's consistent with https://github.com/JuliaLang/julia/blob/master/stdlib/Pkg.version |
Here's a traceback of the relevant Makefile lines: julia/deps/tools/git-external.mk Line 63 in 77c0672
julia/deps/tools/stdlib-external.mk Line 15 in 77c0672
Line 53 in 77c0672
|
|
What shell do you use, and what version of that shell? (I doubt it's relevant, but I figured I'd ask, for completeness.) |
Another stray thought: do you have Homebrew installed on your machine? |
Also, can you give us the output of
|
> cat stdlib/Pkg.version (base)
PKG_BRANCH = master
PKG_SHA1 = 1f16df404a2fbe8642ea3eecc9f4d7064c400a73
PKG_GIT_URL := https://github.com/JuliaLang/Pkg.jl.git
PKG_TAR_URL = https://api.github.com/repos/JuliaLang/Pkg.jl/tarball/$1 ➜ make -C stdlib print-PKG_TAR_URL
PKG_TAR_URL=https://api.github.com/repos/JuliaLang/Pkg.jl/tarball/
➜ make -C stdlib print-PKG_SHA1
PKG_SHA1=1f16df404a2fbe8642ea3eecc9f4d7064c400a73
➜ make -C stdlib print-PKG_SRC_DIR
PKG_SRC_DIR= That last line seems significant! |
What do |
Also, what's the output of |
Also:
|
➜ make -C stdlib print-PKG_SRC_DIR
PKG_SRC_DIR=
|
I think that was a bad copypaste on my part,
|
Could it be a shell issue? I usually use |
I've tried it with |
As of commit Am I right in thinking no one has been able to reproduce this problem? |
Are you downloading GitHub's bundled-up I've never experienced or seen a build failure like this, no. What ENV vars do you have set? Can you try unsetting everything? |
No, I'll try that next, thanks. I was following the README and using git clone, and in fact didn't realize there were release .zips. But since it's the bundle download process that's failing, this is certainly worth trying. |
|
Could you try hardcoding julia/deps/tools/git-external.mk Line 60 in 77c0672
|
So, in trying to get julia to build with So thanks everyone for your help! I feel bad using the issue tracker here but I had long-since run out of theories for how my environment could be causing it. I'll close the issue now, and might attach a comment or two with a more specific postmortem of the build failure, for posterity, and just in case it proves useful for someone, somewhere. You never know. |
I don't know if this actually belongs here, because I can't imagine everyone with my system is having this problem, but: for a couple weeks I've been trying to build Julia on macOS 12.6.5, off the master branch, using gmake 4.4.1, and the build consistently fails in the same way.
I asked for help on the Zulip, which folks there were quite willing to provide, but we didn't get it working and I'm stumped. So on the off chance that this is either a known problem or in fact a bug, I'm filing this report.
The step which fails in
gmake VERBOSE=1
is the following:I've consulted the platform specific build notes, and
[DY]LD_LIBRARY_PATH
aren't set.It isn't a bad-state issue in my copy of the repo, which I've download fresh every day I've tried. The problem appears to be internal to the build process, so not a missing tool or the like. It seems rather unlikely that fresh builds from a clone are broken on all macOS systems, or even all macOS 12.x systems, but still: it's not building.
Any help would be greatly appreciated, I know the bug tracker isn't for tech support but the odds that this is a bug seem high enough to file the issue and hope for the best.
The text was updated successfully, but these errors were encountered: