From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Angelo Graziosi Newsgroups: gmane.emacs.devel Subject: Building Emacs on MSYS2 (was: Build failure for Emacs master) Date: Thu, 14 Apr 2016 21:56:11 +0200 Message-ID: <570FF5DB.7000102@alice.it> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=iso-8859-15; format=flowed Content-Transfer-Encoding: Quoted-Printable X-Trace: ger.gmane.org 1460663777 22087 80.91.229.3 (14 Apr 2016 19:56:17 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Thu, 14 Apr 2016 19:56:17 +0000 (UTC) To: ofv@wanadoo.es, Emacs developers Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Thu Apr 14 21:56:07 2016 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1aqnN1-0004ZI-7K for ged-emacs-devel@m.gmane.org; Thu, 14 Apr 2016 21:56:07 +0200 Original-Received: from localhost ([::1]:45704 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1aqnN0-0001VI-Qj for ged-emacs-devel@m.gmane.org; Thu, 14 Apr 2016 15:56:06 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:36121) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1aqnMm-0001Qe-Bg for emacs-devel@gnu.org; Thu, 14 Apr 2016 15:55:53 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1aqnMi-0006fc-Bj for emacs-devel@gnu.org; Thu, 14 Apr 2016 15:55:52 -0400 Original-Received: from smtp204.alice.it ([82.57.200.100]:54845) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1aqnMi-0006fD-0g for emacs-devel@gnu.org; Thu, 14 Apr 2016 15:55:48 -0400 Original-Received: from [192.168.1.101] (79.19.227.36) by smtp204.alice.it (8.6.060.43) (authenticated as angelo.graziosi@alice.it) id 56FAADF5098BF476; Thu, 14 Apr 2016 21:55:44 +0200 Original-References: User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:38.0) Gecko/20100101 Thunderbird/38.7.2 X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 82.57.200.100 X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.21 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:202931 Archived-At: Ciao =D3scar, =D3scar Fuentes wrote: > AFAIK Angelo and others that build Emacs on MSYS2 are not using > the PKGBUILD, but following the recipe on the Emacs' docs (possibly wit= h > their own personal modifications.) really, I DO build Emacs on MSYS2 with that _PKGBUILD_ [*]. It is on=20 GNU/Linux and on OSX which I use some other recipe (my build scripts..) Regarding the image.c.diff and lread.c.diff patches... If I remember correctly, when the mingw*imagemagick port is installed,=20 'configure' tries to "build" using the imagemagick support and the build=20 fails if those patches are not applied.. Maybe the patches fix the build=20 with imagemagick support. But is it a real support or only a workaround=20 so that the build is completed, apparently adding the support for=20 imagemagick? I have this doubt.. Ciao, Angelo. --- [*] Oops.. with my modification: $ cat mingw-w64-emacs-git/PKGBUILD [...] ## USAGE EXAMPLES: ## ## MAKE_OPT=3D'-j3' MINGW_INSTALLS=3Dmingw64 makepkg-mingw -sLf ## : ${MAKE_OPT=3D} [...] prepare() { cd "${_realname}" patch --binary --forward -p0 < "${srcdir}/image.c.diff" patch --binary --forward -p0 < "${srcdir}/lread.c.diff" ./autogen.sh all } build() { [[ -d "${srcdir}/build-${MINGW_CHOST}" ]] && rm -rf=20 "${srcdir}/build-${MINGW_CHOST}" mkdir -p "${srcdir}/build-${MINGW_CHOST}" cd "build-${MINGW_CHOST}" local with_wide_int=3D'no' if test "${CARCH}" =3D=3D 'x86_64'; then with_wide_int=3D'yes' fi CPPFLAGS=3D"-DNDEBUG -isystem ${MINGW_PREFIX}/include" CFLAGS=3D"-pipe -O3 -fomit-frame-pointer -funroll-loops" LDFLAGS=3D"-s -Wl,-s" "${srcdir}/${_realname}/configure" \ --prefix=3D"${MINGW_PREFIX}" \ --build=3D"${MINGW_CHOST}" \ --enable-gcc-warnings=3Dno \ --with-wide-int=3D"${with_wide_int}" \ --with-sound=3D"yes" \ --with-file-notification=3D"yes" \ --without-gpm \ --without-gconf \ --without-gsettings \ --without-selinux echo echo "Using MAKE_OPT =3D ${MAKE_OPT}" echo make ${MAKE_OPT} } [...]