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

HarfBuzz_jll image not found #1668

Closed
CiaranOMara opened this issue Sep 12, 2020 · 5 comments · Fixed by #1669
Closed

HarfBuzz_jll image not found #1668

CiaranOMara opened this issue Sep 12, 2020 · 5 comments · Fixed by #1669

Comments

@CiaranOMara
Copy link

I'm not sure whether this is the correct place to report this.

It seems that HarfBuzz_jll isn't able to find libicui18n.67.dylib on macOS 10.15.6.

(Sampling) pkg> st
Status `~/Projects/JuliaNotes.jl/Concepts/Sampling/Project.toml`
  [159f3aea] Cairo v1.0.5
  [186bb1d3] Fontconfig v0.4.0
  [c91e804a] Gadfly v1.3.0
  [2e76f6c2] HarfBuzz_jll v2.6.1+7

julia> using Gadfly

julia> using Cairo
[ Info: Precompiling Cairo [159f3aea-2a34-519c-b102-8c37f9878175]
ERROR: LoadError: LoadError: InitError: could not load library "/Users/username/.julia/artifacts/d1ec5f3f7b2b7c58eedc6f93f4a0361ca2587807/lib/libicutest.67.1.dylib"
dlopen(/Users/username/.julia/artifacts/d1ec5f3f7b2b7c58eedc6f93f4a0361ca2587807/lib/libicutest.67.1.dylib, 1): Library not loaded: libicui18n.67.dylib
  Referenced from: /Users/username/.julia/artifacts/d1ec5f3f7b2b7c58eedc6f93f4a0361ca2587807/lib/libicutu.67.1.dylib
  Reason: image not found
Stacktrace:
 [1] dlopen(::String, ::UInt32; throw_error::Bool) at /Users/julia/buildbot/worker/package_macos64/build/usr/share/julia/stdlib/v1.5/Libdl/src/Libdl.jl:109
 [2] dlopen(::String, ::UInt32) at /Users/julia/buildbot/worker/package_macos64/build/usr/share/julia/stdlib/v1.5/Libdl/src/Libdl.jl:109
 [3] __init__() at /Users/username/.julia/packages/ICU_jll/uVdLx/src/wrappers/x86_64-apple-darwin14-cxx11.jl:130
 [4] _include_from_serialized(::String, ::Array{Any,1}) at ./loading.jl:697
 [5] _require_search_from_serialized(::Base.PkgId, ::String) at ./loading.jl:782
 [6] _require(::Base.PkgId) at ./loading.jl:1007
 [7] require(::Base.PkgId) at ./loading.jl:928
 [8] require(::Module, ::Symbol) at ./loading.jl:923
 [9] include(::Function, ::Module, ::String) at ./Base.jl:380
 [10] include at ./Base.jl:368 [inlined]
 [11] include(::String) at /Users/username/.julia/packages/HarfBuzz_jll/KsceH/src/HarfBuzz_jll.jl:1
 [12] top-level scope at /Users/username/.julia/packages/HarfBuzz_jll/KsceH/src/HarfBuzz_jll.jl:98
 [13] include(::Function, ::Module, ::String) at ./Base.jl:380
 [14] include(::Module, ::String) at ./Base.jl:368
 [15] top-level scope at none:2
 [16] eval at ./boot.jl:331 [inlined]
 [17] eval(::Expr) at ./client.jl:467
 [18] top-level scope at ./none:3
during initialization of module ICU_jll
in expression starting at /Users/username/.julia/packages/HarfBuzz_jll/KsceH/src/wrappers/x86_64-apple-darwin14.jl:11
in expression starting at /Users/username/.julia/packages/HarfBuzz_jll/KsceH/src/HarfBuzz_jll.jl:91
ERROR: LoadError: LoadError: Failed to precompile HarfBuzz_jll [2e76f6c2-a576-52d4-95c1-20adfe4de566] to /Users/username/.julia/compiled/v1.5/HarfBuzz_jll/h60co_aUdiI.ji.
Stacktrace:
 [1] error(::String) at ./error.jl:33
 [2] compilecache(::Base.PkgId, ::String) at ./loading.jl:1290
 [3] _require(::Base.PkgId) at ./loading.jl:1030
 [4] require(::Base.PkgId) at ./loading.jl:928
 [5] require(::Module, ::Symbol) at ./loading.jl:923
 [6] include(::Function, ::Module, ::String) at ./Base.jl:380
 [7] include at ./Base.jl:368 [inlined]
 [8] include(::String) at /Users/username/.julia/packages/Pango_jll/sDpKp/src/Pango_jll.jl:1
 [9] top-level scope at /Users/username/.julia/packages/Pango_jll/sDpKp/src/Pango_jll.jl:54
 [10] include(::Function, ::Module, ::String) at ./Base.jl:380
 [11] include(::Module, ::String) at ./Base.jl:368
 [12] top-level scope at none:2
 [13] eval at ./boot.jl:331 [inlined]
 [14] eval(::Expr) at ./client.jl:467
 [15] top-level scope at ./none:3
in expression starting at /Users/username/.julia/packages/Pango_jll/sDpKp/src/wrappers/x86_64-apple-darwin14.jl:8
in expression starting at /Users/username/.julia/packages/Pango_jll/sDpKp/src/Pango_jll.jl:47
ERROR: LoadError: Failed to precompile Pango_jll [36c8627f-9965-5494-a995-c6b170f724f3] to /Users/username/.julia/compiled/v1.5/Pango_jll/lZI8Y_aUdiI.ji.
Stacktrace:
 [1] error(::String) at ./error.jl:33
 [2] compilecache(::Base.PkgId, ::String) at ./loading.jl:1290
 [3] _require(::Base.PkgId) at ./loading.jl:1030
 [4] require(::Base.PkgId) at ./loading.jl:928
 [5] require(::Module, ::Symbol) at ./loading.jl:923
 [6] include(::Function, ::Module, ::String) at ./Base.jl:380
 [7] include(::Module, ::String) at ./Base.jl:368
 [8] top-level scope at none:2
 [9] eval at ./boot.jl:331 [inlined]
 [10] eval(::Expr) at ./client.jl:467
 [11] top-level scope at ./none:3
in expression starting at /Users/username/.julia/packages/Cairo/smWIA/src/Cairo.jl:8
ERROR: Failed to precompile Cairo [159f3aea-2a34-519c-b102-8c37f9878175] to /Users/username/.julia/compiled/v1.5/Cairo/l6vnT_aUdiI.ji.
Stacktrace:
 [1] error(::String) at ./error.jl:33
 [2] compilecache(::Base.PkgId, ::String) at ./loading.jl:1290
 [3] _require(::Base.PkgId) at ./loading.jl:1030
 [4] require(::Base.PkgId) at ./loading.jl:928
 [5] require(::Module, ::Symbol) at ./loading.jl:923

julia> 
@giordano
Copy link
Member

Yes, this is the place where to report these problems! I reverted the change that triggered your issue, I'll investigate to see what's going on macOS. If you update the registry, you should get a working version of HarfBuzz_jll already. Sorry for the inconvenience!

@CiaranOMara
Copy link
Author

Thank you. The reversion cleared the error.

giordano added a commit to giordano/BinaryBuilderBase.jl that referenced this issue Sep 12, 2020
This fixes an issue with `install_name_tool` not being able to fix rpath of some
ICU libraries for macOS, see
JuliaPackaging/Yggdrasil#1668 and
JuliaPackaging/Yggdrasil#1650 (comment)
for reference.
@giordano
Copy link
Member

@CiaranOMara if you have time, could you please install and load ICU_jll? I believe it should be working on macOS now:

]add ICU_jll
using ICU_jll

You should get v67.1.0+1. You can remove the package after the test. Thanks!

@CiaranOMara
Copy link
Author

ICU_jll added and loaded without throwing an error.

(@v1.5) pkg> generate TestICU
 Generating  project TestICU:
    TestICU/Project.toml
    TestICU/src/TestICU.jl

shell> cd TestICU/
/Users/username/Projects/TestICU

(@v1.5) pkg> activate .
 Activating environment at `~/Projects/TestICU/Project.toml`

(TestICU) pkg> add ICU_jll
   Updating registry at `~/.julia/registries/General`
   Updating git-repo `https://github.com/JuliaRegistries/General.git`
  Resolving package versions...
Updating `~/Projects/TestICU/Project.toml`
  [a51ab1cf] + ICU_jll v67.1.0+1
Updating `~/Projects/TestICU/Manifest.toml`
  [a51ab1cf] + ICU_jll v67.1.0+1
  [2a0f44e3] + Base64
  [ade2ca70] + Dates
  [b77e0a4c] + InteractiveUtils
  [76f85450] + LibGit2
  [8f399da3] + Libdl
  [56ddb016] + Logging
  [d6f4376e] + Markdown
  [44cfe95a] + Pkg
  [de0858da] + Printf
  [3fa0cd96] + REPL
  [9a3f8284] + Random
  [ea8e919c] + SHA
  [9e88b42a] + Serialization
  [6462fe0b] + Sockets
  [cf7118a7] + UUIDs
  [4ec0a83e] + Unicode

(TestICU) pkg> st
Project TestICU v0.1.0
Status `~/Projects/TestICU/Project.toml`
  [a51ab1cf] ICU_jll v67.1.0+1

julia> using ICU_jll

julia> ICU_jll.
LIBPATH              is_available          libicutest_path
LIBPATH_default      libicudata            libicutest_splitpath
LIBPATH_env          libicudata_handle     libicutu
LIBPATH_list         libicudata_path       libicutu_handle
PATH                 libicudata_splitpath  libicutu_path
PATH_list            libicui18n            libicutu_splitpath
__init__             libicui18n_handle     libicuuc
artifact_dir         libicui18n_path       libicuuc_handle
artifacts            libicui18n_splitpath  libicuuc_path
artifacts_toml       libicuio              libicuuc_splitpath
best_platform        libicuio_handle       override_dir
dev_jll              libicuio_path         platforms
eval                 libicuio_splitpath    wrapper_available
find_artifact_dir    libicutest
include              libicutest_handle
julia> ICU_jll.

@giordano
Copy link
Member

Awesome, thanks for the test!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants