Skip to content
Prev 14123 / 15075 Next

lldb not finding libRblas.dylib

I wanted to debug an error in my attempt to fix PR#18328, but I can't 
seem to run R under lldb:


murdoch at djmair3 ~/R/R-devel
$ bin/R -d lldb
(lldb) target create "/Users/murdoch/R/R-devel/bin/exec/R"
Current executable set to '/Users/murdoch/R/R-devel/bin/exec/R' (x86_64).
(lldb) run
Process 98432 launched: '/Users/murdoch/R/R-devel/bin/exec/R' (x86_64)
dyld: Library not loaded: libRblas.dylib
 ? Referenced from: /Users/murdoch/R/R-devel/bin/exec/R
 ? Reason: image not found
Process 98432 stopped
* thread #1, stop reason = signal SIGABRT
 ??? frame #0: 0x00000001004fe05e dyld`__abort_with_payload + 10
dyld`__abort_with_payload:
->? 0x1004fe05e <+10>: jae??? 0x1004fe068?????????????? ; <+20>
 ??? 0x1004fe060 <+12>: movq?? %rax, %rdi
 ??? 0x1004fe063 <+15>: jmp??? 0x1004fc588?????????????? ; cerror_nocancel
 ??? 0x1004fe068 <+20>: retq
Target 0: (R) stopped.

This is on an Intel Mac running Catalina, 10.15.7.? I have the current 
svn source, r82250, with only src/main/gram.c and src/main/gram.y 
changed.? If I look in the R-devel directory after building, I do find 
the file:

$ find . -name libRblas.dylib
./lib/libRblas.dylib
./src/extra/blas/libRblas.dylib

Can anyone suggest what is going wrong?

Duncan Murdoch