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

libunwind ld warning during build #53816

Open
IanButterworth opened this issue Mar 22, 2024 · 5 comments
Open

libunwind ld warning during build #53816

IanButterworth opened this issue Mar 22, 2024 · 5 comments
Labels
system:mac Affects only macOS

Comments

@IanButterworth
Copy link
Sponsor Member

IanButterworth commented Mar 22, 2024

After a full clean build I see this ld warning.

Outputting sysimage file...
Output ──────  29.358161 seconds
    LINK usr/lib/julia/sys.dylib
ld: warning: reexported library with install name '@rpath/libunwind.1.dylib' found at '/Users/ian/Documents/GitHub/julia/usr/lib/libunwind.1.0.dylib' couldn't be matched with any parent library and will be linked directly
    JULIA stdlib/release.image

Update: Line numbers fixed by #54032

Then, I assume related, the 2nd & 3rd line numbers are off (possibly others, unchecked)

num_tasks = parse(Int, get(ENV, "JULIA_NUM_PRECOMPILE_TASKS", string(default_num_tasks)))

if path === nothing

Failed to precompile RFFT [3bd9afcd-55df-531a-9b34-dc642dce7b95] to "/Users/ian/.julia/compiled/v1.12/RFFT/jl_Ye0qCB".
Stacktrace:
  [1] error(s::String)
    @ Base ./error.jl:35
  [2] precompilepkgs(pkgs::Vector{…}; internal_call::Bool, strict::Bool, warn_loaded::Bool, timing::Bool, _from_loading::Bool, configs::Pair{…}, io::Base.TTY, fancyprint::Bool)
    @ Base.Precompilation ./precompilation.jl:372
  [3] _require(pkg::Base.PkgId, env::String)
    @ Base ./loading.jl:2291
  [4] __require_prelocked(uuidkey::Base.PkgId, env::String)
    @ Base ./loading.jl:2175
  [5] #invoke_in_world#3
    @ ./essentials.jl:1064 [inlined]
  [6] invoke_in_world
    @ ./essentials.jl:1061 [inlined]
  [7] _require_prelocked(uuidkey::Base.PkgId, env::String)
    @ Base ./loading.jl:2166
  [8] macro expansion
    @ ./loading.jl:58 [inlined]
  [9] macro expansion
    @ ./lock.jl:17 [inlined]
 [10] __require(into::Module, mod::Symbol)
    @ Base ./loading.jl:2063
 [11] #invoke_in_world#3
    @ ./essentials.jl:1064 [inlined]
 [12] invoke_in_world
    @ ./essentials.jl:1061 [inlined]
 [13] require(into::Module, mod::Symbol)
    @ Base ./loading.jl:2056
Some type information was truncated. Use `show(err)` to see complete types.
julia> versioninfo()
Julia Version 1.12.0-DEV.227
Commit 6c22dfd318 (2024-03-22 01:04 UTC)
Platform Info:
  OS: macOS (arm64-apple-darwin23.2.0)
  CPU: 10 × Apple M2 Pro
  WORD_SIZE: 64
  LLVM: libLLVM-16.0.6 (ORCJIT, apple-m2)
Threads: 1 default, 0 interactive, 1 GC (on 6 virtual cores)
@IanButterworth IanButterworth added the system:mac Affects only macOS label Mar 22, 2024
@IanButterworth
Copy link
Sponsor Member Author

I see the ld: warning: reexported library with install name '@rpath/libunwind.1.dylib' error on release-1.11 but not the line number issue

@vtjnash
Copy link
Sponsor Member

vtjnash commented Apr 6, 2024

Usually something like that happens if the unwind info (dSYM) package is not generated correctly from the right source files (even though it should be verified by build id and hashes before getting used, we might be forcing it to use info even if that doesn't precisely match. The debug info is found by a spotlight search on the system)

@IanButterworth
Copy link
Sponsor Member Author

I don't quite follow what should be done about this, but in case it's a useful datapoint I did a fully clean build and the issue remains.

MacOS 14.4.1

@IanButterworth
Copy link
Sponsor Member Author

The incorrect line numbers seems to have been fixed by #54032

@IanButterworth IanButterworth changed the title libunwind ld warning during build and incorrect line numbers in stacktrace libunwind ld warning during build Apr 11, 2024
@shaul-pollak
Copy link

still happening with v1.11 branch on M2 pro MacOS 14.5

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
system:mac Affects only macOS
Projects
None yet
Development

No branches or pull requests

3 participants