From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Eli Zaretskii Newsgroups: gmane.emacs.bugs Subject: bug#46256: [feature/native-comp] AOT eln files ignored if run from build tree Date: Wed, 03 Mar 2021 22:08:53 +0200 Message-ID: <83h7lsj8yy.fsf@gnu.org> References: <865z3866my.fsf@gmail.com> <865z38a9vo.fsf@gmail.com> <86eehujcip.fsf@gmail.com> <86blch14qt.fsf@gmail.com> <83h7m84h9g.fsf@gnu.org> <86v9ao5czu.fsf@gmail.com> <86wnutogrh.fsf@gmail.com> <86wnut8fb9.fsf@gmail.com> <861rd1tbpa.fsf@gmail.com> <83pn0km6y3.fsf@gnu.org> <86ft1f8ara.fsf@gmail.com> <83sg5cjdn8.fsf@gnu.org> <83pn0gjco8.fsf@gnu.org> <83lfb4jato.fsf@gnu.org> Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="5032"; mail-complaints-to="usenet@ciao.gmane.io" Cc: 46256@debbugs.gnu.org To: Andrea Corallo Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Wed Mar 03 21:10:12 2021 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 1lHXow-0001EH-Dm for geb-bug-gnu-emacs@m.gmane-mx.org; Wed, 03 Mar 2021 21:10:10 +0100 Original-Received: from localhost ([::1]:55522 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1lHXov-0003kJ-GQ for geb-bug-gnu-emacs@m.gmane-mx.org; Wed, 03 Mar 2021 15:10:09 -0500 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:53688) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1lHXoo-0003jx-JA for bug-gnu-emacs@gnu.org; Wed, 03 Mar 2021 15:10:02 -0500 Original-Received: from debbugs.gnu.org ([209.51.188.43]:45542) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1lHXoo-0007Ih-Bs for bug-gnu-emacs@gnu.org; Wed, 03 Mar 2021 15:10:02 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1lHXoo-00042l-5j for bug-gnu-emacs@gnu.org; Wed, 03 Mar 2021 15:10:02 -0500 X-Loop: help-debbugs@gnu.org Resent-From: Eli Zaretskii Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Wed, 03 Mar 2021 20:10:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 46256 X-GNU-PR-Package: emacs Original-Received: via spool by 46256-submit@debbugs.gnu.org id=B46256.161480216515496 (code B ref 46256); Wed, 03 Mar 2021 20:10:02 +0000 Original-Received: (at 46256) by debbugs.gnu.org; 3 Mar 2021 20:09:25 +0000 Original-Received: from localhost ([127.0.0.1]:57088 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1lHXoC-00041r-Po for submit@debbugs.gnu.org; Wed, 03 Mar 2021 15:09:25 -0500 Original-Received: from eggs.gnu.org ([209.51.188.92]:35638) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1lHXo8-00041c-1v for 46256@debbugs.gnu.org; Wed, 03 Mar 2021 15:09:23 -0500 Original-Received: from fencepost.gnu.org ([2001:470:142:3::e]:43878) by eggs.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1lHXo2-00075f-QM; Wed, 03 Mar 2021 15:09:14 -0500 Original-Received: from 84.94.185.95.cable.012.net.il ([84.94.185.95]:4176 helo=home-c4e4a596f7) by fencepost.gnu.org with esmtpsa (TLS1.2:RSA_AES_256_CBC_SHA1:256) (Exim 4.82) (envelope-from ) id 1lHXo2-00056D-4X; Wed, 03 Mar 2021 15:09:14 -0500 In-Reply-To: (message from Andrea Corallo on Wed, 03 Mar 2021 19:50:05 +0000) 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:201323 Archived-At: > From: Andrea Corallo > Cc: 46256@debbugs.gnu.org > Date: Wed, 03 Mar 2021 19:50:05 +0000 > > > AFAIU, when I make a change in Emacs C sources and rebuild Emacs, the > > netive-compiled files will be put in a new directory under eln-cache, > > right? > > Essentially only if you add a primitive function. Ah, okay, that's better. > > Suppose I later would later like to remove stale binaries -- > > how do I know which eln-cache subdirectories I can remove at that > > time? > > ATM I tipically just remove all but the least recent one. But another > smarter technique might be looking at the subfolder name in the build > tree you are interested in inside the 'native-lisp' directory, this is > the same subfolder name that's used inside 'eln-cache'. OK, but the name of the subfolder doesn't include the full version number, I see 28.0.50-XXXXX, whereas the Emacs binaries are 28.0.50.1, 28.0.50.2, etc. > Thinking about from Emacs one can find it simply inspecting the > `comp-abi-hash' variable. OK, so we can ask the binary itself which subdirectory it needs, thanks.