TheCedarPrince / InteroperableJuliaBinaries

Experiments in making Julia binaries interoperable within other language C interfaces.
2 stars 1 forks source link

Warning on Mac M1 #2

Open asinghvi17 opened 1 week ago

asinghvi17 commented 1 week ago

With the latest Julia nightly as of the date of writing,

 anshul    ~/git/InteroperableJuliaBinaries  julia +nightly juliac.jl --output-lib simple.so --compile-ccallable --trim ksmooth.jl
ld: warning: ignoring duplicate libraries: '-ljulia'
ld: warning: reexported library with install name '@rpath/libunwind.1.dylib' found at '/Users/anshul/.julia/juliaup/julia-nightly/lib/julia/libunwind.1.0.dylib' couldn't be matched with any parent library and will be linked directly

this may have some relevance to what Gabriel and Cody found. I don't recall seeing this on your machine when we did this @TheCedarPrince

TheCedarPrince commented 1 week ago

Oh no, that's a new thing I definitely do not recall seeing. I'll CC @aviks, @topolarity, and @gbaraldi here so they can track this in case they haven't encountered it.

aviks commented 1 week ago

So I'm told the libunwind issues depends on the environment and how R was compiled. Can both of you confirm your hardware and OS and how you acquired the R binaries.

asinghvi17 commented 1 week ago

This was from juliac for me, Mac M1, Juliaup nightly from last night. R was not involved in the error though it also fails. R also had symbol issues, but that was v4.4.1 from Conda I believe.

~I am away from my laptop now but will reconfirm when I have it.~ EDIT: here's some version info

julia> versioninfo()
Julia Version 1.12.0-DEV.1327
Commit 4cdd864e535 (2024-10-07 23:54 UTC)
Build Info:
  Official https://julialang.org release
Platform Info:
  OS: macOS (arm64-apple-darwin22.4.0)
  CPU: 10 × Apple M1 Max
  WORD_SIZE: 64
  LLVM: libLLVM-18.1.7 (ORCJIT, apple-m1)
Threads: 8 default, 0 interactive, 8 GC (on 8 virtual cores)
Environment:
  JULIA_NUM_THREADS = 8

R version 4.4.1 (2024-06-14) -- "Race for Your Life"
Copyright (C) 2024 The R Foundation for Statistical Computing
Platform: aarch64-apple-darwin23.4.0