From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Harald Maier Newsgroups: gmane.emacs.bugs Subject: bug#2507: 23.0.91; Stripping emacs.exe on MS-Windows produces an invalid program Date: Sun, 01 Mar 2009 07:01:27 +0100 Message-ID: References: Reply-To: Harald Maier , 2507@emacsbugs.donarmstrong.com NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: ger.gmane.org 1235888639 24689 80.91.229.12 (1 Mar 2009 06:23:59 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Sun, 1 Mar 2009 06:23:59 +0000 (UTC) Cc: 2507@emacsbugs.donarmstrong.com To: Eli Zaretskii Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Sun Mar 01 07:25:15 2009 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.50) id 1Ldf6v-0005li-OU for geb-bug-gnu-emacs@m.gmane.org; Sun, 01 Mar 2009 07:25:14 +0100 Original-Received: from localhost ([127.0.0.1]:57634 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Ldf5a-000737-LC for geb-bug-gnu-emacs@m.gmane.org; Sun, 01 Mar 2009 01:23:50 -0500 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1Ldf5S-00070Y-RI for bug-gnu-emacs@gnu.org; Sun, 01 Mar 2009 01:23:42 -0500 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1Ldf5R-0006ys-54 for bug-gnu-emacs@gnu.org; Sun, 01 Mar 2009 01:23:42 -0500 Original-Received: from [199.232.76.173] (port=43378 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Ldf5Q-0006yT-Sw for bug-gnu-emacs@gnu.org; Sun, 01 Mar 2009 01:23:40 -0500 Original-Received: from rzlab.ucr.edu ([138.23.92.77]:55846) by monty-python.gnu.org with esmtps (TLS-1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1Ldf5Q-0001l8-Df for bug-gnu-emacs@gnu.org; Sun, 01 Mar 2009 01:23:40 -0500 Original-Received: from rzlab.ucr.edu (rzlab.ucr.edu [127.0.0.1]) by rzlab.ucr.edu (8.13.8/8.13.8/Debian-3) with ESMTP id n216Nc9x009475; Sat, 28 Feb 2009 22:23:38 -0800 Original-Received: (from debbugs@localhost) by rzlab.ucr.edu (8.13.8/8.13.8/Submit) id n216A3pa005904; Sat, 28 Feb 2009 22:10:03 -0800 X-Loop: owner@emacsbugs.donarmstrong.com Resent-From: Harald Maier Resent-To: bug-submit-list@donarmstrong.com Resent-CC: Emacs Bugs , owner@emacsbugs.donarmstrong.com Resent-Date: Sun, 01 Mar 2009 06:10:03 +0000 Resent-Message-ID: Resent-Sender: owner@emacsbugs.donarmstrong.com X-Emacs-PR-Message: followup 2507 X-Emacs-PR-Package: emacs,w32 X-Emacs-PR-Keywords: Original-Received: via spool by 2507-submit@emacsbugs.donarmstrong.com id=B2507.12358873113790 (code B ref 2507); Sun, 01 Mar 2009 06:10:03 +0000 Original-Received: (at 2507) by emacsbugs.donarmstrong.com; 1 Mar 2009 06:01:51 +0000 X-Spam-Bayes: score:0.5 Bayes not run. spammytokens:Tokens not available. hammytokens:Tokens not available. Original-Received: from moutng.kundenserver.de (moutng.kundenserver.de [212.227.126.177]) by rzlab.ucr.edu (8.13.8/8.13.8/Debian-3) with ESMTP id n2161lOi003784 for <2507@emacsbugs.donarmstrong.com>; Sat, 28 Feb 2009 22:01:49 -0800 Original-Received: from ate.maierh (p5498622F.dip.t-dialin.net [84.152.98.47]) by mrelayeu.kundenserver.de (node=mrelayeu7) with ESMTP (Nemesis) id 0ML2xA-1Ldejx15Vo-0006Au; Sun, 01 Mar 2009 07:01:29 +0100 Original-Received: by ate.maierh (Postfix, from userid 501) id 345AA65D7F9; Sun, 1 Mar 2009 07:01:27 +0100 (CET) In-Reply-To: (Eli Zaretskii's message of "Sat, 28 Feb 2009 14:14:16 +0200") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/23.0.91 (darwin) X-Provags-ID: V01U2FsdGVkX18WvLWJfb26TfHZK88z+ZNzBFiq1Pw3FlWcYIh K20QPmPyDz3uF8mefQy9WQRsNSvORDqOuXQP17QpsI66+CBv75 t9uW2Jk0GK7yiexYYCEig== X-detected-operating-system: by monty-python.gnu.org: GNU/Linux 2.6 (newer, 3) Resent-Date: Sun, 01 Mar 2009 01:23:41 -0500 X-BeenThere: bug-gnu-emacs@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.bugs:25873 Archived-At: Eli Zaretskii writes: >> Date: Sat, 28 Feb 2009 13:01:07 +0200 >> From: Eli Zaretskii >> Cc: >> >> strip emacs.exe >> emacs -Q >> >> results in the OS popping an error dialog saying: >> >> emacs.exe is not a valid Win32 application > > More info: building Emacs like this: > > make USER_LDFLAGS=-s install > > produces an already stripped emacs.exe that is 8548352 bytes large. > So this should serve as a stop-gap in case we cannot easily find a > cure for running `strip' on the dumped Emacs. > > One further idea to ponder is that the fact we now compile with > DWARF-2 debug info is the reason for the problem with stripping the > dumped Emacs. Can someone please try rebuilding with "-gstabs" > instead of "-gdwarf-2 -g3", and see if that produces an emacs.exe > which can be safely stripped? I tried the "-gstabs" debug info, but after stripping it didn't work too. But the output size of that compilation and linking is far smaller. Result: 12.55 MB (-gstabs) instead of 31.33 MB (-gdwarf2 -g3). Harald