emacs-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Failure building Emacs master on MSYS2 [MSYS2 PKG]


From: Bruno Haible
Subject: Re: Failure building Emacs master on MSYS2 [MSYS2 PKG]
Date: Thu, 08 May 2025 01:20:46 +0200

Collin,

Collin Funk wrote:
> It is hard for me to think of a good solution for this. The reason
> <stddef.h> is not included is because the version of GCC that MSYS ships
> with has a bug where it cannot be included multiple times (otherwise it
> redefines things many times). But without including it wint_t is never
> defined which causes the compiler error...
> 
> Maybe doing:
> 
>     typedef __WINT_TYPE__ wint_t;
> 
> exclusively on MSYS2 would fix it. But that is pretty hacky...

There is nothing to fix on the Emacs side, or on the Gnulib side.
As Arash Esbati explained in
<https://lists.gnu.org/archive/html/emacs-devel/2025-05/msg00173.html>,
MSYS is cannibalizing Cygwin / masquerading as Cygwin. Quote:
  "So instead of MSYS being a fork of Cygwin, it would just be a
   slightly modified/extended variant of Cygwin."

We (Emacs + Gnulib) make sure that Emacs builds fine on Cygwin. That
is our responsibility. Everything else is the responsibility of the MSYS
people, since it is them who ship a modified/extended variant of Cygwin
while asking people to use the x86_64-pc-cygwin triple.

If MSYS has different header files than Cygwin, and these differences in
the header files cause compilation errors in Emacs, it is the MSYS people
who need to fix this.

Bruno






reply via email to

[Prev in Thread] Current Thread [Next in Thread]