Skip to content

Precompilation error on 1.6 with macOS 10.13 #384

@giacomogiudice

Description

@giacomogiudice

Hi,

I ran into this issue while trying to add Plots. Building GR seems to go fine and at precompilation it errors.

(@v1.6) pkg> add GR
  Installing known registries into `~/.julia`
[...]
   Building GR → `~/.julia/scratchspaces/44cfe95a-1eb2-52ea-b672-e2afdf69b78f/f74b42150042d11a1d94badf27c6125867c7e9bd/build.log`
Precompiling project...
  Progress [========================================>]  74/74
  ✗ GR_jll
  ✗ GR
72 dependencies successfully precompiled in 72 seconds
2 dependencies errored

Attempting to precompile manually seems to throw on error about missing Qt5 libraries

julia> import Pkg

julia> Pkg.precompile()
Precompiling project...
  Progress [========================================>]  2/2
  ✗ GR_jll
  ✗ GR
0 dependencies successfully precompiled in 7 seconds (72 already precompiled)

ERROR: The following 1 direct dependency failed to precompile:

GR [28b8d3ca-fb5f-59d9-8090-bfdbd6d07a71]

ERROR: LoadError: LoadError: InitError: could not load library "/Users/giacomo/.julia/artifacts/ee74d003b12e6dd5f748e8cefb1688edbdfb184b/lib/QtConcurrent.framework/Versions/5/QtConcurrent"
dlopen(/Users/giacomo/.julia/artifacts/ee74d003b12e6dd5f748e8cefb1688edbdfb184b/lib/QtConcurrent.framework/Versions/5/QtConcurrent.dylib, 1): 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__()
    @ Qt5Base_jll ~/.julia/packages/Qt5Base_jll/Ks8eF/src/wrappers/x86_64-apple-darwin.jl:31
  [5] _include_from_serialized(path::String, depmods::Vector{Any})
    @ Base ./loading.jl:674
  [6] _require_search_from_serialized(pkg::Base.PkgId, sourcepath::String)
    @ Base ./loading.jl:760
  [7] _require(pkg::Base.PkgId)
    @ Base ./loading.jl:998
  [8] require(uuidkey::Base.PkgId)
    @ Base ./loading.jl:914
  [9] require(into::Module, mod::Symbol)
    @ Base ./loading.jl:901
 [10] include(mod::Module, _path::String)
    @ Base ./Base.jl:386
 [11] top-level scope
    @ ~/.julia/packages/JLLWrappers/WnWcZ/src/toplevel_generators.jl:170
 [12] include
    @ ./Base.jl:386 [inlined]
 [13] 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:1213
 [14] top-level scope
    @ none:1
 [15] eval
    @ ./boot.jl:360 [inlined]
 [16] eval(x::Expr)
    @ Base.MainInclude ./client.jl:446
 [17] top-level scope
    @ none:1
during initialization of module Qt5Base_jll
in expression starting at /Users/giacomo/.julia/packages/GR_jll/qVgdC/src/wrappers/x86_64-apple-darwin.jl:13
in expression starting at /Users/giacomo/.julia/packages/GR_jll/qVgdC/src/GR_jll.jl:2

and yet the supposedly missing library seems to be there

~ ❯❯❯ la /Users/giacomo/.julia/artifacts/ee74d003b12e6dd5f748e8cefb1688edbdfb184b/lib/QtConcurrent.framework/Versions/5/
total 104
drwxr-xr-x  24 giacomo  staff   768B Apr  7 11:19 Headers
-r-xr-xr-x   1 giacomo  staff    48K Apr  7 11:19 QtConcurrent
drwxr-xr-x   4 giacomo  staff   128B Apr  7 11:19 Resources

Here is the versioninfo

julia> versioninfo()
Julia Version 1.6.0
Commit f9720dc2eb (2021-03-24 12:55 UTC)
Platform Info:
  OS: macOS (x86_64-apple-darwin19.6.0)
  CPU: Intel(R) Core(TM) i7-2620M CPU @ 2.70GHz
  WORD_SIZE: 64
  LIBM: libopenlibm
  LLVM: libLLVM-11.0.1 (ORCJIT, sandybridge)

(@v1.6) pkg> st
      Status `~/.julia/environments/v1.6/Project.toml`
  [28b8d3ca] GR v0.57.1

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions