emacs-devel
[Top][All Lists]
Advanced

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

Re: Current master doesn't build on Win10 (nor does emacs-28)


From: Eli Zaretskii
Subject: Re: Current master doesn't build on Win10 (nor does emacs-28)
Date: Sun, 24 Oct 2021 21:54:34 +0300

> From: "H. Dieter Wilhelm" <dieter@duenenhof-wilhelm.de>
> Cc: andrewjmoreton@gmail.com,  emacs-devel@gnu.org
> Date: Sun, 24 Oct 2021 20:31:55 +0200
> 
> Eli Zaretskii <eliz@gnu.org> writes:
> 
> >> From: "H. Dieter Wilhelm" <dieter@duenenhof-wilhelm.de>
> >> Date: Sun, 24 Oct 2021 19:56:26 +0200
> >> Cc: emacs-devel@gnu.org
> >> 
> >> >> # 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
> >> >>
> >> >>
> >> >> Hopefully Paul Eggert will be along soon to come up with a proper fix in
> >> >> gnulib.
> >> >
> >> > Note that this problem also occurs on emacs-28, and the workaround above
> >> > also works. Thus this needs a gnulib fix before the release.
> >> 
> >> I can't reproduce this for the emacs-28 branch with a pull from
> >> yesterday evening! It seems that
> >> 
> >> make bootstrap
> >> 
> >> make install
> >> 
> >> is running through without any errors.  The MSYS2 and MinGW collections
> >> are quite recent, but it seems gcc 11 is not installed.  gcc --version
> >> => 10.3.0
> >
> > It only happens with GCC 11, that's why you don't see it.
> 
> I see, thanks.  Is it possible to install both versions of gcc and the
> necessary libraries?

It's possible, but not necessarily easy.  You rename the original
gcc.exe to gcc10.exe, and all the rest should "just work" as long as
the MinGW installation doesn't remove the old version. (I have no idea
how to tell pacman not to do that, but maybe someone else here would
know.)  You then invoke GCC 10 as "gcc10" instead of "gcc" (so you
should reconfigure Emacs to use that when compiling).

But I think all of this should now be unnecessary, since fixes have
been installed on both branches.



reply via email to

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