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: Re: building Emacs on Msys2/mingw32 Date: Mon, 08 Sep 2014 23:54:13 +0200 Message-ID: <540E2585.5070606@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 1410213297 26347 80.91.229.3 (8 Sep 2014 21:54:57 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Mon, 8 Sep 2014 21:54:57 +0000 (UTC) To: Emacs developers Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Mon Sep 08 23:54:51 2014 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 1XR6td-0006hY-5H for ged-emacs-devel@m.gmane.org; Mon, 08 Sep 2014 23:54:49 +0200 Original-Received: from localhost ([::1]:45891 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XR6tc-0004YS-Mu for ged-emacs-devel@m.gmane.org; Mon, 08 Sep 2014 17:54:48 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:57114) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XR6tT-0004YC-86 for emacs-devel@gnu.org; Mon, 08 Sep 2014 17:54:45 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1XR6tM-0001Yo-Da for emacs-devel@gnu.org; Mon, 08 Sep 2014 17:54:39 -0400 Original-Received: from smtp203.alice.it ([82.57.200.99]:38423) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XR6tL-0001SI-KQ for emacs-devel@gnu.org; Mon, 08 Sep 2014 17:54:32 -0400 Original-Received: from [192.168.1.101] (79.19.86.16) by smtp203.alice.it (8.6.060.43) (authenticated as angelo.graziosi@alice.it) id 540D84AB004393D0 for emacs-devel@gnu.org; Mon, 8 Sep 2014 23:54:29 +0200 User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:24.0) Gecko/20100101 Thunderbird/24.6.0 X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 82.57.200.99 X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.14 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-bounces+ged-emacs-devel=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.devel:174099 Archived-At: =D3scar Fuentes wrote: > All this and the remaining removed text is unnecessary if you use > mingw32_shell.bat Hmm... This was what I thought. I build the W64 binaries of Emacs, and I=20 DO use mingw64_shell.bat, where: $ echo $PATH /mingw64/bin:/usr/local/bin:/usr/bin:/bin:/c/Windows/system32:/c/Windows:= /c/Windows/System32/Wbem:/c/Windows/System32/WindowsPowerShell/v1.0:/usr/= bin/vendor_perl:/usr/bin/core_perl $ gcc -v Using built-in specs. COLLECT_GCC=3DC:\msys64\mingw64\bin\gcc.exe COLLECT_LTO_WRAPPER=3DC:/msys64/mingw64/lib/gcc/x86_64-w64-mingw32/4.9.1/= lto-wrapper.exe Target: x86_64-w64-mingw32 Configured with: ../gcc-4.9.1/configure --prefix=3D/mingw64=20 --with-local-prefix=3D/mingw64/local --build=3Dx86_64-w64-mingw32=20 --host=3Dx86_64-w64-mingw32 --target=3Dx86_64-w64-mingw32=20 --with-native-system-header-dir=3D/mingw64/x86_64-w64-mingw32/include=20 --libexecdir=3D/mingw64/lib=20 --with-gxx-include-dir=3D/mingw64/include/c++/4.9.1 --enable-bootstrap=20 --with-arch=3Dx86-64 --with-tune=3Dgeneric=20 --enable-languages=3Dc,lto,c++,objc,obj-c++,fortran,ada --enable-shared=20 --enable-static --enable-libatomic --enable-threads=3Dposix=20 --enable-graphite --enable-fully-dynamic-string=20 --enable-libstdcxx-time=3Dyes --disable-libstdcxx-pch=20 --disable-libstdcxx-debug --enable-cloog-backend=3Disl=20 --enable-version-specific-runtime-libs --disable-cloog-version-check=20 --disable-isl-version-check --enable-lto --enable-libgomp=20 --disable-multilib --enable-checking=3Drelease --disable-rpath=20 --disable-win32-registry --disable-nls --disable-werror=20 --disable-symvers --with-libiconv --with-system-zlib --with-gmp=3D/mingw6= 4=20 --with-mpfr=3D/mingw64 --with-mpc=3D/mingw64 --with-isl=3D/mingw64=20 --with-cloog=3D/mingw64 --with-pkgversion=3D'Rev3, Built by MSYS2 project= '=20 --with-bugurl=3Dhttp://sourceforge.net/projects/msys2 --with-gnu-as=20 --with-gnu-ld Thread model: posix gcc version 4.9.1 (Rev3, Built by MSYS2 project) and I build with $ ./autogen.sh $ ./configure --prefix=3D/Emacs --with-wide-int --build=3Dx86_64-w64-ming= w32=20 --without-imagemagick 'CFLAGS=3D-I/mingw64/include/noX -Ofast -g0 -pipe'=20 LDFLAGS=3D-pipe $ make -j3 If I remove the "--build=3Dx86_64-w64-mingw32" option to configure, the=20 build is configure for x86_64-pc-mingw64, [...] Configured for `x86_64-pc-mingw64'. Where should the build process find the source code? . What compiler should emacs be built with? gcc=20 -std=3Dgnu99 -I/mingw64/include/noX -Ofast -g0 -pipe Should Emacs use the GNU version of malloc? no (The GNU allocators don't work with this system configuration.) Should Emacs use a relocating allocator for buffers? no Should Emacs use mmap(2) for buffer allocation? yes What window system should Emacs use? w32 What toolkit should Emacs use? none Where do we find X Windows header files? NONE Where do we find X Windows libraries? NONE Does Emacs use -lXaw3d? no Does Emacs use -lXpm? yes Does Emacs use -ljpeg? yes Does Emacs use -ltiff? yes Does Emacs use a gif library? yes Does Emacs use a png library? yes Does Emacs use -lrsvg-2? yes Does Emacs use imagemagick? no Does Emacs support sound? no Does Emacs use -lgpm? no Does Emacs use -ldbus? yes Does Emacs use -lgconf? no Does Emacs use GSettings? no Does Emacs use a file notification library? yes (w32) Does Emacs use access control lists? yes Does Emacs use -lselinux? no Does Emacs use -lgnutls? yes Does Emacs use -lxml2? yes Does Emacs use -lfreetype? no Does Emacs use -lm17n-flt? no Does Emacs use -lotf? no Does Emacs use -lxft? no Does Emacs directly use zlib? yes Does Emacs use toolkit scroll bars? yes [...] and 'make -j3' fails at some point.. Instead, with that configure=20 option, the build is configure for 'x86_64-w64-mingw32' and it is=20 completed successfully... So, may you explain how you build Emacs on MSYS2? TIA, Angelo.