all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Stephen Leake <stephen_leake@stephe-leake.org>
To: emacs-devel@gnu.org
Subject: Re: building emacs-dynamic-modules on Windows Msys64 mingw32
Date: Sat, 25 Oct 2014 07:25:36 -0500	[thread overview]
Message-ID: <85h9ys9vzz.fsf@stephe-leake.org> (raw)
In-Reply-To: <83bnp064k3.fsf@gnu.org> (Eli Zaretskii's message of "Sat, 25 Oct 2014 09:34:20 +0300")

Eli Zaretskii <eliz@gnu.org> writes:

>> From: Stephen Leake <stephen_leake@stephe-leake.org>
>> 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



  reply	other threads:[~2014-10-25 12:25 UTC|newest]

Thread overview: 9+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2014-10-24 22:15 building emacs-dynamic-modules on Windows Msys64 mingw32 Stephen Leake
2014-10-25  6:34 ` Eli Zaretskii
2014-10-25 12:25   ` Stephen Leake [this message]
2014-10-25 12:52     ` Eli Zaretskii
2014-10-25 13:49       ` Aurélien Aptel
2014-10-25 15:09         ` Stephen Leake
2014-10-27 13:13         ` Aurélien Aptel
2014-10-27 13:32           ` Andreas Schwab
2014-10-27 13:35           ` Aurélien Aptel

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=85h9ys9vzz.fsf@stephe-leake.org \
    --to=stephen_leake@stephe-leake.org \
    --cc=emacs-devel@gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/emacs.git
	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.