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#64226: 30.0.50; emacs-lisp-native-compile-and-load permission error Date: Thu, 22 Jun 2023 19:12:53 +0300 Message-ID: <83o7l7327u.fsf@gnu.org> References: <87bkh734u7.fsf@gmail.com> <83pm5n33zz.fsf@gnu.org> <87bkh7ts5r.fsf@gmail.com> Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="26550"; mail-complaints-to="usenet@ciao.gmane.io" Cc: acorallo@gnu.org, 64226@debbugs.gnu.org To: No Wayman Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Thu Jun 22 18:13:31 2023 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 1qCMw6-0006iD-TY for geb-bug-gnu-emacs@m.gmane-mx.org; Thu, 22 Jun 2023 18:13:31 +0200 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1qCMvi-0005rh-Cw; Thu, 22 Jun 2023 12:13:06 -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 1qCMvg-0005rJ-Ir for bug-gnu-emacs@gnu.org; Thu, 22 Jun 2023 12:13:04 -0400 Original-Received: from debbugs.gnu.org ([209.51.188.43]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1qCMve-0003dy-TF for bug-gnu-emacs@gnu.org; Thu, 22 Jun 2023 12:13:03 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1qCMve-0003vH-CJ for bug-gnu-emacs@gnu.org; Thu, 22 Jun 2023 12:13:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Eli Zaretskii Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Thu, 22 Jun 2023 16:13:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 64226 X-GNU-PR-Package: emacs Original-Received: via spool by 64226-submit@debbugs.gnu.org id=B64226.168745037115058 (code B ref 64226); Thu, 22 Jun 2023 16:13:02 +0000 Original-Received: (at 64226) by debbugs.gnu.org; 22 Jun 2023 16:12:51 +0000 Original-Received: from localhost ([127.0.0.1]:36551 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1qCMvS-0003un-Me for submit@debbugs.gnu.org; Thu, 22 Jun 2023 12:12:51 -0400 Original-Received: from eggs.gnu.org ([209.51.188.92]:37526) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1qCMvQ-0003uY-UO for 64226@debbugs.gnu.org; Thu, 22 Jun 2023 12:12:49 -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 1qCMvK-0003Ub-BN; Thu, 22 Jun 2023 12:12:43 -0400 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=o573QemN57tXMBmJHD06CD6FmQiD/jDIXkHyNZJTWok=; b=r/HHA67XLIXW T3KN7mBq66q4P7oqIjmE/RZxuLn3N6IWpyd4auDVwzxMIO1xwnEKKLjWmxGtIAVBdqiusSs4EaIvT nVDod+QP5fJWRZWPnpSatAEDSl6WhYplDKqxfPfYvy7WOC+HIIN3blEUFdRaC3ldFNLc4tavWagVY vF+nJLivPFWcwNd8Kaw2nB/8HV2mEzdgTvq0QqChFm8MaCk6Gmfu9pjE6endXFXooEK6YQeRtyu2w fweXoJfcIgZjSk98V1+oq/kLzBISrz+u8/Kez1itwWo5YVCKWuhMnV3DysNdqsW1vOj33NboLFUrl WQX7a6FjMC8/jH62RxraDw==; Original-Received: from [87.69.77.57] (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 1qCMvJ-0003MN-Cg; Thu, 22 Jun 2023 12:12:41 -0400 In-Reply-To: <87bkh7ts5r.fsf@gmail.com> (message from No Wayman on Thu, 22 Jun 2023 11:44:33 -0400) 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:263889 Archived-At: > From: No Wayman > Cc: Andrea Corallo , 64226@debbugs.gnu.org > Date: Thu, 22 Jun 2023 11:44:33 -0400 > > I have reproduced from emacs -Q as well. Same error as above: > > > Compiling /home/n/.emacs.d/elpaca/repos/elpaca/elpaca.el...done > comp--native-compile: Native compiler error: > "/home/n/.emacs.d/elpaca/repos/elpaca/elpaca.el", "Compiling > /usr/lib/emacs/30.0.50/native-lisp/30.0.50-58a66af6/elpaca-0646d6fc-1256ece5.eln... > Creating file with prefix: Permission denied, > /usr/lib/emacs/30.0.50/native-lisp/30.0.50-58a66af6/elpaca-0646d6fc-1256ece5 > > Error: permission-denied (\"Creating file with prefix\" > \"Permission denied\" > \"/usr/lib/emacs/30.0.50/native-lisp/30.0.50-58a66af6/elpaca-0646d6fc-1256ece5\") > mapbacktrace(#f(compiled-function (evald func args flags) > #)) > debug-early-backtrace() > debug-early(error (permission-denied \"Creating file with > prefix\" \"Permission denied\" > \"/usr/lib/emacs/30.0.50/native-lisp/30.0.50-58a66af6/elpaca-0646d6fc-1256ece5\")) > make-temp-file(\"/usr/lib/emacs/30.0.50/native-lisp/30.0.50-58a66af6/elpaca-0646d6fc-1256ece5\" > nil \".eln.tmp\" nil) > comp--compile-ctxt-to-file(\"/usr/lib/emacs/30.0.50/native-lisp/30.0.50-58a66af6/elpaca-0646d6fc-1256ece5.eln\") > comp-compile-ctxt-to-file(\"/usr/lib/emacs/30.0.50/native-lisp/30.0.50-58a66af6/elpaca-0646d6fc-1256ece5.eln\") > comp-final1() > load-with-code-conversion(\"/tmp/emacs-int-comp-elpaca-0646d6fc-1256ece5-oSdhiB.el\" > \"/tmp/emacs-int-comp-elpaca-0646d6fc-1256ece5-oSdhiB.el\" nil > t) > command-line-1((\"-l\" > \"/tmp/emacs-int-comp-elpaca-0646d6fc-1256ece5-oSdhiB.el\")) > command-line() > normal-top-level() > > > I also don't understand why the backtrace above seems to imply > > that > > you invoked Emacs like this: > > > > emacs -l > > /tmp/emacs-int-comp-elpaca-0646d6fc-1256ece5-73Dpd0.el > > > IOW, the backtrace doesn't show invocation of > > emacs-lisp-native-compile-and-load, it shows the attempt to load > > an > > already-compiled .eln file. What am I missing? I added Andrea > > to > > this discussion. > > The compilation takes place in a subprocess, no? No, I don't think so, not with emacs-lisp-native-compile-and-load. Andrea, am I right? And you haven't answered my other question: > If, in "emacs -Q", you visit the source file, that is > > $HOME/.emacs.d/elpaca/builds/elpaca/elpaca.el > > and then type > > M-: (native-compile buffer-file-name) RET > > what file name do you see in the echo-area after the compilation > finishes?