From unknown Wed Jun 18 23:08:55 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#51999 <51999@debbugs.gnu.org> To: bug#51999 <51999@debbugs.gnu.org> Subject: Status: 28.0.60; temacs with native-compilation fails unless invoked from src Reply-To: bug#51999 <51999@debbugs.gnu.org> Date: Thu, 19 Jun 2025 06:08:55 +0000 retitle 51999 28.0.60; temacs with native-compilation fails unless invoked = from src reassign 51999 emacs submitter 51999 Eli Zaretskii severity 51999 normal thanks From debbugs-submit-bounces@debbugs.gnu.org Sat Nov 20 09:32:29 2021 Received: (at submit) by debbugs.gnu.org; 20 Nov 2021 14:32:29 +0000 Received: from localhost ([127.0.0.1]:42024 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1moRPo-0007O3-Do for submit@debbugs.gnu.org; Sat, 20 Nov 2021 09:32:28 -0500 Received: from lists.gnu.org ([209.51.188.17]:58910) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1moRPg-0007Nl-IZ for submit@debbugs.gnu.org; Sat, 20 Nov 2021 09:32:23 -0500 Received: from eggs.gnu.org ([209.51.188.92]:56384) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1moRPg-0007dX-Ch for bug-gnu-emacs@gnu.org; Sat, 20 Nov 2021 09:32:20 -0500 Received: from [2001:470:142:3::e] (port=48508 helo=fencepost.gnu.org) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1moRPg-0000Jh-1m; Sat, 20 Nov 2021 09:32:20 -0500 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnu.org; s=fencepost-gnu-org; h=Subject:To:From:Date:mime-version:in-reply-to: references; bh=X7KUg0K2My9gZl40F8PWTw7DRap7OrDq4yBBOL2u+Ks=; b=W74WZM5z3rgRkH VuppAMS3O6A7U6L1GnSM1Rxc4QVvuFPQQyYAUuznSyzMslYf9aYR2PlldaFwhItMbkGIlBGqkAJ+O CS+4sWxHiDBuwwIDkw9oFWA7XSTZvlq3THtNwJSewWlGLHFGyU+3y7Dj+LPrRTDAOJHQKesim0hj+ rIGgvlfqRg8Ras2YyvzFR4ZNCp1Dgk6q7ov07+51e4iC8c9j1wFv2tXsVm8IRjGHmb7XGfY7ZDFyU T+i3XEyjxa+sd+/qWN14Tr6TDMlP+BIMG3/j4isyjUlXqg1hZmURs0kITb5nUhAe5IRKXmXMPzlLr vc35nyvW2zFk13MwFbxg==; Received: from [87.69.77.57] (port=1773 helo=home-c4e4a596f7) by fencepost.gnu.org with esmtpsa (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1moRPf-0003VJ-N1; Sat, 20 Nov 2021 09:32:20 -0500 Date: Sat, 20 Nov 2021 16:32:22 +0200 Message-Id: <83o86esxs9.fsf@gnu.org> From: Eli Zaretskii To: bug-gnu-emacs@gnu.org, Andrea Corallo Subject: 28.0.60; temacs with native-compilation fails unless invoked from src X-Spam-Score: -2.3 (--) 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: -3.3 (---) When temacs (not emacs) is invoked, it is supposed to load all the preloaded Lisp files, and then start up normally. However, with Emacs 28 compiled with native-compilation, this strangely not always works. Here's what I found: . On GNU/Linux: - cd src && ./temacs -Q -nw works as expected - ./src/temacs -Q -nw fails with this error message: Symbol's function definition is void: internal-echo-keystrokes-prefix . On MS-Windows: - cd src && ./temacs -Q -nw works as expected - ./src/temacs -Q -nw works, but loads *.elc files instead of *.eln In all the cases, temacs was invoked from the build directory. I don't understand why the different behavior. Any ideas? In GNU Emacs 28.0.60 (build 25, i686-pc-mingw32) of 2021-11-17 built on HOME-C4E4A596F7 Repository revision: fa0b34b716ba31a6414d12de67c8f30706caad96 Repository branch: emacs-28 Windowing system distributor 'Microsoft Corp.', version 5.1.2600 System Description: Microsoft Windows XP Service Pack 3 (v5.1.0.2600) Configured using: 'configure -C --prefix=/d/usr --with-wide-int --with-native-compilation --enable-checking=yes,glyphs 'CFLAGS=-O0 -gdwarf-4 -g3'' Configured features: ACL GIF GMP GNUTLS HARFBUZZ JPEG JSON LCMS2 LIBXML2 MODULES NATIVE_COMP NOTIFY W32NOTIFY PDUMPER PNG RSVG SOUND THREADS TIFF TOOLKIT_SCROLL_BARS XPM ZLIB Important settings: value of $LANG: ENU locale-coding-system: cp1255 Major mode: Lisp Interaction Minor modes in effect: tooltip-mode: t global-eldoc-mode: t eldoc-mode: t show-paren-mode: t electric-indent-mode: t mouse-wheel-mode: t tool-bar-mode: t menu-bar-mode: t file-name-shadow-mode: t global-font-lock-mode: t font-lock-mode: t blink-cursor-mode: t auto-composition-mode: t auto-encryption-mode: t auto-compression-mode: t line-number-mode: t indent-tabs-mode: t transient-mark-mode: t Load-path shadows: d:/gnu/git/emacs/native-comp/lisp/shorthands hides d:/gnu/git/emacs/native-comp/lisp/emacs-lisp/shorthands Features: (shadow sort mail-extr emacsbug message rmc puny dired dired-loaddefs rfc822 mml mml-sec epa derived epg rfc6068 epg-config gnus-util rmail rmail-loaddefs auth-source eieio eieio-core eieio-loaddefs password-cache json map text-property-search time-date mm-decode mm-bodies mm-encode mail-parse rfc2231 mailabbrev gmm-utils mailheader sendmail rfc2047 rfc2045 ietf-drums mm-util mail-prsvr mail-utils comp comp-cstr warnings subr-x rx cl-seq cl-macs cl-extra help-mode seq byte-opt gv cl-loaddefs cl-lib bytecomp byte-compile cconv iso-transl tooltip eldoc paren electric uniquify ediff-hook vc-hooks lisp-float-type elisp-mode mwheel dos-w32 ls-lisp disp-table term/w32-win w32-win w32-vars term/common-win tool-bar dnd fontset image regexp-opt fringe tabulated-list replace newcomment text-mode lisp-mode prog-mode register page tab-bar menu-bar rfn-eshadow isearch easymenu timer select scroll-bar mouse jit-lock font-lock syntax font-core term/tty-colors frame minibuffer cl-generic cham georgian utf-8-lang misc-lang vietnamese tibetan thai tai-viet lao korean japanese eucjp-ms cp51932 hebrew greek romanian slovak czech european ethiopic indian cyrillic chinese composite emoji-zwj charscript charprop case-table epa-hook jka-cmpr-hook help simple abbrev obarray cl-preloaded nadvice button loaddefs faces cus-face macroexp files window text-properties overlay sha1 md5 base64 format env code-pages mule custom widget hashtable-print-readable backquote threads w32notify w32 lcms2 multi-tty make-network-process native-compile emacs) Memory information: ((conses 16 85042 11923) (symbols 48 9017 1) (strings 16 25577 4033) (string-bytes 1 784068) (vectors 16 17570) (vector-slots 8 308751 19296) (floats 8 28 128) (intervals 40 269 112) (buffers 888 11)) From debbugs-submit-bounces@debbugs.gnu.org Sat Nov 20 10:12:11 2021 Received: (at 51999) by debbugs.gnu.org; 20 Nov 2021 15:12:11 +0000 Received: from localhost ([127.0.0.1]:43510 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1moS2E-0000VB-RK for submit@debbugs.gnu.org; Sat, 20 Nov 2021 10:12:11 -0500 Received: from eggs.gnu.org ([209.51.188.92]:35874) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1moS2B-0000Ur-Bg for 51999@debbugs.gnu.org; Sat, 20 Nov 2021 10:12:10 -0500 Received: from [2001:470:142:3::e] (port=49054 helo=fencepost.gnu.org) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1moS24-0002wI-VW; Sat, 20 Nov 2021 10:12:00 -0500 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnu.org; s=fencepost-gnu-org; h=References:Subject:In-Reply-To:To:From:Date: mime-version; bh=CrqdWyZDidyP1taqZA+RgROX9FaogFGJ7srIlvYCARc=; b=EBxC1dYyCabE 5Z++pFz1ywAeD7ufg4ASuJlm72rDTWRzFrRl0eeAVLCVbZod1h2aU7yA3d/jdP6UcFM63ShqPvLn6 kznD97O9YzsbFLcVSyDfDXnRY48xkla/lmsXmcPhjGpaEzTFR3tB0sku9j03Qt0ffy7MCKLJfqKgo Qi+O8Ac1zNaqgMxW50Tn8qXptxz+z4n6Adq5a05Ej0/4gWbEKT9xd2Fn2UMzZ2HefDc6+NxBI3GqL vT84EqYyF88HBrMocnCJswAghVYa6cJjlzNpNNJxLkTVVWZVLbzKS/AZJEeiEE6I0dXFbfRnS+DFy t2SmgfHtR7tnaYp2Wbv9lQ==; Received: from [87.69.77.57] (port=4216 helo=home-c4e4a596f7) by fencepost.gnu.org with esmtpsa (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1moS24-0005Yl-KH; Sat, 20 Nov 2021 10:12:00 -0500 Date: Sat, 20 Nov 2021 17:12:03 +0200 Message-Id: <83k0h2svy4.fsf@gnu.org> From: Eli Zaretskii To: akrl@sdf.org In-Reply-To: <83o86esxs9.fsf@gnu.org> (message from Eli Zaretskii on Sat, 20 Nov 2021 16:32:22 +0200) Subject: Re: bug#51999: 28.0.60; temacs with native-compilation fails unless invoked from src References: <83o86esxs9.fsf@gnu.org> X-Spam-Score: -2.3 (--) X-Debbugs-Envelope-To: 51999 Cc: 51999@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 (---) > . On GNU/Linux: > > - cd src && ./temacs -Q -nw works as expected > - ./src/temacs -Q -nw fails with this error message: > > Symbol's function definition is void: internal-echo-keystrokes-prefix > > . On MS-Windows: > > - cd src && ./temacs -Q -nw works as expected > - ./src/temacs -Q -nw works, but loads *.elc files instead of *.eln > > In all the cases, temacs was invoked from the build directory. I > don't understand why the different behavior. Any ideas? Answering myself: here's the reason: DEFVAR_LISP ("native-comp-eln-load-path", Vnative_comp_eln_load_path, doc: /* List of eln cache directories. If a directory is non absolute is assumed to be relative to `invocation-directory'. `comp-native-version-dir' value is used as a sub-folder name inside each eln cache directory. The last directory of this list is assumed to be the system one. */); /* Temporary value in use for bootstrap. We can't do better as `invocation-directory' is still unset, will be fixed up during dump reload. */ Vnative_comp_eln_load_path = Fcons (build_string ("../native-lisp/"), Qnil); So invoking temacs from any directory that is not a sibling of native-lisp will fail to find the *.eln files. From debbugs-submit-bounces@debbugs.gnu.org Sat Nov 20 11:26:10 2021 Received: (at 51999-done) by debbugs.gnu.org; 20 Nov 2021 16:26:10 +0000 Received: from localhost ([127.0.0.1]:43552 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1moTBp-0002ju-Ry for submit@debbugs.gnu.org; Sat, 20 Nov 2021 11:26:10 -0500 Received: from eggs.gnu.org ([209.51.188.92]:50016) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1moTBk-0002jL-J8 for 51999-done@debbugs.gnu.org; Sat, 20 Nov 2021 11:26:08 -0500 Received: from [2001:470:142:3::e] (port=50480 helo=fencepost.gnu.org) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1moTBf-00083H-9g; Sat, 20 Nov 2021 11:25:59 -0500 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnu.org; s=fencepost-gnu-org; h=References:Subject:In-Reply-To:To:From:Date: mime-version; bh=slxoEd9GWjpU01UvogikWQgD/vNH6qGFfIU59R8UqYM=; b=YrRsQX80Fj0p zCJemTUeE5pijinUPThuwJlKlUA28EydSHtZvoeZqPPC1fvxHqi4zT0G7fB88AA3i40lqW57au3Nr B5APHJE7Cxz5+EzVB7MFUPPwctdbOmnOM5Ltu++VNJIA8NRDRt7iP5YBq9IMx7yPaIwuhvfFoiYyv 6G8t2MB1b5XLUuPEmxgVPzSNj0ldz4fVAz4cU2QXCE1od0U6qrv9uvxXGle/dpIkQ9EwtvB4mjTZX lvSWAhD9VHTWHzBRsgM8DBdapmmngr5YYNYNv0RDxkKlfpsHhQ+h21YunOOU9iWYmoe+1oAzQyAN9 y9lgbsUgT/AYBeS55/hw0w==; Received: from [87.69.77.57] (port=4749 helo=home-c4e4a596f7) by fencepost.gnu.org with esmtpsa (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1moTBe-0002oA-U8; Sat, 20 Nov 2021 11:25:59 -0500 Date: Sat, 20 Nov 2021 18:26:01 +0200 Message-Id: <83h7c6ssiu.fsf@gnu.org> From: Eli Zaretskii To: akrl@sdf.org In-Reply-To: <83k0h2svy4.fsf@gnu.org> (message from Eli Zaretskii on Sat, 20 Nov 2021 17:12:03 +0200) Subject: Re: bug#51999: 28.0.60; temacs with native-compilation fails unless invoked from src References: <83o86esxs9.fsf@gnu.org> <83k0h2svy4.fsf@gnu.org> X-Spam-Score: -2.3 (--) X-Debbugs-Envelope-To: 51999-done Cc: 51999-done@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: Sat, 20 Nov 2021 17:12:03 +0200 > From: Eli Zaretskii > Cc: 51999@debbugs.gnu.org > > DEFVAR_LISP ("native-comp-eln-load-path", Vnative_comp_eln_load_path, > doc: /* List of eln cache directories. > > If a directory is non absolute is assumed to be relative to > `invocation-directory'. > `comp-native-version-dir' value is used as a sub-folder name inside > each eln cache directory. > The last directory of this list is assumed to be the system one. */); > > /* Temporary value in use for bootstrap. We can't do better as > `invocation-directory' is still unset, will be fixed up during > dump reload. */ > Vnative_comp_eln_load_path = Fcons (build_string ("../native-lisp/"), Qnil); > > So invoking temacs from any directory that is not a sibling of > native-lisp will fail to find the *.eln files. I've now installed a fix, and I'm closing the bug. From unknown Wed Jun 18 23:08:55 2025 Received: (at fakecontrol) by fakecontrolmessage; To: internal_control@debbugs.gnu.org From: Debbugs Internal Request Subject: Internal Control Message-Id: bug archived. Date: Sun, 19 Dec 2021 12:24:10 +0000 User-Agent: Fakemail v42.6.9 # This is a fake control message. # # The action: # bug archived. thanks # This fakemail brought to you by your local debbugs # administrator