Problem to install MiniQhull in Julia 1.7.0 on Mac OS

Dear all,

When I install MiniQhull in Julia 1.7.0, I got the following error message. Could you please help me to how to fix it? Thanks!

julia> Pkg.precompile()
Precompiling project…
✗ MiniQhull
0 dependencies successfully precompiled in 1 seconds (9 already precompiled)

ERROR: The following 1 direct dependency failed to precompile:

MiniQhull [978d7f02-9e05-4691-894f-ae31a51d76ca]

Failed to precompile MiniQhull [978d7f02-9e05-4691-894f-ae31a51d76ca] to /Users/liuyong/.julia/compiled/v1.7/MiniQhull/jl_wvcQQo.
ERROR: LoadError: Package MiniQhull not installed properly.
Stacktrace:
[1] error(s::String)
@ Base ./error.jl:33
[2] top-level scope
@ ~/.julia/packages/MiniQhull/PLvbq/src/load.jl:4
[3] include(mod::Module, _path::String)
@ Base ./Base.jl:418
[4] include(x::String)
@ MiniQhull ~/.julia/packages/MiniQhull/PLvbq/src/MiniQhull.jl:1
[5] top-level scope
@ ~/.julia/packages/MiniQhull/PLvbq/src/MiniQhull.jl:7
[6] include
@ ./Base.jl:418 [inlined]
[7] 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:1318
[8] top-level scope
@ none:1
[9] eval
@ ./boot.jl:373 [inlined]
[10] eval(x::Expr)
@ Base.MainInclude ./client.jl:453
[11] top-level scope
@ none:1
in expression starting at /Users/liuyong/.julia/packages/MiniQhull/PLvbq/src/load.jl:3
in expression starting at /Users/liuyong/.julia/packages/MiniQhull/PLvbq/src/MiniQhull.jl:1
Stacktrace:
[1] pkgerror(msg::String)
@ Pkg.Types /Applications/Julia-1.7.app/Contents/Resources/julia/share/julia/stdlib/v1.7/Pkg/src/Types.jl:68
[2] precompile(ctx::Pkg.Types.Context; internal_call::Bool, strict::Bool, warn_loaded::Bool, already_instantiated::Bool, kwargs::Base.Pairs{Symbol, Union{}, Tuple{}, NamedTuple{(), Tuple{}}})
@ Pkg.API /Applications/Julia-1.7.app/Contents/Resources/julia/share/julia/stdlib/v1.7/Pkg/src/API.jl:1362
[3] precompile
@ /Applications/Julia-1.7.app/Contents/Resources/julia/share/julia/stdlib/v1.7/Pkg/src/API.jl:1013 [inlined]
[4] #precompile#220
@ /Applications/Julia-1.7.app/Contents/Resources/julia/share/julia/stdlib/v1.7/Pkg/src/API.jl:1011 [inlined]
[5] precompile()
@ Pkg.API /Applications/Julia-1.7.app/Contents/Resources/julia/share/julia/stdlib/v1.7/Pkg/src/API.jl:1011
[6] top-level scope
@ REPL[3]:1

Can you try installing under Julia v1.8? The error is much more informative in the newer version.

Thanks for your reply! I have tried to install it under Julia v1.8. I got the following error information:

(@v1.8) pkg> add MiniQhull
Updating registry at ~/.julia/registries/General.toml
Resolving package versions…
Downloaded artifact: XML2
Downloaded artifact: Libiconv
Downloaded artifact: IntelOpenMP
Downloaded artifact: FFTW
Downloaded artifact: OpenSpecFun
No Changes to ~/.julia/environments/v1.8/Project.toml
No Changes to ~/.julia/environments/v1.8/Manifest.toml
Precompiling project…
✗ MiniQhull
✗ GridapEmbedded
77 dependencies successfully precompiled in 33 seconds
2 dependencies errored. To see a full report either run import Pkg; Pkg.precompile() or load the packages

(@v1.8) pkg> ^C

julia> import Pkg

julia> Pkg.precompile()
Precompiling project…
✗ MiniQhull
✗ GridapEmbedded
0 dependencies successfully precompiled in 7 seconds. 77 already precompiled.

ERROR: The following 2 direct dependencies failed to precompile:

MiniQhull [978d7f02-9e05-4691-894f-ae31a51d76ca]

Failed to precompile MiniQhull [978d7f02-9e05-4691-894f-ae31a51d76ca] to /Users/liuyong/.julia/compiled/v1.8/MiniQhull/jl_UYFmAz.
ERROR: LoadError: Package MiniQhull not installed properly.
Stacktrace:
[1] error(s::String)
@ Base ./error.jl:35
[2] top-level scope
@ ~/.julia/packages/MiniQhull/PLvbq/src/load.jl:4
[3] include(mod::Module, _path::String)
@ Base ./Base.jl:422
[4] include(x::String)
@ MiniQhull ~/.julia/packages/MiniQhull/PLvbq/src/MiniQhull.jl:1
[5] top-level scope
@ ~/.julia/packages/MiniQhull/PLvbq/src/MiniQhull.jl:7
[6] include
@ ./Base.jl:422 [inlined]
[7] 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:1554
[8] top-level scope
@ stdin:1
in expression starting at /Users/liuyong/.julia/packages/MiniQhull/PLvbq/src/load.jl:3
in expression starting at /Users/liuyong/.julia/packages/MiniQhull/PLvbq/src/MiniQhull.jl:1
in expression starting at stdin:1

GridapEmbedded [8838a6a3-0006-4405-b874-385995508d5d]

Failed to precompile GridapEmbedded [8838a6a3-0006-4405-b874-385995508d5d] to /Users/liuyong/.julia/compiled/v1.8/GridapEmbedded/jl_1Qa917.
ERROR: LoadError: Package MiniQhull not installed properly.
Stacktrace:
[1] error(s::String)
@ Base ./error.jl:35
[2] top-level scope
@ ~/.julia/packages/MiniQhull/PLvbq/src/load.jl:4
[3] include(mod::Module, _path::String)
@ Base ./Base.jl:422
[4] include(x::String)
@ MiniQhull ~/.julia/packages/MiniQhull/PLvbq/src/MiniQhull.jl:1
[5] top-level scope
@ ~/.julia/packages/MiniQhull/PLvbq/src/MiniQhull.jl:7
[6] include
@ ./Base.jl:422 [inlined]
[7] 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:1554
[8] top-level scope
@ stdin:1
in expression starting at /Users/liuyong/.julia/packages/MiniQhull/PLvbq/src/load.jl:3
in expression starting at /Users/liuyong/.julia/packages/MiniQhull/PLvbq/src/MiniQhull.jl:1
in expression starting at stdin:1
ERROR: LoadError: Failed to precompile MiniQhull [978d7f02-9e05-4691-894f-ae31a51d76ca] to /Users/liuyong/.julia/compiled/v1.8/MiniQhull/jl_2aDRcV.
Stacktrace:
[1] error(s::String)
@ Base ./error.jl:35
[2] compilecache(pkg::Base.PkgId, path::String, internal_stderr::IO, internal_stdout::IO, keep_loaded_modules::Bool)
@ Base ./loading.jl:1705
[3] compilecache
@ ./loading.jl:1649 [inlined]
[4] _require(pkg::Base.PkgId)
@ Base ./loading.jl:1337
[5] _require_prelocked(uuidkey::Base.PkgId)
@ Base ./loading.jl:1200
[6] macro expansion
@ ./loading.jl:1180 [inlined]
[7] macro expansion
@ ./lock.jl:223 [inlined]
[8] require(into::Module, mod::Symbol)
@ Base ./loading.jl:1144
[9] include(mod::Module, _path::String)
@ Base ./Base.jl:422
[10] include(x::String)
@ GridapEmbedded ~/.julia/packages/GridapEmbedded/93GSj/src/GridapEmbedded.jl:1
[11] top-level scope
@ ~/.julia/packages/GridapEmbedded/93GSj/src/GridapEmbedded.jl:7
[12] include
@ ./Base.jl:422 [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::Nothing)
@ Base ./loading.jl:1554
[14] top-level scope
@ stdin:1
in expression starting at /Users/liuyong/.julia/packages/GridapEmbedded/93GSj/src/LevelSetCutters/LevelSetCutters.jl:1
in expression starting at /Users/liuyong/.julia/packages/GridapEmbedded/93GSj/src/GridapEmbedded.jl:1
in expression starting at stdin:1

Stacktrace:
[1] pkgerror(msg::String)
@ Pkg.Types /Applications/Julia-1.8.app/Contents/Resources/julia/share/julia/stdlib/v1.8/Pkg/src/Types.jl:67
[2] precompile(ctx::Pkg.Types.Context, pkgs::Vector{String}; internal_call::Bool, strict::Bool, warn_loaded::Bool, already_instantiated::Bool, kwargs::Base.Pairs{Symbol, Union{}, Tuple{}, NamedTuple{(), Tuple{}}})
@ Pkg.API /Applications/Julia-1.8.app/Contents/Resources/julia/share/julia/stdlib/v1.8/Pkg/src/API.jl:1427
[3] precompile
@ /Applications/Julia-1.8.app/Contents/Resources/julia/share/julia/stdlib/v1.8/Pkg/src/API.jl:1058 [inlined]
[4] #precompile#225
@ /Applications/Julia-1.8.app/Contents/Resources/julia/share/julia/stdlib/v1.8/Pkg/src/API.jl:1057 [inlined]
[5] precompile (repeats 2 times)
@ /Applications/Julia-1.8.app/Contents/Resources/julia/share/julia/stdlib/v1.8/Pkg/src/API.jl:1057 [inlined]
[6] top-level scope
@ REPL[2]:1

I can’t reproduce this error. My guess is that the build script is not generating the required “deps.jl” file in
~/.julia/packages/MiniQhull/PLvbq/deps/
You can check whether it’s there or not. It may be that you don’t have write privileges there for some reason.

You can also get more information by trying in package mode
]build -v MiniQhull