Hi;
Julia has problems now with the Primes package after recent Julia upgrade.
All my Julia stuff is from MacPorts and or from using Julia to add
packages through the Julia REPL.
I assume that this is a Julia problem, not a MacPorts issue, but I
thought I'd bringit up here for comments prior to contacting the Julia
community.
A Julia Rosetta Code task worked previously and now does not.
A partially redacted log output is attached.
Thanks,
Ken Wolcott
Precompiling packages...
ERROR: LoadError: UNHANDLED TASK ERROR: failed process:
Process(setenv(`/opt/local/libexec/julia/lld -flavor darwin -arch arm64
-undefined dynamic_lookup -platform_version macos 26.2 26.2 '' -dylib -o
${HOME}/.julia/compiled/v1.12/IntegerMathUtils/jl_mIpiQM -all_load
${HOME}/.julia/compiled/v1.12/IntegerMathUtils/jl_34ooTH ''
-L/opt/local/lib/julia -L/opt/local/lib -ljulia
-ljulia-internal`,["XPC_FLAGS=0x0",
"PATH=/opt/local/libexec/julia:${HOME}/.cabal/bin:${HOME}/.ghcup/bin:/Applications/oorexx5/bin:/opt/ALIRE/alr-2-2/bin:/opt/gnat-aarch64-darwin-16.0.0-gcc-16-20250921/bin:/opt/local/bin:/opt/local/sbin:/opt/local/bin:/bin:/usr/bin:/sbin:/usr/sbin:${HOME}/bin:/opt/local/bin:/opt/local/sbin:/usr/local/bin:/System/Cryptexes/App/usr/bin:/usr/bin:/bin:/usr/sbin:/sbin:/var/run/com.apple.security.cryptexd/codex.system/bootstrap/usr/local/bin:/var/run/com.apple.security.cryptexd/codex.system/bootstrap/usr/bin:/var/run/com.apple.security.cryptexd/codex.system/bootstrap/usr/appleinternal/bin:/opt/pmk/env/global/bin:/Library/Apple/usr/bin:/Library/TeX/texbin:/Library/Ballerina/bin:/usr/local/git/bin:/Applications/iTerm.app/Contents/Resources/utilities:/Applications/MacPorts/Eiffel_24.05/studio/spec/macosx-armv6/bin:/Applications/MacPorts/Eiffel_24.05/library/gobo/spec/macosx-armv6/bin:/Applications/MacPorts/Eiffel_24.05/tools/spec/macosx-armv6/bin:/opt/local/share/perl6/site/bin:${HOME}/Library/Python/3.14/bin:/opt/dlang/1.41.0/ldc2-1.41.0-osx-arm64/bin:/opt/pike/bin:/opt/pluto/v.0.12.0/bin:/opt/bacon/bin:/opt/icon/bin:/opt/seed7/bin:/opt/dt/bin:/opt/V/v0.4.12/v:/opt/Zig/v0.16.0-dev/bin:/Library/Ballerina/bin:/Applications/Finch/bin:${HOME}/.arturo/bin:${HOME}/.nimble/bin:${HOME}/.raku/bin:${HOME}/.local/bin:/Applications/Racket_v8.12/bin:/opt/Objeck/objeck-lang/bin:/opt/Koka/bin:/opt/Algol68g/3.8.0/bin:/opt/Sidef/bin:/opt/Unicon/bin",
"EDITOR=emacsclient", "XPC_SERVICE_NAME=0", "HISTSIZE=100000",
"DYLD_FALLBACK_LIBRARY_PATH=/opt/local/lib/julia:/opt/local/lib:${HOME}/lib:/usr/local/lib:/lib:/usr/lib",
"__CF_USER_TEXT_ENCODING=0x1F5:0x0:0x0", "HISTFILE=${HOME}/.zsh_history",
"PAPERSIZE=letter", "GIT_EDITOR=emacsclient" …
"TERM_SESSION_ID=w1t0p0:065633B3-ED04-4B99-8402-67A5506A8B9A",
"LC_TERMINAL=iTerm2", "ISE_EIFFEL=/Applications/MacPorts/Eiffel_24.05",
"ITERM_SESSION_ID=w1t0p0:065633B3-ED04-4B99-8402-67A5506A8B9A", "TERM=xterm",
"SAVEHIST=100000", "HOME=${HOME}", "OPENBLAS_MAIN_FREE=1",
"LIBRARY_PATH=/opt/local/lib", "COLORTERM=truecolor"]), ProcessSignaled(9)) [0]
Stacktrace:
[1] pipeline_error
@ ./process.jl:597 [inlined]
[2] run(::Cmd, ::Base.DevNull, ::Vararg{Any}; wait::Bool)
@ Base ./process.jl:512
[3] run
@ ./process.jl:509 [inlined]
[4] link_image (repeats 2 times)
@ ./linking.jl:151 [inlined]
[5] compilecache(pkg::Base.PkgId, path::String, internal_stderr::IO,
internal_stdout::IO, keep_loaded_modules::Bool; flags::Cmd,
cacheflags::Base.CacheFlags, reasons::Dict{String, Int64},
loadable_exts::Nothing)
@ Base ./loading.jl:3236
[6] compilecache
@ ./loading.jl:3189 [inlined]
[7]
(::Base.Precompilation.var"#_precompilepkgs##38#_precompilepkgs##39"{Pipe,
Bool, Dict{Base.PkgId, Base.PkgId}, Dict{Base.PkgId, Vector{Base.PkgId}},
String, Base.PkgId, Base.CacheFlags, Cmd})()
@ Base.Precompilation ./precompilation.jl:1025
[8]
with_logstate(f::Base.Precompilation.var"#_precompilepkgs##38#_precompilepkgs##39"{Pipe,
Bool, Dict{Base.PkgId, Base.PkgId}, Dict{Base.PkgId, Vector{Base.PkgId}},
String, Base.PkgId, Base.CacheFlags, Cmd}, logstate::Base.CoreLogging.LogState)
@ Base.CoreLogging ./logging/logging.jl:542
[9] with_logger
@ ./logging/logging.jl:653 [inlined]
[10] #_precompilepkgs##36
@ ./precompilation.jl:1019 [inlined]
[11]
mkpidlock(f::Base.Precompilation.var"#_precompilepkgs##36#_precompilepkgs##37"{Pipe,
Bool, Dict{Base.PkgId, Base.PkgId}, Dict{Base.PkgId, Vector{Base.PkgId}},
String, Base.PkgId, Base.CacheFlags, Cmd}, at::String, pid::Int32;
kwopts::@Kwargs{stale_age::Int64, wait::Bool})
@ FileWatching.Pidfile
/opt/local/share/julia/stdlib/v1.12/FileWatching/src/pidfile.jl:93
[12] #mkpidlock#7
@ /opt/local/share/julia/stdlib/v1.12/FileWatching/src/pidfile.jl:88
[inlined]
[13] trymkpidlock(::Function, ::Vararg{Any}; kwargs::@Kwargs{stale_age::Int64})
@ FileWatching.Pidfile
/opt/local/share/julia/stdlib/v1.12/FileWatching/src/pidfile.jl:114
[14] #invokelatest_gr#232
@ ./reflection.jl:1297 [inlined]
[15] invokelatest_gr
@ ./reflection.jl:1289 [inlined]
[16]
precompile_pkgs_maybe_cachefile_lock(f::Base.Precompilation.var"#_precompilepkgs##36#_precompilepkgs##37"{Pipe,
Bool, Dict{Base.PkgId, Base.PkgId}, Dict{Base.PkgId, Vector{Base.PkgId}},
String, Base.PkgId, Base.CacheFlags, Cmd}, io::IOContext{IO},
print_lock::ReentrantLock, fancyprint::Bool, pkg_config::Tuple{Base.PkgId,
Pair{Cmd, Base.CacheFlags}}, pkgspidlocked::Dict{Tuple{Base.PkgId, Pair{Cmd,
Base.CacheFlags}}, String}, hascolor::Bool, parallel_limiter::Base.Semaphore,
ignore_loaded::Bool)
@ Base.Precompilation ./precompilation.jl:1216
[17] macro expansion
@ ./timing.jl:461 [inlined]
[18]
(::Base.Precompilation.var"#_precompilepkgs##32#_precompilepkgs##33"{Bool,
Bool, Bool, Bool, Vector{Task}, Dict{Tuple{Base.PkgId, Pair{Cmd,
Base.CacheFlags}}, String}, Dict{Tuple{Base.PkgId, Pair{Cmd, Base.CacheFlags}},
IOBuffer},
Base.Precompilation.var"#handle_interrupt#_precompilepkgs##19"{Base.RefValue{Bool},
String, Base.Event, ReentrantLock, IOContext{IO}}, Base.RefValue{Int64},
Base.RefValue{Int64}, Base.RefValue{Int64}, Base.Event, Base.Event,
ReentrantLock, Vector{Tuple{Base.PkgId, Pair{Cmd, Base.CacheFlags}}},
Dict{Tuple{Base.PkgId, Pair{Cmd, Base.CacheFlags}}, String},
Vector{Tuple{Base.PkgId, Pair{Cmd, Base.CacheFlags}}},
Base.RefValue{Union{Nothing, String}}, Vector{Base.PkgId},
Dict{Tuple{Base.PkgId, Pair{Cmd, Base.CacheFlags}}, Bool},
Dict{Tuple{Base.PkgId, Pair{Cmd, Base.CacheFlags}}, Base.Event},
Dict{Tuple{Base.PkgId, Pair{Cmd, Base.CacheFlags}}, Bool}, Vector{Base.PkgId},
Vector{Base.PkgId},
Base.Precompilation.var"#describe_pkg#_precompilepkgs##1"{Dict{Base.PkgId,
Base.PkgId}, Base.Precompilation.var"#color_string#_precompilepkgs##0"{Bool},
Int64}, Dict{Base.PkgId, Base.PkgId}, Dict{Base.PkgId, Vector{Base.PkgId}},
Dict{Base.PkgId, Vector{String}}, Dict{Tuple{Base.PkgId, UInt128, String,
String}, Bool},
Base.Precompilation.var"#color_string#_precompilepkgs##0"{Bool}, Bool,
IOContext{IO}, Base.Semaphore, Bool, String, Vector{String},
Vector{Base.PkgId}, Base.PkgId, Base.CacheFlags, Cmd, Pair{Cmd,
Base.CacheFlags}, Tuple{Base.PkgId, Pair{Cmd, Base.CacheFlags}}})()
@ Base.Precompilation ./precompilation.jl:1018
failed process: Process(setenv(`/opt/local/libexec/julia/lld -flavor darwin
-arch arm64 -undefined dynamic_lookup -platform_version macos 26.2 26.2 ''
-dylib -o ${HOME}/.julia/compiled/v1.12/IntegerMathUtils/jl_K5a5aS -all_load
${HOME}/.julia/compiled/v1.12/IntegerMathUtils/jl_rEGjtG ''
-L/opt/local/lib/julia -L/opt/local/lib -ljulia
-ljulia-internal`,["XPC_FLAGS=0x0",
"PATH=/opt/local/libexec/julia:${HOME}/.cabal/bin:${HOME}/.ghcup/bin:/Applications/oorexx5/bin:/opt/ALIRE/alr-2-2/bin:/opt/gnat-aarch64-darwin-16.0.0-gcc-16-20250921/bin:/opt/local/bin:/opt/local/sbin:/opt/local/bin:/bin:/usr/bin:/sbin:/usr/sbin:${HOME}/bin:/opt/local/bin:/opt/local/sbin:/usr/local/bin:/System/Cryptexes/App/usr/bin:/usr/bin:/bin:/usr/sbin:/sbin:/var/run/com.apple.security.cryptexd/codex.system/bootstrap/usr/local/bin:/var/run/com.apple.security.cryptexd/codex.system/bootstrap/usr/bin:/var/run/com.apple.security.cryptexd/codex.system/bootstrap/usr/appleinternal/bin:/opt/pmk/env/global/bin:/Library/Apple/usr/bin:/Library/TeX/texbin:/Library/Ballerina/bin:/usr/local/git/bin:/Applications/iTerm.app/Contents/Resources/utilities:/Applications/MacPorts/Eiffel_24.05/studio/spec/macosx-armv6/bin:/Applications/MacPorts/Eiffel_24.05/library/gobo/spec/macosx-armv6/bin:/Applications/MacPorts/Eiffel_24.05/tools/spec/macosx-armv6/bin:/opt/local/share/perl6/site/bin:${HOME}/Library/Python/3.14/bin:/opt/dlang/1.41.0/ldc2-1.41.0-osx-arm64/bin:/opt/pike/bin:/opt/pluto/v.0.12.0/bin:/opt/bacon/bin:/opt/icon/bin:/opt/seed7/bin:/opt/dt/bin:/opt/V/v0.4.12/v:/opt/Zig/v0.16.0-dev/bin:/Library/Ballerina/bin:/Applications/Finch/bin:${HOME}/.arturo/bin:${HOME}/.nimble/bin:${HOME}/.raku/bin:${HOME}/.local/bin:/Applications/Racket_v8.12/bin:/opt/Objeck/objeck-lang/bin:/opt/Koka/bin:/opt/Algol68g/3.8.0/bin:/opt/Sidef/bin:/opt/Unicon/bin",
"EDITOR=emacsclient", "XPC_SERVICE_NAME=0", "HISTSIZE=100000",
"DYLD_FALLBACK_LIBRARY_PATH=/opt/local/lib/julia:/opt/local/lib:${HOME}/lib:/usr/local/lib:/lib:/usr/lib",
"__CF_USER_TEXT_ENCODING=0x1F5:0x0:0x0", "HISTFILE=${HOME}/.zsh_history",
"PAPERSIZE=letter", "GIT_EDITOR=emacsclient" … "LC_TERMINAL=iTerm2",
"JULIA_LOAD_PATH=${HOME}/.julia/environments/v1.12/Project.toml:/opt/local/share/julia/stdlib/v1.12",
"ISE_EIFFEL=/Applications/MacPorts/Eiffel_24.05",
"ITERM_SESSION_ID=w1t0p0:065633B3-ED04-4B99-8402-67A5506A8B9A", "TERM=xterm",
"SAVEHIST=100000", "HOME=${HOME}", "OPENBLAS_MAIN_FREE=1",
"LIBRARY_PATH=/opt/local/lib", "COLORTERM=truecolor"]), ProcessSignaled(9)) [0]
Stacktrace:
[1] pipeline_error
@ ./process.jl:597 [inlined]
[2] run(::Cmd, ::Base.DevNull, ::Vararg{Any}; wait::Bool)
@ Base ./process.jl:512
[3] run
@ ./process.jl:509 [inlined]
[4] link_image (repeats 2 times)
@ ./linking.jl:151 [inlined]
[5] compilecache(pkg::Base.PkgId, path::String, internal_stderr::IO,
internal_stdout::IO, keep_loaded_modules::Bool; flags::Cmd,
cacheflags::Base.CacheFlags, reasons::Dict{String, Int64},
loadable_exts::Nothing)
@ Base ./loading.jl:3236
[6] (::Base.var"#__require_prelocked##0#__require_prelocked##1"{Base.PkgId,
String, Dict{String, Int64}})()
@ Base ./loading.jl:2679
[7]
mkpidlock(f::Base.var"#__require_prelocked##0#__require_prelocked##1"{Base.PkgId,
String, Dict{String, Int64}}, at::String, pid::Int32;
kwopts::@Kwargs{stale_age::Int64, wait::Bool})
@ FileWatching.Pidfile
/opt/local/share/julia/stdlib/v1.12/FileWatching/src/pidfile.jl:93
[8] #mkpidlock#7
@ /opt/local/share/julia/stdlib/v1.12/FileWatching/src/pidfile.jl:88
[inlined]
[9] trymkpidlock(::Function, ::Vararg{Any}; kwargs::@Kwargs{stale_age::Int64})
@ FileWatching.Pidfile
/opt/local/share/julia/stdlib/v1.12/FileWatching/src/pidfile.jl:114
[10] #invokelatest_gr#232
@ ./reflection.jl:1297 [inlined]
[11] invokelatest_gr
@ ./reflection.jl:1289 [inlined]
[12]
maybe_cachefile_lock(f::Base.var"#__require_prelocked##0#__require_prelocked##1"{Base.PkgId,
String, Dict{String, Int64}}, pkg::Base.PkgId, srcpath::String;
stale_age::Int64)
@ Base ./loading.jl:3882
[13] maybe_cachefile_lock
@ ./loading.jl:3879 [inlined]
[14] __require_prelocked(pkg::Base.PkgId, env::String)
@ Base ./loading.jl:2665
[15] _require_prelocked(uuidkey::Base.PkgId, env::String)
@ Base ./loading.jl:2493
[16] macro expansion
@ ./loading.jl:2421 [inlined]
[17] macro expansion
@ ./lock.jl:376 [inlined]
[18] __require(into::Module, mod::Symbol)
@ Base ./loading.jl:2386
[19] require(into::Module, mod::Symbol)
@ Base ./loading.jl:2362
[20] top-level scope
@ ~/.julia/packages/Primes/qiMp0/src/Primes.jl:9
[21] include(mod::Module, _path::String)
@ Base ./Base.jl:306
[22] 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, UInt128}},
source::String)
@ Base ./loading.jl:3024
[23] top-level scope
@ stdin:5
[24] eval(m::Module, e::Any)
@ Core ./boot.jl:489
[25] include_string(mapexpr::typeof(identity), mod::Module, code::String,
filename::String)
@ Base ./loading.jl:2870
[26] include_string
@ ./loading.jl:2880 [inlined]
[27] exec_options(opts::Base.JLOptions)
@ Base ./client.jl:315
[28] _start()
@ Base ./client.jl:550
in expression starting at ${HOME}/.julia/packages/Primes/qiMp0/src/Primes.jl:2
in expression starting at stdin:5
ERROR: LoadError: Failed to precompile Primes
[27ebfcd6-29c5-5fa9-bf4b-fb8fc14df3ae] to
"${HOME}/.julia/compiled/v1.12/Primes/jl_zR4UC2".
Stacktrace:
[1] error(s::String)
@ Base ./error.jl:44
[2] compilecache(pkg::Base.PkgId, path::String, internal_stderr::IO,
internal_stdout::IO, keep_loaded_modules::Bool; flags::Cmd,
cacheflags::Base.CacheFlags, reasons::Dict{String, Int64},
loadable_exts::Nothing)
@ Base ./loading.jl:3311
[3] (::Base.var"#__require_prelocked##0#__require_prelocked##1"{Base.PkgId,
String, Dict{String, Int64}})()
@ Base ./loading.jl:2679
[4]
mkpidlock(f::Base.var"#__require_prelocked##0#__require_prelocked##1"{Base.PkgId,
String, Dict{String, Int64}}, at::String, pid::Int32;
kwopts::@Kwargs{stale_age::Int64, wait::Bool})
@ FileWatching.Pidfile
/opt/local/share/julia/stdlib/v1.12/FileWatching/src/pidfile.jl:93
[5] #mkpidlock#7
@ /opt/local/share/julia/stdlib/v1.12/FileWatching/src/pidfile.jl:88
[inlined]
[6] trymkpidlock(::Function, ::Vararg{Any}; kwargs::@Kwargs{stale_age::Int64})
@ FileWatching.Pidfile
/opt/local/share/julia/stdlib/v1.12/FileWatching/src/pidfile.jl:114
[7] #invokelatest_gr#232
@ ./reflection.jl:1297 [inlined]
[8] invokelatest_gr
@ ./reflection.jl:1289 [inlined]
[9]
maybe_cachefile_lock(f::Base.var"#__require_prelocked##0#__require_prelocked##1"{Base.PkgId,
String, Dict{String, Int64}}, pkg::Base.PkgId, srcpath::String;
stale_age::Int64)
@ Base ./loading.jl:3882
[10] maybe_cachefile_lock
@ ./loading.jl:3879 [inlined]
[11] __require_prelocked(pkg::Base.PkgId, env::String)
@ Base ./loading.jl:2665
[12] _require_prelocked(uuidkey::Base.PkgId, env::String)
@ Base ./loading.jl:2493
[13] macro expansion
@ ./loading.jl:2421 [inlined]
[14] macro expansion
@ ./lock.jl:376 [inlined]
[15] __require(into::Module, mod::Symbol)
@ Base ./loading.jl:2386
[16] require(into::Module, mod::Symbol)
@ Base ./loading.jl:2362
[17] include(mod::Module, _path::String)
@ Base ./Base.jl:306
[18] exec_options(opts::Base.JLOptions)
@ Base ./client.jl:317
[19] _start()
@ Base ./client.jl:550
in expression starting at ./attractive_numbers.jl:3