[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 12:27:06 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:
Resolution:                |   Keywords:
      Port:  R             |
---------------------------+--------------------

Comment (by MarcKaufmann):

 Thanks. To Ryan's first point, the /Users/kaufmannm/Library/R part is
 where R installs packages, since it can't write to /opt/..., which belongs
 to root. I removed that folder, made the /opt/... path writable to test
 it, and the later package still doesn't install, with the same error.
 (Logs look identical to before without the mention of the "-I/Users/..."
 part).

 To Ken's point, I ran the script and get:

 {{{
 Running configure script
 ld: library not found for -lc++
 clang: error: linker command failed with exit code 1 (use -v to see
 invocation)
 -latomic linker flag needed.
 }}}

 I checked, and I have clang++-mp-14 on my machine, so that's not the
 problem. But clearly the script thinks I need the atomic library. What
 should I check next?

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


More information about the macports-tickets mailing list