From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Eli Zaretskii Newsgroups: gmane.emacs.devel Subject: Re: Building Emacs from a new MinGW environment Date: Wed, 18 Sep 2013 22:20:15 +0300 Message-ID: <83wqmelyxc.fsf@gnu.org> References: <83sixwfdjk.fsf@gnu.org> <834n9nhhp6.fsf@gnu.org> <83ppsbfoe7.fsf@gnu.org> <83mwnffkom.fsf@gnu.org> <83k3ijfhk0.fsf@gnu.org> <83hadnf7gs.fsf@gnu.org> <83hadmqvql.fsf@gnu.org> <83txhkpszv.fsf@gnu.org> <83pps8pnc9.fsf@gnu.org> <83ob7splia.fsf@gnu.org> <83k3ifq5o5.fsf@gnu.org> <83d2o7q28r.fsf@gnu.org> <8338p3pded.fsf@gnu.org> <83r4cmo9m2.fsf@gnu.org> <83pps6o3f2.fsf@gnu.org> <83hadinuf9.fsf@gnu.org> Reply-To: Eli Zaretskii NNTP-Posting-Host: plane.gmane.org X-Trace: ger.gmane.org 1379532032 24972 80.91.229.3 (18 Sep 2013 19:20:32 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Wed, 18 Sep 2013 19:20:32 +0000 (UTC) Cc: emacs-devel@gnu.org To: Dani Moncayo Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Wed Sep 18 21:20:34 2013 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 1VMNIf-0003cv-94 for ged-emacs-devel@m.gmane.org; Wed, 18 Sep 2013 21:20:33 +0200 Original-Received: from localhost ([::1]:48552 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1VMNIe-0004wm-QJ for ged-emacs-devel@m.gmane.org; Wed, 18 Sep 2013 15:20:32 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:57685) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1VMNIX-0004wg-BN for emacs-devel@gnu.org; Wed, 18 Sep 2013 15:20:31 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1VMNIR-0006uO-Gl for emacs-devel@gnu.org; Wed, 18 Sep 2013 15:20:25 -0400 Original-Received: from mtaout22.012.net.il ([80.179.55.172]:51816) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1VMNIR-0006uC-80 for emacs-devel@gnu.org; Wed, 18 Sep 2013 15:20:19 -0400 Original-Received: from conversion-daemon.a-mtaout22.012.net.il by a-mtaout22.012.net.il (HyperSendmail v2007.08) id <0MTC001005P9MW00@a-mtaout22.012.net.il> for emacs-devel@gnu.org; Wed, 18 Sep 2013 22:20:15 +0300 (IDT) Original-Received: from HOME-C4E4A596F7 ([87.69.4.28]) by a-mtaout22.012.net.il (HyperSendmail v2007.08) with ESMTPA id <0MTC001YU5PR6QB0@a-mtaout22.012.net.il>; Wed, 18 Sep 2013 22:20:15 +0300 (IDT) In-reply-to: X-012-Sender: halo1@inter.net.il X-detected-operating-system: by eggs.gnu.org: Solaris 10 X-Received-From: 80.179.55.172 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:163454 Archived-At: > Date: Wed, 18 Sep 2013 18:51:28 +0200 > From: Dani Moncayo > Cc: Emacs development discussions > > > . Does temacs.exe you produce depend on libgcc_s_dw2-1.dll? (Use > > the dependency walker or objdump to find out.) > > I don't see that dependency, but FWIW, I'm attaching its dependencies > (as exported by "dependency walker"). > > > If not, perhaps > > some libraries that Emacs loads depend on that DLL? > > I don't know. FWIW, I'm building Emacs with the usual libraries: > giflib-4.1.4-1 > gnutls-3.0.9 > jpeg-6b-4 > libpng-dev_1.4.3-1 > libxml2-2.7.8 > tiff-3.8.2-1 > libXpm-3.5.11 > > And their dependency libraries: > zlib-1.2.8-1 > pkg-config_0.26-1 > glib_2.28.8-1 > p11-kit-0.9 > gettext-runtime_0.18.1.1-2 > libiconv-1.14-2 gnutls also depends on libintl, and either libintl or libiconv (I don't remember which one) might depend on libgcc_s_dw2-1.dll. > > . If you add -shared-libgcc switch to the temacs link command line, > > does the problem go away? > > Yes, it goes away! :) Then I'm quite sure you have a dependency on libgcc_s_dw2-1.dll in one of the other DLLs. All the symptoms are exactly as described in http://sourceforge.net/mailarchive/message.php?msg_id=31010191 The solution is to use libiconv and libintl from the ezwinports site, they don't have that problem. Note that building Emacs with -shared-libgcc explicitly makes temacs.exe and emacs.exe dependent on libgcc_s_dw2-1.dll, so you must carry that DLL together with the executables. That's why I don't like this solution, if it can be avoided.