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#51999: 28.0.60; temacs with native-compilation fails unless invoked from src Date: Sat, 20 Nov 2021 17:12:03 +0200 Message-ID: <83k0h2svy4.fsf@gnu.org> References: <83o86esxs9.fsf@gnu.org> Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="3664"; mail-complaints-to="usenet@ciao.gmane.io" Cc: 51999@debbugs.gnu.org To: akrl@sdf.org Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Sat Nov 20 16:13: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 1moS3D-0000kc-Rj for geb-bug-gnu-emacs@m.gmane-mx.org; Sat, 20 Nov 2021 16:13:12 +0100 Original-Received: from localhost ([::1]:42930 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1moS3B-0002O9-V7 for geb-bug-gnu-emacs@m.gmane-mx.org; Sat, 20 Nov 2021 10:13:09 -0500 Original-Received: from eggs.gnu.org ([209.51.188.92]:36918) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1moS34-0002N0-M3 for bug-gnu-emacs@gnu.org; Sat, 20 Nov 2021 10:13:02 -0500 Original-Received: from debbugs.gnu.org ([209.51.188.43]:60197) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1moS34-00045h-DQ for bug-gnu-emacs@gnu.org; Sat, 20 Nov 2021 10:13:02 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1moS34-0000Wh-53 for bug-gnu-emacs@gnu.org; Sat, 20 Nov 2021 10:13: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: Sat, 20 Nov 2021 15:13:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 51999 X-GNU-PR-Package: emacs Original-Received: via spool by 51999-submit@debbugs.gnu.org id=B51999.16374211311938 (code B ref 51999); Sat, 20 Nov 2021 15:13:02 +0000 Original-Received: (at 51999) by debbugs.gnu.org; 20 Nov 2021 15:12:11 +0000 Original-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 Original-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 Original-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==; Original-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 In-Reply-To: <83o86esxs9.fsf@gnu.org> (message from Eli Zaretskii on Sat, 20 Nov 2021 16:32:22 +0200) 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:220507 Archived-At: > . 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.