[MacPorts] #64262: libuv fails to build for ppc64

MacPorts noreply at macports.org
Thu May 12 11:15:59 UTC 2022


#64262: libuv fails to build for ppc64
---------------------------+-------------------------------------
  Reporter:  barracuda156  |      Owner:  michaelld
      Type:  defect        |     Status:  assigned
  Priority:  Normal        |  Milestone:
 Component:  ports         |    Version:  2.7.2
Resolution:                |   Keywords:  powerpc, leopard, ppc64
      Port:  libuv         |
---------------------------+-------------------------------------

Comment (by barracuda156):

 Replying to [comment:4 michaelld]:
 > Can anyone with a PPC/PPC64 try this PR for libuv 1.44.0?

 Okay, I have found a cause of the problem myself: this instruction is
 defined unconditionally, but is invalid in Darwin ABI:
 ```
 #elif defined(__powerpc64__) || defined(__ppc64__) || defined(__PPC64__)
   __asm__ __volatile__ ("or 1,1,1; or 2,2,2" ::: "memory");
 #endif
 ```
 As a quick fix, this helps:
 ```
 #elif !defined(__APPLE_) && (defined(__powerpc64__) || defined(__ppc64__)
 || defined(__PPC64__))
   __asm__ __volatile__ ("or 1,1,1; or 2,2,2" ::: "memory");
 #endif
 ```

 However if anyone could advise me on Darwin PPC assembler, we can fix it
 properly (and improve for ppc32).

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


More information about the macports-tickets mailing list