From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED.blaine.gmane.org!not-for-mail From: Angelo Graziosi Newsgroups: gmane.emacs.devel Subject: Re: Master fails to build on Windows Date: Fri, 1 Nov 2019 19:11:22 +0100 (CET) Message-ID: <1212616481.195226.1572631882704@mail1.libero.it> 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> Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit Injection-Info: blaine.gmane.org; posting-host="blaine.gmane.org:195.159.176.226"; logging-data="133800"; mail-complaints-to="usenet@blaine.gmane.org" Cc: emacs-devel@gnu.org To: Eli Zaretskii Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Fri Nov 01 19:12:15 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 1iQbPD-000Ygd-7F for ged-emacs-devel@m.gmane.org; Fri, 01 Nov 2019 19:12:15 +0100 Original-Received: from localhost ([::1]:41904 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1iQbPB-00062F-Ve for ged-emacs-devel@m.gmane.org; Fri, 01 Nov 2019 14:12:13 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:48767) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1iQbOU-0005zp-NB for emacs-devel@gnu.org; Fri, 01 Nov 2019 14:11:31 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1iQbOS-00015h-7G for emacs-devel@gnu.org; Fri, 01 Nov 2019 14:11:30 -0400 Original-Received: from smtp-33-i2.italiaonline.it ([213.209.12.33]:45851 helo=libero.it) by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1iQbOQ-0000vu-CM for emacs-devel@gnu.org; Fri, 01 Nov 2019 14:11:28 -0400 Original-Received: from oxapps-36-163.iol.local ([10.101.8.209]) by smtp-33.iol.local with ESMTPA id QbOMiI7lZPLt9QbOMi3b7y; Fri, 01 Nov 2019 19:11:22 +0100 x-libjamoibt: 1601 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=libero.it; s=s2014; t=1572631882; bh=guHpsTX7kXF7PyD6H0upwIORbqAJi0t56rfj6+aOhUw=; h=Date:From:To:Cc:In-Reply-To:References:Subject; b=B9OFmj5yn04aaz1+OewuQvXmJEyJyDO0rqITklTn/bZTnyhctIyQJlqWQswHodLCv DmQv7G0QzxmxbhdwkOoQbxvqxppfLt6paehYBvKya8THJmaFddZWlrDDtaz0Vvm47Y 9zPL2Wd1Iad7ujSgRjisVYp7i47ANCAwO2eagnqj1bT7Zijy5zxDWeOJ7WSj15/e3i OagRuPX6zaCv+fsk2TsGWh84+c9py+qnbmQY0PTx9m/T3RbZgU5+ja3I6689bdV8Z8 CKN4LhVV+5qQHTiYCai3o3qKHBm+WnscO7S6gxwHKkShPyK7Up6EKI6kiqzXZ0szmc 6XBtgukZBKclw== X-CNFS-Analysis: v=2.3 cv=J/HUEzvS c=1 sm=1 tr=0 a=fBROpUeZSIJVkaCHzo7K7A==:117 a=jpOVt7BSZ2e4Z31A5e1TngXxSK0=:19 a=SpUg7vrhK3AA:10 a=IkcTkHD0fZMA:10 a=4RKSQxM-fzYA:10 a=ObcLf_uJAAAA:20 a=fowEF9B89d3Zkax8TpIA:9 a=QEXdDO2ut3YA:10 In-Reply-To: <83lfszlh96.fsf@gnu.org> X-Priority: 3 Importance: Normal X-Mailer: Open-Xchange Mailer v7.10.1-Rev22 X-Originating-IP: 79.16.33.132 X-Originating-Client: open-xchange-appsuite x-libjamsun: i1885XXZuBlTs0vaAAvOMP6lSvilfBZg x-libjamv: VE+sT2okxnU= X-CMAE-Envelope: MS4wfB/9jBZDwltlA/RONPqhrrOv7UNHKOC9fRSE0Dh2LYgr92gCCx8hgMiPMO+eMhPd58igw2iSWRz9/0QbXgvlqx+VUWo/Akp2ANmz969xr9Felwsfkzf0 gcTVORdofnc+pHT82K8uYGm/1CbblfcniOYLVv//U4LHQ+YjLTunikfCcPwah2xMPFFhIdV4Mx7E1zGo3KyCQaAlN/Yb3vSEShI= X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] [fuzzy] X-Received-From: 213.209.12.33 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:241710 Archived-At: > Il 1 novembre 2019 alle 16.59 Eli Zaretskii ha scritto: > > So you don't invoke configure and make, but instead run a script > called makepkg-mingw? And D_FORTIFY_SOURCE=2 is set by that script? 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" MAKE_OPT is, basically, '-j 6'. Now I removed '-D_FORTIFY_SOURCE=2'. Then, the script creates the .7z package. 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.