On 09/11/2017 05:19 PM, Eli Zaretskii wrote: > Hi, > > Kindly take a look at the issues with building current development > sources of GNU Emacs with MinGW64, described here: > > http://lists.gnu.org/archive/html/emacs-devel/2017-09/msg00171.html > > The build emits a lot of warnings related to printf specifications for > printing 64-bit integral values. From these warnings it sounds like > there are at least two issues: > > . GCC doesn't recognize the PRIdMAX format spec, defined in > MinGW64 inntypes.h header as "lld"; > . GCC doesn't recognize the MS native I64x format spec, either > > Therefore, it seems like there's no way of invoking printf to print a > long long int data type without emitting a warning, and perhaps also > generating incorrect code. > > Does Emacs do anything wrong in these cases? >
You'd need to disassemble (or at least check with nm) the object/function to find out if it's calling __mingw_printf or regular printf, seems like emacs is using %lld and %I64 in different places. Check if keyboard.c and print.c is using __USE_MINGW_ANSI_STDIO consistently. > > Another problem to be taken up with MinGW64 developers is this: > > CCLD addpm.exe > C:/projects/emacs/nt/addpm.c:42:0: warning: "_WIN32_WINNT" redefined > #define _WIN32_WINNT _WIN32_WINNT_WIN7 > > In file included from > C:/msys64/mingw64/x86_64-w64-mingw32/include/crtdefs.h:10:0, > from > C:/msys64/mingw64/x86_64-w64-mingw32/include/stdlib.h:9, > from C:/projects/emacs/nt/addpm.c:37: > C:/msys64/mingw64/x86_64-w64-mingw32/include/_mingw.h:225:0: note: this is > the location of the previous definition > #define _WIN32_WINNT 0x502 Seems to me like emacs addpm is defining it too late.
signature.asc
Description: OpenPGP digital signature
------------------------------------------------------------------------------ Check out the vibrant tech community on one of the world's most engaging tech sites, Slashdot.org! http://sdm.link/slashdot
_______________________________________________ Mingw-w64-public mailing list Mingw-w64-public@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/mingw-w64-public