all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Pip Cet <pipcet@gmail.com>
To: Stefan Monnier <monnier@iro.umontreal.ca>
Cc: 44531@debbugs.gnu.org, Daniel Colascione <dancol@dancol.org>,
	John Paul Adrian Glaubitz <glaubitz@physik.fu-berlin.de>
Subject: bug#44531: 27.1; Emacs 27 fails to build from source on m68k (regression)
Date: Sat, 23 Jul 2022 14:42:58 +0000	[thread overview]
Message-ID: <CAOqdjBemeaekw0-x1+uozmSa4AkXQvv68VSP_ENTOas4jbTW-g@mail.gmail.com> (raw)
In-Reply-To: <jwvedz3pbb1.fsf-monnier+emacs@gnu.org>

On Sat, Jul 2, 2022 at 7:29 PM Stefan Monnier via Bug reports for GNU
Emacs, the Swiss army knife of text editors <bug-gnu-emacs@gnu.org>
wrote:
> > dumping fingerprint: 7b5c59c589dc151eb1e4269bd83fbe809616b5cb9bb5c80014d5b560b391dfb6
> > dump relocation out of range
>
> This error message basically says that the relation is not a multiple of
> the minimum expected alignment.  So it seems to be a direct consequence
> of the 16bit alignment used on m68k combined with the following from
> pdumper.el:

pdumper.c, I think :-)

>    [...]
>    DUMP_RELOC_ALIGNMENT_BITS = 2,
>
>    /* Minimum alignment required by dump file format.  */
>    DUMP_RELOCATION_ALIGNMENT = 1 << DUMP_RELOC_ALIGNMENT_BITS,
>    [...]
>
> I can't see anything in the code which explains what this alignment
> requirement is about.  You can try lowering DUMP_RELOC_ALIGNMENT_BITS
> to 1 and see if that works (long shot).

IIUC, the top (DUMP_RELOC_TYPE_BITS - DUMP_RELOC_ALIGNMENT_BITS) of
the relocation offsets stored by pdumper must be 0. That means we can
only address the first 512 MB of the dump in ordinary 32-bit pdumper
builds, and 256 MB on m68k with your fix. I'm not sure how useful a
data point this is without real silicon, but I tried on an m68k
emulator (qemu), could reproduce the bug, and your fix works there.

Pip





  reply	other threads:[~2022-07-23 14:42 UTC|newest]

Thread overview: 15+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2020-11-09 13:30 bug#44531: 27.1; Emacs 27 fails to build from source on m68k (regression) John Paul Adrian Glaubitz
     [not found] ` <handler.44531.B.160492867316655.ack@debbugs.gnu.org>
2020-11-09 19:34   ` bug#44531: Acknowledgement (27.1; Emacs 27 fails to build from source on m68k (regression)) John Paul Adrian Glaubitz
2020-11-21  7:47 ` bug#44531: 27.1; Emacs 27 fails to build from source on m68k (regression) Eli Zaretskii
2020-11-21  8:07   ` Daniel Colascione
2020-11-23 12:35     ` John Paul Adrian Glaubitz
2021-09-08  9:48       ` Lars Ingebrigtsen
2021-09-08 11:28         ` John Paul Adrian Glaubitz
2021-10-07  9:19         ` Lars Ingebrigtsen
2021-10-07  9:20           ` Lars Ingebrigtsen
2021-10-07  9:37           ` John Paul Adrian Glaubitz
2022-07-02 19:28 ` Stefan Monnier via Bug reports for GNU Emacs, the Swiss army knife of text editors
2022-07-23 14:42   ` Pip Cet [this message]
2022-08-16 21:38     ` Stefan Monnier via Bug reports for GNU Emacs, the Swiss army knife of text editors
2022-09-04  8:02   ` John Paul Adrian Glaubitz
2022-09-04 16:05     ` Stefan Monnier via Bug reports for GNU Emacs, the Swiss army knife of text editors

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=CAOqdjBemeaekw0-x1+uozmSa4AkXQvv68VSP_ENTOas4jbTW-g@mail.gmail.com \
    --to=pipcet@gmail.com \
    --cc=44531@debbugs.gnu.org \
    --cc=dancol@dancol.org \
    --cc=glaubitz@physik.fu-berlin.de \
    --cc=monnier@iro.umontreal.ca \
    /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.