Hello,

As part of the PyAV project (FFmpeg library bindings for Python) I
produce builds of FFmpeg and its dependencies for Linux, macOS and
Windows (using mingw):

https://github.com/pyav-org/pyav-ffmpeg

Our builds recently started failing for libvpx on Windows with the
following error:

C:/msys64/mingw64/include/semaphore.h: In function 'sem_timedwait':
C:/msys64/mingw64/include/semaphore.h:53:32: error: passing argument 2
of 'sem_timedwait64' from incompatible pointer type
[-Wincompatible-pointer-types]
53 | return sem_timedwait64 (sem, (const struct _timespec64 *) t);
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
| |
| const struct _timespec64 *
C:/msys64/mingw64/include/semaphore.h:47:75: note: expected 'const
struct _timespec64 *' but argument is of type 'const struct
_timespec64 *'
47 | WINPTHREAD_API int sem_timedwait64(sem_t * sem, const struct
_timespec64 *t);
| ~~~~~~~~~~~~~~~~~~~~~~~~~~^
make[1]: *** [Makefile:176: vp8/vp8_cx_iface.c.o] Error 1
In file included from
D:/a/pyav-ffmpeg/pyav-ffmpeg/build/vpx/vp8/common/threading.h:76,
from D:/a/pyav-ffmpeg/pyav-ffmpeg/build/vpx/vp8/encoder/onyx_int.h:26,
from D:/a/pyav-ffmpeg/pyav-ffmpeg/build/vpx/vp8/encoder/encodemv.h:14,
from D:/a/pyav-ffmpeg/pyav-ffmpeg/build/vpx/vp8/encoder/bitstream.c:12:
C:/msys64/mingw64/include/semaphore.h: In function 'sem_timedwait':
C:/msys64/mingw64/include/semaphore.h:53:32: error: passing argument 2
of 'sem_timedwait64' from incompatible pointer type
[-Wincompatible-pointer-types]
53 | return sem_timedwait64 (sem, (const struct _timespec64 *) t);
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
| |
| const struct _timespec64 *
C:/msys64/mingw64/include/semaphore.h:47:75: note: expected 'const
struct _timespec64 *' but argument is of type 'const struct
_timespec64 *'
47 | WINPTHREAD_API int sem_timedwait64(sem_t * sem, const struct
_timespec64 *t);

I cannot understand the error, because the "expected" and "actual"
arguments seem to be identical?! I am wondering if this is a side
effect of the changes discussed here:

https://sourceforge.net/p/mingw-w64/mailman/message/59175709/

Many thanks in advance,

Jeremy


_______________________________________________
Mingw-w64-public mailing list
Mingw-w64-public@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/mingw-w64-public

Reply via email to