Opened 6 years ago
Closed 5 years ago
#7479 closed defect (fixed)
MSYS2/MinGW64 install build for libavdevice fails with GCC 8.2.0
Reported by: | LigH | Owned by: | |
---|---|---|---|
Priority: | normal | Component: | build system |
Version: | git-master | Keywords: | win |
Cc: | Blocked By: | ||
Blocking: | Reproduced by developer: | no | |
Analyzed by developer: | no |
Description
Summary of the bug:
MSYS2 install build for libavdevice fails with GCC 8.2.0 in MinGW64 (but passes with GCC 7.3.0 in MinGW32)
How to reproduce:
CFLAGS: -mthreads -mtune=generic -O2 -pipe
LDFLAGS: -pipe -static-libgcc -static-libstdc++
make install
CC libavdevice/alldevices.o In file included from H:/development/media-autobuild_suite-master/msys64/mingw64/lib/gcc/x86_64-w64-mingw32/8.2.0/include/stddef.h:1, from H:/development/media-autobuild_suite-master/msys64/mingw64/x86_64-w64-mingw32/include/inttypes.h:14, from H:/development/media-autobuild_suite-master/build/ffmpeg-git/libavutil/common.h:34, from H:/development/media-autobuild_suite-master/build/ffmpeg-git/libavutil/avutil.h:296, from H:/development/media-autobuild_suite-master/build/ffmpeg-git/libavutil/samplefmt.h:24, from H:/development/media-autobuild_suite-master/build/ffmpeg-git/libavcodec/avcodec.h:31, from H:/development/media-autobuild_suite-master/build/ffmpeg-git/libavformat/avformat.h:319, from H:/development/media-autobuild_suite-master/build/ffmpeg-git/libavformat/internal.h:27, from H:/development/media-autobuild_suite-master/build/ffmpeg-git/libavdevice/alldevices.c:23: ./config.h:17:19: error: expected identifier or '(' before 'void' #define getenv(x) NULL ^~~~ ./config.h:17:19: error: expected ')' before numeric constant #define getenv(x) NULL ^~~~ make: *** [/build/ffmpeg-git/ffbuild/common.mak:60: libavdevice/alldevices.o] Error 1
Patches should be submitted to the ffmpeg-devel mailing list and not this bug tracker.
Change History (5)
comment:1 by , 6 years ago
Keywords: | avdevice added |
---|
comment:2 by , 6 years ago
Version: | unspecified → git-master |
---|
comment:4 by , 5 years ago
Keywords: | win added; MSYS2 MinGW64 GCC8 avdevice removed |
---|
Please provide your configure line.
comment:5 by , 5 years ago
Resolution: | → fixed |
---|---|
Status: | new → closed |
Note:
See TracTickets
for help on using tickets.
Second run of
$ make V=1
:(but I can't guarantee a valid result because I usually do not use the shell interactively, instead only in a batch which may have prepared details not available in an interactive shell)
I believe to remember from another patch in another project that GCC 8 expects an explicit cast to (void).