[MacPorts] #66380: R @4.2.2_1: error when installing package "later: ld: library not found for -latomic

MacPorts noreply at macports.org
Sat Dec 3 10:35:34 UTC 2022

#66380: R @4.2.2_1: error when installing package "later: ld: library not found for
  Reporter:  MarcKaufmann  |      Owner:  (none)
      Type:  defect        |     Status:  new
  Priority:  Normal        |  Milestone:
 Component:  ports         |    Version:
Resolution:                |   Keywords:
      Port:  R             |

Comment (by ryandesign):

 I don't know R so forgive me if my questions have obvious answers.

 What's in /Users/kaufmannm/Library/R? Is it normal for things to exist
 there after a MacPorts R install and for them to be used when building
 things with R? If not—if those files came from some other place—maybe they
 are interfering with what you are trying to do. You could try renaming
 that directory to something else.

 Can you figure out why `-latomic` is being used? Is it for example coming
 from something within /Users/kaufmannm/Library/R or from something within
 the files installed by the MacPorts R port? If you can find where it is,
 can you try removing it? I suspect the existence of some code, somewhere,
 that says something like "if the processor is arm then add `-latomic`"
 which may be correct on operating systems that are not macOS but as far as
 I have been able to tell is not correct on macOS. I've encountered this in
 another port before (i.e. [cd9e090aab86cc29f29c66a8d7e2e2c34939e965

Ticket URL: <https://trac.macports.org/ticket/66380#comment:3>
MacPorts <https://www.macports.org/>
Ports system for macOS

More information about the macports-tickets mailing list