From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Jimmy Wong Newsgroups: gmane.emacs.bugs Subject: bug#63871: 29.0.91; JIT native comp triggered to compile loaddefs repeatedly on require Date: Sat, 3 Jun 2023 15:05:06 +0100 Message-ID: <055568b9-9c09-4d1f-b040-4518a9819271@Spark> References: <83jzwk8xhn.fsf@gnu.org> Mime-Version: 1.0 Content-Type: multipart/alternative; boundary="647b48a7_23240864_d2d7" Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="12456"; mail-complaints-to="usenet@ciao.gmane.io" Cc: 63871-done@debbugs.gnu.org To: Eli Zaretskii Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Sat Jun 03 16:06:12 2023 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 1q5RtT-00032g-Pn for geb-bug-gnu-emacs@m.gmane-mx.org; Sat, 03 Jun 2023 16:06:11 +0200 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1q5RtP-0003v4-LP; Sat, 03 Jun 2023 10:06:07 -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 1q5RtL-0003ui-UT for bug-gnu-emacs@gnu.org; Sat, 03 Jun 2023 10:06:04 -0400 Original-Received: from debbugs.gnu.org ([209.51.188.43]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1q5RtK-00050y-Me for bug-gnu-emacs@gnu.org; Sat, 03 Jun 2023 10:06:03 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1q5RtK-00045U-Hc for bug-gnu-emacs@gnu.org; Sat, 03 Jun 2023 10:06:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Jimmy Wong Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sat, 03 Jun 2023 14:06:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 63871 X-GNU-PR-Package: emacs Original-Received: via spool by 63871-done@debbugs.gnu.org id=D63871.168580113815670 (code D ref 63871); Sat, 03 Jun 2023 14:06:02 +0000 Original-Received: (at 63871-done) by debbugs.gnu.org; 3 Jun 2023 14:05:38 +0000 Original-Received: from localhost ([127.0.0.1]:44019 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1q5Rsv-00044g-SF for submit@debbugs.gnu.org; Sat, 03 Jun 2023 10:05:38 -0400 Original-Received: from mail-wm1-f42.google.com ([209.85.128.42]:45398) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1q5Rss-00044E-BA for 63871-done@debbugs.gnu.org; Sat, 03 Jun 2023 10:05:34 -0400 Original-Received: by mail-wm1-f42.google.com with SMTP id 5b1f17b1804b1-3f60804faf4so28064635e9.3 for <63871-done@debbugs.gnu.org>; Sat, 03 Jun 2023 07:05:34 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20221208; t=1685801128; x=1688393128; h=mime-version:subject:references:in-reply-to:message-id:cc:to:from :date:from:to:cc:subject:date:message-id:reply-to; bh=ZZSfnSv1l6YCFwgE9AV/Z4YCwivWpfrPWLAhyDeQ4Y4=; b=lELgyPiIJ0qlZ7DdYnDSOJ3ndj6UzHyD8gPRKr8R1wpf77oYqMyqJ/LWXkWCEys5SK vxRryMmL9v7ueg+wu8zkIV2V6FX+rfBR91qRvkmsJQH2vizIO+ajVa5m8hO1OimCaFWE i1mRlo04d6NMzuy7f+UE8D4ESXXjzJnOaGMk5+Y5JswiBxt2XyxmLLCzR/SyUGv+JjP1 lFDJiDVyEAKwRDY6TrVld82fHp4/ZySg/CViJv6zDqZvH1ow9WU6VrA3j69UiGCOxEh+ KX7rPZKlMXJY4tiCzXLlStnyNcdV4lKGHJrfKAGvfDgcuGTh+8LJh45vmxiLbFvTIobn oEuA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1685801128; x=1688393128; h=mime-version:subject:references:in-reply-to:message-id:cc:to:from :date:x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=ZZSfnSv1l6YCFwgE9AV/Z4YCwivWpfrPWLAhyDeQ4Y4=; b=V8SEJ2RgzsBaKVfQktgIi33TlH+WYwfKykjegX9ClaR4czJDNwgg6jxZ7ihfSanW/e Q0ZVx/f+5nuLSsF7KSd4k7Oy4qwdcQMfR0KrGCn/W/2YqvS9mUiP8j6LxkiFsEcIbbxK G6NHSeelt107MDnQGVLFctKBh9d08oiXnGwrDmFhdmvHJGw8LqsN4JhjnWzOKkAiUcbB CjvcSjJMBsE2lI8NxFBr1z+JJHq+Mdt9c7dN+cRzVGjnR/RG/NkqmmJ1Wx6uoVJ5xGXR 1BsXq1J8Uixm8DHx7Zu4OLVhKI7pmVYHKr+Obv/PBA1rJWI7lB6ddSgwVE1CKzAMZQuZ yCNQ== X-Gm-Message-State: AC+VfDxcaCyYGMt1SXajWBo/4soE7AwY07vwLHMppcHb1hFK2Yqv4bI1 vHYek05KYMHOLb0Rs0Zt4dyEaeutiEg= X-Google-Smtp-Source: ACHHUZ5k3nUoHU3/nt07OzZTXDK+Mgd8ba5bkO46pwAeHC5qFgDhvYh3qxaQxedzKD2SsiB0dazHrg== X-Received: by 2002:a7b:c5d2:0:b0:3f6:426:eae with SMTP id n18-20020a7bc5d2000000b003f604260eaemr3941577wmk.15.1685801128590; Sat, 03 Jun 2023 07:05:28 -0700 (PDT) Original-Received: from [2a01:4b00:89a0:2400:4e:7910:100:0] ([2a01:4b00:89a0:2400:18b7:3953:b17d:de2c]) by smtp.gmail.com with ESMTPSA id q25-20020a7bce99000000b003eddc6aa5fasm8699594wmj.39.2023.06.03.07.05.27 (version=TLS1_2 cipher=ECDHE-ECDSA-AES128-GCM-SHA256 bits=128/128); Sat, 03 Jun 2023 07:05:28 -0700 (PDT) In-Reply-To: <83jzwk8xhn.fsf@gnu.org> X-Readdle-Message-ID: 055568b9-9c09-4d1f-b040-4518a9819271@Spark 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-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Xref: news.gmane.io gmane.emacs.bugs:262845 Archived-At: --647b48a7_23240864_d2d7 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable Content-Disposition: inline When there=E2=80=99s a package or a file that should not be natively comp= iled, there should be a global blacklist variable that controls that inst= ead of relying on a file local variable in order to short circuit this be= havior. On 3 Jun 2023 at 2:50 PM +0100, Eli Zaretskii , wrote: > > =46rom: Jimmy Yuen Ho Wong > > Date: Sat, 03 Jun 2023 14:22:41 +0100 > > > > > > Reproduction: > > > > 1. emacs -q -nsl --eval=3D=22(require 'cl-lib)=22 > > 2. C-x b TAB > > 3. Select *Async-native-compile-log* > > 4. The following is printed > > > > =60=60=60emacs-lisp > > Compiling /opt/local/share/emacs/29.0.91/lisp/emacs-lisp/cl-loaddefs.= el.gz... > > uncompressing cl-loaddefs.el.gz... > > uncompressing cl-loaddefs.el.gz...done > > Compilation finished. > > =60=60=60 > > > > Expectation: > > > > This behavior is observed when any packages in =7E/.emacs.d/elpa/ > > autoloads and require cl-lib, org or tramp as well. > > > > The simple act of requiring a built-in Emacs package should not trigg= er > > a JIT native compilation on an Emacs installation built with > > =60--with-native-compilation=3Daot=60. > > And it doesn't. cl-loaddefs has the =22no-native-compile: t=22 thingy i= n > the file-local variables, so the native-compilation does nothing. > > So I don't see any bug here, and I'm closing this bug. --647b48a7_23240864_d2d7 Content-Type: text/html; charset="utf-8" Content-Transfer-Encoding: quoted-printable Content-Disposition: inline
When there=E2=80=99s a package or a file that shoul= d not be natively compiled, there should be a global blacklist variable t= hat controls that instead of relying on a file local variable in order to= short circuit this behavior.
On 3 Jun 2023 at 2:50 PM +0100, Eli= Zaretskii <eliz=40gnu.org>, wrote:
=46rom: Jimmy Yuen Ho Wong <wyuenho=40gm= ail.com>
Date: Sat, 03 Jun 2023 14:22:41 +0100


Reproduction:

1. emacs -q -nsl --eval=3D=22(require 'cl-lib)=22
2. C-x b TAB
3. Select *Async-native-compile-log*
4. The following is printed

=60=60=60emacs-lisp
Compiling /opt/local/share/emacs/29.0.91/lisp/emacs-lisp/cl-loaddefs.el.g= z...
uncompressing cl-loaddefs.el.gz...
uncompressing cl-loaddefs.el.gz...done
Compilation finished.
=60=60=60

Expectation:

This behavior is observed when any packages in =7E/.emacs.d/elpa/
autoloads and require cl-lib, org or tramp as well.

The simple act of requiring a built-in Emacs package should not trigger a JIT native compilation on an Emacs installation built with
=60--with-native-compilation=3Daot=60.

And it doesn't. cl-loaddefs has the =22no-native-compile: t=22 thingy in<= br /> the file-local variables, so the native-compilation does nothing.

So I don't see any bug here, and I'm closing this bug.
=
--647b48a7_23240864_d2d7--