From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Eli Zaretskii Newsgroups: gmane.emacs.bugs Subject: bug#22959: Emacs on Windows depends on libwinpthreads Date: Wed, 09 Mar 2016 18:20:35 +0200 Message-ID: <83d1r3pqr0.fsf@gnu.org> References: <87egbj4sbh.fsf@russet.org.uk> Reply-To: Eli Zaretskii NNTP-Posting-Host: plane.gmane.org X-Trace: ger.gmane.org 1457540494 7069 80.91.229.3 (9 Mar 2016 16:21:34 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Wed, 9 Mar 2016 16:21:34 +0000 (UTC) Cc: 22959@debbugs.gnu.org To: phillip.lord@russet.org.uk (Phillip Lord) Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Wed Mar 09 17:21:24 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 1adgrJ-0005Tr-74 for geb-bug-gnu-emacs@m.gmane.org; Wed, 09 Mar 2016 17:21:13 +0100 Original-Received: from localhost ([::1]:42414 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1adgrI-0006zJ-Hf for geb-bug-gnu-emacs@m.gmane.org; Wed, 09 Mar 2016 11:21:12 -0500 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:41333) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1adgrE-0006yy-6q for bug-gnu-emacs@gnu.org; Wed, 09 Mar 2016 11:21:09 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1adgr8-0000qM-IW for bug-gnu-emacs@gnu.org; Wed, 09 Mar 2016 11:21:08 -0500 Original-Received: from debbugs.gnu.org ([208.118.235.43]:44586) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1adgr8-0000qI-ES for bug-gnu-emacs@gnu.org; Wed, 09 Mar 2016 11:21:02 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84) (envelope-from ) id 1adgr8-0001Uc-7V for bug-gnu-emacs@gnu.org; Wed, 09 Mar 2016 11:21:02 -0500 X-Loop: help-debbugs@gnu.org Resent-From: Eli Zaretskii Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Wed, 09 Mar 2016 16:21:02 +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.14575404355697 (code B ref 22959); Wed, 09 Mar 2016 16:21:02 +0000 Original-Received: (at 22959) by debbugs.gnu.org; 9 Mar 2016 16:20:35 +0000 Original-Received: from localhost ([127.0.0.1]:41713 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84) (envelope-from ) id 1adgqg-0001To-RS for submit@debbugs.gnu.org; Wed, 09 Mar 2016 11:20:35 -0500 Original-Received: from eggs.gnu.org ([208.118.235.92]:50252) by debbugs.gnu.org with esmtp (Exim 4.84) (envelope-from ) id 1adgqf-0001Tc-CK for 22959@debbugs.gnu.org; Wed, 09 Mar 2016 11:20:33 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1adgqX-0000i4-32 for 22959@debbugs.gnu.org; Wed, 09 Mar 2016 11:20:28 -0500 Original-Received: from fencepost.gnu.org ([2001:4830:134:3::e]:40852) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1adgqW-0000hz-W9; Wed, 09 Mar 2016 11:20:25 -0500 Original-Received: from 84.94.185.246.cable.012.net.il ([84.94.185.246]:3745 helo=home-c4e4a596f7) by fencepost.gnu.org with esmtpsa (TLS1.2:RSA_AES_128_CBC_SHA1:128) (Exim 4.82) (envelope-from ) id 1adgqW-0007Pu-Ac; Wed, 09 Mar 2016 11:20:24 -0500 In-reply-to: <87egbj4sbh.fsf@russet.org.uk> (phillip.lord@russet.org.uk) X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] 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:114645 Archived-At: > From: phillip.lord@russet.org.uk (Phillip Lord) > Date: Wed, 09 Mar 2016 14:52:18 +0000 > > 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? (This is the first time that a MinGW64 Emacs user complains about this, so I wonder how others solve this problem.) 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. 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. Sorry, I don't use MinGW64, so I cannot help you more.