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

GDAL build is failing on MacOS with Julia 1.6.0-beta1 #113

Closed
vlandau opened this issue Jan 11, 2021 · 4 comments · Fixed by #114
Closed

GDAL build is failing on MacOS with Julia 1.6.0-beta1 #113

vlandau opened this issue Jan 11, 2021 · 4 comments · Fixed by #114

Comments

@vlandau
Copy link

vlandau commented Jan 11, 2021

It looks like it is maybe an upstream issue with MbedTLS, which @visr pointed out on Slack. Here's the full error:

ERROR: LoadError: InitError: could not load library "/Users/runner/.julia/artifacts/2c3cdffc520e54030c005f3ea5b7b465a5a5205a/lib/libgdal.28.dylib"
dlopen(/Users/runner/.julia/artifacts/2c3cdffc520e54030c005f3ea5b7b465a5a5205a/lib/libgdal.28.dylib, 1): Library not loaded: @rpath/libmbedtls.12.dylib
  Referenced from: /Users/runner/.julia/artifacts/2c3cdffc520e54030c005f3ea5b7b465a5a5205a/lib/libgdal.28.dylib
  Reason: image not found

The full stacktrace/run environment info can be found here.

@visr
Copy link
Member

visr commented Jan 11, 2021

Indeed GDAL.jl CI also picked this up: https://github.com/JuliaGeo/GDAL.jl/runs/1640642495?check_suite_focus=true

Cause and solution seems to be: JuliaLang/julia#39015 (comment). Though it is unfortunate that will require a different build for different julia version.

@zhangliye
Copy link

For the Julia issule JuliaLang/julia#39015 (comment), it is said that it requires package update as follows.

Thanks, so not really a release blocker then since it just requires package updates. JuliaLang/julia#39015 (comment)

@visr
Copy link
Member

visr commented Jan 23, 2021

It's not so simple, though, especially if we don't want to only support julia 1.6+ going forward. NetCDF has the same issue, see also the discussion in JuliaPackaging/Yggdrasil#2402.

@visr
Copy link
Member

visr commented Feb 9, 2021

We should follow the approach used to resolve this same issue by NetCDF, so basically apply the setup used in https://github.com/JuliaPackaging/Yggdrasil/tree/master/N/NetCDF, see also JuliaPackaging/Yggdrasil#2401.

First this should be done for PROJ_jll, then we can do it for GDAL_jll. I'm scarce on time at the moment (:baby:), so help would be appreciated such that this can be fixed before 1.6 final is released.

visr added a commit that referenced this issue Feb 18, 2021
On julia 1.3 to 1.5 we will get v300.201.100, on julia 1.6+ we will get v300.202.100. The GDAL version is the first digit, so v3.2.1.
Fixes #113.
@visr visr closed this as completed in #114 Feb 18, 2021
visr added a commit that referenced this issue Feb 18, 2021
On julia 1.3 to 1.5 we will get v300.201.100, on julia 1.6+ we will get v300.202.100. The GDAL version is the first digit, so v3.2.1.
Fixes #113.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants