[R-SIG-Mac] CRAN build of R linking to /usr/local/clang4/

Gábor Csárdi c@@rdi@g@bor @ending from gm@il@com
Sat Dec 15 10:41:31 CET 2018


On Sat, Dec 15, 2018 at 2:29 AM Simon Urbanek
<simon.urbanek using r-project.org> wrote:
[...]
> although the R binary itself was omitted. However it doesn’t actually matter, because it is always executed through the R shell wrapper which correctly prepends $R_HOME/lib which is why R works just fine.

This does not seem to happen with

❯ R -d lldb
(lldb) target create "/Library/Frameworks/R.framework/Resources/bin/exec/R"
[...]
(lldb) run
[...]
Process 52551 launched:
'/Library/Frameworks/R.framework/Resources/bin/exec/R' (x86_64)
dyld: Library not loaded: /usr/local/clang4/lib/libomp.dylib
  Referenced from: /Library/Frameworks/R.framework/Resources/bin/exec/R
  Reason: image not found
Process 52551 stopped
* thread #1, stop reason = signal SIGABRT
    frame #0: 0x000000010002c9ee dyld`__abort_with_payload + 10
dyld`__abort_with_payload:
->  0x10002c9ee <+10>: jae    0x10002c9f8               ; <+20>
    0x10002c9f0 <+12>: movq   %rax, %rdi
    0x10002c9f3 <+15>: jmp    0x10002c300               ; cerror_nocancel
    0x10002c9f8 <+20>: retq
(lldb)

So maybe this is a bug in the R shell wrapper then? I am not sure, but
it would be nice to make 'R -d lldb' work out of the box.

Thanks,
G.

[...]



More information about the R-SIG-Mac mailing list