[MacPorts] #64619: openssl3 fails to build for ppc on 10.6.8 (Rosetta)

MacPorts noreply at macports.org
Mon Feb 7 04:30:20 UTC 2022


#64619: openssl3 fails to build for ppc on 10.6.8 (Rosetta)
---------------------------+-------------------------------------------
  Reporter:  barracuda156  |      Owner:  (none)
      Type:  defect        |     Status:  new
  Priority:  Normal        |  Milestone:
 Component:  ports         |    Version:  2.7.1
Resolution:                |   Keywords:  powerpc, snowleopard, rosetta
      Port:  openssl3      |
---------------------------+-------------------------------------------

Comment (by kencu):

 The gcc compiler has it's atomic functions contained in a separate library
 (at least for archs where there are not processor intrinsics).  The
 library is called "libatomic.dylib", no great surprise.

 But this library is not ever automatically added to the link by gcc. The
 build system has to do that.

 Short story: add {{{-latomic}}} to the link libraries.

 Exactly how you do that depends on the build system, but in many cases,
 you can do this in MacPorts:
 {{{
 configure.ldflags-append -latomic
 }}}

 To have that accepted into a Portfile as a fix, you'd have to only add it
 when gcc is the compiler, and you'd have to only add it if it is needed
 (ie figure out if it is all archs, only some archs, etc).

 ALTERNATIVELY, you can figure out how to make the build NOT use atomic
 operations, if that floats your boat better. It is not really as good, if
 you ask me, but it is an option.

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


More information about the macports-tickets mailing list