bug-gnulib
[Top][All Lists]
Advanced

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

Emacs build fails on Windows mingw64


From: Andy Moreton
Subject: Emacs build fails on Windows mingw64
Date: Sat, 23 Oct 2021 21:42:49 +0100
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/28.0.60 (windows-nt)

Hi,

Arash Esbati reported on the emacs developer list that the build is
failing on Windows 10 with the MSYS2 toolchain:

https://lists.gnu.org/archive/html/emacs-devel/2021-10/msg01616.html

I can reproduce this problem on the emacs-28 and master branches of emacs.
The issue is with this hunk from gnulib string.in.h L456 (which matches
the gnulib master branch):

  # if __GNUC__ >= 11 && !defined strdup
  /* For -Wmismatched-dealloc: Associate strdup with free or rpl_free.  */
  _GL_FUNCDECL_SYS (strdup, char *,
                    (char const *__s)
                    _GL_ARG_NONNULL ((1))
                    _GL_ATTRIBUTE_MALLOC _GL_ATTRIBUTE_DEALLOC_FREE);
  # endif

_GL_ATTRIBUTE_MALLOC is not defined when this code is reached. This has
only appeared since a recent upgrade to gcc 11.2 in MSYS (previously my
machine had gcc 10.3).

Can this issue be addressed in gnulib so the emacs bug can be fixed ?

Thanks,

    AndyM




reply via email to

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