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#2507: 23.0.91; Stripping emacs.exe on MS-Windows produces an invalid program Date: Sat, 28 Feb 2009 14:14:16 +0200 Message-ID: References: Reply-To: Eli Zaretskii , 2507@emacsbugs.donarmstrong.com NNTP-Posting-Host: lo.gmane.org X-Trace: ger.gmane.org 1235824105 5784 80.91.229.12 (28 Feb 2009 12:28:25 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Sat, 28 Feb 2009 12:28:25 +0000 (UTC) To: 2507@emacsbugs.donarmstrong.com Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Sat Feb 28 13:29:42 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 1LdOK5-0004X1-Lv for geb-bug-gnu-emacs@m.gmane.org; Sat, 28 Feb 2009 13:29:41 +0100 Original-Received: from localhost ([127.0.0.1]:45528 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1LdOIk-0005Jg-Dc for geb-bug-gnu-emacs@m.gmane.org; Sat, 28 Feb 2009 07:28:18 -0500 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1LdOEJ-0004Nh-KZ for bug-gnu-emacs@gnu.org; Sat, 28 Feb 2009 07:23:44 -0500 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1LdOEI-0004N7-20 for bug-gnu-emacs@gnu.org; Sat, 28 Feb 2009 07:23:43 -0500 Original-Received: from [199.232.76.173] (port=58146 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1LdOEG-0004Mx-UI for bug-gnu-emacs@gnu.org; Sat, 28 Feb 2009 07:23:41 -0500 Original-Received: from rzlab.ucr.edu ([138.23.92.77]:48570) by monty-python.gnu.org with esmtps (TLS-1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1LdOEG-0001IQ-0F for bug-gnu-emacs@gnu.org; Sat, 28 Feb 2009 07: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 n1SCNcHu011328; Sat, 28 Feb 2009 04:23:38 -0800 Original-Received: (from debbugs@localhost) by rzlab.ucr.edu (8.13.8/8.13.8/Submit) id n1SCK395010120; Sat, 28 Feb 2009 04:20:03 -0800 X-Loop: owner@emacsbugs.donarmstrong.com Resent-From: Eli Zaretskii Resent-To: bug-submit-list@donarmstrong.com Resent-CC: Emacs Bugs Resent-Date: Sat, 28 Feb 2009 12:20:03 +0000 Resent-Message-ID: Resent-Sender: owner@emacsbugs.donarmstrong.com X-Emacs-PR-Message: followup 2507 X-Emacs-PR-Package: emacs X-Emacs-PR-Keywords: Original-Received: via spool by 2507-submit@emacsbugs.donarmstrong.com id=B2507.12358233159921 (code B ref 2507); Sat, 28 Feb 2009 12:20:03 +0000 Original-Received: (at 2507) by emacsbugs.donarmstrong.com; 28 Feb 2009 12:15:15 +0000 X-Spam-Bayes: score:0.5 Bayes not run. spammytokens:Tokens not available. hammytokens:Tokens not available. Original-Received: from mtaout1.012.net.il (mtaout1.012.net.il [84.95.2.1]) by rzlab.ucr.edu (8.13.8/8.13.8/Debian-3) with ESMTP id n1SCFBoJ009114 for <2507@emacsbugs.donarmstrong.com>; Sat, 28 Feb 2009 04:15:13 -0800 Original-Received: from conversion-daemon.i-mtaout1.012.net.il by i-mtaout1.012.net.il (HyperSendmail v2007.08) id <0KFR00300XB6NQ00@i-mtaout1.012.net.il> for 2507@emacsbugs.donarmstrong.com; Sat, 28 Feb 2009 14:14:50 +0200 (IST) Original-Received: from HOME-C4E4A596F7 ([77.127.167.119]) by i-mtaout1.012.net.il (HyperSendmail v2007.08) with ESMTPA id <0KFR004ENZCP0VB0@i-mtaout1.012.net.il> for 2507@emacsbugs.donarmstrong.com; Sat, 28 Feb 2009 14:14:50 +0200 (IST) In-reply-to: X-012-Sender: halo1@inter.net.il X-detected-operating-system: by monty-python.gnu.org: GNU/Linux 2.6 (newer, 3) Resent-Date: Sat, 28 Feb 2009 07:23:42 -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:25841 Archived-At: > 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?