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.bugs Subject: bug#73303: 30.0.91; Native compiler repeatedly interrupts at random moments Date: Mon, 16 Sep 2024 15:27:53 -0400 Message-ID: References: <87wmjbmpnt.fsf@moondust.awandering> <867cbbcuen.fsf@gnu.org> 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="21573"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Gnus/5.13 (Gnus v5.13) Cc: "N. Jackson" , 73303@debbugs.gnu.org To: Eli Zaretskii Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Mon Sep 16 21:29:10 2024 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 1sqHPJ-0005SP-Ux for geb-bug-gnu-emacs@m.gmane-mx.org; Mon, 16 Sep 2024 21:29:10 +0200 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1sqHOz-0005Lb-QV; Mon, 16 Sep 2024 15:28:49 -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 1sqHOy-0005LN-E6 for bug-gnu-emacs@gnu.org; Mon, 16 Sep 2024 15:28:48 -0400 Original-Received: from debbugs.gnu.org ([2001:470:142:5::43]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1sqHOy-0006TT-4d for bug-gnu-emacs@gnu.org; Mon, 16 Sep 2024 15:28:48 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=debbugs.gnu.org; s=debbugs-gnu-org; h=MIME-Version:Date:References:In-Reply-To:From:To:Subject; bh=b68l3lK7NTq0JJgeeZ1tO4CxuOpvppDDBO3CEvrTJ84=; b=pR2xIbIjxjVnwovIm173a1Xe4yl9jatIcvXnjYnw/xO5P3U3rJxLsWnJNtBbZ/35kCvCYHIIMJUDvnVdXLwfjJ103sGqPZnexhJpk/mOoNV7khEKG2AHUNguIlPXRrTDWzscgTxjLsCXr01QZtAtH3NHCsE0cF/1586NNeAwSzmrnk3SRUXBFYUMZIZTaTKMDr1FgbcPxl6Q9JgR2IuRAwfwNS+NVBYPsYspCAFNVon4XXl1zOoxFiyhg2l3Vfcq8njUFk/xyhDSP6n97LNzV2VvhnGgxWZzvhUcPbl/33WZBwHog6btFWWwqCYjvl3ry0L/wDPPWAt0eDdoGBRyHw==; Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1sqHPB-0003HB-Nd for bug-gnu-emacs@gnu.org; Mon, 16 Sep 2024 15:29:01 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Andrea Corallo Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Mon, 16 Sep 2024 19:29:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 73303 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: notabug Original-Received: via spool by 73303-submit@debbugs.gnu.org id=B73303.172651490212528 (code B ref 73303); Mon, 16 Sep 2024 19:29:01 +0000 Original-Received: (at 73303) by debbugs.gnu.org; 16 Sep 2024 19:28:22 +0000 Original-Received: from localhost ([127.0.0.1]:53313 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1sqHOX-0003Fz-Om for submit@debbugs.gnu.org; Mon, 16 Sep 2024 15:28:22 -0400 Original-Received: from eggs.gnu.org ([209.51.188.92]:35190) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1sqHOV-0003Fi-Cq for 73303@debbugs.gnu.org; Mon, 16 Sep 2024 15:28:20 -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 1sqHO9-0006Qe-Se; Mon, 16 Sep 2024 15:27:58 -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=b68l3lK7NTq0JJgeeZ1tO4CxuOpvppDDBO3CEvrTJ84=; b=dXVkajfUS5qwxONmDDSh DfjzfXx5WJlhDWolP+IT2BMzH22BN6cbJsrrhy2auSzBnMfFVag+TRTy/nSQZv5CunvnSADRWdD2k CmL4YerIlQOtaGAbBdkorHR3HA/FgCknVYrXxdVQ1tdTxbNhiDadRmAr2xwv4g31nBNvGacntWrXc rtv/NNUs5ToxEc/ATPxGfp3oeoYWStwMLxbJDy71B/VtAC6MFJ95xB9gZc3n8z2WWL6chXkmOudi1 cwregAF7+OzbSaO/YD4ObR73m78DYlXKtOgjHMY3KH5+uscK9rt0uGSF7x8MDJy7bBClYlHAKkJLQ 7B/L4IY1JZ1huA==; Original-Received: from acorallo by fencepost.gnu.org with local (Exim 4.90_1) (envelope-from ) id 1sqHO5-0003Od-DP; Mon, 16 Sep 2024 15:27:53 -0400 In-Reply-To: <867cbbcuen.fsf@gnu.org> (Eli Zaretskii's message of "Mon, 16 Sep 2024 21:42:24 +0300") 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:291911 Archived-At: Eli Zaretskii writes: > tags 73303 notabug > thanks > >> From: "N. Jackson" >> Date: Mon, 16 Sep 2024 18:14:46 +0000 >>=20 >>=20 >> Since building Emacs 30.0.91, I have repeatedly been interrupted in >> my work by warnings from the native compiler. >>=20 >> A few examples of the warnings are: >>=20 >> Warning (native-compiler): ~/.config/emacs/modules/cdlatex.el:1025:26:= Warning: the function =E2=80=98reftex-what-environment=E2=80=99 is not kno= wn to be defined. >> Warning (native-compiler): python-el-fgallina-expansions.el:161:10: Wa= rning: the function =E2=80=98python-nav-end-of-block=E2=80=99 is not known = to be defined. >> Warning (native-compiler): python-el-fgallina-expansions.el:138:8: War= ning: the function =E2=80=98python-util-forward-comment=E2=80=99 is not kno= wn to be defined. >> Warning (native-compiler): python-el-fgallina-expansions.el:94:4: Warn= ing: the function =E2=80=98python-nav-beginning-of-statement=E2=80=99 is no= t known to be defined. >> Warning (native-compiler): python-el-fgallina-expansions.el:92:4: Warn= ing: the function =E2=80=98python-nav-end-of-statement=E2=80=99 is not know= n to be defined. >> Warning (native-compiler): python-el-fgallina-expansions.el:62:31: War= ning: the function =E2=80=98python-syntax-context=E2=80=99 is not known to = be defined. >> Warning (native-compiler): python-el-fgallina-expansions.el:39:39: War= ning: the function =E2=80=98python-indent=E2=80=99 is not known to be defin= ed. >> Warning (native-compiler): python-el-fgallina-expansions.el:37:40: War= ning: the function =E2=80=98python-info-ppss-context=E2=80=99 is not known = to be defined. > > These warnings usually mean that the offending Lisp file lacks some > 'require's. JIT native compilation runs in a separate Emacs session, > which only loads the file it compiles, so any missing 'require's or > autoloading cookies trigger these warnings, whereas when the same > packages are loaded into your main Emacs session, they can benefit > from packages loaded earlier in the session. > > IOW, these are minor bugs in the compiled files which need to be fixed > in those files and by their respective developers. > >> This behaviour is quite annoying and I wonder if it would not be >> better if the native compiler compiled everything when Emacs is >> started and reported all the errors/warnings then. > > You can disable these warnings if you are annoyed by them. They are > just warnings, and will not usually cause any problems when using the > compiled code. See native-comp-async-report-warnings-errors. > > You can cause these compilations to happen at the beginning of your > Emacs session if you change your init files such that Emacs loads all > these files. JIT native compilation is triggered by loading a .elc > file that doesn't yet have a corresponding .eln file, so by loading > them at the beginning, you will force Emacs to native-compile them all > at that time. > > In any case, Emacs compiles each Lisp file just once, so you should > only see these when you start a new Emacs version for the first time. > >> I supoose that might increase Emacs startup time which for some >> users would be unacceptable, but maybe it could happen the first >> time Emacs is started and after updating packages and after changing >> configuration. > > It shouldn't increase startup time because the compilation is run in > separate processes, and those use other CPU cores. Emacs doesn't wait > for the compilation to end before using a package; it uses the byte > code until the native compilation ends, and then loads the > native-compiled code when the compilation ends to replace the byte > code. > > I see no bug in what you describe. Agree, that's the intended behavior. I think the python* warnings should be reported as bugs to . Andrea