[MacPorts] #62618: dav1d @0.8.2: build fails on leopard PPC (at least) with several errors
MacPorts
noreply at macports.org
Sat Apr 3 15:49:33 UTC 2021
#62618: dav1d @0.8.2: build fails on leopard PPC (at least) with several errors
---------------------+---------------------------
Reporter: kencu | Owner: ctreleaven
Type: defect | Status: assigned
Priority: Normal | Milestone:
Component: ports | Version:
Resolution: | Keywords: leopard tiger
Port: dav1d |
---------------------+---------------------------
Comment (by kencu):
Replying to [comment:8 ballapete]:
> To me it looks as if just an implementation of some `memalign` function
is missing:
>
> {{{
> 58 /*
> 59 * Allocate align-byte aligned memory. The return value can be
released
> 60 * by calling the dav1d_free_aligned() function.
> 61 */
> 62 static inline void *dav1d_alloc_aligned(size_t sz, size_t align) {
> 63 assert(!(align & (align - 1)));
> 64 #ifdef HAVE_POSIX_MEMALIGN
> 65 void *ptr;
> 66 if (posix_memalign(&ptr, align, sz)) return NULL;
> 67 return ptr;
> 68 #elif defined(HAVE_ALIGNED_MALLOC)
> 69 return _aligned_malloc(sz, align);
> 70 #elif defined(HAVE_MEMALIGN)
> 71 return memalign(align, sz);
> 72 #else
> 73 #error Missing aligned alloc implementation
> 74 #endif
> 75 }
> }}}
This I put in legacysupport.
--
Ticket URL: <https://trac.macports.org/ticket/62618#comment:12>
MacPorts <https://www.macports.org/>
Ports system for macOS
More information about the macports-tickets
mailing list