From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED.blaine.gmane.org!not-for-mail From: Eli Zaretskii Newsgroups: gmane.emacs.devel Subject: Re: Master fails to build on Windows Date: Fri, 01 Nov 2019 20:54:10 +0200 Message-ID: <83h83nl965.fsf@gnu.org> References: <38580935.190077.1572602180834@mail1.libero.it> <837e4jnb0s.fsf@gnu.org> <1867542571.192033.1572607669567@mail1.libero.it> <1429787316.192857.1572612423733@mail1.libero.it> <835zk3n47d.fsf@gnu.org> <913924689.194840.1572621179425@mail1.libero.it> <83lfszlh96.fsf@gnu.org> <1212616481.195226.1572631882704@mail1.libero.it> Injection-Info: blaine.gmane.org; posting-host="blaine.gmane.org:195.159.176.226"; logging-data="38228"; mail-complaints-to="usenet@blaine.gmane.org" Cc: emacs-devel@gnu.org To: Angelo Graziosi Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Fri Nov 01 19:54:30 2019 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([209.51.188.17]) by blaine.gmane.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.89) (envelope-from ) id 1iQc45-0009nl-LX for ged-emacs-devel@m.gmane.org; Fri, 01 Nov 2019 19:54:29 +0100 Original-Received: from localhost ([::1]:42176 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1iQc44-0003Wo-Fc for ged-emacs-devel@m.gmane.org; Fri, 01 Nov 2019 14:54:28 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:55305) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1iQc3l-0003WJ-RA for emacs-devel@gnu.org; Fri, 01 Nov 2019 14:54:13 -0400 Original-Received: from fencepost.gnu.org ([2001:470:142:3::e]:36308) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1iQc3j-000791-Qy; Fri, 01 Nov 2019 14:54:08 -0400 Original-Received: from [176.228.60.248] (port=3039 helo=home-c4e4a596f7) by fencepost.gnu.org with esmtpsa (TLS1.2:RSA_AES_256_CBC_SHA1:256) (Exim 4.82) (envelope-from ) id 1iQc3i-00012l-Q0; Fri, 01 Nov 2019 14:54:07 -0400 In-reply-to: <1212616481.195226.1572631882704@mail1.libero.it> (message from Angelo Graziosi on Fri, 1 Nov 2019 19:11:22 +0100 (CET)) X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Original-Sender: "Emacs-devel" Xref: news.gmane.org gmane.emacs.devel:241711 Archived-At: > Date: Fri, 1 Nov 2019 19:11:22 +0100 (CET) > From: Angelo Graziosi > Cc: emacs-devel@gnu.org > > No no, my script (emacs-w64-build.sh) downloads the source, run autogen.sh and > > eval "${emacs_build_env}" ./configure --prefix="/${PREFIXNAME}" \ > --build=x86_64-w64-mingw32 \ > --without-imagemagick \ > --without-dbus \ > --without-pop \ > --with-modules > > make ${MAKE_OPT} > > where > > emacs_build_env is, basically, > > CPPFLAGS="-D_FORTIFY_SOURCE=2 -D__USE_MINGW_ANSI_STDIO=1" \ > CFLAGS="-march=x86-64 -mtune=generic -O2 -pipe" Why are you using non-default compiler flags? Are they really needed, or is this just a copy/paste from MSYS2? If the latter, can I convince not to use the MSYS2 options? They are in many cases incorrect or suboptimal. In any case, you should definitely report the non-default settings when you describe any problems, because these options can have significant effect on the binary. > The script 'makepkg-mingw' belongs to MSYS2 installation. If you remember, MSYS2 uses PKGBUILD scripts as in ArchLinux and 'makepkg-mingw' is used to build MinGW packages (there is also a 'makepkg' script to build _native_ MSYS2 packages). See https://github.com/msys2/msys2/wiki/Creating-packages#building. I know about their scripts, I just don't understand why you would want to use them. You aren't building an MSYS2 Emacs, you are building Emacs for yourself, right?