all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Ulrich Mueller <ulm@gentoo.org>
To: Alan Mackenzie <acm@muc.de>
Cc: "Gerd Möllmann" <gerd.moellmann@gmail.com>,
	"Björn Bidar" <bjorn.bidar@thaodan.de>,
	"Eli Zaretskii" <eliz@gnu.org>,
	emacs-devel@gnu.org
Subject: Re: How to make aot native-compilation and pdmp creation reproduceable
Date: Tue, 10 Oct 2023 10:30:10 +0200	[thread overview]
Message-ID: <u34yix4kt@gentoo.org> (raw)
In-Reply-To: <ZSRFOvAkEbmr5f_9@ACM> (Alan Mackenzie's message of "Mon, 9 Oct 2023 18:23:54 +0000")

>>>>> On Mon, 09 Oct 2023, Alan Mackenzie wrote:

> For what it's worth, I just built Emacs twice on one of my development
> repositories on GNU/Linux, and the two emacsen produced were identical,
> checked by cmp and md5sum.

> Each build was set off with

>     $ make -j17 bootstrap

> ..  My configuration was created by:

>     $ configure --with-gpm --with-native-compilation --with-gif=no --with-tiff=no

> ..  Maybe I don't understand what the problem is, but I'm seeing
> repeatable builds.

When building on a Gentoo system, I get a reproducible emacs binary,
but the dump is different every time:

$ USE="-*" MAKEOPTS="-j1" EVCS_OFFLINE=1 ebuild emacs-30.0.9999.ebuild clean compile
[...]
 * Emacs branch: master
 * Commit: 336c3674119f61bd78a056476769ce83b97230bb
[...]
$ md5sum /tmp/portage/app-editors/emacs-30.0.9999/work/emacs/src/emacs{,.pdmp}
805903ff5a7a5efc289e1e66240cddff  /tmp/portage/app-editors/emacs-30.0.9999/work/emacs/src/emacs
d3a98def495185bb818f6521f36417e0  /tmp/portage/app-editors/emacs-30.0.9999/work/emacs/src/emacs.pdmp

$ USE="-*" MAKEOPTS="-j1" EVCS_OFFLINE=1 ebuild emacs-30.0.9999.ebuild clean compile
[...]
 * Emacs branch: master
 * Commit: 336c3674119f61bd78a056476769ce83b97230bb
[...]
$ md5sum /tmp/portage/app-editors/emacs-30.0.9999/work/emacs/src/emacs{,.pdmp}
805903ff5a7a5efc289e1e66240cddff  /tmp/portage/app-editors/emacs-30.0.9999/work/emacs/src/emacs
2f9c59181684c3070a1684cd2d030dea  /tmp/portage/app-editors/emacs-30.0.9999/work/emacs/src/emacs.pdmp

I have verified that all *.el and *.elc files are identical in both
cases. I get different checksums for lib/libgnu.a, which is expected
because the archive contains timestamps.

My configuration is this (with USE="-* almost all options are disabled):

./configure --prefix=/usr --build=x86_64-pc-linux-gnu
--host=x86_64-pc-linux-gnu --mandir=/usr/share/man
--infodir=/usr/share/info --datadir=/usr/share --sysconfdir=/etc
--localstatedir=/var/lib --datarootdir=/usr/share --disable-silent-rules
--docdir=/usr/share/doc/emacs-30.0.9999
--htmldir=/usr/share/doc/emacs-30.0.9999/html --libdir=/usr/lib64
--program-suffix=-emacs-30-vcs --includedir=/usr/include/emacs-30-vcs
--infodir=/usr/share/info/emacs-30-vcs --localstatedir=/var
--enable-locallisppath=/etc/emacs:/usr/share/emacs/site-lisp
--without-compress-install --without-hesiod --without-pop
--with-file-notification=no --with-pdumper --disable-acl --disable-xattr
--without-dbus --without-modules --without-gameuser --without-libgmp
--without-gpm --without-native-compilation --without-json
--without-kerberos --without-kerberos5 --without-lcms2 --without-xml2
--without-mailutils --without-selinux --without-small-ja-dic
--without-sqlite3 --without-gnutls --without-libsystemd --without-threads
--without-tree-sitter --without-wide-int --with-sound=no --without-zlib
--without-x --without-pgtk --without-ns --with-dumping=pdumper



  parent reply	other threads:[~2023-10-10  8:30 UTC|newest]

Thread overview: 52+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2023-10-07 18:37 How to make aot native-compilation and pdmp creation reproduceable Björn Bidar
2023-10-07 19:27 ` Gerd Möllmann
2023-10-08 20:53   ` Björn Bidar
2023-10-08 20:57   ` Björn Bidar
2023-10-09  4:19     ` Gerd Möllmann
2023-10-09 11:05       ` Eli Zaretskii
2023-10-09 11:26         ` Gerd Möllmann
2023-10-09 11:32           ` Eli Zaretskii
2023-10-09 11:55             ` Gerd Möllmann
2023-10-09 12:29               ` Gerd Möllmann
2023-10-09 13:09               ` Eli Zaretskii
2023-10-09 13:33                 ` Gerd Möllmann
2023-10-09 14:20                   ` Eli Zaretskii
2023-10-09 14:30                     ` Gerd Möllmann
2023-10-09 14:48                 ` Björn Bidar
2023-10-09 14:58                   ` Eli Zaretskii
2023-10-09 15:44                     ` Björn Bidar
2023-10-09 14:52           ` Björn Bidar
2023-10-09 15:06             ` Gerd Möllmann
     [not found]               ` <8734yju8ax.fsf@thaodan.de>
2023-10-09 15:59                 ` Eli Zaretskii
2023-10-09 16:06                   ` Björn Bidar
2023-10-09 16:28                     ` Eli Zaretskii
2023-10-09 16:53                       ` Björn Bidar
2023-10-09 16:40                 ` Gerd Möllmann
2023-10-09 17:06                   ` Björn Bidar
2023-10-09 17:19                     ` Gerd Möllmann
2023-10-09 18:23                       ` Alan Mackenzie
2023-10-10  6:21                         ` Gerd Möllmann
2023-10-10 10:39                           ` Alan Mackenzie
2023-10-10 11:12                             ` Gerd Möllmann
2023-10-10 11:58                             ` Michael Albinus
2023-10-10 12:17                             ` Eli Zaretskii
2023-10-10 13:07                               ` Alan Mackenzie
2023-10-11  9:15                             ` Andrea Corallo
2023-10-10  8:30                         ` Ulrich Mueller [this message]
2023-10-10  9:28                           ` Gerd Möllmann
2023-10-10 10:53                             ` Ulrich Mueller
2023-10-10 11:15                               ` Gerd Möllmann
2023-10-10 11:08                           ` Differences in *.elc files (was: Re: How to make aot native-compilation and pdmp creation reproduceable) Ulrich Mueller
2023-10-10 11:51                             ` Differences in *.elc files Gerd Möllmann
2023-10-10 12:14                           ` How to make aot native-compilation and pdmp creation reproduceable Eli Zaretskii
2023-10-10 14:40                             ` Björn Bidar
2023-10-10 14:59                             ` Ulrich Mueller
2023-10-09  4:28     ` Gerd Möllmann
2023-10-08  7:14 ` Andrea Corallo
2023-10-08 21:38   ` Björn Bidar
2023-10-09  2:34     ` Eli Zaretskii
2023-10-09  4:25       ` Björn Bidar
2023-10-09  4:46         ` Gerd Möllmann
2023-10-09  5:06           ` Gerd Möllmann
2023-10-09  5:47             ` Gerd Möllmann
2023-10-09 11:15         ` Eli Zaretskii

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=u34yix4kt@gentoo.org \
    --to=ulm@gentoo.org \
    --cc=acm@muc.de \
    --cc=bjorn.bidar@thaodan.de \
    --cc=eliz@gnu.org \
    --cc=emacs-devel@gnu.org \
    --cc=gerd.moellmann@gmail.com \
    /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.