unofficial mirror of bug-gnu-emacs@gnu.org 
 help / color / mirror / code / Atom feed
* bug#48303: 28.0.50; Build of master fails on MSYS2 MINGW64 environment
@ 2021-05-08 22:35 Yasuhiro Kimura
  2021-05-09  8:01 ` Eli Zaretskii
  0 siblings, 1 reply; 3+ messages in thread
From: Yasuhiro Kimura @ 2021-05-08 22:35 UTC (permalink / raw)
  To: 48303

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]%





^ permalink raw reply	[flat|nested] 3+ messages in thread

* bug#48303: 28.0.50; Build of master fails on MSYS2 MINGW64 environment
  2021-05-08 22:35 bug#48303: 28.0.50; Build of master fails on MSYS2 MINGW64 environment Yasuhiro Kimura
@ 2021-05-09  8:01 ` Eli Zaretskii
  2021-05-09 11:53   ` Yasuhiro Kimura
  0 siblings, 1 reply; 3+ messages in thread
From: Eli Zaretskii @ 2021-05-09  8:01 UTC (permalink / raw)
  To: Yasuhiro Kimura; +Cc: 48303-done

> Date: Sun, 09 May 2021 07:35:09 +0900 (JST)
> From: Yasuhiro Kimura <yasu@utahime.org>
> 
> 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.





^ permalink raw reply	[flat|nested] 3+ messages in thread

* bug#48303: 28.0.50; Build of master fails on MSYS2 MINGW64 environment
  2021-05-09  8:01 ` Eli Zaretskii
@ 2021-05-09 11:53   ` Yasuhiro Kimura
  0 siblings, 0 replies; 3+ messages in thread
From: Yasuhiro Kimura @ 2021-05-09 11:53 UTC (permalink / raw)
  To: eliz; +Cc: 48303-done

From: Eli Zaretskii <eliz@gnu.org>
Subject: Re: bug#48303: 28.0.50; Build of master fails on MSYS2 MINGW64 environment
Date: Sun, 09 May 2021 11:01:35 +0300

>> Date: Sun, 09 May 2021 07:35:09 +0900 (JST)
>> From: Yasuhiro Kimura <yasu@utahime.org>
>> 
>> 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.

Thank for information. I cherry-picked 4c3abb3dd1 of emacs-27 to
af529f777c of master and confirmed build completes successfully. But
after cherry-picking one 'OS_9X' is still left at line 7658 of
src/w32term.c. Right now it is commented out with '#if 0 ... #endif'.
But to make sure it should also be changed to 'OS_SUBTYPE_9X'.





^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2021-05-09 11:53 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-05-08 22:35 bug#48303: 28.0.50; Build of master fails on MSYS2 MINGW64 environment Yasuhiro Kimura
2021-05-09  8:01 ` Eli Zaretskii
2021-05-09 11:53   ` Yasuhiro Kimura

Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).