From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Andrea Corallo Newsgroups: gmane.emacs.devel Subject: Re: How to make aot native-compilation and pdmp creation reproduceable Date: Wed, 11 Oct 2023 05:15:55 -0400 Message-ID: References: <83sf6kvyws.fsf@gnu.org> <877cnvu9uz.fsf@thaodan.de> <8734yju8ax.fsf@thaodan.de> <87cyxnsp27.fsf@thaodan.de> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="31983"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Gnus/5.13 (Gnus v5.13) Cc: Gerd =?utf-8?Q?M=C3=B6llmann?= , =?utf-8?Q?Bj=C3=B6rn?= Bidar , Eli Zaretskii , emacs-devel@gnu.org To: Alan Mackenzie Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Wed Oct 11 11:16:37 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 1qqVKW-00084m-Pd for ged-emacs-devel@m.gmane-mx.org; Wed, 11 Oct 2023 11:16:36 +0200 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1qqVJu-0005i3-C3; Wed, 11 Oct 2023 05:15:58 -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 1qqVJt-0005hv-5t for emacs-devel@gnu.org; Wed, 11 Oct 2023 05:15:57 -0400 Original-Received: from fencepost.gnu.org ([2001:470:142:3::e]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1qqVJs-0003QM-0Y; Wed, 11 Oct 2023 05:15:56 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnu.org; s=fencepost-gnu-org; h=MIME-Version:Date:References:In-Reply-To:Subject:To: From; bh=KcqVVFL1+MkvAmz8dsK+CxpB42l+5vQgSuLXKltrhUA=; b=ZndRqx/X1o4RdC1cGx+W 3bvfA/bBeoXLo+XjThe1Tp8YeSO/BGNTD/3NzIEIakMHdaBeMD94tnvZaMDmnZ3Dtn4719Ykt4ZcS qgbQGamVCa3j8nVYdbUtKxqf6BtH/qMte/olKQAJRFRJrAwAZ/aD78fJR8W93KkRbkvKHAzan5K5J 8k5tRBH5i75EYOcnOeBiGgUx4dYHVkut9nXc7n5mNtg6YmZiTGZ5QRnFn8CqTNQrY5OHXLt84dDni K9ZEvfmTWEaRezdA+XdFoJ/E+cm+ZicpxZaH/L7sqIj6EX6+Kr00U0pV8A+Hdwl/+cXz2Ev3QfWuw XodLBCcXH/7i6w==; Original-Received: from acorallo by fencepost.gnu.org with local (Exim 4.90_1) (envelope-from ) id 1qqVJr-0004JI-Or; Wed, 11 Oct 2023 05:15:55 -0400 In-Reply-To: (Alan Mackenzie's message of "Tue, 10 Oct 2023 10:39:06 +0000") 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:311407 Archived-At: Alan Mackenzie writes: > Hello, Gerd. > > On Tue, Oct 10, 2023 at 08:21:51 +0200, Gerd M=C3=B6llmann wrote: >> Alan Mackenzie writes: > >> > $ configure --with-gpm --with-native-compilation --with-gif=3Dno >> > --with-tiff=3Dno > >> I think he's using --with-native-compilation=3Daot > > Yes. I've tried it again with aot, and get the same binary twice over. > > 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. Certanly the directory Emacs is built in does make a difference in what we store into the eln files. At loadup.el:534 `invocation-directory' comes into play when we fixup native compilation units before dump. This is to have Emacs (when we resurrect from the dump file) working if installed or if the whole build directory was moved. Best Regards Andrea