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: Sun, 02 Jul 2023 08:59:32 +0300 Message-ID: <834jmmq2ez.fsf@gnu.org> References: <87bkh734u7.fsf@gmail.com> <83pm5n33zz.fsf@gnu.org> <87bkh7ts5r.fsf@gmail.com> <83o7l7327u.fsf@gnu.org> <87bkh731f1.fsf@gmail.com> <83h6qz2zaa.fsf@gnu.org> <877crv2yaw.fsf@gmail.com> <83cz1n2xjp.fsf@gnu.org> <83leg0qb8n.fsf@gnu.org> <87fs67wsto.fsf@gmail.com> <83r0prprki.fsf@gnu.org> <87bkgvwe05.fsf@gmail.com> Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="8262"; 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 Sun Jul 02 08:00:21 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 1qFq8C-0001zN-Lv for geb-bug-gnu-emacs@m.gmane-mx.org; Sun, 02 Jul 2023 08:00:20 +0200 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1qFq7z-0006qO-Cs; Sun, 02 Jul 2023 02:00:07 -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 1qFq7u-0006q6-Ui for bug-gnu-emacs@gnu.org; Sun, 02 Jul 2023 02:00:03 -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 1qFq7u-0001t4-Kq for bug-gnu-emacs@gnu.org; Sun, 02 Jul 2023 02:00:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1qFq7u-0005oR-5M for bug-gnu-emacs@gnu.org; Sun, 02 Jul 2023 02:00: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: Sun, 02 Jul 2023 06:00: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.168827755022257 (code B ref 64226); Sun, 02 Jul 2023 06:00:02 +0000 Original-Received: (at 64226) by debbugs.gnu.org; 2 Jul 2023 05:59:10 +0000 Original-Received: from localhost ([127.0.0.1]:59035 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1qFq74-0005mv-3A for submit@debbugs.gnu.org; Sun, 02 Jul 2023 01:59:10 -0400 Original-Received: from eggs.gnu.org ([209.51.188.92]:41206) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1qFq6z-0005mQ-Ot for 64226@debbugs.gnu.org; Sun, 02 Jul 2023 01:59:09 -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 1qFq6u-0001oI-Bj; Sun, 02 Jul 2023 01:59:00 -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=hXqNpNpbYW9iwqZXrIJ1GOJsCiiHDBTDlIHNrEBUTnI=; b=b3w2zJbcWNFW P3JLtJM2eZMOqn4A17qfDwsgGTo67ZCpb9FqKFOFb1cYp9cKmh98CZRKdT+05EJN7nYh927O/ryxg 3hP3zYKdXv+SWpAYeM88kK/ep41ONvMYOFaIHUKimZVq6XoCcAMNe8GxAwfczo6H7bnM64hyT7TKP kgBZeRQQA+sMbY7ioXi3A/4rPWEg+rzaiIVjy415MgT4uAiYk41rPGe3BL4VskgLE5d7gnlJH0u5R 6ngOYm29RMPCJi6u14tDVK2jIdxXcjKFrk2Ci8wh7mRJRm4xUPHNKCgSr34boZDiY1j26QmkWXPN6 umtVrM13X8JHmaOG6a5z9Q==; 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 1qFq6t-0005pV-Mt; Sun, 02 Jul 2023 01:59:00 -0400 In-Reply-To: <87bkgvwe05.fsf@gmail.com> (message from No Wayman on Sat, 01 Jul 2023 15:14:16 -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:264445 Archived-At: > From: No Wayman > Cc: acorallo@gnu.org, 64226@debbugs.gnu.org > Date: Sat, 01 Jul 2023 15:14:16 -0400 > > > Eli Zaretskii writes: > > > perhaps you could describe how to reproduce starting from "emacs > > -Q" (and loading any packages or features you need for the minimal > > reproduction recipe). The way you were showing the problem until > > now obviously depends on your local setup, which is impossible to > > reproduce without knowing the details. > > The instructions I gave here: > > https://lists.gnu.org/archive/html/bug-gnu-emacs/2023-06/msg01224.html > > reproduce the error on my end from emacs -Q with a minimal file. > To be crystal clear: > > 1. Save the following file to $HOME/test.el (or any path where the > user has write permissions): > > --8<---------------cut here---------------start------------->8--- > ;; -*- lexical-binding: t; -*- > (defun +test () (message "PASS")) > --8<---------------cut here---------------end--------------->8--- > > 2. emacs -Q $HOME/test.el > 3. M-x emacs-lisp-native-compile-compile-and-load > 4. Error is printed to message buffer. Thanks. I think Andrea couldn't reproduce this, but maybe he could try again. (The error will only happen if the directory usr/lib/emacs/30.0.50/native-lisp is not writable by your user, so ensuring it's not writable should be part of the recipe.) Also, please show the backtrace corresponding to the above recipe. The backtrace you posted mentions files like /home/n/.emacs.d/elpaca/repos/elpaca/elpaca.el, but there's no reference to $HOME/elpaca/repos in your recipe above. So I presume the backtrace with the above recipe will mention different files, and it is important to see those file names.