From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Alan Mackenzie Newsgroups: gmane.emacs.devel Subject: Re: How to make aot native-compilation and pdmp creation reproduceable Date: Tue, 10 Oct 2023 13:07:21 +0000 Message-ID: References: <877cnvu9uz.fsf@thaodan.de> <8734yju8ax.fsf@thaodan.de> <87cyxnsp27.fsf@thaodan.de> <83il7evfh8.fsf@gnu.org> Mime-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: 8bit Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="33424"; mail-complaints-to="usenet@ciao.gmane.io" Cc: gerd.moellmann@gmail.com, bjorn.bidar@thaodan.de, emacs-devel@gnu.org To: Eli Zaretskii Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Tue Oct 10 15:08:33 2023 Return-path: Envelope-to: ged-emacs-devel@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 1qqCTR-0008Sh-5J for ged-emacs-devel@m.gmane-mx.org; Tue, 10 Oct 2023 15:08:33 +0200 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1qqCST-000418-DK; Tue, 10 Oct 2023 09:07:33 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1qqCSR-0003xJ-5V for emacs-devel@gnu.org; Tue, 10 Oct 2023 09:07:31 -0400 Original-Received: from mail.muc.de ([193.149.48.3]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1qqCSM-0007oR-2K for emacs-devel@gnu.org; Tue, 10 Oct 2023 09:07:30 -0400 Original-Received: (qmail 26428 invoked by uid 3782); 10 Oct 2023 15:07:23 +0200 Original-Received: from acm.muc.de (pd953a92c.dip0.t-ipconnect.de [217.83.169.44]) (using STARTTLS) by colin.muc.de (tmda-ofmipd) with ESMTP; Tue, 10 Oct 2023 15:07:22 +0200 Original-Received: (qmail 3477 invoked by uid 1000); 10 Oct 2023 13:07:21 -0000 Content-Disposition: inline In-Reply-To: <83il7evfh8.fsf@gnu.org> X-Submission-Agent: TMDA/1.3.x (Ph3nix) X-Primary-Address: acm@muc.de Received-SPF: pass client-ip=193.149.48.3; envelope-from=acm@muc.de; helo=mail.muc.de X-Spam_score_int: -18 X-Spam_score: -1.9 X-Spam_bar: - X-Spam_report: (-1.9 / 5.0 requ) BAYES_00=-1.9, SPF_HELO_PASS=-0.001, SPF_PASS=-0.001 autolearn=unavailable autolearn_force=no X-Spam_action: no action X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.29 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-mx.org@gnu.org Original-Sender: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Xref: news.gmane.io gmane.emacs.devel:311400 Archived-At: Hello, Eli. On Tue, Oct 10, 2023 at 15:17:39 +0300, Eli Zaretskii wrote: > > Date: Tue, 10 Oct 2023 10:39:06 +0000 > > Cc: Björn Bidar , > > Eli Zaretskii , emacs-devel@gnu.org > > From: Alan Mackenzie > > However, when I build the same source tree in two different directories, > > the results differ. In native-lisp/30.0.50-15c37793, there are ~22 .eln > > files differing between the two trees. As the OP reported, one of the > > differing files is native-lisp/30.0.50-15c37793/preloaded/x-win-....eln. > This is expected, since the absolute file names are recorded in > various places of the Emacs binary and the pdumper file. Ah. Indeed this is the case. There is even an absolute file name in cc-mode.elc, the place where a doc string is to be found. :-( Given this, it would seem to be premature to try and build reproducible builds if the build directory name is recorded in the binary. Surely we need to identify all the places this happens and tidy these up, first. That's assuming a reproducible build is actually required. -- Alan Mackenzie (Nuremberg, Germany).