ArchGDAL.jl compile error using Julia1.6

I got the following error when run using ArchGDAL with Julia1.6. There is no problem with Julia1.5.
The error is as following.

Julia Version 1.6.0-beta1
Commit b84990e1ac (2021-01-08 12:42 UTC)
Platform Info:
  OS: macOS (x86_64-apple-darwin19.6.0)
  CPU: Intel(R) Core(TM) i5-8500 CPU @ 3.00GHz
  WORD_SIZE: 64
  LIBM: libopenlibm
  LLVM: libLLVM-11.0.0 (ORCJIT, skylake)
Environment:
  JULIA_NUM_THREADS = 4
**julia>** using ArchGDAL

**[ Info:** Precompiling ArchGDAL [c9ce4bd3-c3d5-55b8-8973-c0e20141b8c3]

**ERROR:** LoadError: InitError: could not load library "/Users/zhangliye/.julia/artifacts/2c3cdffc520e54030c005f3ea5b7b465a5a5205a/lib/libgdal.28.dylib"

dlopen(/Users/zhangliye/.julia/artifacts/2c3cdffc520e54030c005f3ea5b7b465a5a5205a/lib/libgdal.28.dylib, 1): Library not loaded: @rpath/libmbedtls.12.dylib

Referenced from: /Users/zhangliye/.julia/artifacts/2c3cdffc520e54030c005f3ea5b7b465a5a5205a/lib/libgdal.28.dylib

Reason: image not found

Stacktrace:

[1] **dlopen(** s::String, flags::UInt32; throw_error::Bool **)**

@ Base.Libc.Libdl ./libdl.jl:114

[2] **dlopen(** s::String, flags::UInt32 **)**

@ Base.Libc.Libdl ./libdl.jl:114

[3] **macro expansion**

@ ~/.julia/packages/JLLWrappers/WnWcZ/src/products/library_generators.jl:63 [inlined]

[4] **__init__()**

@ GDAL_jll ~/.julia/packages/GDAL_jll/fYJLS/src/wrappers/x86_64-apple-darwin.jl:110

[5] **_include_from_serialized(** path::String, depmods::Vector{Any} **)**

@ Base ./loading.jl:670

[6] **_require_search_from_serialized(** pkg::Base.PkgId, sourcepath::String **)**

@ Base ./loading.jl:756

[7] **_require(** pkg::Base.PkgId **)**

@ Base ./loading.jl:994

[8] **require(** uuidkey::Base.PkgId **)**

@ Base ./loading.jl:910

[9] **require(** into::Module, mod::Symbol **)**

@ Base ./loading.jl:897

[10] **include**

@ ./Base.jl:386 [inlined]

[11] **include_package_for_output(** pkg::Base.PkgId, input::String, depot_path::Vector{String}, dl_load_path::Vector{String}, load_path::Vector{String}, concrete_deps::Vector{Pair{Base.PkgId, UInt64}}, source::String **)**

@ Base ./loading.jl:1209

[12] top-level scope

@ none:1

[13] **eval**

@ ./boot.jl:360 [inlined]

[14] **eval(** x::Expr **)**

@ Base.MainInclude ./client.jl:446

[15] top-level scope

@ none:1

during initialization of module GDAL_jll

in expression starting at /Users/zhangliye/.julia/packages/GDAL/Yh4fH/src/GDAL.jl:1

**ERROR:** LoadError: Failed to precompile GDAL [add2ef01-049f-52c4-9ee2-e494f65e021a] to /Users/zhangliye/.julia/compiled/v1.6/GDAL/jl_FG4bpX.

Stacktrace:

[1] **error(** s::String **)**

@ Base ./error.jl:33

[2] **compilecache(** pkg::Base.PkgId, path::String, internal_stderr::Base.TTY, internal_stdout::Base.TTY **)**

@ Base ./loading.jl:1356

[3] **compilecache(** pkg::Base.PkgId, path::String **)**

@ Base ./loading.jl:1302

[4] **_require(** pkg::Base.PkgId **)**

@ Base ./loading.jl:1017

[5] **require(** uuidkey::Base.PkgId **)**

@ Base ./loading.jl:910

[6] **require(** into::Module, mod::Symbol **)**

@ Base ./loading.jl:897

[7] **include**

@ ./Base.jl:386 [inlined]

[8] **include_package_for_output(** pkg::Base.PkgId, input::String, depot_path::Vector{String}, dl_load_path::Vector{String}, load_path::Vector{String}, concrete_deps::Vector{Pair{Base.PkgId, UInt64}}, source::Nothing **)**

@ Base ./loading.jl:1209

[9] top-level scope

@ none:1

[10] **eval**

@ ./boot.jl:360 [inlined]

[11] **eval(** x::Expr **)**

@ Base.MainInclude ./client.jl:446

[12] top-level scope

@ none:1

in expression starting at /Users/zhangliye/.julia/packages/ArchGDAL/j9NPL/src/ArchGDAL.jl:1

**ERROR:** Failed to precompile ArchGDAL [c9ce4bd3-c3d5-55b8-8973-c0e20141b8c3] to /Users/zhangliye/.julia/compiled/v1.6/ArchGDAL/jl_RfwQLo.

Stacktrace:

[1] **error(** s::String **)**

@ Base ./error.jl:33

[2] **compilecache(** pkg::Base.PkgId, path::String, internal_stderr::Base.TTY, internal_stdout::Base.TTY **)**

@ Base ./loading.jl:1356

[3] **compilecache(** pkg::Base.PkgId, path::String **)**

@ Base ./loading.jl:1302

[4] **_require(** pkg::Base.PkgId **)**

@ Base ./loading.jl:1017

[5] **require(** uuidkey::Base.PkgId **)**

@ Base ./loading.jl:910

[6] **require(** into::Module, mod::Symbol **)**

@ Base ./loading.jl:897

Yes unfortunately the GDAL build does not work on MacOS on Julia 1.6 yet. There needs be be a new build for julia 1.6 to fix this. The issue is being tracked here:
https://github.com/JuliaGeo/GDAL.jl/issues/113

1 Like