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

lld: error: cannot open . . . /jl_LDNmpu: No such file or directory #52556

Open
ryofurue opened this issue Dec 16, 2023 · 1 comment
Open

lld: error: cannot open . . . /jl_LDNmpu: No such file or directory #52556

ryofurue opened this issue Dec 16, 2023 · 1 comment

Comments

@ryofurue
Copy link

The error can be reproduced by the following simple code. I'm on macOS 14.2 and Julia 1.9.4 . It's an Intel machine.

Before running the code, create an empty file like $ touch Tmptmp.jl :

push!(LOAD_PATH,pwd())
import Tmptmp # An empty file Tmptmp.jl exists.

The error message is:

WARNING: --output requested, but no modules defined during run
lld: error: cannot open /Users/furue/.julia/compiled/v1.9/jl_LDNmpu: No such file or directory
ERROR: LoadError: failed process: Process(setenv(`/Users/furue/.julia/juliaup/julia-1.9.4+0.x64.apple.darwin14/libexec/julia/lld -flavor darwin -arch x86_64 -undefined dynamic_lookup -platform_version macos 13.3.1 13.3 '' -dylib -o /Users/furue/.julia/compiled/v1.9/jl_6fetzf -all_load /Users/furue/.julia/compiled/v1.9/jl_LDNmpu '' -L/Users/furue/.julia/juliaup/julia-1.9.4+0.x64.apple.darwin14/lib -L/Users/furue/.julia/juliaup/julia-1.9.4+0.x64.apple.darwin14/lib/julia -L/Users/furue/.julia/juliaup/julia-1.9.4+0.x64.apple.darwin14/lib -ljulia -ljulia-internal`,["XPC_FLAGS=0x0", "COMMAND_MODE=unix2003", "PATH=/Users/furue/.julia/juliaup/julia-1.9.4+0.x64.apple.darwin14/libexec/julia:/Users/furue/bin:/Users/furue/.local/bin:/usr/local/opt/ruby/bin:/usr/local/bin:/usr/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:/Library/TeX/texbin:/Applications/iTerm.app/Contents/Resources/utilities:/Users/furue/.ghcup/bin", "PWD=/Users/furue/Dropbox/typhoons/graph", "XPC_SERVICE_NAME=application.com.googlecode.iterm2.95990546.95990567", "TERM_PROGRAM=iTerm.app", "HOMEBREW_PREFIX=/usr/local", "SHELL=/bin/zsh", "DYLD_FALLBACK_LIBRARY_PATH=/Users/furue/.julia/juliaup/julia-1.9.4+0.x64.apple.darwin14/lib/julia:/Users/furue/.julia/juliaup/julia-1.9.4+0.x64.apple.darwin14/lib:/Users/furue/lib:/usr/local/lib:/lib:/usr/lib", "__CF_USER_TEXT_ENCODING=0x1F5:0x0:0x0"  …  "OPENBLAS_DEFAULT_NUM_THREADS=1", "USER=furue", "SECURITYSESSIONID=186a2", "ITERM_SESSION_ID=w0t0p0:2417C0FB-1299-4629-A314-4DEDC1B85B2E", "TERM=xterm-256color", "HOME=/Users/furue", "TERM_PROGRAM_VERSION=3.5.0beta17", "OPENBLAS_MAIN_FREE=1", "COLORTERM=truecolor", "LESS=-g -i -F -M -R -W -X -z-4 -x4"]), ProcessExited(1)) [1]

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] compilecache
    @ ./loading.jl:2167 [inlined]
  [7] _require(pkg::Base.PkgId, env::String)
    @ Base ./loading.jl:1805
  [8] _require_prelocked(uuidkey::Base.PkgId, env::String)
    @ Base ./loading.jl:1660
  [9] macro expansion
    @ ./loading.jl:1648 [inlined]
 [10] macro expansion
    @ ./lock.jl:267 [inlined]
 [11] require(into::Module, mod::Symbol)
    @ Base ./loading.jl:1611
in expression starting at /Users/furue/Dropbox/typhoons/graph/tmp.jl:2
julia> versioninfo()
Julia Version 1.9.4
Commit 8e5136fa297 (2023-11-14 08:46 UTC)
Build Info:
  Official https://julialang.org/ release
Platform Info:
  OS: macOS (x86_64-apple-darwin22.4.0)
  CPU: 8 × Intel(R) Core(TM) i5-8259U CPU @ 2.30GHz
  WORD_SIZE: 64
  LIBM: libopenlibm
  LLVM: libLLVM-14.0.6 (ORCJIT, skylake)
  Threads: 1 on 8 virtual cores

I've installed julia via juliaup, which in turn is installed via brew install juliaup.

@giordano
Copy link
Contributor

What's the problem you want to report exactly? Getting a clearer error message? That has been already fixed by #51635.

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

No branches or pull requests

2 participants