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

MacPorts noreply at macports.org
Wed Nov 30 21:08:11 UTC 2022


#66380: R @4.2.2_1: error when installing package "later: ld: library not found for
-latomic
--------------------------+--------------------
 Reporter:  MarcKaufmann  |      Owner:  (none)
     Type:  defect        |     Status:  new
 Priority:  Normal        |  Milestone:
Component:  ports         |    Version:
 Keywords:                |       Port:  R
--------------------------+--------------------
 When I try to install the package "later", I get the following error:

 {{{
 ld: library not found for -latomic
 clang: error: linker command failed with exit code 1 (use -v to see
 invocation)
 make: *** [later.so] Error 1
 ERROR: compilation failed for package ‘later’
 }}}

 After asking on the R IRC, it turns out this is because the library atomic
 (-latomic) is missing, while I thought the whole thing was just a flag.
 Now when I look under /opt/local/lib/gcc12, I see that libatomic.a is
 there, as is libatomic.dylib. Does this mean that there is a path that is
 misconfigured, either on the R side or on the gcc side - or is it that
 this is not the right atomic library, or not the right files? Someone on
 IRC mentioned that I might need the header files, so I guess that would be
 libatomic.h, but I don't know how I would install those.

 I attach the full logs of the failed install.

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


More information about the macports-tickets mailing list