[FFmpeg-trac] #7479(build system:new): MSYS2/MinGW64 install build for libavdevice fails with GCC 8.2.0

FFmpeg trac at avcodec.org
Mon Oct 8 01:11:39 EEST 2018


#7479: MSYS2/MinGW64 install build for libavdevice fails with GCC 8.2.0
-------------------------------------+-------------------------------------
             Reporter:  LigH         |                     Type:  defect
               Status:  new          |                 Priority:  normal
            Component:  build        |                  Version:
  system                             |  unspecified
             Keywords:  MSYS2        |               Blocked By:
  MinGW64 GCC8                       |  Reproduced by developer:  0
             Blocking:               |
Analyzed by developer:  0            |
-------------------------------------+-------------------------------------
 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.

--
Ticket URL: <https://trac.ffmpeg.org/ticket/7479>
FFmpeg <https://ffmpeg.org>
FFmpeg issue tracker


More information about the FFmpeg-trac mailing list