From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: phillip.lord@russet.org.uk (Phillip Lord) Newsgroups: gmane.emacs.bugs Subject: bug#22959: Emacs on Windows depends on libwinpthreads Date: Wed, 09 Mar 2016 16:32:44 +0000 Message-ID: <871t7j4no3.fsf@russet.org.uk> References: <87egbj4sbh.fsf@russet.org.uk> <83d1r3pqr0.fsf@gnu.org> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: ger.gmane.org 1457541816 31664 80.91.229.3 (9 Mar 2016 16:43:36 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Wed, 9 Mar 2016 16:43:36 +0000 (UTC) Cc: 22959@debbugs.gnu.org To: Eli Zaretskii Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Wed Mar 09 17:43:25 2016 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 1adhCe-0005l8-Bz for geb-bug-gnu-emacs@m.gmane.org; Wed, 09 Mar 2016 17:43:16 +0100 Original-Received: from localhost ([::1]:42509 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1adhCY-0007Of-T3 for geb-bug-gnu-emacs@m.gmane.org; Wed, 09 Mar 2016 11:43:10 -0500 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:49777) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1adhCT-0007OL-A5 for bug-gnu-emacs@gnu.org; Wed, 09 Mar 2016 11:43:06 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1adhCQ-0008FM-2e for bug-gnu-emacs@gnu.org; Wed, 09 Mar 2016 11:43:05 -0500 Original-Received: from debbugs.gnu.org ([208.118.235.43]:44610) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1adhCP-0008FE-Vj for bug-gnu-emacs@gnu.org; Wed, 09 Mar 2016 11:43:02 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84) (envelope-from ) id 1adhCP-00021S-Oz for bug-gnu-emacs@gnu.org; Wed, 09 Mar 2016 11:43:01 -0500 X-Loop: help-debbugs@gnu.org Resent-From: phillip.lord@russet.org.uk (Phillip Lord) Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Wed, 09 Mar 2016 16:43:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 22959 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: Original-Received: via spool by 22959-submit@debbugs.gnu.org id=B22959.14575417527737 (code B ref 22959); Wed, 09 Mar 2016 16:43:01 +0000 Original-Received: (at 22959) by debbugs.gnu.org; 9 Mar 2016 16:42:32 +0000 Original-Received: from localhost ([127.0.0.1]:41737 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84) (envelope-from ) id 1adhBw-00020i-4e for submit@debbugs.gnu.org; Wed, 09 Mar 2016 11:42:32 -0500 Original-Received: from cloud103.planethippo.com ([31.216.48.48]:47523) by debbugs.gnu.org with esmtp (Exim 4.84) (envelope-from ) id 1adhBt-00020V-Tk for 22959@debbugs.gnu.org; Wed, 09 Mar 2016 11:42:30 -0500 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=russet.org.uk; s=default; h=Content-Type:MIME-Version:Message-ID: In-Reply-To:Date:References:Subject:Cc:To:From; bh=K1IddHVMyfK6dF7SoAgJBrsnJBY7I5pZiS+F+gICCf4=; b=E8j5uqVySL+dKZ1Z8nGcOxeypi R6patyTnlxJuTE/cddDmS+Uk/xLekn3gjs9d2zFrwGArIChrPGIdBsBT0VCfeIRap70KxyZE6ZBeY P2mwmgLZKdG5ajX52IPI1qSvQcZ9pz5iBx0zEcQehoRtfdEpYBaesU+kdRnRJXJIj9uCc4oEZsiY7 H8TfUPa7pgsc2DBlpc8Ncqu57g+2TdeG/mC9fmFp04tJyqa2U852PVKn9wsPMr5nUAttUqQA24ZS/ Tteb5o3bFMTDovuAxYWFB2DbGmVDBjyujAsH8nU1f9TecyVAOPojM6WeMDryD75+hiaOqDST//UC0 Pj2gABDQ==; Original-Received: from janus-nat-128-240-225-60.ncl.ac.uk ([128.240.225.60]:43524 helo=russet.org.uk) by cloud103.planethippo.com with esmtpsa (TLSv1.2:DHE-RSA-AES128-SHA:128) (Exim 4.86) (envelope-from ) id 1adh2T-003Rg1-AV; Wed, 09 Mar 2016 16:32:45 +0000 In-Reply-To: <83d1r3pqr0.fsf@gnu.org> (Eli Zaretskii's message of "Wed, 09 Mar 2016 18:20:35 +0200") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.5 (gnu/linux) X-AntiAbuse: This header was added to track abuse, please include it with any abuse report X-AntiAbuse: Primary Hostname - cloud103.planethippo.com X-AntiAbuse: Original Domain - debbugs.gnu.org X-AntiAbuse: Originator/Caller UID/GID - [47 12] / [47 12] X-AntiAbuse: Sender Address Domain - russet.org.uk X-Get-Message-Sender-Via: cloud103.planethippo.com: authenticated_id: phillip.lord@russet.org.uk X-Authenticated-Sender: cloud103.planethippo.com: phillip.lord@russet.org.uk X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 208.118.235.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:114651 Archived-At: Eli Zaretskii writes: >> Currently, building Emacs under msys2/ming-w64 produces a binary that >> depends on libwinpthread.dll. The practical upshot of this is that after >> building and installing Emacs according to the instructions, Emacs >> cannot be launched from the Windows explorer -- it can be run from msys2 >> which has the path set up correctly. A binary release will, therefore, fail. >> >> Using the dependency walker shows the dependency is directly from Emacs, >> and it appears to have come from a change in ming-w64, as reported here. >> >> https://sourceforge.net/p/mingw-w64/mailman/message/31213279/ >> >> https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=748353 >> >> This affects emacs-25, master and, indeed, emacs-24 built using the >> current tool chain. > > If MinGW64 builds binaries that depend on libwinpthread DLL, then why > isn't that DLL part of the MinGW64 GCC installation? That sounds like > a bug in MinGW64 packaging, or maybe your installation is somehow > incomplete or misconfigured? It is part of the distribution. The problem is generating a binary for other people that they can use. If I install Emacs and then package that location, the executable will not work. > (This is the first time that a MinGW64 Emacs user complains about > this, so I wonder how others solve this problem.) The Emacs-W64 distribution which builds in ming-w64 just copies libwinpthread-1.dll into the bin directory. The other solution is ./configure CFLAGS=-static > The fact that Emacs runs OK when launched from MSYS2 Bash suggests > that the DLL exists, but is not on PATH. Which might mean you need to > change your system configuration to augment PATH. Yes, that would work, but would be required on every machine that uses Emacs. > > Or maybe you should use a different build of MinGW64 GCC? The second > bug report you quote seems to indicate that there's a build which uses > Windows threads, so it doesn't depend on the pthread library. It does seem to suggest that, although I cannot find how to use this from any documentation I have found. I will investigate further. > Sorry, I don't use MinGW64, so I cannot help you more. Phil