From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Angelo Graziosi Newsgroups: gmane.emacs.bugs Subject: bug#18302: MSYS2 build issues Date: Fri, 22 Aug 2014 00:32:41 +0200 Message-ID: <53F67389.8020501@alice.it> References: NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-15; format=flowed Content-Transfer-Encoding: 7bit X-Trace: ger.gmane.org 1408660485 22339 80.91.229.3 (21 Aug 2014 22:34:45 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Thu, 21 Aug 2014 22:34:45 +0000 (UTC) To: 18302@debbugs.gnu.org Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Fri Aug 22 00:34:32 2014 Return-path: Envelope-to: geb-bug-gnu-emacs@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 1XKaw3-0004Jn-2R for geb-bug-gnu-emacs@m.gmane.org; Fri, 22 Aug 2014 00:34:23 +0200 Original-Received: from localhost ([::1]:34361 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XKaw2-0002mS-Lz for geb-bug-gnu-emacs@m.gmane.org; Thu, 21 Aug 2014 18:34:22 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:46217) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XKavq-0002jZ-Kn for bug-gnu-emacs@gnu.org; Thu, 21 Aug 2014 18:34:18 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1XKavi-0005uu-EF for bug-gnu-emacs@gnu.org; Thu, 21 Aug 2014 18:34:10 -0400 Original-Received: from debbugs.gnu.org ([140.186.70.43]:42265) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XKavi-0005uo-As for bug-gnu-emacs@gnu.org; Thu, 21 Aug 2014 18:34:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.80) (envelope-from ) id 1XKavh-00022N-Oa for bug-gnu-emacs@gnu.org; Thu, 21 Aug 2014 18:34:01 -0400 X-Loop: help-debbugs@gnu.org In-Reply-To: Resent-From: Angelo Graziosi Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Thu, 21 Aug 2014 22:34:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 18302 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: X-Debbugs-Original-To: bug-gnu-emacs@gnu.org Original-Received: via spool by submit@debbugs.gnu.org id=B.14086604117781 (code B ref -1); Thu, 21 Aug 2014 22:34:01 +0000 Original-Received: (at submit) by debbugs.gnu.org; 21 Aug 2014 22:33:31 +0000 Original-Received: from localhost ([127.0.0.1]:49208 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1XKavC-00021O-N9 for submit@debbugs.gnu.org; Thu, 21 Aug 2014 18:33:31 -0400 Original-Received: from eggs.gnu.org ([208.118.235.92]:44326) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1XKavA-000216-LI for submit@debbugs.gnu.org; Thu, 21 Aug 2014 18:33:29 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1XKaux-0005gf-7p for submit@debbugs.gnu.org; Thu, 21 Aug 2014 18:33:23 -0400 Original-Received: from lists.gnu.org ([2001:4830:134:3::11]:41047) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XKaux-0005ga-50 for submit@debbugs.gnu.org; Thu, 21 Aug 2014 18:33:15 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:46029) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XKauq-0002dl-Dq for bug-gnu-emacs@gnu.org; Thu, 21 Aug 2014 18:33:15 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1XKauj-0005d6-Nb for bug-gnu-emacs@gnu.org; Thu, 21 Aug 2014 18:33:08 -0400 Original-Received: from smtp204.alice.it ([82.57.200.100]:54599) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XKauj-0005cA-DI for bug-gnu-emacs@gnu.org; Thu, 21 Aug 2014 18:33:01 -0400 Original-Received: from [192.168.1.100] (82.61.91.145) by smtp204.alice.it (8.6.060.28) (authenticated as angelo.graziosi@alice.it) id 52E53D4F23C0AD2B for bug-gnu-emacs@gnu.org; Fri, 22 Aug 2014 00:32:59 +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-detected-operating-system: by eggs.gnu.org: Error: Malformed IPv6 address (bad octet value). X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.15 Precedence: list X-detected-operating-system: by eggs.gnu.org: GNU/Linux 3.x X-Received-From: 140.186.70.43 X-BeenThere: bug-gnu-emacs@gnu.org List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Original-Sender: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.bugs:92585 Archived-At: Just a few comments.. I do MSYS2-MinGW64 Emacs trunk builds with the simple steps: ./autogen.sh ./configure --prefix=/Emacs.app --with-wide-int --build=x86_64-w64-mingw32 --without-imagemagick 'CFLAGS=-I/mingw64/include/noX -Ofast -g0 -pipe' LDFLAGS=-pipe make... The build needs the CFLAGS=-I/mingw64/include/noX definition because of the manner how MSYS2 work. It puts all the stuffs depending on msys2*dll (the equivalent of cygwin1.dll) under /usr. Instead the MinGW34 and MinGW64 applications are under /mingw32 and /mingw64 respectively. Usually, to work with MinGW64 applications, one needs to start the shell-console with mingw64_shell.bat batch file (msys2_shell.bat or mingw32_shell.bat to work with MSYS2 or MinGW32 apps). So, it is in the "nature" of MSYS2 that it puts things in non-standard directory for MinGW32/64 apps. Probably one can change Emacs configure to avoid these issue but I wonder, given the simple workaround shown above, if this is worth the effort. Instead, it would interesting, to understand why removing the configure option, "--without-imagemagick", with the MinGW64 ImageMagick package installed, configure enables imagemagick support but the build fails with a linker error.. but this is matter for another thread.. I think. Ken Brown wrote: > it's just that I don't feel like fixing something that isn't broken. I concord. Emacs has other kind of problems on Cygwin [*] (see recent threads on the Cygwin list). Breaking what is working would compromise an already fragile situation. Ciao, Angelo. --- [*] On Cygwin, usually I use as configure: ./configure --prefix=/usr/local/Emacs.app --with-w32 --build=x86_64-pc-cygwin --with-wide-int 'CFLAGS=-Ofast -g0 -pipe' LDFLAGS=-pipe CC=clang which is very similar to that I use on MSYS2..