From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Eli Zaretskii Newsgroups: gmane.emacs.devel Subject: Re: Emacs 28 pretest MS Windows snapshots Date: Sun, 05 Jul 2020 17:19:00 +0300 Message-ID: <83k0zit57v.fsf@gnu.org> References: <525489ee-b53c-49f4-bcc1-512f48175e08@default> <87wo3lhmj7.fsf@russet.org.uk> <83sge9x1ja.fsf@gnu.org> <83lfk1x0xu.fsf@gnu.org> <87h7unft33.fsf@russet.org.uk> <838sfzv8cx.fsf@gnu.org> <874kqnfmv5.fsf@russet.org.uk> <834kqnv2si.fsf@gnu.org> <87a70fe56h.fsf@russet.org.uk> <831rlruy8v.fsf@gnu.org> <871rlrdwn0.fsf@russet.org.uk> <83v9j3tbxe.fsf@gnu.org> <87sge7c5u1.fsf@russet.org.uk> Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="18273"; mail-complaints-to="usenet@ciao.gmane.io" Cc: drew.adams@oracle.com, emacs-devel@gnu.org To: Phillip Lord Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Sun Jul 05 16:19:32 2020 Return-path: Envelope-to: ged-emacs-devel@m.gmane-mx.org Original-Received: from lists.gnu.org ([209.51.188.17]) by ciao.gmane.io with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1js5UR-0004dO-36 for ged-emacs-devel@m.gmane-mx.org; Sun, 05 Jul 2020 16:19:31 +0200 Original-Received: from localhost ([::1]:46934 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1js5UQ-0001Ce-3y for ged-emacs-devel@m.gmane-mx.org; Sun, 05 Jul 2020 10:19:30 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:57704) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1js5Ts-0000TF-CB for emacs-devel@gnu.org; Sun, 05 Jul 2020 10:18:57 -0400 Original-Received: from fencepost.gnu.org ([2001:470:142:3::e]:33287) by eggs.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1js5Tr-0002yi-Eh; Sun, 05 Jul 2020 10:18:55 -0400 Original-Received: from [176.228.60.248] (port=4764 helo=home-c4e4a596f7) by fencepost.gnu.org with esmtpsa (TLS1.2:RSA_AES_256_CBC_SHA1:256) (Exim 4.82) (envelope-from ) id 1js5Tq-000801-Vt; Sun, 05 Jul 2020 10:18:55 -0400 In-Reply-To: <87sge7c5u1.fsf@russet.org.uk> (message from Phillip Lord on Sat, 04 Jul 2020 22:45:26 +0100) X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.23 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-mx.org@gnu.org Original-Sender: "Emacs-devel" Xref: news.gmane.io gmane.emacs.devel:252695 Archived-At: > From: Phillip Lord > Cc: drew.adams@oracle.com, emacs-devel@gnu.org > Date: Sat, 04 Jul 2020 22:45:26 +0100 > > > Can you show the full link command in each case? To display it, touch > > some object file in src/, then say "make V=1". > > Here they are. Both mention gmp in the command line. Yes, but there's a subtle difference: > ================Emacs 28========================= [...] > x86_64-w64-mingw32-gcc -o temacs.exe.tmp \ -Demacs > -I. -I../../../../git/master/src -I../lib > [...] > -Wno-pointer-sign -O2 -g3 -Wl,-stack,0x00800000 -Wl,-heap,0x00100000 ^^^^^^^ > ================Emacs 27========================= > Administrator@cirrocumulus MINGW64 > ~/emacs-build/build/emacs-27.0.91/x86_64/src $ make V=1 [...] > x86_64-w64-mingw32-gcc -o temacs.exe.tmp \ -Demacs > -I. -I../../../../git/emacs-27.0.91/src -I../lib > [...] > -Wno-pointer-sign -O2 -static -Wl,-stack,0x00800000 ^^^^^^^^^^^ IOW, the Emacs 27 build uses -static (thus linking against libgmp statically), whereas the Emacs 28 does not. Which is why libgmp-10.dll ends up being a runtime dependency of the latter, but not the former. I don't know how this happened, but hopefully this is a string you could pull to find the reason(s). First question I'd ask is "how do you arrange for -static to be injected into the link command line?" Maybe whatever you do no longer works with the master branch?