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: Mon, 18 Apr 2016 14:06:03 +0100 Message-ID: <87zisrawxw.fsf@russet.org.uk> References: <87egbj4sbh.fsf@russet.org.uk> <837ffwb8st.fsf@gnu.org> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: ger.gmane.org 1460984844 25126 80.91.229.3 (18 Apr 2016 13:07:24 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Mon, 18 Apr 2016 13:07:24 +0000 (UTC) Cc: 22959@debbugs.gnu.org, Fabrice Popineau To: Eli Zaretskii Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Mon Apr 18 15:07:10 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 1as8tS-0003mZ-8V for geb-bug-gnu-emacs@m.gmane.org; Mon, 18 Apr 2016 15:07:10 +0200 Original-Received: from localhost ([::1]:37500 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1as8tR-0007Ze-Hs for geb-bug-gnu-emacs@m.gmane.org; Mon, 18 Apr 2016 09:07:09 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:57533) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1as8tN-0007WR-Fl for bug-gnu-emacs@gnu.org; Mon, 18 Apr 2016 09:07:06 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1as8tK-0002WA-QI for bug-gnu-emacs@gnu.org; Mon, 18 Apr 2016 09:07:05 -0400 Original-Received: from debbugs.gnu.org ([208.118.235.43]:55002) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1as8tK-0002W5-N6 for bug-gnu-emacs@gnu.org; Mon, 18 Apr 2016 09:07:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1as8tK-0002mO-GW for bug-gnu-emacs@gnu.org; Mon, 18 Apr 2016 09:07:02 -0400 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: Mon, 18 Apr 2016 13:07: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.146098477210606 (code B ref 22959); Mon, 18 Apr 2016 13:07:02 +0000 Original-Received: (at 22959) by debbugs.gnu.org; 18 Apr 2016 13:06:12 +0000 Original-Received: from localhost ([127.0.0.1]:39103 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1as8sV-0002kz-Qv for submit@debbugs.gnu.org; Mon, 18 Apr 2016 09:06:11 -0400 Original-Received: from cloud103.planethippo.com ([31.216.48.48]:56933) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1as8sU-0002km-5T for 22959@debbugs.gnu.org; Mon, 18 Apr 2016 09:06:10 -0400 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=qU5tKm+kCLMG828w1r2nljLNEwGV1q5Lk1nWoVTRfos=; b=tzGnecu8SUsLJC89OzsUI0Yo9a nqau6OnQpzTT1OKb0Bi3s99FfIRskTUZj03kbAioVNMZ0o0CT+hAasM6IbWzHuBi3oP1x1Qdi7xUe oYWq1wGDRIU1WkSaJlt43RmqCzguALr8kK/6/6Gnm2HD/rWvu/vOwZIRYhDc2Lf5Nsp4lnDR//bff FV0/gz9119mOjJJ827RONKxfdTQLrzTohtjaAT/fOFGdamO/c8CpbNQg5s0bc7SVtSjRFJnWj+ZN5 dbRuIxF7k3Q2/2dHOhOH+z6RD+O9n6xAIwFY9Ar7w8EkG62Dvp+ir1b6YO1OKX5GvK7TBdcM+pnqs Ihyrsi0Q==; Original-Received: from janus-nat-128-240-225-60.ncl.ac.uk ([128.240.225.60]:32882 helo=russet.org.uk) by cloud103.planethippo.com with esmtpsa (TLSv1.2:DHE-RSA-AES128-SHA:128) (Exim 4.86_1) (envelope-from ) id 1as8sO-0028kf-65; Mon, 18 Apr 2016 14:06:04 +0100 In-Reply-To: <837ffwb8st.fsf@gnu.org> (Eli Zaretskii's message of "Sun, 17 Apr 2016 17:37:38 +0300") 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" Xref: news.gmane.org gmane.emacs.bugs:116593 Archived-At: Eli Zaretskii writes: >> From: Fabrice Popineau >> Date: Sat, 16 Apr 2016 23:48:35 +0200 >> >> At this point, when I build emacs for w64 using msys2, >> emacs.exe depends on libwinpthread for only one symbol >> which is clock_gettime(). >> This is called from lib/gettime.c:gettime(). > > This is not supposed to happen. I don't see this on my system. > > There's some factor at work here that I cannot figure out: the > configure-time test for clock_gettime doesn't try to look for that > function in the pthreads library, it only tries the "normal" link > without any extra libraries, and if that fails, tries 2 extra > libraries: librt and libposix4, none of which I'd expect to see on > MS-Windows in a MinGW installation. I did get the same thing at one point. > It could be something peculiar to MinGW64/MSYS2 build. Are you sure > libwinpthread dependency is not a requirement of the MinGW64 GCC port? This was the cause of the problem for me. > > So please look in config.log, and tell how did pthreads get into this > test. > >> It may be possible to remove this dependency for w64 >> and switch to gettimeofday(). No idea if we would lose >> something in doing so. > > Probably nothing at all, as the 32-build AFAIK doesn't depend on > libwinpthread (at least mine doesn't). And this, also stemmed from msys2 rather than anything different in Emacs. Phil