Subject: bug#48303: closed (Re: bug#48303: 28.0.50; Build of master fails on MSYS2 MINGW64 environment)

From: [email-masked] (GNU bug Tracking System)
Date: Sun, 09 May 2021 08:02:02 +0000

Your bug report

#48303: 28.0.50; Build of master fails on MSYS2 MINGW64 environment

which was filed against the emacs package, has been closed.

The explanation is attached below, along with your original report.
If you require more details, please reply to [email-masked].

-- 
48303: http://debbugs.gnu.org/cgi/bugreport.cgi?bug=48303
GNU Bug Tracking System
Contact [email-masked] with problems

Subject: Re: bug#48303: 28.0.50; Build of master fails on MSYS2 MINGW64 environment
From: Eli Zaretskii <[email-masked]>
To: Yasuhiro Kimura <[email-masked]>
Cc: [email-masked]
Date: Sun, 09 May 2021 11:01:35 +0300
List-Id: <debbugs-submit.debbugs.gnu.org>

> Date: Sun, 09 May 2021 07:35:09 +0900 (JST)
> From: Yasuhiro Kimura <[email-masked]>
> 
> In file included from w32image.c:32:
> w32common.h:45:3: error: expected identifier before numeric constant
>    45 |   OS_NT
>       |   ^~~~~
> make[1]: *** [Makefile:385: w32image.o] Error 1
> make[1]: Leaving directory '/c/Users/yasu/Work/Emacs/master/emacs/src'
> make: *** [Makefile:425: src] Error 2

That's because w32 API headers now invade on our enumeration.  Fixed
on the emacs-27 branch, soon to be merged to master.

Thanks.

Subject: 28.0.50; Build of master fails on MSYS2 MINGW64 environment
From: Yasuhiro Kimura <[email-masked]>
To: [email-masked]
Date: Sun, 09 May 2021 07:35:09 +0900 (JST)
List-Id: <debbugs-submit.debbugs.gnu.org>

Environment:

* 64bit Windows 20H2
* MSYS2 MINGW64 environment
  ** mingw-w64-x86_64-gcc 10.3.0-2
  ** mingw-w64-x86_64-giflib 5.2.1-3
  ** mingw-w64-x86_64-gnutls 3.7.0-2
  ** mingw-w64-x86_64-libjpeg-turbo 2.0.6-1
  ** mingw-w64-x86_64-libpng 1.6.37-4
  ** mingw-w64-x86_64-librsvg 2.50.3-1
  ** mingw-w64-x86_64-libtiff 4.2.0-3
  ** mingw-w64-x86_64-libxml2 2.9.10-8
  ** mingw-w64-x86_64-xpm-nox 4.2.0-5
  ** mingw-w64-x86_64-zlib 1.2.11-9
* bb8b8d717f of master

Build Steps:

1. ./autogen.sh
2. ./configure
3. make

Result:

  CC       w32reg.o
  CC       w32font.o
  CC       w32term.o
  CC       w32xfns.o
  CC       w32select.o
  CC       w32uniscribe.o
  CC       w32cygwinx.o
  CC       w32.o
w32.c: In function '_sys_read_ahead':
w32.c:8853:10: warning: 'rc' may be used uninitialized in this function [-Wmaybe-uninitialized]
 8853 |   if (rc == sizeof (char))
      |       ~~~^~~~~~~~~~~~~~~~
  CC       w32console.o
  CC       w32heap.o
  CC       w32inevt.o
  CC       w32proc.o
  CC       w32image.o
In file included from w32image.c:32:
w32common.h:45:3: error: expected identifier before numeric constant
   45 |   OS_NT
      |   ^~~~~
make[1]: *** [Makefile:385: w32image.o] Error 1
make[1]: Leaving directory '/c/Users/yasu/Work/Emacs/master/emacs/src'
make: *** [Makefile:425: src] Error 2
(MINGW64)yasu@rolling[1071]%