From unknown Fri Jun 20 05:28:57 2025 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 X-Mailer: MIME-tools 5.509 (Entity 5.509) Content-Type: text/plain; charset=utf-8 From: bug#78818 <78818@debbugs.gnu.org> To: bug#78818 <78818@debbugs.gnu.org> Subject: Status: 31.0.50; Missing lexical-binding cookies when compiling trampolines Reply-To: bug#78818 <78818@debbugs.gnu.org> Date: Fri, 20 Jun 2025 12:28:57 +0000 retitle 78818 31.0.50; Missing lexical-binding cookies when compiling tramp= olines reassign 78818 emacs submitter 78818 Daniel Mendler severity 78818 normal thanks From debbugs-submit-bounces@debbugs.gnu.org Tue Jun 17 14:38:54 2025 Received: (at submit) by debbugs.gnu.org; 17 Jun 2025 18:38:54 +0000 Received: from localhost ([127.0.0.1]:34761 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1uRbCw-00015I-2v for submit@debbugs.gnu.org; Tue, 17 Jun 2025 14:38:54 -0400 Received: from lists.gnu.org ([2001:470:142::17]:55710) by debbugs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.84_2) (envelope-from ) id 1uRbCr-00014c-Ja for submit@debbugs.gnu.org; Tue, 17 Jun 2025 14:38:53 -0400 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 1uRbCl-0001J2-Li for bug-gnu-emacs@gnu.org; Tue, 17 Jun 2025 14:38:44 -0400 Received: from server.qxqx.de ([2a01:4f8:c012:9177::1] helo=mail.qxqx.de) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1uRbCj-0006aI-Qt for bug-gnu-emacs@gnu.org; Tue, 17 Jun 2025 14:38:43 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=daniel-mendler.de; s=key; h=Content-Transfer-Encoding:Content-Type: MIME-Version:Message-ID:Date:Subject:To:From:Sender:Reply-To:Cc:Content-ID: Content-Description:Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc :Resent-Message-ID:In-Reply-To:References:List-Id:List-Help:List-Unsubscribe: List-Subscribe:List-Post:List-Owner:List-Archive; bh=G3HObaO4CYSvhDTecM7Mh/YIy23nzpgRWp40hVqKkp0=; b=SCa3iBeesireNczh0Z5kvHH6XZ bArgYZHM9EsbFbYJ0Q9nEYzoN4lX9XFp5qmpVBg6lUq14FWIbSHwZjZvsXCyDa1/ks92b3ZOEEpFS RLvVmWBpf0cdPV3YRsF8n8qWyFof9ZNdjE1z+lvkGU66drHoDxE8sX+S1yEEkcbbGvAg=; From: Daniel Mendler To: bug-gnu-emacs@gnu.org Subject: 31.0.50; Missing lexical-binding cookies when compiling trampolines Date: Tue, 17 Jun 2025 20:38:20 +0200 Message-ID: <87sejy43j7.fsf@daniel-mendler.de> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Received-SPF: pass client-ip=2a01:4f8:c012:9177::1; envelope-from=mail@daniel-mendler.de; helo=mail.qxqx.de X-Spam_score_int: -27 X-Spam_score: -2.8 X-Spam_bar: -- X-Spam_report: (-2.8 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, RCVD_IN_DNSWL_LOW=-0.7, SPF_HELO_PASS=-0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-Spam-Score: 0.9 (/) X-Debbugs-Envelope-To: submit X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -0.1 (/) In the *Native-compile-Log* I see the following messages on a newly compiled Emacs 31 from the current Emacs master branch: Warning (files): Missing =E2=80=98lexical-binding=E2=80=99 cookie in "/tmp/= emacs-int-comp-subr--trampoline-72756e2d686f6f6b73_run_hooks_0-ZQkOM2.el". You can add one with =E2=80=98M-x elisp-enable-lexical-binding RET=E2=80=99. See =E2=80=98(elisp)Selecting Lisp Dialect=E2=80=99 and =E2=80=98(elisp)Con= verting to Lexical Binding=E2=80=99 for more information. Compiling $HOME/.config/emacs/eln-cache/31.0.50-45ab2aa9/subr--trampoline-7= 2756e2d686f6f6b73_run_hooks_0.eln... In GNU Emacs 31.0.50 (build 1, x86_64-pc-linux-gnu, GTK+ Version 3.24.49, cairo version 1.18.4) of 2025-06-17 built on host Windowing system distributor 'The X.Org Foundation', version 11.0.12101016 System Description: Debian GNU/Linux 13 (trixie) Configured using: 'configure --prefix=3D$HOME/.local/share/emacs --without-compress-install --with-tree-sitter --with-native-compilation --with-dbus --without-selinux --without-threads --disable-gc-mark-trace --without-gsettings --without-gpm --with-cairo --with-cairo-xcb --with-xinput2 --with-x-toolkit=3Dgtk3 --without-toolkit-scroll-bars' Configured features: CAIRO DBUS FREETYPE GIF GLIB GMP GNUTLS HARFBUZZ JPEG LIBOTF LIBSYSTEMD LIBXML2 MODULES NATIVE_COMP NOTIFY INOTIFY PDUMPER PNG RSVG SECCOMP SOUND SQLITE3 TIFF TREE_SITTER WEBP X11 XDBE XIM XINERAMA XINPUT2 XPM XRANDR GTK3 ZLIB Important settings: value of $LANG: en_US.UTF-8 locale-coding-system: utf-8-unix Major mode: LIMPLE From debbugs-submit-bounces@debbugs.gnu.org Wed Jun 18 07:41:41 2025 Received: (at 78818) by debbugs.gnu.org; 18 Jun 2025 11:41:41 +0000 Received: from localhost ([127.0.0.1]:47886 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1uRrAi-0004yP-U4 for submit@debbugs.gnu.org; Wed, 18 Jun 2025 07:41:41 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:60862) by debbugs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.84_2) (envelope-from ) id 1uRrAg-0004xq-Sd for 78818@debbugs.gnu.org; Wed, 18 Jun 2025 07:41:39 -0400 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 1uRrAa-0004nH-NP; Wed, 18 Jun 2025 07:41:32 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnu.org; s=fencepost-gnu-org; h=MIME-version:References:Subject:In-Reply-To:To:From: Date; bh=oEGfxg+Mx9Va7E60/JTR9m05oEbIJQVP83hnADLllP4=; b=iMU+eEFK3Xs/wxGPqP6a RYxPbVNbyIXTIEAFOAjWN1wiWfPyHrxRVJGrxkIQBYzwAFy/CV062IQYaRuHaSGSiAZXWeDnU3QrZ tIqKeRAH5MeFHBXgSKuFFIzpf+pGeWToNLMFh/Uw+ObLPKJ01ao0QhqszMCDnzeeiQXQpoMIuRpbc HM9jJtGXWOIWvuPiHELUQJuyWc01eYZYvgsSaiBMmWlaJU1bC8lSENkJ9s3LfY5XGx/sQqsYOVMAY NxL9XnU5viRmvVSh/3fJ05ZwwW9j6U7oj0wk78X8TikYKiwOYODCH3U/UFXv9D+DhOtP3JNwrTgME 1ET8Wy9SuQ5jbA==; Date: Wed, 18 Jun 2025 14:41:30 +0300 Message-Id: <86ldppmg45.fsf@gnu.org> From: Eli Zaretskii To: Daniel Mendler In-Reply-To: <87sejy43j7.fsf@daniel-mendler.de> (bug-gnu-emacs@gnu.org) Subject: Re: bug#78818: 31.0.50; Missing lexical-binding cookies when compiling trampolines References: <87sejy43j7.fsf@daniel-mendler.de> MIME-version: 1.0 Content-type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Spam-Score: -2.3 (--) X-Debbugs-Envelope-To: 78818 Cc: 78818@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -3.3 (---) > Date: Tue, 17 Jun 2025 20:38:20 +0200 > From: Daniel Mendler via "Bug reports for GNU Emacs, > the Swiss army knife of text editors" > > In the *Native-compile-Log* I see the following messages on a newly > compiled Emacs 31 from the current Emacs master branch: > > Warning (files): Missing ‘lexical-binding’ cookie in "/tmp/emacs-int-comp-subr--trampoline-72756e2d686f6f6b73_run_hooks_0-ZQkOM2.el". > You can add one with ‘M-x elisp-enable-lexical-binding RET’. > See ‘(elisp)Selecting Lisp Dialect’ and ‘(elisp)Converting to Lexical Binding’ > for more information. > Compiling $HOME/.config/emacs/eln-cache/31.0.50-45ab2aa9/subr--trampoline-72756e2d686f6f6b73_run_hooks_0.eln... Please show a recipe to reproduce this problem starting from "emacs -Q". Or at least figure out and tell here compilation of what ELisp file triggered this message (it sounds like it's part of your init configuration?). I started "emacs -Q", but didn't see any such messages that I could use as a starting point for investigation. Or, if I'm missing something, could you suggest how to investigate this given the information you provided above? Thanks. From debbugs-submit-bounces@debbugs.gnu.org Wed Jun 18 07:52:53 2025 Received: (at 78818) by debbugs.gnu.org; 18 Jun 2025 11:52:54 +0000 Received: from localhost ([127.0.0.1]:48060 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1uRrLZ-0006AF-8X for submit@debbugs.gnu.org; Wed, 18 Jun 2025 07:52:53 -0400 Received: from server.qxqx.de ([2a01:4f8:c012:9177::1]:53473 helo=mail.qxqx.de) by debbugs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.84_2) (envelope-from ) id 1uRrLV-00069g-LG for 78818@debbugs.gnu.org; Wed, 18 Jun 2025 07:52:50 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=daniel-mendler.de; s=key; h=Content-Transfer-Encoding:Content-Type: MIME-Version:Message-ID:Date:References:In-Reply-To:Subject:Cc:To:From:Sender :Reply-To:Content-ID:Content-Description:Resent-Date:Resent-From: Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:List-Id:List-Help: List-Unsubscribe:List-Subscribe:List-Post:List-Owner:List-Archive; bh=g52uidArXEXCOjDdd4oZ5cyPstdxk1Xm3F2o77IhwLU=; b=BcVSHzajMgEAjQRnSpAoZTiDn1 HA9MXEuKt6WzgRcu8uRJdjJ3P0sguLoIe786IHDVm2j7vDlBPb3l2H6gd9LEdnNiUPa1NZgRqWxSP PoKjLWOeufOE5+C05tKzW+AevxEeZksZwViZ1n+Ka5z1ajFXv/rmRXU1ZO12GpABYiD4=; From: Daniel Mendler To: Eli Zaretskii Subject: Re: bug#78818: 31.0.50; Missing lexical-binding cookies when compiling trampolines In-Reply-To: <86ldppmg45.fsf@gnu.org> References: <87sejy43j7.fsf@daniel-mendler.de> <86ldppmg45.fsf@gnu.org> Date: Wed, 18 Jun 2025 13:52:42 +0200 Message-ID: <87qzzhe06t.fsf@daniel-mendler.de> User-Agent: Gnus/5.13 (Gnus v5.13) MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-Spam-Score: -0.7 (/) X-Debbugs-Envelope-To: 78818 Cc: Andrea Corallo , 78818@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.7 (-) Eli Zaretskii writes: >> Date: Tue, 17 Jun 2025 20:38:20 +0200 >> From: Daniel Mendler via "Bug reports for GNU Emacs, >> the Swiss army knife of text editors" >>=20 >> In the *Native-compile-Log* I see the following messages on a newly >> compiled Emacs 31 from the current Emacs master branch: >>=20 >> Warning (files): Missing =E2=80=98lexical-binding=E2=80=99 cookie in "/t= mp/emacs-int-comp-subr--trampoline-72756e2d686f6f6b73_run_hooks_0-ZQkOM2.el= ". >> You can add one with =E2=80=98M-x elisp-enable-lexical-binding RET=E2=80= =99. >> See =E2=80=98(elisp)Selecting Lisp Dialect=E2=80=99 and =E2=80=98(elisp)= Converting to Lexical Binding=E2=80=99 >> for more information. >> Compiling $HOME/.config/emacs/eln-cache/31.0.50-45ab2aa9/subr--trampolin= e-72756e2d686f6f6b73_run_hooks_0.eln... > > Please show a recipe to reproduce this problem starting from "emacs -Q". > Or at least figure out and tell here compilation of what ELisp file > triggered this message (it sounds like it's part of your init > configuration?). I started "emacs -Q", but didn't see any such > messages that I could use as a starting point for investigation. > > Or, if I'm missing something, could you suggest how to investigate > this given the information you provided above? The trampoline .el file is generated by `comp--final' in comp.el. I found this by grepping for `emacs-int-comp'. The generated Elisp file doesn't include a `lexical-binding' cookie, which seems to trigger the warning. As far as I understand the trampolines are generated if native subrs are advised in the configuration. Daniel From debbugs-submit-bounces@debbugs.gnu.org Wed Jun 18 08:15:06 2025 Received: (at 78818) by debbugs.gnu.org; 18 Jun 2025 12:15:06 +0000 Received: from localhost ([127.0.0.1]:48415 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1uRrh3-00008o-CX for submit@debbugs.gnu.org; Wed, 18 Jun 2025 08:15:05 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:56458) by debbugs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.84_2) (envelope-from ) id 1uRrh0-00006W-PS for 78818@debbugs.gnu.org; Wed, 18 Jun 2025 08:15:03 -0400 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 1uRrgu-0001Po-DR; Wed, 18 Jun 2025 08:14: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:References:Subject:In-Reply-To:To:From: Date; bh=SUfYSz0FAaGumrbF0erEDiiEQZnCpV9CYqJwDEq9tG8=; b=MiQHiAwEnlbHtxTXbvmH fd3rQkwqeSKY8bCU0frupaNMnX53lXQjxNvMqND8RO2OCnnW7Pz9uIxOSs2+pLIF3WqRfw57JZvAQ G6mOb6I28bLNZEVAfCXydIZnLa2EtcnETFTgPH7Jr4ZltMukrYyZHI9+WiiUv3sDFywm0L/qc8EqI 7pmSf7UbiDgR7TEGDy6BLEr4KBvd7orcAeojJz1iUtHIpIFwn0KYb0ERSYFHsohao1SDEqX87R4++ +WxDtN8Gh5Bgzf5F11AhGQUKfCARMux0nRjQuO2/0mSwZTJFfiPZxgrWoJaoWOJgy5BCG+OmF4Dt8 7MJlEc+x5mxpsQ==; Date: Wed, 18 Jun 2025 15:14:51 +0300 Message-Id: <86ecvhmekk.fsf@gnu.org> From: Eli Zaretskii To: Daniel Mendler In-Reply-To: <87qzzhe06t.fsf@daniel-mendler.de> (message from Daniel Mendler on Wed, 18 Jun 2025 13:52:42 +0200) Subject: Re: bug#78818: 31.0.50; Missing lexical-binding cookies when compiling trampolines References: <87sejy43j7.fsf@daniel-mendler.de> <86ldppmg45.fsf@gnu.org> <87qzzhe06t.fsf@daniel-mendler.de> MIME-version: 1.0 Content-type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Spam-Score: -2.3 (--) X-Debbugs-Envelope-To: 78818 Cc: acorallo@gnu.org, 78818@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -3.3 (---) > From: Daniel Mendler > Cc: 78818@debbugs.gnu.org, Andrea Corallo > Date: Wed, 18 Jun 2025 13:52:42 +0200 > > Eli Zaretskii writes: > > >> Date: Tue, 17 Jun 2025 20:38:20 +0200 > >> From: Daniel Mendler via "Bug reports for GNU Emacs, > >> the Swiss army knife of text editors" > >> > >> In the *Native-compile-Log* I see the following messages on a newly > >> compiled Emacs 31 from the current Emacs master branch: > >> > >> Warning (files): Missing ‘lexical-binding’ cookie in "/tmp/emacs-int-comp-subr--trampoline-72756e2d686f6f6b73_run_hooks_0-ZQkOM2.el". > >> You can add one with ‘M-x elisp-enable-lexical-binding RET’. > >> See ‘(elisp)Selecting Lisp Dialect’ and ‘(elisp)Converting to Lexical Binding’ > >> for more information. > >> Compiling $HOME/.config/emacs/eln-cache/31.0.50-45ab2aa9/subr--trampoline-72756e2d686f6f6b73_run_hooks_0.eln... > > > > Please show a recipe to reproduce this problem starting from "emacs -Q". > > Or at least figure out and tell here compilation of what ELisp file > > triggered this message (it sounds like it's part of your init > > configuration?). I started "emacs -Q", but didn't see any such > > messages that I could use as a starting point for investigation. > > > > Or, if I'm missing something, could you suggest how to investigate > > this given the information you provided above? > > The trampoline .el file is generated by `comp--final' in comp.el. I > found this by grepping for `emacs-int-comp'. The generated Elisp file > doesn't include a `lexical-binding' cookie, which seems to trigger the > warning. As far as I understand the trampolines are generated if native > subrs are advised in the configuration. Thanks. We insert the lexical-binding cookie in comp--run-async-workers, but maybe trampoline compilation doesn't use that? Andrea, any suggestions?