Open mlkrock opened 1 year ago
Cross reference: https://github.com/JuliaLang/julia/issues/49851 My fault.
@KristofferC When can a fix be expected? My fault.
Try running with julia --pkgimages=no
. Does this resolve the issue?
Running julia with --pkgimages=no
, packages install without problems.
@mkitti I consider this a workaround and not a solution.
In response to https://github.com/macports/macports-ports/pull/18608#issuecomment-1547631047:
Something is wrong with the rpath of
Contents/Resources/julia/libexec/julia/lld
. Could you runotool - l
on thatlld
and see if there is something missing.
otool -l /Applications/Julia-1.9.app/Contents/Resources/julia/libexec/julia/lld
Load command 0
cmd LC_SEGMENT_64
cmdsize 72
segname __PAGEZERO
vmaddr 0x0000000000000000
vmsize 0x0000000100000000
fileoff 0
filesize 0
maxprot 0x00000000
initprot 0x00000000
nsects 0
flags 0x0
Load command 1
cmd LC_SEGMENT_64
cmdsize 552
segname __TEXT
vmaddr 0x0000000100000000
vmsize 0x00000000002f4000
fileoff 0
filesize 3096576
maxprot 0x00000005
initprot 0x00000005
nsects 6
flags 0x0
Section
sectname __text
segname __TEXT
addr 0x0000000100008840
size 0x00000000002c8a60
offset 34880
align 2^4 (16)
reloff 0
nreloc 0
flags 0x80000400
reserved1 0
reserved2 0
Section
sectname __stubs
segname __TEXT
addr 0x00000001002d12a0
size 0x00000000000024fc
offset 2953888
align 2^2 (4)
reloff 0
nreloc 0
flags 0x80000408
reserved1 0 (index into indirect symbol table)
reserved2 12 (size of stubs)
Section
sectname __stub_helper
segname __TEXT
addr 0x00000001002d379c
size 0x0000000000001b78
offset 2963356
align 2^2 (4)
reloff 0
nreloc 0
flags 0x80000400
reserved1 0
reserved2 0
Section
sectname __const
segname __TEXT
addr 0x00000001002d5320
size 0x00000000000055e0
offset 2970400
align 2^4 (16)
reloff 0
nreloc 0
flags 0x00000000
reserved1 0
reserved2 0
Section
sectname __cstring
segname __TEXT
addr 0x00000001002da900
size 0x00000000000196b2
offset 2992384
align 2^0 (1)
reloff 0
nreloc 0
flags 0x00000002
reserved1 0
reserved2 0
Section
sectname __unwind_info
segname __TEXT
addr 0x00000001002f3fb4
size 0x0000000000000048
offset 3096500
align 2^2 (4)
reloff 0
nreloc 0
flags 0x00000000
reserved1 0
reserved2 0
Load command 2
cmd LC_SEGMENT_64
cmdsize 312
segname __DATA_CONST
vmaddr 0x00000001002f4000
vmsize 0x0000000000020000
fileoff 3096576
filesize 131072
maxprot 0x00000003
initprot 0x00000003
nsects 3
flags 0x10
Section
sectname __got
segname __DATA_CONST
addr 0x00000001002f4000
size 0x0000000000001068
offset 3096576
align 2^3 (8)
reloff 0
nreloc 0
flags 0x00000006
reserved1 789 (index into indirect symbol table)
reserved2 0
Section
sectname __mod_init_func
segname __DATA_CONST
addr 0x00000001002f5068
size 0x00000000000000c8
offset 3100776
align 2^3 (8)
reloff 0
nreloc 0
flags 0x00000009
reserved1 0
reserved2 0
Section
sectname __const
segname __DATA_CONST
addr 0x00000001002f5130
size 0x000000000001da18
offset 3100976
align 2^3 (8)
reloff 0
nreloc 0
flags 0x00000000
reserved1 0
reserved2 0
Load command 3
cmd LC_SEGMENT_64
cmdsize 392
segname __DATA
vmaddr 0x0000000100314000
vmsize 0x0000000000008000
fileoff 3227648
filesize 16384
maxprot 0x00000003
initprot 0x00000003
nsects 4
flags 0x0
Section
sectname __la_symbol_ptr
segname __DATA
addr 0x0000000100314000
size 0x00000000000018a8
offset 3227648
align 2^3 (8)
reloff 0
nreloc 0
flags 0x00000007
reserved1 1314 (index into indirect symbol table)
reserved2 0
Section
sectname __data
segname __DATA
addr 0x00000001003158a8
size 0x000000000000061c
offset 3233960
align 2^3 (8)
reloff 0
nreloc 0
flags 0x00000000
reserved1 0
reserved2 0
Section
sectname __bss
segname __DATA
addr 0x0000000100315ec8
size 0x0000000000001af0
offset 0
align 2^3 (8)
reloff 0
nreloc 0
flags 0x00000001
reserved1 0
reserved2 0
Section
sectname __common
segname __DATA
addr 0x00000001003179b8
size 0x0000000000000750
offset 0
align 2^3 (8)
reloff 0
nreloc 0
flags 0x00000001
reserved1 0
reserved2 0
Load command 4
cmd LC_SEGMENT_64
cmdsize 72
segname __LINKEDIT
vmaddr 0x000000010031c000
vmsize 0x000000000012c000
fileoff 3244032
filesize 1220096
maxprot 0x00000001
initprot 0x00000001
nsects 0
flags 0x0
Load command 5
cmd LC_DYLD_INFO_ONLY
cmdsize 48
rebase_off 3244032
rebase_size 3936
bind_off 3247968
bind_size 2496
weak_bind_off 3250464
weak_bind_size 55912
lazy_bind_off 3306376
lazy_bind_size 39104
export_off 3345480
export_size 93720
Load command 6
cmd LC_SYMTAB
cmdsize 24
symoff 3450176
nsyms 9018
stroff 3602876
strsize 807020
Load command 7
cmd LC_DYSYMTAB
cmdsize 80
ilocalsym 0
nlocalsym 6128
iextdefsym 6128
nextdefsym 2254
iundefsym 8382
nundefsym 636
tocoff 0
ntoc 0
modtaboff 0
nmodtab 0
extrefsymoff 0
nextrefsyms 0
indirectsymoff 3594464
nindirectsyms 2103
extreloff 0
nextrel 0
locreloff 0
nlocrel 0
Load command 8
cmd LC_LOAD_DYLINKER
cmdsize 32
name /usr/lib/dyld (offset 12)
Load command 9
cmd LC_UUID
cmdsize 24
uuid 516B471E-C085-31C8-8115-55F4BF37ED65
Load command 10
cmd LC_BUILD_VERSION
cmdsize 32
platform 1
minos 11.0
sdk 11.0
ntools 1
tool 3
version 530.0
Load command 11
cmd LC_SOURCE_VERSION
cmdsize 16
version 0.0
Load command 12
cmd LC_MAIN
cmdsize 24
entryoff 35280
stacksize 0
Load command 13
cmd LC_ENCRYPTION_INFO_64
cmdsize 24
cryptoff 32768
cryptsize 3063808
cryptid 0
pad 0
Load command 14
cmd LC_LOAD_DYLIB
cmdsize 48
name @rpath/libz.1.dylib (offset 24)
time stamp 2 Thu Jan 1 01:00:02 1970
current version 1.2.13
compatibility version 1.0.0
Load command 15
cmd LC_LOAD_DYLIB
cmdsize 48
name @rpath/libLLVM.dylib (offset 24)
time stamp 2 Thu Jan 1 01:00:02 1970
current version 14.0.6
compatibility version 1.0.0
Load command 16
cmd LC_LOAD_DYLIB
cmdsize 48
name /usr/lib/libc++.1.dylib (offset 24)
time stamp 2 Thu Jan 1 01:00:02 1970
current version 904.4.0
compatibility version 1.0.0
Load command 17
cmd LC_LOAD_DYLIB
cmdsize 56
name /usr/lib/libSystem.B.dylib (offset 24)
time stamp 2 Thu Jan 1 01:00:02 1970
current version 1292.60.1
compatibility version 1.0.0
Load command 18
cmd LC_RPATH
cmdsize 32
path @loader_path/../lib (offset 12)
Load command 19
cmd LC_FUNCTION_STARTS
cmdsize 16
dataoff 3439200
datasize 10976
Load command 20
cmd LC_DATA_IN_CODE
cmdsize 16
dataoff 3450176
datasize 0
Load command 21
cmd LC_CODE_SIGNATURE
cmdsize 16
dataoff 4409904
datasize 54224
@mlkrock @mkitti Will be fixed by https://github.com/macports/macports-ports/pull/18693 for the MacPorts Port.
My fault. Sorry.
Will be fixed by macports/macports-ports#18693 for the MacPorts Port.
MacPorts Port: Done (macOS versions 10.15+).
ℹ️ There is no binary package for masOS 12 (Monterey) as gcc12/libgcc12 does currently not build for this macOS version.
I ran into this error recently, something in our build system was signing the Julia binaries, including lld
. Fixed the issue by adding the entitlements com.apple.security.cs.allow-dyld-environment-variables
and/or com.apple.security.get-task-allow
during the signing process.
I ran into this error recently, something in our build system was signing the Julia binaries, including
lld
. Fixed the issue by adding the entitlementscom.apple.security.cs.allow-dyld-environment-variables
and/orcom.apple.security.get-task-allow
during the signing process.
Could you clarify who "our" is with regard to "our build system"?
Could you clarify who "our" is with regard to "our build system"?
Just the company I work for. We build an app bundle which embeds Julia; when signing the bundle the Julia binaries get signed in the same way. Which is probably a bit unusual so my fix might not work for others.
MacPorts Port: Binary packages for macOS 12 (Monterey) are available again.
Please reopen if still an issue on the latest 1.9.x stable release.
This occur on me end - with julia-1.9.3 :
versioninfo()
Julia Version 1.9.3
Commit bed2cd540a1 (2023-08-24 14:43 UTC)
Build Info:
Official https://julialang.org/ release
Platform Info:
OS: macOS (x86_64-apple-darwin22.4.0)
CPU: 4 × Intel(R) Core(TM) i5-8210Y CPU @ 1.60GHz
WORD_SIZE: 64
LIBM: libopenlibm
LLVM: libLLVM-14.0.6 (ORCJIT, skylake)
Threads: 1 on 4 virtual cores
Environment:
JULIA_IMAGE_THREADS = 1
error when precompiling package
┌ Error: Pkg.precompile error
│ exception =
│ failed process: Process(setenv(`/Users/chris119/julia_ws/julia-1.9.3/libexec/julia/lld -flavor darwin -arch x86_64 -undefined dynamic_lookup -platform_version macos 13.3.1 13.3 '' -dylib -o /Users/chris119/.julia/compiled/v1.9/CompilerSupportLibraries_jll/jl_oRR0h6 -all_load /Users/chris119/.julia/compiled/v1.9/CompilerSupportLibraries_jll/jl_xyUQ2u '' -L/Users/chris119/julia_ws/julia-1.9.3/lib -L/Users/chris119/julia_ws/julia-1.9.3/lib/julia -L/Users/chris119/julia_ws/julia-1.9.3/lib -ljulia -ljulia-internal`,["XPC_FLAGS=0x0", "_CE_M=", "PATH=/Users/chris119/julia_ws/julia-1.9.3/libexec/julia:/opt/anaconda3/bin:/opt/anaconda3/condabin:/Library/Frameworks/Python.framework/Versions/3.8/bin:/usr/local/bin:/usr/bin:/bin:/usr/sbin:/sbin:/Library/TeX/texbin", "CONDA_PROMPT_MODIFIER=(base) ", "PWD=/Users/chris119", "XPC_SERVICE_NAME=0", "TERM_PROGRAM=Apple_Terminal", "CONDA_PYTHON_EXE=/opt/anaconda3/bin/python", "SHELL=/bin/bash", "DYLD_FALLBACK_LIBRARY_PATH=/Users/chris119/julia_ws/julia-1.9.3/lib/julia:/Users/chris119/julia_ws/julia-1.9.3/lib:/Users/chris119/lib:/usr/local/lib:/lib:/usr/lib" … "OPENBLAS_DEFAULT_NUM_THREADS=1", "Apple_PubSub_Socket_Render=/private/tmp/com.apple.launchd.aF6WLvu9HP/Render", "_CE_CONDA=", "USER=chris119", "CONDA_SHLVL=1", "CONDA_EXE=/opt/anaconda3/bin/conda", "TERM=xterm-256color", "HOME=/Users/chris119", "TERM_PROGRAM_VERSION=421.2", "OPENBLAS_MAIN_FREE=1"]), ProcessSignaled(6)) [0]
│
│ Stacktrace:
│ [1] pipeline_error
│ @ ./process.jl:565 [inlined]
│ [2] run(::Cmd, ::Base.DevNull, ::Vararg{Any}; wait::Bool)
│ @ Base ./process.jl:480
│ [3] run
│ @ ./process.jl:477 [inlined]
│ [4] link_image (repeats 2 times)
│ @ ./linking.jl:166 [inlined]
│ [5] compilecache(pkg::Base.PkgId, path::String, internal_stderr::IO, internal_stdout::IO, keep_loaded_modules::Bool)
│ @ Base ./loading.jl:2206
│ [6] #249
│ @ ~/julia_ws/julia-1.9.3/share/julia/stdlib/v1.9/Pkg/src/API.jl:1438 [inlined]
│ [7] withenv(f::Pkg.API.var"#249#280"{IOBuffer, String, Base.PkgId}, keyvals::Pair{String, String})
│ @ Base ./env.jl:197
│ [8] (::Pkg.API.var"#248#279"{IOBuffer, String, Base.PkgId})()
│ @ Pkg.API ~/julia_ws/julia-1.9.3/share/julia/stdlib/v1.9/Pkg/src/API.jl:1436
│ [9] with_logstate(f::Function, logstate::Any)
│ @ Base.CoreLogging ./logging.jl:514
│ [10] with_logger
│ @ ./logging.jl:626 [inlined]
│ [11] macro expansion
│ @ ./timing.jl:393 [inlined]
│ [12] macro expansion
│ @ ~/julia_ws/julia-1.9.3/share/julia/stdlib/v1.9/Pkg/src/API.jl:1434 [inlined]
│ [13] (::Pkg.API.var"#245#276"{Bool, Bool, Pkg.Types.Context, Vector{Task}, Dict{Base.PkgId, String}, Dict{Base.PkgId, IOBuffer}, Pkg.API.var"#color_string#266", Base.Event, Base.Event, ReentrantLock, Vector{Base.PkgId}, Vector{Base.PkgId}, Dict{Base.PkgId, String}, Vector{Base.PkgId}, Vector{Base.PkgId}, Dict{Base.PkgId, Bool}, Dict{Base.PkgId, Base.Event}, Dict{Base.PkgId, Bool}, Vector{Pkg.Types.PackageSpec}, Dict{Base.PkgId, String}, Dict{Tuple{Base.PkgId, UInt128, String, String}, Bool}, Vector{Base.PkgId}, Bool, Base.TTY, Base.Semaphore, String, Vector{String}, Vector{Base.PkgId}, Base.PkgId})()
│ @ Pkg.API ./task.jl:514
└ @ Pkg.API ~/julia_ws/julia-1.9.3/share/julia/stdlib/v1.9/Pkg/src/API.jl:1302
┌ Error: Pkg.precompile error
│ exception =
│ failed process: Process(setenv(`/Users/chris119/julia_ws/julia-1.9.3/libexec/julia/lld -flavor darwin -arch x86_64 -undefined dynamic_lookup -platform_version macos 13.3.1 13.3 '' -dylib -o /Users/chris119/.julia/compiled/v1.9/StaticArraysCore/jl_INYdk0 -all_load /Users/chris119/.julia/compiled/v1.9/StaticArraysCore/jl_mRsKbJ '' -L/Users/chris119/julia_ws/julia-1.9.3/lib -L/Users/chris119/julia_ws/julia-1.9.3/lib/julia -L/Users/chris119/julia_ws/julia-1.9.3/lib -ljulia -ljulia-internal`,["XPC_FLAGS=0x0", "_CE_M=", "PATH=/Users/chris119/julia_ws/julia-1.9.3/libexec/julia:/opt/anaconda3/bin:/opt/anaconda3/condabin:/Library/Frameworks/Python.framework/Versions/3.8/bin:/usr/local/bin:/usr/bin:/bin:/usr/sbin:/sbin:/Library/TeX/texbin", "CONDA_PROMPT_MODIFIER=(base) ", "PWD=/Users/chris119", "XPC_SERVICE_NAME=0", "TERM_PROGRAM=Apple_Terminal", "CONDA_PYTHON_EXE=/opt/anaconda3/bin/python", "SHELL=/bin/bash", "DYLD_FALLBACK_LIBRARY_PATH=/Users/chris119/julia_ws/julia-1.9.3/lib/julia:/Users/chris119/julia_ws/julia-1.9.3/lib:/Users/chris119/lib:/usr/local/lib:/lib:/usr/lib" … "OPENBLAS_DEFAULT_NUM_THREADS=1", "Apple_PubSub_Socket_Render=/private/tmp/com.apple.launchd.aF6WLvu9HP/Render", "_CE_CONDA=", "USER=chris119", "CONDA_SHLVL=1", "CONDA_EXE=/opt/anaconda3/bin/conda", "TERM=xterm-256color", "HOME=/Users/chris119", "TERM_PROGRAM_VERSION=421.2", "OPENBLAS_MAIN_FREE=1"]), ProcessSignaled(6)) [0]
│
│ Stacktrace:
│ [1] pipeline_error
│ @ ./process.jl:565 [inlined]
│ [2] run(::Cmd, ::Base.DevNull, ::Vararg{Any}; wait::Bool)
│ @ Base ./process.jl:480
│ [3] run
│ @ ./process.jl:477 [inlined]
│ [4] link_image (repeats 2 times)
│ @ ./linking.jl:166 [inlined]
│ [5] compilecache(pkg::Base.PkgId, path::String, internal_stderr::IO, internal_stdout::IO, keep_loaded_modules::Bool)
│ @ Base ./loading.jl:2206
│ [6] #249
│ @ ~/julia_ws/julia-1.9.3/share/julia/stdlib/v1.9/Pkg/src/API.jl:1438 [inlined]
│ [7] withenv(f::Pkg.API.var"#249#280"{IOBuffer, String, Base.PkgId}, keyvals::Pair{String, String})
│ @ Base ./env.jl:197
│ [8] (::Pkg.API.var"#248#279"{IOBuffer, String, Base.PkgId})()
│ @ Pkg.API ~/julia_ws/julia-1.9.3/share/julia/stdlib/v1.9/Pkg/src/API.jl:1436
│ [9] with_logstate(f::Function, logstate::Any)
│ @ Base.CoreLogging ./logging.jl:514
│ [10] with_logger
│ @ ./logging.jl:626 [inlined]
│ [11] macro expansion
│ @ ./timing.jl:393 [inlined]
│ [12] macro expansion
│ @ ~/julia_ws/julia-1.9.3/share/julia/stdlib/v1.9/Pkg/src/API.jl:1434 [inlined]
│ [13] (::Pkg.API.var"#245#276"{Bool, Bool, Pkg.Types.Context, Vector{Task}, Dict{Base.PkgId, String}, Dict{Base.PkgId, IOBuffer}, Pkg.API.var"#color_string#266", Base.Event, Base.Event, ReentrantLock, Vector{Base.PkgId}, Vector{Base.PkgId}, Dict{Base.PkgId, String}, Vector{Base.PkgId}, Vector{Base.PkgId}, Dict{Base.PkgId, Bool}, Dict{Base.PkgId, Base.Event}, Dict{Base.PkgId, Bool}, Vector{Pkg.Types.PackageSpec}, Dict{Base.PkgId, String}, Dict{Tuple{Base.PkgId, UInt128, String, String}, Bool}, Vector{Base.PkgId}, Bool, Base.TTY, Base.Semaphore, String, Vector{String}, Vector{Base.PkgId}, Base.PkgId})()
│ @ Pkg.API ./task.jl:514
└ @ Pkg.API ~/julia_ws/julia-1.9.3/share/julia/stdlib/v1.9/Pkg/src/API.jl:1302
dyld: Library not loaded: @rpath/libLLVM.dylib
Referenced from: /Users/chris119/julia_ws/julia-1.9.3/libexec/julia/lld
Reason: image not found
(@v1.9) pkg> /libLLVM.dylib
Referenced from: /Users/chris119/julia_ws/julia-1.9.3/libexec/julia/lld
Reason: image not found
┌ Error: Pkg.precompile error
│ exception =
│ failed process: Process(setenv(`/Users/chris119/julia_ws/julia-1.9.3/libexec/julia/lld -flavor darwin -arch x86_64 -undefined dynamic_lookup -platform_version macos 13.3.1 13.3 '' -dylib -o /Users/chris119/.julia/compiled/v1.9/ConstructionBase/jl_zKRBt8 -all_load /Users/chris119/.julia/compiled/v1.9/ConstructionBase/jl_8TGKLS '' -L/Users/chris119/julia_ws/julia-1.9.3/lib -L/Users/chris119/julia_ws/julia-1.9.3/lib/julia -L/Users/chris119/julia_ws/julia-1.9.3/lib -ljulia -ljulia-internal`,["XPC_FLAGS=0x0", "_CE_M=", "PATH=/Users/chris119/julia_ws/julia-1.9.3/libexec/julia:/opt/anaconda3/bin:/opt/anaconda3/condabin:/Library/Frameworks/Python.framework/Versions/3.8/bin:/usr/local/bin:/usr/bin:/bin:/usr/sbin:/sbin:/Library/TeX/texbin", "CONDA_PROMPT_MODIFIER=(base) ", "PWD=/Users/chris119", "XPC_SERVICE_NAME=0", "TERM_PROGRAM=Apple_Terminal", "CONDA_PYTHON_EXE=/opt/anaconda3/bin/python", "SHELL=/bin/bash", "DYLD_FALLBACK_LIBRARY_PATH=/Users/chris119/julia_ws/julia-1.9.3/lib/julia:/Users/chris119/julia_ws/julia-1.9.3/lib:/Users/chris119/lib:/usr/local/lib:/lib:/usr/lib" … "OPENBLAS_DEFAULT_NUM_THREADS=1", "Apple_PubSub_Socket_Render=/private/tmp/com.apple.launchd.aF6WLvu9HP/Render", "_CE_CONDA=", "USER=chris119", "CONDA_SHLVL=1", "CONDA_EXE=/opt/anaconda3/bin/conda", "TERM=xterm-256color", "HOME=/Users/chris119", "TERM_PROGRAM_VERSION=421.2", "OPENBLAS_MAIN_FREE=1"]), ProcessSignaled(6)) [0]
│
│ Stacktrace:
│ [1] pipeline_error
│ @ ./process.jl:565 [inlined]
│ [2] run(::Cmd, ::Base.DevNull, ::Vararg{Any}; wait::Bool)
│ @ Base ./process.jl:480
│ [3] run
│ @ ./process.jl:477 [inlined]
│ [4] link_image (repeats 2 times)
│ @ ./linking.jl:166 [inlined]
│ [5] compilecache(pkg::Base.PkgId, path::String, internal_stderr::IO, internal_stdout::IO, keep_loaded_modules::Bool)
│ @ Base ./loading.jl:2206
│ [6] #249
│ @ ~/julia_ws/julia-1.9.3/share/julia/stdlib/v1.9/Pkg/src/API.jl:1438 [inlined]
│ [7] withenv(f::Pkg.API.var"#249#280"{IOBuffer, String, Base.PkgId}, keyvals::Pair{String, String})
│ @ Base ./env.jl:197
│ [8] (::Pkg.API.var"#248#279"{IOBuffer, String, Base.PkgId})()
│ @ Pkg.API ~/julia_ws/julia-1.9.3/share/julia/stdlib/v1.9/Pkg/src/API.jl:1436
│ [9] with_logstate(f::Function, logstate::Any)
│ @ Base.CoreLogging ./logging.jl:514
│ [10] with_logger
│ @ ./logging.jl:626 [inlined]
│ [11] macro expansion
│ @ ./timing.jl:393 [inlined]
│ [12] macro expansion
│ @ ~/julia_ws/julia-1.9.3/share/julia/stdlib/v1.9/Pkg/src/API.jl:1434 [inlined]
│ [13] (::Pkg.API.var"#245#276"{Bool, Bool, Pkg.Types.Context, Vector{Task}, Dict{Base.PkgId, String}, Dict{Base.PkgId, IOBuffer}, Pkg.API.var"#color_string#266", Base.Event, Base.Event, ReentrantLock, Vector{Base.PkgId}, Vector{Base.PkgId}, Dict{Base.PkgId, String}, Vector{Base.PkgId}, Vector{Base.PkgId}, Dict{Base.PkgId, Bool}, Dict{Base.PkgId, Base.Event}, Dict{Base.PkgId, Bool}, Vector{Pkg.Types.PackageSpec}, Dict{Base.PkgId, String}, Dict{Tuple{Base.PkgId, UInt128, String, String}, Bool}, Vector{Base.PkgId}, Bool, Base.TTY, Base.Semaphore, String, Vector{String}, Vector{Base.PkgId}, Base.PkgId})()
│ @ Pkg.API ./task.jl:514
└ @ Pkg.API ~/julia_ws/julia-1.9.3/share/julia/stdlib/v1.9/Pkg/src/API.jl:1302
┌ Error: Pkg.precompile error
│ exception =
│ failed process: Process(setenv(`/Users/chris119/julia_ws/julia-1.9.3/libexec/julia/lld -flavor darwin -arch x86_64 -undefined dynamic_lookup -platform_version macos 13.3.1 13.3 '' -dylib -o /Users/chris119/.julia/compiled/v1.9/Functors/jl_MQZffl -all_load /Users/chris119/.julia/compiled/v1.9/Functors/jl_3WVI6t '' -L/Users/chris119/julia_ws/julia-1.9.3/lib -L/Users/chris119/julia_ws/julia-1.9.3/lib/julia -L/Users/chris119/julia_ws/julia-1.9.3/lib -ljulia -ljulia-internal`,["XPC_FLAGS=0x0", "_CE_M=", "PATH=/Users/chris119/julia_ws/julia-1.9.3/libexec/julia:/opt/anaconda3/bin:/opt/anaconda3/condabin:/Library/Frameworks/Python.framework/Versions/3.8/bin:/usr/local/bin:/usr/bin:/bin:/usr/sbin:/sbin:/Library/TeX/texbin", "CONDA_PROMPT_MODIFIER=(base) ", "PWD=/Users/chris119", "XPC_SERVICE_NAME=0", "TERM_PROGRAM=Apple_Terminal", "CONDA_PYTHON_EXE=/opt/anaconda3/bin/python", "SHELL=/bin/bash", "DYLD_FALLBACK_LIBRARY_PATH=/Users/chris119/julia_ws/julia-1.9.3/lib/julia:/Users/chris119/julia_ws/julia-1.9.3/lib:/Users/chris119/lib:/usr/local/lib:/lib:/usr/lib" … "OPENBLAS_DEFAULT_NUM_THREADS=1", "Apple_PubSub_Socket_Render=/private/tmp/com.apple.launchd.aF6WLvu9HP/Render", "_CE_CONDA=", "USER=chris119", "CONDA_SHLVL=1", "CONDA_EXE=/opt/anaconda3/bin/conda", "TERM=xterm-256color", "HOME=/Users/chris119", "TERM_PROGRAM_VERSION=421.2", "OPENBLAS_MAIN_FREE=1"]), ProcessSignaled(6)) [0]
│
│ Stacktrace:
│ [1] pipeline_error
│ @ ./process.jl:565 [inlined]
│ [2] run(::Cmd, ::Base.DevNull, ::Vararg{Any}; wait::Bool)
│ @ Base ./process.jl:480
│ [3] run
│ @ ./process.jl:477 [inlined]
│ [4] link_image (repeats 2 times)
│ @ ./linking.jl:166 [inlined]
│ [5] compilecache(pkg::Base.PkgId, path::String, internal_stderr::IO, internal_stdout::IO, keep_loaded_modules::Bool)
│ @ Base ./loading.jl:2206
│ [6] #249
│ @ ~/julia_ws/julia-1.9.3/share/julia/stdlib/v1.9/Pkg/src/API.jl:1438 [inlined]
│ [7] withenv(f::Pkg.API.var"#249#280"{IOBuffer, String, Base.PkgId}, keyvals::Pair{String, String})
│ @ Base ./env.jl:197
│ [8] (::Pkg.API.var"#248#279"{IOBuffer, String, Base.PkgId})()
│ @ Pkg.API ~/julia_ws/julia-1.9.3/share/julia/stdlib/v1.9/Pkg/src/API.jl:1436
│ [9] with_logstate(f::Function, logstate::Any)
│ @ Base.CoreLogging ./logging.jl:514
│ [10] with_logger
│ @ ./logging.jl:626 [inlined]
│ [11] macro expansion
│ @ ./timing.jl:393 [inlined]
│ [12] macro expansion
│ @ ~/julia_ws/julia-1.9.3/share/julia/stdlib/v1.9/Pkg/src/API.jl:1434 [inlined]
│ [13] (::Pkg.API.var"#245#276"{Bool, Bool, Pkg.Types.Context, Vector{Task}, Dict{Base.PkgId, String}, Dict{Base.PkgId, IOBuffer}, Pkg.API.var"#color_string#266", Base.Event, Base.Event, ReentrantLock, Vector{Base.PkgId}, Vector{Base.PkgId}, Dict{Base.PkgId, String}, Vector{Base.PkgId}, Vector{Base.PkgId}, Dict{Base.PkgId, Bool}, Dict{Base.PkgId, Base.Event}, Dict{Base.PkgId, Bool}, Vector{Pkg.Types.PackageSpec}, Dict{Base.PkgId, String}, Dict{Tuple{Base.PkgId, UInt128, String, String}, Bool}, Vector{Base.PkgId}, Bool, Base.TTY, Base.Semaphore, String, Vector{String}, Vector{Base.PkgId}, Base.PkgId})()
│ @ Pkg.API ./task.jl:514
└ @ Pkg.API ~/julia_ws/julia-1.9.3/share/julia/stdlib/v1.9/Pkg/src/API.jl:1302
dyld: Library not loaded: @rpath/libLLVM.dylib
Referenced from: /Users/chris119/julia_ws/julia-1.9.3/libexec/julia/lld
Reason: image not found
┌ Error: Pkg.precompile error
│ exception =
│ failed process: Process(setenv(`/Users/chris119/julia_ws/julia-1.9.3/libexec/julia/lld -flavor darwin -arch x86_64 -undefined dynamic_lookup -platform_version macos 13.3.1 13.3 '' -dylib -o /Users/chris119/.julia/compiled/v1.9/MacroTools/jl_8Bzzdd -all_load /Users/chris119/.julia/compiled/v1.9/MacroTools/jl_NspnnM '' -L/Users/chris119/julia_ws/julia-1.9.3/lib -L/Users/chris119/julia_ws/julia-1.9.3/lib/julia -L/Users/chris119/julia_ws/julia-1.9.3/lib -ljulia -ljulia-internal`,["XPC_FLAGS=0x0", "_CE_M=", "PATH=/Users/chris119/julia_ws/julia-1.9.3/libexec/julia:/opt/anaconda3/bin:/opt/anaconda3/condabin:/Library/Frameworks/Python.framework/Versions/3.8/bin:/usr/local/bin:/usr/bin:/bin:/usr/sbin:/sbin:/Library/TeX/texbin", "CONDA_PROMPT_MODIFIER=(base) ", "PWD=/Users/chris119", "XPC_SERVICE_NAME=0", "TERM_PROGRAM=Apple_Terminal", "CONDA_PYTHON_EXE=/opt/anaconda3/bin/python", "SHELL=/bin/bash", "DYLD_FALLBACK_LIBRARY_PATH=/Users/chris119/julia_ws/julia-1.9.3/lib/julia:/Users/chris119/julia_ws/julia-1.9.3/lib:/Users/chris119/lib:/usr/local/lib:/lib:/usr/lib" … "OPENBLAS_DEFAULT_NUM_THREADS=1", "Apple_PubSub_Socket_Render=/private/tmp/com.apple.launchd.aF6WLvu9HP/Render", "_CE_CONDA=", "USER=chris119", "CONDA_SHLVL=1", "CONDA_EXE=/opt/anaconda3/bin/conda", "TERM=xterm-256color", "HOME=/Users/chris119", "TERM_PROGRAM_VERSION=421.2", "OPENBLAS_MAIN_FREE=1"]), ProcessSignaled(6)) [0]
│
│ Stacktrace:
│ [1] pipeline_error
│ @ ./process.jl:565 [inlined]
│ [2] run(::Cmd, ::Base.DevNull, ::Vararg{Any}; wait::Bool)
│ @ Base ./process.jl:480
│ [3] run
│ @ ./process.jl:477 [inlined]
│ [4] link_image (repeats 2 times)
│ @ ./linking.jl:166 [inlined]
│ [5] compilecache(pkg::Base.PkgId, path::String, internal_stderr::IO, internal_stdout::IO, keep_loaded_modules::Bool)
│ @ Base ./loading.jl:2206
│ [6] #249
│ @ ~/julia_ws/julia-1.9.3/share/julia/stdlib/v1.9/Pkg/src/API.jl:1438 [inlined]
│ [7] withenv(f::Pkg.API.var"#249#280"{IOBuffer, String, Base.PkgId}, keyvals::Pair{String, String})
│ @ Base ./env.jl:197
│ [8] (::Pkg.API.var"#248#279"{IOBuffer, String, Base.PkgId})()
│ @ Pkg.API ~/julia_ws/julia-1.9.3/share/julia/stdlib/v1.9/Pkg/src/API.jl:1436
│ [9] with_logstate(f::Function, logstate::Any)
│ @ Base.CoreLogging ./logging.jl:514
│ [10] with_logger
│ @ ./logging.jl:626 [inlined]
│ [11] macro expansion
│ @ ./timing.jl:393 [inlined]
│ [12] macro expansion
│ @ ~/julia_ws/julia-1.9.3/share/julia/stdlib/v1.9/Pkg/src/API.jl:1434 [inlined]
│ [13] (::Pkg.API.var"#245#276"{Bool, Bool, Pkg.Types.Context, Vector{Task}, Dict{Base.PkgId, String}, Dict{Base.PkgId, IOBuffer}, Pkg.API.var"#color_string#266", Base.Event, Base.Event, ReentrantLock, Vector{Base.PkgId}, Vector{Base.PkgId}, Dict{Base.PkgId, String}, Vector{Base.PkgId}, Vector{Base.PkgId}, Dict{Base.PkgId, Bool}, Dict{Base.PkgId, Base.Event}, Dict{Base.PkgId, Bool}, Vector{Pkg.Types.PackageSpec}, Dict{Base.PkgId, String}, Dict{Tuple{Base.PkgId, UInt128, String, String}, Bool}, Vector{Base.PkgId}, Bool, Base.TTY, Base.Semaphore, String, Vector{String}, Vector{Base.PkgId}, Base.PkgId})()
│ @ Pkg.API ./task.jl:514
└ @ Pkg.API ~/julia_ws/julia-1.9.3/share/julia/stdlib/v1.9/Pkg/src/API.jl:1302
The workaround still works but it is annoying.
Which workaround still works?
If I start Julia with --pkgimages=no the packages can be compiled as usual.
Reopening since this remains an issue. The error looks similar to what is reported in https://discourse.julialang.org/t/vscode-julia-server-fails-precompilation/98865
Hi all, sorry I no longer have access to the Intel machine from the original post, cannot help with the troubleshooting.
I encountered this same issue with a new installation of Julia 1.9.3 on Intel Mac running 10.14.6. No packages or updates could be installed due to the same pre-compiler failure associated with the failed process: Process(setenv ...). The --pkgimages=no option workaround did work, but I decided to downgrade to 1.8.5 to avoid this issue. I would be happy to reinstall the latest version and provide additional information/tests if it could help - this issue is definitely a barrier to entry.
If --pkgimages=no
did not work, then there is likely another issue. Could you provide the full error?
Sorry for the confusion, the --pkimages=no option did work, I just voluntarily downgraded to avoid having to include that option every time.
Could you post the output of versioninfo()
?
Absolutely, with reinstalled 1.9.3:
julia> versioninfo()
Julia Version 1.9.3
Commit bed2cd540a1 (2023-08-24 14:43 UTC)
Build Info:
Official https://julialang.org/ release
Platform Info:
OS: macOS (x86_64-apple-darwin22.4.0)
CPU: 4 × Intel(R) Core(TM) i5-5287U CPU @ 2.90GHz
WORD_SIZE: 64
LIBM: libopenlibm
LLVM: libLLVM-14.0.6 (ORCJIT, broadwell)
Threads: 1 on 4 virtual cores
Here is the error message, similar to the two previous examples:
(@v1.9) pkg> add CSV
Resolving package versions...
Updating `~/.julia/environments/v1.9/Project.toml`
[336ed68f] + CSV v0.10.11
Updating `~/.julia/environments/v1.9/Manifest.toml`
[336ed68f] + CSV v0.10.11
[944b1d66] + CodecZlib v0.7.3
[34da2185] + Compat v4.10.0
[9a962f9c] + DataAPI v1.15.0
[e2d170a0] + DataValueInterfaces v1.0.0
[48062228] + FilePathsBase v0.9.21
[842dd82b] + InlineStrings v1.4.0
[82899510] + IteratorInterfaceExtensions v1.0.0
[bac558e1] + OrderedCollections v1.6.2
[69de0a69] + Parsers v2.8.0
[2dfb63ee] + PooledArrays v1.4.3
[aea7be01] + PrecompileTools v1.2.0
[21216c6a] + Preferences v1.4.1
[91c51154] + SentinelArrays v1.4.1
[3783bdb8] + TableTraits v1.0.1
[bd369af6] + Tables v1.11.1
[3bb67fe8] + TranscodingStreams v0.10.2
[ea10d353] + WeakRefStrings v1.4.2
[76eceee3] + WorkerUtilities v1.6.1
[56f22d72] + Artifacts
[2a0f44e3] + Base64
[ade2ca70] + Dates
[9fa8497b] + Future
[b77e0a4c] + InteractiveUtils
[8f399da3] + Libdl
[37e2e46d] + LinearAlgebra
[56ddb016] + Logging
[d6f4376e] + Markdown
[a63ad114] + Mmap
[de0858da] + Printf
[9a3f8284] + Random
[ea8e919c] + SHA v0.7.0
[9e88b42a] + Serialization
[fa267f1f] + TOML v1.0.3
[8dfed614] + Test
[cf7118a7] + UUIDs
[4ec0a83e] + Unicode
[e66e0078] + CompilerSupportLibraries_jll v1.0.5+0
[4536629a] + OpenBLAS_jll v0.3.21+4
[83775a58] + Zlib_jll v1.2.13+0
[8e850b90] + libblastrampoline_jll v5.8.0+0
Precompiling project...
Progress [> ] 0/22
◑ DataValueInterfaces
◒ IteratorInterfaceExtensions
◓ SentinelArrays
◓ Compat
◓ WorkerUtilities
dyld: Library not loaded: @rpath/libLLVM.dylib
Referenced from: /Applications/Julia-1.9.app/Contents/Resources/julia/libexec/ Progress [> ] 0/22
◒ DataValueInterfaces
◐ IteratorInterfaceExtensions
◑ SentinelArrays
◐ DataValueInterfaces
◓ IteratorInterfaceExtensions
◒ SentinelArrays
◒ Compat
◒ WorkerUtilities
◐ DataAPI
◐ PooledArrays
◒ CompilerSupportLibraries_jll
◒ OrderedCollections
◐ TranscodingStreams
◐ Preferences
◐ TranscodingStreams → TestExt
◒ CodecZlib
◐ PrecompileTools
◐ Parsers
◓ InlineStrings
◒ WeakRefStrings
dyld: Library not loaded: @rpath/libLLVM.dylib
Referenced from: /Applications/Julia-1.9.app/Contents/Resources/julia/libexec/julia/lld
Reason: image not found
┌ Error: Pkg.precompile error
│ exception =
│ failed process: Process(setenv(`/Applications/Julia-1.9.app/Contents/Resources/julia/libexec/julia/lld -flavor darwin -arch x86_64 -undefined dynamic_lookup -platform_version macos 13.3.1 13.3 '' -dylib -o /Users/awpsoras/.julia/compiled/v1.9/DataValueInterfaces/jl_XZgTni -all_load /Users/awpsoras/.julia/compiled/v1.9/DataValueInterfaces/jl_3Uybd9 '' -L/Applications/Julia-1.9.app/Contents/Resources/julia/lib -L/Applications/Julia-1.9.app/Contents/Resources/julia/lib/julia -L/Applications/Julia-1.9.app/Contents/Resources/julia/lib -ljulia -ljulia-internal`,["XPC_FLAGS=0x0", "PATH=/Applications/Julia-1.9.app/Contents/Resources/julia/libexec/julia:/Applications/Julia-1.8.app/Contents/Resources/julia/bin, "OPENBLAS_MAIN_FREE=1"]), ProcessSignaled(6)) [0]
│
│ Stacktrace:
│ [1] pipeline_error
│ @ ./process.jl:565 [inlined]
│ [2] run(::Cmd, ::Base.DevNull, ::Vararg{Any}; wait::Bool)
│ @ Base ./process.jl:480
│ [3] run
│ @ ./process.jl:477 [inlined]
│ [4] link_image (repeats 2 times)
│ @ ./linking.jl:166 [inlined]
│ [5] compilecache(pkg::Base.PkgId, path::String, internal_stderr::IO, internal_stdout::IO, keep_loaded_modules::Bool)
│ @ Base ./loading.jl:2206
│ [6] #249
│ @ /Applications/Julia-1.9.app/Contents/Resources/julia/share/julia/stdlib/v1.9/Pkg/src/API.jl:1438 [inlined]
│ [7] withenv(f::Pkg.API.var"#249#280"{IOBuffer, String, Base.PkgId}, keyvals::Pair{String, String})
│ @ Base ./env.jl:197
│ [8] (::Pkg.API.var"#248#279"{IOBuffer, String, Base.PkgId})()
│ @ Pkg.API /Applications/Julia-1.9.app/Contents/Resources/julia/share/julia/stdlib/v1.9/Pkg/src/API.jl:1436
│ [9] with_logstate(f::Function, logstate::Any)
│ @ Base.CoreLogging ./logging.jl:514
│ [10] with_logger
│ @ ./logging.jl:626 [inlined]
│ [11] macro expansion
│ @ ./timing.jl:393 [inlined]
│ [12] macro expansion
│ @ /Applications/Julia-1.9.app/Contents/Resources/julia/share/julia/stdlib/v1.9/Pkg/src/API.jl:1434 [inlined]
│ [13] (::Pkg.API.var"#245#276"{Bool, Bool, Pkg.Types.Context, Vector{Task}, Dict{Base.PkgId, String}, Dict{Base.PkgId, IOBuffer}, Pkg.API.var"#color_string#266", Base.Event, Base.Event, ReentrantLock, Vector{Base.PkgId}, Vector{Base.PkgId}, Dict{Base.PkgId, String}, Vector{Base.PkgId}, Vector{Base.PkgId}, Dict{Base.PkgId, Bool}, Dict{Base.PkgId, Base.Event}, Dict{Base.PkgId, Bool}, Vector{Pkg.Types.PackageSpec}, Dict{Base.PkgId, String}, Dict{Tuple{Base.PkgId, UInt128, String, String}, Bool}, Vector{Base.PkgId}, Bool, Base.TTY, Base.Semaphore, String, Vector{String}, Vector{Base.PkgId}, Base.PkgId})()
│ @ Pkg.API ./task.jl:514
└ @ Pkg.API /Applications/Julia-1.9.app/Contents/Resources/julia/share/julia/stdlib/v1.9/Pkg/src/API.jl:1302
┌ Error: Pkg.precompile error
│ exception =
│ failed process: Process(setenv(`/Applications/Julia-1.9.app/Contents/Resources/julia/libexec/julia/lld -flavor darwin -arch x86_64 -undefined dynamic_lookup -platform_version macos 13.3.1 13.3 '' -dylib -o /Users/awpsoras/.julia/compiled/v1.9/IteratorInterfaceExtensions/jl_q06Z2I -all_load /Users/awpsoras/.julia/compiled/v1.9/IteratorInterfaceExtensions/jl_cWamXA '' -L/Applications/Julia-1.9.app/Contents/Resources/julia/lib -L/Applications/Julia-1.9.app/Contents/Resources/julia/lib/julia -L/Applications/Julia-1.9.app/Contents/Resources/julia/lib -ljulia -ljulia-internal`,["XPC_FLAGS=0x0", "PATH=/Applications/Julia-1.9.app/Contents/Resources/julia/libexec/julia:/Applications/Julia-1.8.app/Contents/Resources/julia/bin, "OPENBLAS_MAIN_FREE=1"]), ProcessSignaled(6)) [0]
│
│ Stacktrace:
│ [1] pipeline_error
│ @ ./process.jl:565 [inlined]
│ [2] run(::Cmd, ::Base.DevNull, ::Vararg{Any}; wait::Bool)
│ @ Base ./process.jl:480
│ [3] run
│ @ ./process.jl:477 [inlined]
│ [4] link_image (repeats 2 times)
│ @ ./linking.jl:166 [inlined]
│ [5] compilecache(pkg::Base.PkgId, path::String, internal_stderr::IO, internal_stdout::IO, keep_loaded_modules::Bool)
│ @ Base ./loading.jl:2206
│ [6] #249
│ @ /Applications/Julia-1.9.app/Contents/Resources/julia/share/julia/stdlib/v1.9/Pkg/src/API.jl:1438 [inlined]
│ [7] withenv(f::Pkg.API.var"#249#280"{IOBuffer, String, Base.PkgId}, keyvals::Pair{String, String})
│ @ Base ./env.jl:197
│ [8] (::Pkg.API.var"#248#279"{IOBuffer, String, Base.PkgId})()
│ @ Pkg.API /Applications/Julia-1.9.app/Contents/Resources/julia/share/julia/stdlib/v1.9/Pkg/src/API.jl:1436
│ [9] with_logstate(f::Function, logstate::Any)
│ @ Base.CoreLogging ./logging.jl:514
│ [10] with_logger
│ @ ./logging.jl:626 [inlined]
│ [11] macro expansion
│ @ ./timing.jl:393 [inlined]
│ [12] macro expansion
│ @ /Applications/Julia-1.9.app/Contents/Resources/julia/share/julia/stdlib/v1.9/Pkg/src/API.jl:1434 [inlined]
│ [13] (::Pkg.API.var"#245#276"{Bool, Bool, Pkg.Types.Context, Vector{Task}, Dict{Base.PkgId, String}, Dict{Base.PkgId, IOBuffer}, Pkg.API.var"#color_string#266", Base.Event, Base.Event, ReentrantLock, Vector{Base.PkgId}, Vector{Base.PkgId}, Dict{Base.PkgId, String}, Vector{Base.PkgId}, Vector{Base.PkgId}, Dict{Base.PkgId, Bool}, Dict{Base.PkgId, Base.Event}, Dict{Base.PkgId, Bool}, Vector{Pkg.Types.PackageSpec}, Dict{Base.PkgId, String}, Dict{Tuple{Base.PkgId, UInt128, String, String}, Bool}, Vector{Base.PkgId}, Bool, Base.TTY, Base.Semaphore, String, Vector{String}, Vector{Base.PkgId}, Base.PkgId})()
│ @ Pkg.API ./task.jl:514
└ @ Pkg.API /Applications/Julia-1.9.app/Contents/Resources/julia/share/julia/stdlib/v1.9/Pkg/src/API.jl:1302
┌ Error: Pkg.precompile error
│ exception =
│ failed process: Process(setenv(`/Applications/Julia-1.9.app/Contents/Resources/julia/libexec/julia/lld -flavor darwin -arch x86_64 -undefined dynamic_lookup -platform_version macos 13.3.1 13.3 '' -dylib -o /Users/awpsoras/.julia/compiled/v1.9/WorkerUtilities/jl_74xNyQ -all_load /Users/awpsoras/.julia/compiled/v1.9/WorkerUtilities/jl_fCL7RS '' -L/Applications/Julia-1.9.app/Contents/Resources/julia/lib -L/Applications/Julia-1.9.app/Contents/Resources/julia/lib/julia -L/Applications/Julia-1.9.app/Contents/Resources/julia/lib -ljulia -ljulia-internal`,["XPC_FLAGS=0x0", "PATH=/Applications/Julia-1.9.app/Contents/Resources/julia/libexec/julia:/Applications/Julia-1.8.app/Contents/Resources/julia/bin, "OPENBLAS_MAIN_FREE=1"]), ProcessSignaled(6)) [0]
│
│ Stacktrace:
│ [1] pipeline_error
│ @ ./process.jl:565 [inlined]
│ [2] run(::Cmd, ::Base.DevNull, ::Vararg{Any}; wait::Bool)
│ @ Base ./process.jl:480
│ [3] run
│ @ ./process.jl:477 [inlined]
│ [4] link_image (repeats 2 times)
│ @ ./linking.jl:166 [inlined]
│ [5] compilecache(pkg::Base.PkgId, path::String, internal_stderr::IO, internal_stdout::IO, keep_loaded_modules::Bool)
│ @ Base ./loading.jl:2206
│ [6] #249
│ @ /Applications/Julia-1.9.app/Contents/Resources/julia/share/julia/stdlib/v1.9/Pkg/src/API.jl:1438 [inlined]
│ [7] withenv(f::Pkg.API.var"#249#280"{IOBuffer, String, Base.PkgId}, keyvals::Pair{String, String})
│ @ Base ./env.jl:197
│ [8] (::Pkg.API.var"#248#279"{IOBuffer, String, Base.PkgId})()
│ @ Pkg.API /Applications/Julia-1.9.app/Contents/Resources/julia/share/julia/stdlib/v1.9/Pkg/src/API.jl:1436
│ [9] with_logstate(f::Function, logstate::Any)
│ @ Base.CoreLogging ./logging.jl:514
│ [10] with_logger
│ @ ./logging.jl:626 [inlined]
│ [11] macro expansion
│ @ ./timing.jl:393 [inlined]
│ [12] macro expansion
│ @ /Applications/Julia-1.9.app/Contents/Resources/julia/share/julia/stdlib/v1.9/Pkg/src/API.jl:1434 [inlined]
│ [13] (::Pkg.API.var"#245#276"{Bool, Bool, Pkg.Types.Context, Vector{Task}, Dict{Base.PkgId, String}, Dict{Base.PkgId, IOBuffer}, Pkg.API.var"#color_string#266", Base.Event, Base.Event, ReentrantLock, Vector{Base.PkgId}, Vector{Base.PkgId}, Dict{Base.PkgId, String}, Vector{Base.PkgId}, Vector{Base.PkgId}, Dict{Base.PkgId, Bool}, Dict{Base.PkgId, Base.Event}, Dict{Base.PkgId, Bool}, Vector{Pkg.Types.PackageSpec}, Dict{Base.PkgId, String}, Dict{Tuple{Base.PkgId, UInt128, String, String}, Bool}, Vector{Base.PkgId}, Bool, Base.TTY, Base.Semaphore, String, Vector{String}, Vector{Base.PkgId}, Base.PkgId})()
│ @ Pkg.API ./task.jl:514
└ @ Pkg.API /Applications/Julia-1.9.app/Contents/Resources/julia/share/julia/stdlib/v1.9/Pkg/src/API.jl:1302
┌ Error: Pkg.precompile error
│ exception =
│ failed process: Process(setenv(`/Applications/Julia-1.9.app/Contents/Resources/julia/libexec/julia/lld -flavor darwin -arch x86_64 -undefined dynamic_lookup -platform_version macos 13.3.1 13.3 '' -dylib -o /Users/awpsoras/.julia/compiled/v1.9/Compat/jl_k8MNDE -all_load /Users/awpsoras/.julia/compiled/v1.9/Compat/jl_Jj93ig '' -L/Applications/Julia-1.9.app/Contents/Resources/julia/lib -L/Applications/Julia-1.9.app/Contents/Resources/julia/lib/julia -L/Applications/Julia-1.9.app/Contents/Resources/julia/lib -ljulia -ljulia-internal`,["XPC_FLAGS=0x0", "PATH=/Applications/Julia-1.9.app/Contents/Resources/julia/libexec/julia:/Applications/Julia-1.8.app/Contents/Resources/julia/bin, "OPENBLAS_MAIN_FREE=1"]), ProcessSignaled(6)) [0]
│
│ Stacktrace:
│ [1] pipeline_error
│ @ ./process.jl:565 [inlined]
│ [2] run(::Cmd, ::Base.DevNull, ::Vararg{Any}; wait::Bool)
│ @ Base ./process.jl:480
│ [3] run
│ @ ./process.jl:477 [inlined]
│ [4] link_image (repeats 2 times)
│ @ ./linking.jl:166 [inlined]
│ [5] compilecache(pkg::Base.PkgId, path::String, internal_stderr::IO, internal_stdout::IO, keep_loaded_modules::Bool)
│ @ Base ./loading.jl:2206
│ [6] #249
│ @ /Applications/Julia-1.9.app/Contents/Resources/julia/share/julia/stdlib/v1.9/Pkg/src/API.jl:1438 [inlined]
│ [7] withenv(f::Pkg.API.var"#249#280"{IOBuffer, String, Base.PkgId}, keyvals::Pair{String, String})
│ @ Base ./env.jl:197
│ [8] (::Pkg.API.var"#248#279"{IOBuffer, String, Base.PkgId})()
│ @ Pkg.API /Applications/Julia-1.9.app/Contents/Resources/julia/share/julia/stdlib/v1.9/Pkg/src/API.jl:1436
│ [9] with_logstate(f::Function, logstate::Any)
│ @ Base.CoreLogging ./logging.jl:514
│ [10] with_logger
│ @ ./logging.jl:626 [inlined]
│ [11] macro expansion
│ @ ./timing.jl:393 [inlined]
│ [12] macro expansion
│ @ /Applications/Julia-1.9.app/Contents/Resources/julia/share/julia/stdlib/v1.9/Pkg/src/API.jl:1434 [inlined]
│ [13] (::Pkg.API.var"#245#276"{Bool, Bool, Pkg.Types.Context, Vector{Task}, Dict{Base.PkgId, String}, Dict{Base.PkgId, IOBuffer}, Pkg.API.var"#color_string#266", Base.Event, Base.Event, ReentrantLock, Vector{Base.PkgId}, Vector{Base.PkgId}, Dict{Base.PkgId, String}, Vector{Base.PkgId}, Vector{Base.PkgId}, Dict{Base.PkgId, Bool}, Dict{Base.PkgId, Base.Event}, Dict{Base.PkgId, Bool}, Vector{Pkg.Types.PackageSpec}, Dict{Base.PkgId, String}, Dict{Tuple{Base.PkgId, UInt128, String, String}, Bool}, Vector{Base.PkgId}, Bool, Base.TTY, Base.Semaphore, String, Vector{String}, Vector{Base.PkgId}, Base.PkgId})()
│ @ Pkg.API ./task.jl:514
└ @ Pkg.API /Applications/Julia-1.9.app/Contents/Resources/julia/share/julia/stdlib/v1.9/Pkg/src/API.jl:1302
(@v1.9) pkg> dyld: Library not loaded: @rpath/libLLVM.dylib
Referenced from: /Applications/Julia-1.9.app/Contents/Resources/julia/libexec/julia/lld
Reason: image not found
┌ Error: Pkg.precompile error
│ exception =
│ failed process: Process(setenv(`/Applications/Julia-1.9.app/Contents/Resources/julia/libexec/julia/lld -flavor darwin -arch x86_64 -undefined dynamic_lookup -platform_version macos 13.3.1 13.3 '' -dylib -o /Users/awpsoras/.julia/compiled/v1.9/SentinelArrays/jl_B9iAqn -all_load /Users/awpsoras/.julia/compiled/v1.9/SentinelArrays/jl_ySAmfN '' -L/Applications/Julia-1.9.app/Contents/Resources/julia/lib -L/Applications/Julia-1.9.app/Contents/Resources/julia/lib/julia -L/Applications/Julia-1.9.app/Contents/Resources/julia/lib -ljulia -ljulia-internal`,["XPC_FLAGS=0x0", "PATH=/Applications/Julia-1.9.app/Contents/Resources/julia/libexec/julia:/Applications/Julia-1.8.app/Contents/Resources/julia/bin, "OPENBLAS_MAIN_FREE=1"]), ProcessSignaled(6)) [0]
│
│ Stacktrace:
│ [1] pipeline_error
│ @ ./process.jl:565 [inlined]
│ [2] run(::Cmd, ::Base.DevNull, ::Vararg{Any}; wait::Bool)
│ @ Base ./process.jl:480
│ [3] run
│ @ ./process.jl:477 [inlined]
│ [4] link_image (repeats 2 times)
│ @ ./linking.jl:166 [inlined]
│ [5] compilecache(pkg::Base.PkgId, path::String, internal_stderr::IO, internal_stdout::IO, keep_loaded_modules::Bool)
│ @ Base ./loading.jl:2206
│ [6] #249
│ @ /Applications/Julia-1.9.app/Contents/Resources/julia/share/julia/stdlib/v1.9/Pkg/src/API.jl:1438 [inlined]
│ [7] withenv(f::Pkg.API.var"#249#280"{IOBuffer, String, Base.PkgId}, keyvals::Pair{String, String})
│ @ Base ./env.jl:197
│ [8] (::Pkg.API.var"#248#279"{IOBuffer, String, Base.PkgId})()
│ @ Pkg.API /Applications/Julia-1.9.app/Contents/Resources/julia/share/julia/stdlib/v1.9/Pkg/src/API.jl:1436
│ [9] with_logstate(f::Function, logstate::Any)
│ @ Base.CoreLogging ./logging.jl:514
│ [10] with_logger
│ @ ./logging.jl:626 [inlined]
│ [11] macro expansion
│ @ ./timing.jl:393 [inlined]
│ [12] macro expansion
│ @ /Applications/Julia-1.9.app/Contents/Resources/julia/share/julia/stdlib/v1.9/Pkg/src/API.jl:1434 [inlined]
│ [13] (::Pkg.API.var"#245#276"{Bool, Bool, Pkg.Types.Context, Vector{Task}, Dict{Base.PkgId, String}, Dict{Base.PkgId, IOBuffer}, Pkg.API.var"#color_string#266", Base.Event, Base.Event, ReentrantLock, Vector{Base.PkgId}, Vector{Base.PkgId}, Dict{Base.PkgId, String}, Vector{Base.PkgId}, Vector{Base.PkgId}, Dict{Base.PkgId, Bool}, Dict{Base.PkgId, Base.Event}, Dict{Base.PkgId, Bool}, Vector{Pkg.Types.PackageSpec}, Dict{Base.PkgId, String}, Dict{Tuple{Base.PkgId, UInt128, String, String}, Bool}, Vector{Base.PkgId}, Bool, Base.TTY, Base.Semaphore, String, Vector{String}, Vector{Base.PkgId}, Base.PkgId})()
│ @ Pkg.API ./task.jl:514
└ @ Pkg.API /Applications/Julia-1.9.app/Contents/Resources/julia/share/julia/stdlib/v1.9/Pkg/src/API.jl:1302
Reposting from https://github.com/JuliaLang/julia/issues/49718 since it seems to be resolved for other users in that thread.
I downloaded .dmg file from julialang, I get these errors "dyld: Library not loaded: @rpath/libLLVM.dylib" when I try to install any packages, for example I tried ProgressMeter below. I just redownloaded v1.8.5 and reinstalled all packages on there, everything is working fine. For v1.9, I have tried clearing the directories
.julia/compiled/v1.9
and.julia/environment/v1.9
but it didn't help.