From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Pip Cet Newsgroups: gmane.emacs.bugs Subject: bug#44531: 27.1; Emacs 27 fails to build from source on m68k (regression) Date: Sat, 23 Jul 2022 14:42:58 +0000 Message-ID: References: Mime-Version: 1.0 Content-Type: text/plain; charset="UTF-8" Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="33220"; mail-complaints-to="usenet@ciao.gmane.io" Cc: 44531@debbugs.gnu.org, Daniel Colascione , John Paul Adrian Glaubitz To: Stefan Monnier Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Sat Jul 23 16:44:13 2022 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane-mx.org Original-Received: from lists.gnu.org ([209.51.188.17]) by ciao.gmane.io with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1oFGMW-0008WF-VE for geb-bug-gnu-emacs@m.gmane-mx.org; Sat, 23 Jul 2022 16:44:12 +0200 Original-Received: from localhost ([::1]:35978 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1oFGMV-0006IT-Iu for geb-bug-gnu-emacs@m.gmane-mx.org; Sat, 23 Jul 2022 10:44:11 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:44770) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1oFGMM-0006FJ-7r for bug-gnu-emacs@gnu.org; Sat, 23 Jul 2022 10:44:02 -0400 Original-Received: from debbugs.gnu.org ([209.51.188.43]:56262) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1oFGML-00058t-VA for bug-gnu-emacs@gnu.org; Sat, 23 Jul 2022 10:44:01 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1oFGML-0006Zl-R3 for bug-gnu-emacs@gnu.org; Sat, 23 Jul 2022 10:44:01 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Pip Cet Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sat, 23 Jul 2022 14:44:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 44531 X-GNU-PR-Package: emacs Original-Received: via spool by 44531-submit@debbugs.gnu.org id=B44531.165858742425241 (code B ref 44531); Sat, 23 Jul 2022 14:44:01 +0000 Original-Received: (at 44531) by debbugs.gnu.org; 23 Jul 2022 14:43:44 +0000 Original-Received: from localhost ([127.0.0.1]:46011 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1oFGM4-0006Z2-GN for submit@debbugs.gnu.org; Sat, 23 Jul 2022 10:43:44 -0400 Original-Received: from mail-pl1-f172.google.com ([209.85.214.172]:39851) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1oFGM0-0006Yn-Q3 for 44531@debbugs.gnu.org; Sat, 23 Jul 2022 10:43:43 -0400 Original-Received: by mail-pl1-f172.google.com with SMTP id c13so101369pla.6 for <44531@debbugs.gnu.org>; Sat, 23 Jul 2022 07:43:40 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=cMT8pTofVEuR37We7LYfmw7/bOR049u6McQYbov6JMI=; b=D9uqP5QfEBVPBT+NGzF3f2MtDS787LmB7bqC7qoOjU3C1P44+XkOffAgLMYt0TGBBD Muvw9IV5rOsKKpClryxylWr7Hvhx54i+Uk09G0CaLgg8c9GOPY/go4EEI34P8k/7swf8 Jvy/CYC687itGPGMqAlrlr2iNx+OwnSN8UqQPsGF3iC+9iLpFd4v5eVUweo0CRFGf1pM BHQsSG5kqUy3XFiEdWYYIy5wv8+CRDKHiLHlMFOSOmdJB2kFweo/RBulDIFdtAX2RLu0 kLBZ55nJfVVfuOnnJUQTGpLQQZ9HRcI3k+JTeWoJKOF5mlVyTJVPo5rpgBN+pCUH1e/4 dlIw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=cMT8pTofVEuR37We7LYfmw7/bOR049u6McQYbov6JMI=; b=nl31cXGCJsIihsmK6JzIyQAQw3oo76UTHZLX/zM2fo8bkACDi5i6b/JH2ZoGlDQ62w y3gkXu9rdCY2nxtQDBxB2ue2ho1kk5gnlA1Tf1MTtRU1VsOgme7AA8RjR2mk8uDSL2lE 5QTZ4nFJXpRy/ihU4wdGLzfK46LsAVLKpkwPgtpWNWWMCy4plVJV9R+uTTF2H2pt+OZ7 6taKxA7hORYCkdSZ1rRF9rCjOpRblOyceiLORcT0MGn1LlIT3DlI65TuVIqDw4kHEJ8z aqUlC3zssRlaU/2mZ6LeAEgxi5E0abbEw6h9zyyO9R6YBmrvmMD6IrODIqzLQIhswkzQ UrUw== X-Gm-Message-State: AJIora/0jXKL6bBFZlVtYKtN3v/s3yuukco9/f1ZjSFv86kK8VSsVQJ8 DTKrL5rUnM+fr88Srff16PgcqtHhQYlgV4y4VA4= X-Google-Smtp-Source: AGRyM1s30uksTMfUZfdF9nXVHS2FpCXJKlnuXAcDk2mLrlee5NUIbevPxnDCotrULrx7wl9FDxl8BfYd0gv5Xcd/zik= X-Received: by 2002:a17:90b:3c86:b0:1f2:1fb9:ebd with SMTP id pv6-20020a17090b3c8600b001f21fb90ebdmr20616931pjb.151.1658587414912; Sat, 23 Jul 2022 07:43:34 -0700 (PDT) In-Reply-To: X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-BeenThere: bug-gnu-emacs@gnu.org List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Original-Sender: "bug-gnu-emacs" Xref: news.gmane.io gmane.emacs.bugs:237752 Archived-At: On Sat, Jul 2, 2022 at 7:29 PM Stefan Monnier via Bug reports for GNU Emacs, the Swiss army knife of text editors 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