[MacPorts] #61954: umem: error: implicit declaration of function 'ec_atomic_cas' is invalid in C99

MacPorts noreply at macports.org
Thu Dec 31 21:16:59 UTC 2020


#61954: umem: error: implicit declaration of function 'ec_atomic_cas' is invalid in
C99
------------------------+--------------------
 Reporter:  ryandesign  |      Owner:  (none)
     Type:  defect      |     Status:  new
 Priority:  Normal      |  Milestone:
Component:  ports       |    Version:  2.6.4
 Keywords:  arm64       |       Port:  umem
------------------------+--------------------
 umem fails to build on Apple Silicon:

 {{{
 ./sol_compat.h:135:12: error: implicit declaration of function
 'ec_atomic_cas' is invalid in C99 [-Werror,-Wimplicit-function-
 declaration]
   } while (ec_atomic_cas(mem, last+1, last) != last);
            ^
 }}}

 umem's source code only defines `ec_atomic_cas` on i386 and x86_64
 systems:

 {{{
 # elif (defined(__i386__) || defined(__x86_64__)) && defined(__GNUC__)
 static INLINE uint_t ec_atomic_cas(uint_t *mem, uint_t with, uint_t cmp)
 {
 }}}

 This is an assembly function, so we need an ARM assembly or generic C
 version of this function for Apple Silicon.

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


More information about the macports-tickets mailing list