Compilation on MSYS2/MinGW-w64 fails with error: "__USE_MINGW_ANSI_STDIO" redefined
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
QEMU |
Fix Released
|
Undecided
|
Unassigned |
Bug Description
Compilation against GIT master fails at the following step:
CC qga/commands.o
In file included from qga/commands.c:13:
C:/Tempy-
#define __USE_MINGW_
In file included from C:/msys64/
C:/msys64/
#define __USE_MINGW_
cc1.exe: all warnings being treated as errors
make: *** [/c/Tempy-
Passing --extra-
/* We are activating __USE_MINGW_
Note that we enable it also for _GNU_SOURCE in C++, but not for C case. */
#if (defined (_POSIX) || defined (_POSIX_SOURCE) || defined (_POSIX_C_SOURCE) \
|| defined (_ISOC99_SOURCE) \
|| defined (_XOPEN_SOURCE) || defined (_XOPEN_
|| (defined (_GNU_SOURCE) && defined (__cplusplus)) \
|| defined (_SVID_SOURCE)) \
&& !defined(
/* Enable __USE_MINGW_
* and If user did _not_ specify it explicitly... */
# define __USE_MINGW_
#endif
description: | updated |
Changed in qemu: | |
status: | Fix Committed → Fix Released |
MinGW-w64 toolchain version:
$ pacman -Ss mingw-w64- x86_64- toolchain mingw-w64- x86_64- binutils 2.30-5 (mingw- w64-x86_ 64-toolchain) [installed] mingw-w64- x86_64- crt-git 7.0.0.5397. 291c4f8d- 1 (mingw- w64-x86_ 64-toolchain) [installed] mingw-w64- x86_64- gcc 8.3.0-2 (mingw- w64-x86_ 64-toolchain) [installed] mingw-w64- x86_64- gcc-ada 8.3.0-2 (mingw- w64-x86_ 64-toolchain) [installed] mingw-w64- x86_64- gcc-fortran 8.3.0-2 (mingw- w64-x86_ 64-toolchain) [installed] mingw-w64- x86_64- gcc-libgfortran 8.3.0-2 (mingw- w64-x86_ 64-toolchain) [installed] mingw-w64- x86_64- gcc-libs 8.3.0-2 (mingw- w64-x86_ 64-toolchain) [installed] mingw-w64- x86_64- gcc-objc 8.3.0-2 (mingw- w64-x86_ 64-toolchain) [installed] mingw-w64- x86_64- gdb 8.2.1-2 (mingw- w64-x86_ 64-toolchain) [installed] mingw-w64- x86_64- headers- git 7.0.0.5397. 291c4f8d- 1 (mingw- w64-x86_ 64-toolchain) [installed] mingw-w64- x86_64- libmangle- git 7.0.0.5230. 69c8fad6- 1 (mingw- w64-x86_ 64-toolchain) [installed] mingw-w64- x86_64- libwinpthread- git 7.0.0.5325. 11a5459d- 1 (mingw- w64-x86_ 64-toolchain) [installed] mingw-w64- x86_64- make 4.2.1-2 (mingw- w64-x86_ 64-toolchain) [installed] mingw-w64- x86_64- pkg-config 0.29.2-1 (mingw- w64-x86_ 64-toolchain) [installed] mingw-w64- x86_64- tools-git 7.0.0.5394. 0dfb3d3f- 1 (mingw- w64-x86_ 64-toolchain) [installed] mingw-w64- x86_64- winpthreads- git 7.0.0.5325. 11a5459d- 1 (mingw- w64-x86_ 64-toolchain) [installed] mingw-w64- x86_64- winstorecompat- git 7.0.0.5394. 0dfb3d3f- 1 (mingw- w64-x86_ 64-toolchain) [installed]
mingw64/
A set of programs to assemble and manipulate binary and object files (mingw-w64)
mingw64/
MinGW-w64 CRT for Windows
mingw64/
GNU Compiler Collection (C,C++,OpenMP) for MinGW-w64
mingw64/
GNU Compiler Collection (Ada) for MinGW-w64
mingw64/
GNU Compiler Collection (Fortran) for MinGW-w64
mingw64/
GNU Compiler Collection (libgfortran) for MinGW-w64
mingw64/
GNU Compiler Collection (libraries) for MinGW-w64
mingw64/
GNU Compiler Collection (ObjC,Obj-C++) for MinGW-w64
mingw64/
GNU Debugger (mingw-w64)
mingw64/
MinGW-w64 headers for Windows
mingw64/
MinGW-w64 libmangle
mingw64/
MinGW-w64 winpthreads library
mingw64/
GNU make utility to maintain groups of programs (mingw-w64)
mingw64/
A system for managing library compile/link flags (mingw-w64)
mingw64/
MinGW-w64 tools
mingw64/
MinGW-w64 winpthreads library
mingw64/
MinGW-w64 winRT compat library