[MacPorts] #64200: par2 @0.8.1+universal: Undefined symbols for architecture i386: ___atomic_compare_exchange ___atomic_load

MacPorts noreply at macports.org
Mon Dec 13 16:21:27 UTC 2021


#64200: par2 @0.8.1+universal: Undefined symbols for architecture i386:
___atomic_compare_exchange ___atomic_load
---------------------+----------------------
  Reporter:  RobK88  |      Owner:  (none)
      Type:  defect  |     Status:  assigned
  Priority:  Normal  |  Milestone:
 Component:  ports   |    Version:  2.7.1
Resolution:          |   Keywords:  lion
      Port:  par2    |
---------------------+----------------------

Comment (by kencu):

 This issue here is that clang-7+ (or maybe it was clang-6+) turned off the
 atomic support they had in compiler_rt, in favour of the x86_64 processor
 intrinsic functions. So all the atomics for i386 broke. There is a ticket
 here on trac about it somewhere.

 I was in the process of adding them back on, and did on clang-7.0:

 <https://github.com/macports/macports-
 ports/blob/2424eb995005cdef64a0ce8372b29eda2167ab63/lang/llvm-7.0/Portfile#L279>

 but didn't get to clang-9.0 before my enthusiasm for this kind of project
 waned.

 <https://github.com/macports/macports-
 ports/blob/master/lang/llvm-9.0/Portfile>

 Short story:

 build with clang-7.0, or fix clang-9.0 like I did for clang-7.0 and build
 with clang-9.0.

 Sure, they should all be done.

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


More information about the macports-tickets mailing list