From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Stephen Leake Newsgroups: gmane.emacs.devel Subject: Re: building emacs-dynamic-modules on Windows Msys64 mingw32 Date: Sat, 25 Oct 2014 07:25:36 -0500 Message-ID: <85h9ys9vzz.fsf@stephe-leake.org> References: <85oat19ksm.fsf@stephe-leake.org> <83bnp064k3.fsf@gnu.org> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: ger.gmane.org 1414239964 26284 80.91.229.3 (25 Oct 2014 12:26:04 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Sat, 25 Oct 2014 12:26:04 +0000 (UTC) To: emacs-devel@gnu.org Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Sat Oct 25 14:25:57 2014 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 1Xi0Pq-000050-F9 for ged-emacs-devel@m.gmane.org; Sat, 25 Oct 2014 14:25:54 +0200 Original-Received: from localhost ([::1]:53340 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Xi0Pq-0003dD-0A for ged-emacs-devel@m.gmane.org; Sat, 25 Oct 2014 08:25:54 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:33065) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Xi0Pi-0003d1-22 for emacs-devel@gnu.org; Sat, 25 Oct 2014 08:25:51 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Xi0Pc-0007ZO-Kg for emacs-devel@gnu.org; Sat, 25 Oct 2014 08:25:45 -0400 Original-Received: from dnvrco-outbound-snat.email.rr.com ([107.14.73.228]:6807 helo=dnvrco-oedge-vip.email.rr.com) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Xi0Pb-0007ZK-VH for emacs-devel@gnu.org; Sat, 25 Oct 2014 08:25:40 -0400 Original-Received: from [70.94.38.149] ([70.94.38.149:54762] helo=TAKVER) by dnvrco-oedge03 (envelope-from ) (ecelerity 3.5.0.35861 r(Momo-dev:tip)) with ESMTP id A0/03-02691-2C69B445; Sat, 25 Oct 2014 12:25:38 +0000 In-Reply-To: <83bnp064k3.fsf@gnu.org> (Eli Zaretskii's message of "Sat, 25 Oct 2014 09:34:20 +0300") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.3.94 (windows-nt) X-RR-Connecting-IP: 107.14.64.142:25 X-Authority-Analysis: v=2.1 cv=YuiBRuoX c=1 sm=1 tr=0 a=AppmJ/7ZOOFWL/q6u6u93g==:117 a=AppmJ/7ZOOFWL/q6u6u93g==:17 a=ayC55rCoAAAA:8 a=fNEgcOh0sVsA:10 a=9i_RQKNPAAAA:8 a=mDV3o1hIAAAA:8 a=WdhwwY0MVKmGFt9nS-4A:9 a=msZujM89TJ49UhOP:21 a=w_CFRy2KOm1aGKqP:21 X-Cloudmark-Score: 0 X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 107.14.73.228 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:175825 Archived-At: Eli Zaretskii writes: >> From: Stephen Leake >> Date: Fri, 24 Oct 2014 17:15:21 -0500 >> >> make[2]: Leaving directory '/c/Projects/emacs/emacs-dynamic-module/lisp' >> if test "no" = "yes"; then \ >> rm -f bootstrap-emacs.exe; \ >> ln temacs.exe bootstrap-emacs.exe; \ >> else \ >> ./temacs --batch --load loadup bootstrap || exit 1; \ >> test "X" = X || -zex emacs.exe; \ >> mv -f emacs.exe bootstrap-emacs.exe; \ >> fi >> /bin/sh: line 4: ./temacs: cannot execute binary file: Exec format error > > What kind of file is 'temacs'? Can you invoke it from the Windows cmd > prompt? No: 'temacs.exe' is not recognized as an internal or external command, operable program or batch file. I discovered I have 'objdump' from Cygwin; it reports: stephe@takver$ objdump -f temacs.exe temacs.exe: file format pei-i386 architecture: i386, flags 0x0000013a: EXEC_P, HAS_DEBUG, HAS_SYMS, HAS_LOCALS, D_PAGED start address 0x001372f0 stephe@takver$ objdump -fh temacs.exe temacs.exe: file format pei-i386 architecture: i386, flags 0x0000013a: EXEC_P, HAS_DEBUG, HAS_SYMS, HAS_LOCALS, D_PAGED start address 0x001372f0 Sections: Idx Name Size VMA LMA File off Algn 0 .text 001b5c09 00000fff 00000fff 000005ff 2**4 CONTENTS, ALLOC, LOAD, READONLY, CODE, DATA 1 .data 001cdf78 001b7000 001b7000 001b6400 2**6 CONTENTS, ALLOC, LOAD, DATA 2 .rdata 0001db10 00385000 00385000 00384400 2**6 CONTENTS, ALLOC, LOAD, READONLY, DATA 3 .eh_frame 00033810 003a3000 003a3000 003a2000 2**2 CONTENTS, ALLOC, LOAD, READONLY, DATA 4 .bss 00b5c480 003d7000 003d7000 00000000 2**6 ALLOC 5 .idata 00003a8c 00f34000 00f34000 003d5a00 2**2 CONTENTS, ALLOC, LOAD, DATA 6 .CRT 00000034 00f38000 00f38000 003d9600 2**2 CONTENTS, ALLOC, LOAD, DATA 7 .tls 00000020 00f39000 00f39000 003d9800 2**2 CONTENTS, ALLOC, LOAD, DATA 8 .rsrc 0000d7f4 00f3a000 00f3a000 003d9a00 2**2 CONTENTS, ALLOC, LOAD, DATA 9 .debug_aranges 00001388 00f48000 00f48000 003e7200 2**3 CONTENTS, READONLY, DEBUGGING 10 .debug_info 00631255 00f4a000 00f4a000 003e8600 2**0 CONTENTS, READONLY, DEBUGGING 11 .debug_abbrev 0002590c 0157c000 0157c000 00a19a00 2**0 CONTENTS, READONLY, DEBUGGING 12 .debug_line 000ca14e 015a2000 015a2000 00a3f400 2**0 CONTENTS, READONLY, DEBUGGING 13 .debug_str 00011e3c 0166d000 0166d000 00b09600 2**0 CONTENTS, READONLY, DEBUGGING 14 .debug_loc 002bd822 0167f000 0167f000 00b1b600 2**0 CONTENTS, READONLY, DEBUGGING 15 .debug_macro 02e3ceae 0193d000 0193d000 00dd9000 2**0 CONTENTS, READONLY, DEBUGGING 16 .debug_ranges 0005ab98 0477a000 0477a000 03c16000 2**0 CONTENTS, READONLY, DEBUGGING That's very close to the temacs.exe I built from the 24.3.94 tarball; it has an additional section: 17 EMHEAP 02a00000 04eaa000 04eaa000 00000000 2**2 ALLOC Is there some other binutils tool that might provide more detailed info on what's wrong with this file? -- -- Stephe