From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Mauricio Collares Newsgroups: gmane.emacs.bugs Subject: bug#45854: 28.0.50; [feature/native-comp] autoload behavior different in the presence of errors Date: Thu, 14 Jan 2021 09:01:18 -0300 Message-ID: <871ren3ey9.fsf@collares.org> References: <87pn282psi.fsf@collares.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="12154"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: mu4e 1.4.13; emacs 28.0.50 To: 45854@debbugs.gnu.org Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Thu Jan 14 13:02:20 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 1l01KU-00030I-OK for geb-bug-gnu-emacs@m.gmane-mx.org; Thu, 14 Jan 2021 13:02:19 +0100 Original-Received: from localhost ([::1]:35864 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1l01KT-0000Ju-D0 for geb-bug-gnu-emacs@m.gmane-mx.org; Thu, 14 Jan 2021 07:02:17 -0500 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:58378) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1l01KE-0000JY-5Q for bug-gnu-emacs@gnu.org; Thu, 14 Jan 2021 07:02:02 -0500 Original-Received: from debbugs.gnu.org ([209.51.188.43]:54076) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1l01KD-00059e-UJ for bug-gnu-emacs@gnu.org; Thu, 14 Jan 2021 07:02:01 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1l01KD-0007Yf-RV for bug-gnu-emacs@gnu.org; Thu, 14 Jan 2021 07:02:01 -0500 X-Loop: help-debbugs@gnu.org Resent-From: Mauricio Collares Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Thu, 14 Jan 2021 12:02:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 45854 X-GNU-PR-Package: emacs Original-Received: via spool by 45854-submit@debbugs.gnu.org id=B45854.161062569529018 (code B ref 45854); Thu, 14 Jan 2021 12:02:01 +0000 Original-Received: (at 45854) by debbugs.gnu.org; 14 Jan 2021 12:01:35 +0000 Original-Received: from localhost ([127.0.0.1]:37389 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1l01Jm-0007Xx-D2 for submit@debbugs.gnu.org; Thu, 14 Jan 2021 07:01:35 -0500 Original-Received: from out5-smtp.messagingengine.com ([66.111.4.29]:60703) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1l01Jj-0007Xh-PN for 45854@debbugs.gnu.org; Thu, 14 Jan 2021 07:01:32 -0500 Original-Received: from compute4.internal (compute4.nyi.internal [10.202.2.44]) by mailout.nyi.internal (Postfix) with ESMTP id 841935C00FE for <45854@debbugs.gnu.org>; Thu, 14 Jan 2021 07:01:26 -0500 (EST) Original-Received: from mailfrontend1 ([10.202.2.162]) by compute4.internal (MEProxy); Thu, 14 Jan 2021 07:01:26 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=collares.org; h= references:from:to:subject:in-reply-to:date:message-id :mime-version:content-type:content-transfer-encoding; s=fm2; bh= 3oQyQ2bIxOWNtVvkdHuaXwUFDvPeUqWX0sjvAZu/p5w=; b=lVsWwBGeq83CVclY M1VuwfVN0SggkNj6YdtQpUywEhdai2B/whvJXYEPoqhKLZIWbP0ylPsdCLj/gXmZ y6klJvUteRaHqMiNylWxj7ZKnfdFfqXsj7DWZ+/vp+h2vDkbXQOxQh6cw549NVIa SSWrSqkZYxmaPZDpy9VH7xPeP4e9FywcAmIZDN9FUCvLNGhZU3/AdTlKsgqlUmM7 QELG+6eQUjtBKCiRrAfP7qKy5GpXEQC1jgI97UgKbEQ8xDaKXR6//gy7KM9LsIbV 0vIlrWkEqo7a0JkjPYD/suUcLfeF5ZTYkg+QdvJ3aFoxA2Y0a1LGZ/kAh0cs/6tL brkA6Q== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=content-transfer-encoding:content-type :date:from:in-reply-to:message-id:mime-version:references :subject:to:x-me-proxy:x-me-proxy:x-me-sender:x-me-sender :x-sasl-enc; s=fm1; bh=3oQyQ2bIxOWNtVvkdHuaXwUFDvPeUqWX0sjvAZu/p 5w=; b=GUIvdc2CRQ+h8PG1H9IwMbSZz2mHSVVuHw3cyPzojXEIvHutJPS9oLNY9 DHx60BDBfZ1wvOFX6lW7RRN2eAuMYb+Sm57Cs/t4Zd3kou8FY6/JonNOoWkaGNdY TERrXKOpFelE+c1qtMKF1HpLHyVBEk5dDabwqyNCG2qspBjVQSO+4cJUIqsQ3Osl i8qbycP8AffBrn/fq2sJtOIub8Jsu9/SZCj3YOlahnoGvHT5WEBzDpwFdmYPA+cJ 6TGc7df0F+ss1sFz76esDzQk1h4I0kPBJCb/R3ZlgjH2NBdcJ5iaiQVusY2uARsh VO0hQRSX+2hg9tqDQAIPqlKhp1c7A== X-ME-Sender: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgeduledrtddtgddtkecutefuodetggdotefrodftvf curfhrohhfihhlvgemucfhrghsthforghilhdpqfgfvfdpuffrtefokffrpgfnqfghnecu uegrihhlohhuthemuceftddtnecunecujfgurhepfhgfhffvufgjfffkgggtgfesthhqre dttderjeenucfhrhhomhepofgruhhrihgtihhoucevohhllhgrrhgvshcuoehmrghurhhi tghiohestgholhhlrghrvghsrdhorhhgqeenucggtffrrghtthgvrhhnpefhgfegvdehve ektefhfeffieeflefghfeihfdtudelueejjeefffehgeevheeiheenucfkphepudeluddr udekhedrfeeirddvfeejnecuvehluhhsthgvrhfuihiivgeptdenucfrrghrrghmpehmrg hilhhfrhhomhepmhgruhhrihgtihhosegtohhllhgrrhgvshdrohhrgh X-ME-Proxy: Original-Received: from asus (unknown [191.185.36.237]) by mail.messagingengine.com (Postfix) with ESMTPA id 19CBA24005B for <45854@debbugs.gnu.org>; Thu, 14 Jan 2021 07:01:24 -0500 (EST) In-reply-to: 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:197943 Archived-At: This might be slightly off-topic (in the sense that the previous message stands alone and is not corrected by this one) but I have a related question to ask about the actual error I was hitting. To reproduce the error, one can use git-commitx.el and elpa2nix.el from the previous email and the following transientx.el file: ;;; transientx.el --- x -*- lexical-binding: t; -*- ;; Package-Requires: ((emacs "25.1")) ;; Package-Version: 0 (require 'cl-lib) (require 'eieio) (defclass transient-suffix () ()) (cl-defmethod transient--init-suffix-key ((obj transient-suffix))) (advice-add 'top-level :before 'identity) (provide 'transientx) ;;; transientx.el ends here That is, the "provide" line is uncommented but there's now an advice-add call. Running the following commands causes a problem similar to the one in the previous message: $ --batch -Q -l ~/elpa2nix.el -f elpa2nix-install-package /home/collares/tr= ansientx.el=20 $ --batch -Q --eval "(setq comp-eln-load-path '())" -l ~/elpa2nix.el -f elp= a2nix-install-package /home/collares/git-commitx.el=20 git-commitx.el:6:1: Error: Cannot find suitable directory for output in =E2= =80=98comp-eln-load-path=E2=80=99 Done (Total of 0 files compiled, 1 failed, 2 skipped) Debugger entered--Lisp error: (error "transient--init-suffix-key is already= defined as s...") error("%s is already defined as something else than a gen..." transient--= init-suffix-key) cl-generic-ensure-function(transient--init-suffix-key) Apparently, advice-add caused native compilation to happen, and that failed because comp-eln-load-path was empty. This error plays a role similar to the lack of "(provide 'transientx)" in the previous email, leading to the second error which does not happen in trunk. In this email, however, I would like to address the first error. My question is: Is it possible to disable the native compilation caused by advice-add in the above example? In Nix we run batch-native-compile separately after installing the package, and comp-eln-load-path is not set up until that point, so an option to disable all native compilation for a single batch session would be helpful. I tried setting comp-deferred-compilation and comp-enable-subr-trampolines to nil but still got the "Cannot find suitable directory for output in =E2=80=98comp-eln-load-path=E2=80=99" error with an empty comp-eln-load-pat= h. Best, Mauricio