From unknown Mon Jun 23 05:59:16 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#64226 <64226@debbugs.gnu.org> To: bug#64226 <64226@debbugs.gnu.org> Subject: Status: 30.0.50; emacs-lisp-native-compile-and-load permission error Reply-To: bug#64226 <64226@debbugs.gnu.org> Date: Mon, 23 Jun 2025 12:59:16 +0000 retitle 64226 30.0.50; emacs-lisp-native-compile-and-load permission error reassign 64226 emacs submitter 64226 No Wayman severity 64226 normal thanks From debbugs-submit-bounces@debbugs.gnu.org Thu Jun 22 11:16:22 2023 Received: (at submit) by debbugs.gnu.org; 22 Jun 2023 15:16:22 +0000 Received: from localhost ([127.0.0.1]:36504 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1qCM2o-0008Ab-3O for submit@debbugs.gnu.org; Thu, 22 Jun 2023 11:16:22 -0400 Received: from lists.gnu.org ([209.51.188.17]:45708) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1qCM2m-0008AS-Vt for submit@debbugs.gnu.org; Thu, 22 Jun 2023 11:16:21 -0400 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 1qCM2k-0001qg-Py for bug-gnu-emacs@gnu.org; Thu, 22 Jun 2023 11:16:20 -0400 Received: from mail-qv1-xf36.google.com ([2607:f8b0:4864:20::f36]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1qCM2j-00026B-4y for bug-gnu-emacs@gnu.org; Thu, 22 Jun 2023 11:16:18 -0400 Received: by mail-qv1-xf36.google.com with SMTP id 6a1803df08f44-62ffdbd6787so52856566d6.0 for ; Thu, 22 Jun 2023 08:16:16 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20221208; t=1687446975; x=1690038975; h=mime-version:message-id:date:subject:to:from:user-agent:from:to:cc :subject:date:message-id:reply-to; bh=oNLuAH5x5mc53I3IpVDwqmQ9EIScqBz72JKukWDyUFk=; b=qzGNT5xv8JCXFKUb8DQroufk2dkCIvfDTL20P0OGhtx9MJFSkt3mWmx66G3JfnPJPL 26DEbWK9IxJdOvtPrj+utWOKgk9XzybCLYUqJCbcioaX+p422qzkp4Jv1ziVuKlsceNi O6Ek9ZXNZZ4KrHl32coi89G0jcWwWT3nylGlAvQHVavvi3B9vx9LzJug2KGk1pdNBkmY is+QF8V96qiWDyrtr7mQIdL4rp+H8S5ivI71daKUuaPSDikkiE61TqsDB7JaTv17ZLWc SclkR16iApjnni4XigFSUZchmuQLKP75faALmUiLR3HGDmk/TJ1rBEyR9PkJesqQnRHK XfyQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1687446975; x=1690038975; h=mime-version:message-id:date:subject:to:from:user-agent :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=oNLuAH5x5mc53I3IpVDwqmQ9EIScqBz72JKukWDyUFk=; b=djfYnDo434E9O9KJyeGZ7JxJOHTIg2BLk+c8tRBd36kUhUd/o0bsNNfimgIOKUsXaQ zR3DRWvwN884RR3TQSnEarTPd1AqIdnJWARj5+wFHQ12qleVNLR7vhlHIEg6P5CWIgVR J2KAKF0lx8RDPGT2r0AqYkRj2i080m+uP/rSRjLoNTy4WkpwzZFQp6URrwqvJUL7XvdP gHOxrWwEv3EKR4n5jtpKoIEcuB94X9JfX1ZuCFDx2qLxNRDka1Yf68f9ryDKi38ZBh3d QOjM4DdXUAc601xpfCRVmVSxVUhz4kxFMOLWgQ+q3z5wZDo/HNA7T056J0GyAxn0blx4 LV9w== X-Gm-Message-State: AC+VfDwN2uyA7Rh+NDEIyM84kOU/l8ztwM5e5TLQmWWgTLgd9gQ7Bo5/ etDM/GKSEU62ZBHvRl59HS4t6zd2KbY= X-Google-Smtp-Source: ACHHUZ6cHtij/HNcYbTfB0aYMQWIzlilvM01y050kTenM2203Nml9XqzAAJ7/PHWwcr7lfwUFAh/mg== X-Received: by 2002:a05:6214:d87:b0:626:290f:3e80 with SMTP id e7-20020a0562140d8700b00626290f3e80mr15132734qve.50.1687446975524; Thu, 22 Jun 2023 08:16:15 -0700 (PDT) Received: from laptop ([2601:84:847f:c697:2d4:9eff:feb6:970c]) by smtp.gmail.com with ESMTPSA id s11-20020a0ce30b000000b0063016dcff99sm3871941qvl.135.2023.06.22.08.16.15 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 22 Jun 2023 08:16:15 -0700 (PDT) User-agent: mu4e 1.11.6; emacs 30.0.50 From: No Wayman To: bug-gnu-emacs@gnu.org Subject: 30.0.50; emacs-lisp-native-compile-and-load permission error Date: Wed, 21 Jun 2023 12:58:40 -0400 Message-ID: <87bkh734u7.fsf@gmail.com> MIME-Version: 1.0 Content-Type: text/plain; format=flowed Received-SPF: pass client-ip=2607:f8b0:4864:20::f36; envelope-from=iarchivedmywholelife@gmail.com; helo=mail-qv1-xf36.google.com X-Spam_score_int: -10 X-Spam_score: -1.1 X-Spam_bar: - X-Spam_report: (-1.1 / 5.0 requ) BAYES_00=-1.9, DATE_IN_PAST_12_24=1.049, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, FREEMAIL_FROM=0.001, RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001, T_SCC_BODY_TEXT_LINE=-0.01 autolearn=no autolearn_force=no X-Spam_action: no action X-Spam-Score: -0.5 (/) 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: -1.5 (-) To reproduce: 1. Find an elisp file located in $DIR which user has permission to write to. (in the following backtrace, the file being compiled was located at $HOME/.emacs.d/elpaca/builds/elpaca/elpaca.el) 2. M-x emacs-lisp-native-compile-and-load 3. Observer the following error: 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-73Dpd0.el\" \"/tmp/emacs-int-comp-elpaca-0646d6fc-1256ece5-73Dpd0.el\" nil t) command-line-1((\"-l\" \"/tmp/emacs-int-comp-elpaca-0646d6fc-1256ece5-73Dpd0.el\")) command-line() normal-top-level() I would expect compiling this to not signal an error for a file I have permission to write. In GNU Emacs 30.0.50 (build 1, x86_64-pc-linux-gnu, GTK+ Version 3.24.38, cairo version 1.17.8) of 2023-06-19 built on laptop Repository revision: edb0862f5e69240de90c30b8914af51778f26d31 Repository branch: master Windowing system distributor 'The X.Org Foundation', version 11.0.12101008 System Description: Arch Linux I rebuilt from master and am still able to reproduce with GNU Emacs 30.0.50 (build 1, x86_64-pc-linux-gnu, GTK+ Version 3.24.38, cairo version 1.17.8) of 2023-06-21 From debbugs-submit-bounces@debbugs.gnu.org Thu Jun 22 11:34:25 2023 Received: (at 64226) by debbugs.gnu.org; 22 Jun 2023 15:34:25 +0000 Received: from localhost ([127.0.0.1]:36516 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1qCMKH-0000DR-Bq for submit@debbugs.gnu.org; Thu, 22 Jun 2023 11:34:25 -0400 Received: from eggs.gnu.org ([209.51.188.92]:42864) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1qCMKF-0000DE-Ea for 64226@debbugs.gnu.org; Thu, 22 Jun 2023 11:34:24 -0400 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 1qCMK9-0007RO-NI; Thu, 22 Jun 2023 11:34:17 -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=nHWGys8zszAR7NFDKCfWDIcjagJ4tHSsbrOL6oqEk8Y=; b=XCzeD6uJ/l1o D9gWMR8H+ln3MyUMbIYHv+v6V3DGWJ1reD1x8O5By65NRmfIiHolQneUyfeLjgmYXUPtiVdrnOLl6 DGcI5/cz0/ccrccz0vElC/9Re+5/qBKNEm5i88Zz8rZeODkeECSSqKG2WA9H0Vv6F+0yEMP4kRyzr Ljwyxy6Jn7fWZYuY2IHEsNW3sRhlYrb7JjY5Iu8ZJ1j4aA6z8xYzen6QuTVTUFHy90xv2dy7NyT+D rYcP117HVI+fnFhZllIDGXRJkPkKJcPN9yjSiLJMjIpd2xKsNLqWsaNt1sV96GwdJLCzg1tNuNfb3 g8kr62Fa5UVGZRER5tp4sg==; 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 1qCMK5-0001Oa-6J; Thu, 22 Jun 2023 11:34:16 -0400 Date: Thu, 22 Jun 2023 18:34:24 +0300 Message-Id: <83pm5n33zz.fsf@gnu.org> From: Eli Zaretskii To: No Wayman , Andrea Corallo In-Reply-To: <87bkh734u7.fsf@gmail.com> (message from No Wayman on Wed, 21 Jun 2023 12:58:40 -0400) Subject: Re: bug#64226: 30.0.50; emacs-lisp-native-compile-and-load permission error References: <87bkh734u7.fsf@gmail.com> X-Spam-Score: -2.3 (--) X-Debbugs-Envelope-To: 64226 Cc: 64226@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 (---) > From: No Wayman > Date: Wed, 21 Jun 2023 12:58:40 -0400 > > > To reproduce: > > 1. Find an elisp file located in $DIR which user has permission to > write to. > (in the following backtrace, the file being compiled was located > at $HOME/.emacs.d/elpaca/builds/elpaca/elpaca.el) > 2. M-x emacs-lisp-native-compile-and-load > 3. Observer the following error: > > 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-73Dpd0.el\" > \"/tmp/emacs-int-comp-elpaca-0646d6fc-1256ece5-73Dpd0.el\" nil > t) > command-line-1((\"-l\" > \"/tmp/emacs-int-comp-elpaca-0646d6fc-1256ece5-73Dpd0.el\")) > command-line() > normal-top-level() > > I would expect compiling this to not signal an error for a file I > have permission to write. Is this in "emacs -Q"? If not, please see if "emacs -Q" reproduces the problem. 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. 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? From debbugs-submit-bounces@debbugs.gnu.org Thu Jun 22 11:48:13 2023 Received: (at 64226) by debbugs.gnu.org; 22 Jun 2023 15:48:13 +0000 Received: from localhost ([127.0.0.1]:36535 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1qCMXd-0000eB-8O for submit@debbugs.gnu.org; Thu, 22 Jun 2023 11:48:13 -0400 Received: from mail-qt1-f180.google.com ([209.85.160.180]:58671) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1qCMXb-0000dT-FH for 64226@debbugs.gnu.org; Thu, 22 Jun 2023 11:48:11 -0400 Received: by mail-qt1-f180.google.com with SMTP id d75a77b69052e-3fdec2ed972so44814721cf.1 for <64226@debbugs.gnu.org>; Thu, 22 Jun 2023 08:48:11 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20221208; t=1687448886; x=1690040886; h=mime-version:message-id:in-reply-to:date:subject:cc:to:from :user-agent:references:from:to:cc:subject:date:message-id:reply-to; bh=4KdKjmAl8UwpAFuTii8sH0pyV23/NeR4OYxgaU3DGSQ=; b=jjZGu2AsK7KYaN9YQBGwT1huknW+3OVoaZVDOnQKCukyysSctMUjXb8EH1uhW/8POt bA5lVadXIE1fUwmCSDzv5xK/OtcdOiQjU3wOOR7XQd5EzEanAc8YKE3e5Ib5jU2tHQCD pgzc0YaTdQV4DK1OUwA7I2e/Sc/vf7FGs9H0cNEz4T2MCWURHgfAyAVx6HIPpgvzJgAH FNEzCoGmWpt/8mrMJMhqmASNI57uH+m9Yxf6j79bZ1/Tpne8X2rfPbZ6ybtu+eZaaxTq 8VoQup927wJPL0ffQjty7o1n1Juav5QMoNXEHU6WZA4/zdGsuySJJyQJt3kMVCpWfWg0 SG4w== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1687448886; x=1690040886; h=mime-version:message-id:in-reply-to:date:subject:cc:to:from :user-agent:references:x-gm-message-state:from:to:cc:subject:date :message-id:reply-to; bh=4KdKjmAl8UwpAFuTii8sH0pyV23/NeR4OYxgaU3DGSQ=; b=DCrpy5EHcmmEtJpZ2bF5sJTJQAslhvtXr9NJrSAQcOVB1rMBUi9Xj1Ko1r2NvNUyic qwBZ7M0jdoNdWNdCewMyg7KfYjml1S1yCeKXgx8H13geWHH42BXI2jPrx16Hud1c6vCF Q82p3p6cN5a83AH7hWAlK9QE8WbBqIkYydg1cCL8feFqGqnssZVL6UCOBH2hbt90uXel Ak9JTBnbRdvy00bUrDCNOqG6eaq8rlk3eFDACHBHO+rXfDfgl+cye5pgHYiOAxzJJMAH 95gYIC81SyTG5onx1P91XifmzWPrgyJtsVISuC4rsj/3X9IG8XL5iJDvjsyT3cdiw9BK y19Q== X-Gm-Message-State: AC+VfDwebgtIY48Q8A8qnYlKNMvicjvLyqmPnxA37P7D/o1S1bd0Ot81 3KND3xXWuaS12Rb96A51oOOqpVgSNIJNGg== X-Google-Smtp-Source: ACHHUZ6pzOXtQSHyfiVKMRmzFWC8gSwtjwTfj2jM9qY9JaWx2PDfrwW1Yozxa0MfHSoKWVpimUKkkw== X-Received: by 2002:a05:622a:1d4:b0:3f3:97c9:dff0 with SMTP id t20-20020a05622a01d400b003f397c9dff0mr24017707qtw.12.1687448885572; Thu, 22 Jun 2023 08:48:05 -0700 (PDT) Received: from laptop ([2601:84:847f:c697:2d4:9eff:feb6:970c]) by smtp.gmail.com with ESMTPSA id fg26-20020a05622a581a00b003f86bc1753bsm3728282qtb.80.2023.06.22.08.48.05 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 22 Jun 2023 08:48:05 -0700 (PDT) References: <87bkh734u7.fsf@gmail.com> <83pm5n33zz.fsf@gnu.org> User-agent: mu4e 1.11.6; emacs 30.0.50 From: No Wayman To: Eli Zaretskii Subject: Re: bug#64226: 30.0.50; emacs-lisp-native-compile-and-load permission error Date: Thu, 22 Jun 2023 11:44:33 -0400 In-reply-to: <83pm5n33zz.fsf@gnu.org> Message-ID: <87bkh7ts5r.fsf@gmail.com> MIME-Version: 1.0 Content-Type: text/plain; format=flowed X-Spam-Score: 0.0 (/) X-Debbugs-Envelope-To: 64226 Cc: Andrea Corallo , 64226@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: -1.0 (-) Eli Zaretskii writes: >> From: No Wayman >> Date: Wed, 21 Jun 2023 12:58:40 -0400 >> >> >> To reproduce: >> >> 1. Find an elisp file located in $DIR which user has permission >> to >> write to. >> (in the following backtrace, the file being compiled was >> located >> at $HOME/.emacs.d/elpaca/builds/elpaca/elpaca.el) >> 2. M-x emacs-lisp-native-compile-and-load >> 3. Observer the following error: >> >> 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-73Dpd0.el\" >> \"/tmp/emacs-int-comp-elpaca-0646d6fc-1256ece5-73Dpd0.el\" >> nil >> t) >> command-line-1((\"-l\" >> \"/tmp/emacs-int-comp-elpaca-0646d6fc-1256ece5-73Dpd0.el\")) >> command-line() >> normal-top-level() >> >> I would expect compiling this to not signal an error for a file >> I >> have permission to write. > Is this in "emacs -Q"? If not, please see if "emacs -Q" > reproduces > the problem. 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? That's probably how the subprocess is invoked. From debbugs-submit-bounces@debbugs.gnu.org Thu Jun 22 12:12:51 2023 Received: (at 64226) by debbugs.gnu.org; 22 Jun 2023 16:12:51 +0000 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 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 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==; 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 Date: Thu, 22 Jun 2023 19:12:53 +0300 Message-Id: <83o7l7327u.fsf@gnu.org> From: Eli Zaretskii To: No Wayman In-Reply-To: <87bkh7ts5r.fsf@gmail.com> (message from No Wayman on Thu, 22 Jun 2023 11:44:33 -0400) Subject: Re: bug#64226: 30.0.50; emacs-lisp-native-compile-and-load permission error References: <87bkh734u7.fsf@gmail.com> <83pm5n33zz.fsf@gnu.org> <87bkh7ts5r.fsf@gmail.com> X-Spam-Score: -2.3 (--) X-Debbugs-Envelope-To: 64226 Cc: acorallo@gnu.org, 64226@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 (---) > 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? From debbugs-submit-bounces@debbugs.gnu.org Thu Jun 22 12:30:20 2023 Received: (at 64226) by debbugs.gnu.org; 22 Jun 2023 16:30:20 +0000 Received: from localhost ([127.0.0.1]:36577 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1qCNCO-0004QG-9U for submit@debbugs.gnu.org; Thu, 22 Jun 2023 12:30:20 -0400 Received: from mail-qt1-f178.google.com ([209.85.160.178]:46234) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1qCNCL-0004Pz-Vl for 64226@debbugs.gnu.org; Thu, 22 Jun 2023 12:30:18 -0400 Received: by mail-qt1-f178.google.com with SMTP id d75a77b69052e-3f9b4a656deso63620581cf.0 for <64226@debbugs.gnu.org>; Thu, 22 Jun 2023 09:30:17 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20221208; t=1687451412; x=1690043412; h=mime-version:message-id:in-reply-to:date:subject:cc:to:from :user-agent:references:from:to:cc:subject:date:message-id:reply-to; bh=Dw/aoKAt/IN4S9dfp88fiIBBYyjMDdqExZhuz2ldVUE=; b=TIiKGcQZ4z/TlXcQgugLk9fL5zWFc2MX1BKb9y/YZ19tMpFHoD8SNkBDrZmJ2TTZJM nGwZaguEUZsFJKZFPTOFQRWqIJzJEuJC5n7tZSucSyx/3e7bBoI2HZ6NFf4FYTmFmMSu S0l5HDqPmJj3kAjmiFhVxyzNPt2tQh0Px6E7A8ZIPUtxnwncFptGIubx/ojpw81d8s2v kQDDI80GaaG2SjJz3HftvpKu8ruqech/pq9UJ1F1E2d9NguQUoo5eH7DM1H+HZ4UG7dN bBr6GjFjkj6hoY5DSkELE9vi2l43IuZDS8yf6D3OOvQcFGA3t2T+jMdZucrnIu+PcRMR FLBQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1687451412; x=1690043412; h=mime-version:message-id:in-reply-to:date:subject:cc:to:from :user-agent:references:x-gm-message-state:from:to:cc:subject:date :message-id:reply-to; bh=Dw/aoKAt/IN4S9dfp88fiIBBYyjMDdqExZhuz2ldVUE=; b=Nkc0dOXw6wisaj+ReZ3X9ZtWnhC2g5aOwLkr/XbsOvMuRNpNCVeiWcDnma/JxoqgTv NJGASxY0gZIpQ52T65pVCvHKHezMvbo0jlPUcUDjCTlNSEUe4H807vmJAqiWyH333szU ad6qBssCmV/bPhT0B9Y1TsIYou/DlLpM5iS0HogHPQD5WnDGbj3wzRIndP+mzOG3XQnM qisewsUT4g2b1nMSXPhNdSTAL2k/R3uZLbAyrJC52OFwQvmEl3k1Zshxl5aYYEaQLumG u4zgfVjcGhqt14Znf45EqJa4UYtDuCNT3vHgivWM8i+L+WmYRPICDOW+16nqhMOql/c7 kYBw== X-Gm-Message-State: AC+VfDxCWjQVgHBUmYzdwfg3JE0muoVMmNfn7SVFEWQL0bMMpXXpKMf/ ZUHcr1ahX3/LRkGIfFdYvFGe1uDsN6L7hw== X-Google-Smtp-Source: ACHHUZ6ppZo61sZpL3akU+YBHcyI1pnbWUSmag5bttehhirNTR06xq2qcmGhsKQnKFJBVVbMkLFXew== X-Received: by 2002:ac8:7f07:0:b0:3f4:f4d5:4192 with SMTP id f7-20020ac87f07000000b003f4f4d54192mr25066137qtk.64.1687451412013; Thu, 22 Jun 2023 09:30:12 -0700 (PDT) Received: from laptop ([2601:84:847f:c697:2d4:9eff:feb6:970c]) by smtp.gmail.com with ESMTPSA id a7-20020ac84347000000b003f6be76a5c1sm1921771qtn.6.2023.06.22.09.30.11 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 22 Jun 2023 09:30:11 -0700 (PDT) References: <87bkh734u7.fsf@gmail.com> <83pm5n33zz.fsf@gnu.org> <87bkh7ts5r.fsf@gmail.com> <83o7l7327u.fsf@gnu.org> User-agent: mu4e 1.11.6; emacs 30.0.50 From: No Wayman To: Eli Zaretskii Subject: Re: bug#64226: 30.0.50; emacs-lisp-native-compile-and-load permission error Date: Thu, 22 Jun 2023 12:22:07 -0400 In-reply-to: <83o7l7327u.fsf@gnu.org> Message-ID: <87bkh731f1.fsf@gmail.com> MIME-Version: 1.0 Content-Type: text/plain; format=flowed X-Spam-Score: 0.0 (/) X-Debbugs-Envelope-To: 64226 Cc: acorallo@gnu.org, 64226@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: -1.0 (-) Eli Zaretskii writes: > No, I don't think so, not with > emacs-lisp-native-compile-and-load. > Andrea, am I right? See comp-final: (with-temp-buffer (unwind-protect (if (zerop (call-process (expand-file-name invocation-name invocation-directory) nil t t "-no-comp-spawn" "-Q" "--batch" "-l" temp-file)) (progn (delete-file temp-file) output) (signal 'native-compiler-error (list (buffer-string)))) (comp-log-to-buffer (buffer-string)))))))) > 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? The following file name is messaged with no error signaled: "/home/n/.emacs.d/eln-cache/30.0.50-58a66af6/elpaca-0646d6fc-1256ece5.eln" From debbugs-submit-bounces@debbugs.gnu.org Thu Jun 22 13:16:11 2023 Received: (at 64226) by debbugs.gnu.org; 22 Jun 2023 17:16:11 +0000 Received: from localhost ([127.0.0.1]:36640 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1qCNuk-0005sZ-PN for submit@debbugs.gnu.org; Thu, 22 Jun 2023 13:16:11 -0400 Received: from eggs.gnu.org ([209.51.188.92]:47576) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1qCNui-0005sK-HI for 64226@debbugs.gnu.org; Thu, 22 Jun 2023 13:16:09 -0400 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 1qCNud-0004d1-5k; Thu, 22 Jun 2023 13:16:03 -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=5oZ06UqcWVRm6O1isDj5RxFJhtKi4CGRDPovparwko0=; b=jW//2F46loGH 2hRskDyeb/gBV9GBZrwaxDbxXKHT8gns4GQCx04+cF+iqgwtGbAVQfL81HFf7A57vYcD2z4TXpbSG eIg0RppP3qjGAj9bgmyq2wvEyd+SrdjnmQ2Euf7pi+jvU47ArR8v4mCVAxPRc1vumLpPEB6dkhRPe tJwIad4KO8fTxG3/CRy/HNkpcrdg6qmE01MiRCesRc0NCljAxhRtmtnskeEawtm7JwPDjItd17o+6 xORDQOe+Sa2s9picFO75LjV1x01TrQyKkkbhIHM18/vjkQTN9c+5757qFReQMTZMlnmZVADb+ng8V njxq/QImDasC/gVEIbF2qg==; 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 1qCNuc-0007oc-LC; Thu, 22 Jun 2023 13:16:02 -0400 Date: Thu, 22 Jun 2023 20:16:13 +0300 Message-Id: <83h6qz2zaa.fsf@gnu.org> From: Eli Zaretskii To: No Wayman In-Reply-To: <87bkh731f1.fsf@gmail.com> (message from No Wayman on Thu, 22 Jun 2023 12:22:07 -0400) Subject: Re: bug#64226: 30.0.50; emacs-lisp-native-compile-and-load permission error References: <87bkh734u7.fsf@gmail.com> <83pm5n33zz.fsf@gnu.org> <87bkh7ts5r.fsf@gmail.com> <83o7l7327u.fsf@gnu.org> <87bkh731f1.fsf@gmail.com> X-Spam-Score: -2.3 (--) X-Debbugs-Envelope-To: 64226 Cc: acorallo@gnu.org, 64226@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 (---) > From: No Wayman > Cc: acorallo@gnu.org, 64226@debbugs.gnu.org > Date: Thu, 22 Jun 2023 12:22:07 -0400 > > > Eli Zaretskii writes: > > > No, I don't think so, not with > > emacs-lisp-native-compile-and-load. > > Andrea, am I right? > > See comp-final: That's not compilation, that's code generation, the last stage of compilation. > >> 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? > > The following file name is messaged with no error signaled: > > "/home/n/.emacs.d/eln-cache/30.0.50-58a66af6/elpaca-0646d6fc-1256ece5.eln" Which is exactly what emacs-lisp-native-compile-and-load does. So I wonder what went wrong in your case. What is the value of native-comp-eln-load-path? Also, can you show the contents of the file being compiled, which seems to be /home/n/.emacs.d/elpaca/repos/elpaca/elpaca.el ? From debbugs-submit-bounces@debbugs.gnu.org Thu Jun 22 13:37:34 2023 Received: (at 64226) by debbugs.gnu.org; 22 Jun 2023 17:37:34 +0000 Received: from localhost ([127.0.0.1]:36667 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1qCOFS-0006Py-Ga for submit@debbugs.gnu.org; Thu, 22 Jun 2023 13:37:34 -0400 Received: from mail-qk1-f174.google.com ([209.85.222.174]:42115) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1qCOFQ-0006Pi-IL for 64226@debbugs.gnu.org; Thu, 22 Jun 2023 13:37:33 -0400 Received: by mail-qk1-f174.google.com with SMTP id af79cd13be357-763d415bd94so47208485a.0 for <64226@debbugs.gnu.org>; Thu, 22 Jun 2023 10:37:32 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20221208; t=1687455446; x=1690047446; h=mime-version:message-id:in-reply-to:date:subject:cc:to:from :user-agent:references:from:to:cc:subject:date:message-id:reply-to; bh=f714Rn3tvAx3HB6t3WPIt3vHx2HYD2Z7t1dZEQklRUk=; b=sjStIsXNcpeRXpAC9YqvDPvkvVbl3sKY8LIke/JUUOa68K4WH33kERjNXxToxw1YsY lZvyytmSjhybvfajsNia+0KCvg36VSTteSH8fQPqexLjQz6aZwV+RG/4mP6mejBPpc8A gCHQ/MxMCRepKLGwsuFyoyNURg0hHyO/Tz+w0XPSpZBnwheOYUzEHaO46CVPxBPTKuWM lT6ACRwff7NNGBXDIrxhJH4bpphhSnla6d9+68W9ZzwO7Ni+bUgJeB5Xi1cLHEIv9gnW yBkeNz+5IWBGpt2q0oxAe1y5mHjX+G02A3/4B5ml/wa8sO1G8kwUDbagbZB2BQtaQVAR tuTA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1687455446; x=1690047446; h=mime-version:message-id:in-reply-to:date:subject:cc:to:from :user-agent:references:x-gm-message-state:from:to:cc:subject:date :message-id:reply-to; bh=f714Rn3tvAx3HB6t3WPIt3vHx2HYD2Z7t1dZEQklRUk=; b=evMLejgKehgayoEh4Htl02W1WXrmQvBqZTeAkr0W1RPNtFltzZbYYkMRg2E96javlB gd7nipACI+vSMi0FII8PrqfjdveEpl2PaqkkuFAab3asmECqHPOBxOsTNnF/GvYrtlJd Sn1kF3KidydtvYqRbkDXkl5qWtZbeRZ8FTfNwR5gJKgxxV32SKKm+VMcmtcrTjBaWxGM RhG2OQ0ksYYLEfPJlok4ccig6q45Mn0vsryPNFK/2ylr9XN8KFobp9N/7l5XmtXaVP1g X4hnQCS0Uk8D+3tswq4kAnFXNHUX2GdpRRrOhVrNsvTGxyixQYX2VIIy82oR8gWKz6kN VSoQ== X-Gm-Message-State: AC+VfDyNCBg7vgnENw26xP2TLgTA5Qaj0k44TCBczXLvIKrxZJZwYze7 DwUtTGtJdx5W5IG4DcOoOvG0bG3qe75sOw== X-Google-Smtp-Source: ACHHUZ4Hbe8yZANgOEk/229zOvmLijg2exh5hAptZ0D1e5f3JmolX/qVTl+agJDEN9fVBrdfauXAhQ== X-Received: by 2002:a05:620a:8398:b0:763:969e:fb7 with SMTP id pb24-20020a05620a839800b00763969e0fb7mr13927077qkn.32.1687455446500; Thu, 22 Jun 2023 10:37:26 -0700 (PDT) Received: from laptop ([2601:84:847f:c697:2d4:9eff:feb6:970c]) by smtp.gmail.com with ESMTPSA id h4-20020a37de04000000b00762148353a4sm3599143qkj.75.2023.06.22.10.37.25 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 22 Jun 2023 10:37:26 -0700 (PDT) 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> User-agent: mu4e 1.11.6; emacs 30.0.50 From: No Wayman To: Eli Zaretskii Subject: Re: bug#64226: 30.0.50; emacs-lisp-native-compile-and-load permission error Date: Thu, 22 Jun 2023 13:21:49 -0400 In-reply-to: <83h6qz2zaa.fsf@gnu.org> Message-ID: <877crv2yaw.fsf@gmail.com> MIME-Version: 1.0 Content-Type: text/plain; format=flowed X-Spam-Score: 0.0 (/) X-Debbugs-Envelope-To: 64226 Cc: acorallo@gnu.org, 64226@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: -1.0 (-) Eli Zaretskii writes: > What is the value of native-comp-eln-load-path? ("/home/n/.emacs.d/eln-cache/" "/usr/lib/emacs/30.0.50/native-lisp/") > Also, can you show the contents of the file being compiled, > which > seems to be /home/n/.emacs.d/elpaca/repos/elpaca/elpaca.el ? I can reproduce with any elisp file. e.g. $HOME/test.el containing: --8<---------------cut here---------------start------------->8--- ;; -*- lexical-binding: t; -*- (defun +test () (message "PASS")) --8<---------------cut here---------------end--------------->8--- Native compiler error: "/home/n/test.el", "Compiling /usr/lib/emacs/30.0.50/native-lisp/30.0.50-58a66af6/test-98b414c9-ac29ecab.eln... Creating file with prefix: Permission denied, /usr/lib/emacs/30.0.50/native-lisp/30.0.50-58a66af6/test-98b414c9-ac29ecab Error: permission-denied (\"Creating file with prefix\" \"Permission denied\" \"/usr/lib/emacs/30.0.50/native-lisp/30.0.50-58a66af6/test-98b414c9-ac29ecab\") 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/test-98b414c9-ac29ecab\")) make-temp-file(\"/usr/lib/emacs/30.0.50/native-lisp/30.0.50-58a66af6/test-98b414c9-ac29ecab\" nil \".eln.tmp\" nil) comp--compile-ctxt-to-file(\"/usr/lib/emacs/30.0.50/native-lisp/30.0.50-58a66af6/test-98b414c9-ac29ecab.eln\") comp-compile-ctxt-to-file(\"/usr/lib/emacs/30.0.50/native-lisp/30.0.50-58a66af6/test-98b414c9-ac29ecab.eln\") comp-final1() load-with-code-conversion(\"/tmp/emacs-int-comp-test-98b414c9-ac29ecab-my5A7o.el\" \"/tmp/emacs-int-comp-test-98b414c9-ac29ecab-my5A7o.el\" nil t) command-line-1((\"-l\" \"/tmp/emacs-int-comp-test-98b414c9-ac29ecab-my5A7o.el\")) command-line() normal-top-level() From debbugs-submit-bounces@debbugs.gnu.org Thu Jun 22 13:53:42 2023 Received: (at 64226) by debbugs.gnu.org; 22 Jun 2023 17:53:42 +0000 Received: from localhost ([127.0.0.1]:36677 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1qCOV3-0006so-Rt for submit@debbugs.gnu.org; Thu, 22 Jun 2023 13:53:42 -0400 Received: from eggs.gnu.org ([209.51.188.92]:40532) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1qCOV2-0006sc-LB for 64226@debbugs.gnu.org; Thu, 22 Jun 2023 13:53:41 -0400 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 1qCOUx-0007Ie-Ah; Thu, 22 Jun 2023 13:53:35 -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=DpvMzkdTIFQmWV9tNSTEO5bbmEUIMC+TzqHJTfJgQKk=; b=PC7igKSwLMgl SxFHB53DTPeGNp9/1uYcQhAGms3m07LMSLY5HsBEIoXCahYjMwofQez/tk2nqojHZa02OpDbJrpP3 MYtyZ+8YJWxq6nm5390rbT0XsZoceulpyzkzsvwPAnJTIDQx/ud34yY2ktPZ8l5pHNZUlI61LZygj TwPWdc9VEE9dSMp70M7oiwPwYuNJ+JyjfCeSxU+ZUocNG6FATmQbQM4QJvFszmaJfHR0i7HkcBjdy ZzMz5oXs/M+vbs9RrOYTpf+/+DUbwwHQ2nNzjeRQ/KQAel5r9EU4xfXyQOdfKQu6k2Ih4Y/vqy0F1 ZC4MhnmgnQnQhblaT++uag==; 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 1qCOUw-00073w-Qz; Thu, 22 Jun 2023 13:53:35 -0400 Date: Thu, 22 Jun 2023 20:53:46 +0300 Message-Id: <83cz1n2xjp.fsf@gnu.org> From: Eli Zaretskii To: No Wayman In-Reply-To: <877crv2yaw.fsf@gmail.com> (message from No Wayman on Thu, 22 Jun 2023 13:21:49 -0400) Subject: Re: bug#64226: 30.0.50; emacs-lisp-native-compile-and-load permission error 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> X-Spam-Score: -2.3 (--) X-Debbugs-Envelope-To: 64226 Cc: acorallo@gnu.org, 64226@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 (---) > From: No Wayman > Cc: acorallo@gnu.org, 64226@debbugs.gnu.org > Date: Thu, 22 Jun 2023 13:21:49 -0400 > > > Eli Zaretskii writes: > > > What is the value of native-comp-eln-load-path? > > ("/home/n/.emacs.d/eln-cache/" > "/usr/lib/emacs/30.0.50/native-lisp/") > > > > Also, can you show the contents of the file being compiled, > > which > > seems to be /home/n/.emacs.d/elpaca/repos/elpaca/elpaca.el ? > > I can reproduce with any elisp file. > e.g. $HOME/test.el containing: > > --8<---------------cut here---------------start------------->8--- > ;; -*- lexical-binding: t; -*- > (defun +test () (message "PASS")) > --8<---------------cut here---------------end--------------->8--- Then I'm stumped, and hope Andrea will be able to figure this out. I cannot reproduce the problem on my system, FWIW. From debbugs-submit-bounces@debbugs.gnu.org Sun Jun 25 10:44:31 2023 Received: (at 64226) by debbugs.gnu.org; 25 Jun 2023 14:44:31 +0000 Received: from localhost ([127.0.0.1]:43223 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1qDQyb-0002FX-CP for submit@debbugs.gnu.org; Sun, 25 Jun 2023 10:44:31 -0400 Received: from eggs.gnu.org ([209.51.188.92]:59956) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1qDQyW-0002FH-MG for 64226@debbugs.gnu.org; Sun, 25 Jun 2023 10:44:28 -0400 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 1qDQyH-0008KG-Gt; Sun, 25 Jun 2023 10:44:17 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnu.org; s=fencepost-gnu-org; h=MIME-Version:Date:References:In-Reply-To:Subject:To: From; bh=ZBYt5v2+mf/SvgMy4Kch4tNJGCxUVsJT3riILelBMHI=; b=P/rmIcb9+yCnF2JRvEhD dOy88F1/gtXCi7R6ycLujGfuZMEGsuvJlnAWph+t7Si4Amcvk6ys1DZKQiyNZH/jSnytHbDy0kN7x gFM3Eib8v8YIgJZGpM1URRrIINRqKmBDBPR1SEGnv9mlYIwYw9BW2JlAV+ytBYVm414SN4gyBv4/F WDCcLkIBWfEH/9hCAEwMCnJBAvg3Yj4piyHxpQiYjsJCUo343KOOZ/QCFYt3y0YW1w+of0nGmm0BK X6WFXeIwY4hsu79B5Ovv2CvjL/9WbiUZZqzaVWC56OZBBTSEITMVvkbHp3vQ7FaZYLcHhOWjTQ0Sh j3YhgtNpQSihyA==; Received: from acorallo by fencepost.gnu.org with local (Exim 4.90_1) (envelope-from ) id 1qDQyH-0000L4-87; Sun, 25 Jun 2023 10:44:09 -0400 From: Andrea Corallo To: Eli Zaretskii Subject: Re: bug#64226: 30.0.50; emacs-lisp-native-compile-and-load permission error In-Reply-To: <83o7l7327u.fsf@gnu.org> (Eli Zaretskii's message of "Thu, 22 Jun 2023 19:12:53 +0300") References: <87bkh734u7.fsf@gmail.com> <83pm5n33zz.fsf@gnu.org> <87bkh7ts5r.fsf@gmail.com> <83o7l7327u.fsf@gnu.org> Date: Sun, 25 Jun 2023 10:44:09 -0400 Message-ID: User-Agent: Gnus/5.13 (Gnus v5.13) MIME-Version: 1.0 Content-Type: text/plain X-Spam-Score: -2.3 (--) X-Debbugs-Envelope-To: 64226 Cc: No Wayman , 64226@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 (---) Eli Zaretskii writes: >> 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? We always invoke libgccjit in a subprocess, the difference between sync and async is: - in sync compilation we run all our compiler *but* libgccjit in process (libgccjit runs in a subprocess) - in async all the compilation computation is done in a sub process. The reason for running libgccjit always in a subprocess is that unfortunatelly it leaks memory. Best Regards Andrea From debbugs-submit-bounces@debbugs.gnu.org Sun Jun 25 11:02:49 2023 Received: (at 64226) by debbugs.gnu.org; 25 Jun 2023 15:02:49 +0000 Received: from localhost ([127.0.0.1]:43244 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1qDRGK-0002nL-Pa for submit@debbugs.gnu.org; Sun, 25 Jun 2023 11:02:49 -0400 Received: from eggs.gnu.org ([209.51.188.92]:47394) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1qDRGJ-0002n0-9v for 64226@debbugs.gnu.org; Sun, 25 Jun 2023 11:02:47 -0400 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 1qDRGE-0003L6-3E; Sun, 25 Jun 2023 11:02:42 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnu.org; s=fencepost-gnu-org; h=MIME-Version:Date:References:In-Reply-To:Subject:To: From; bh=sW5Dy+UNJqJGISOJpBkGGcjMlAaBKO2VFnI8IUBvkyA=; b=VhHYy32ADwvLCTCvZmaV lGbhVJ/dxTDV2ZigJUknFp0ttISOV9CjZl/+SYlqRfIwTRbSCWAaLlaNQUYmW4GA+UUhAYa8qV9JK 61GW/sLt/x/9kkI5Yc+YXwlbXZ2vhabVuIHPUCbBH3JrualC7Rgq3Xupn0sAZtHglAs+M1P7cu+HP ah/CjjfWpZY3ylhPLIXqqDhFqAAvBNIr7N5FoMRku8YaQx9De+zyJyevCuc/PLKKFvNN1M7bJsGeb PdSGoI1LTJ979wsRr6T0WMkjjg65K/dGzPiRMVvaGvZ7Hq8F+y/RYaDvqSm+pQlhafxP1z/vYdpxV TL0e6eSR+NMyXw==; Received: from acorallo by fencepost.gnu.org with local (Exim 4.90_1) (envelope-from ) id 1qDRGD-0005c3-SG; Sun, 25 Jun 2023 11:02:41 -0400 From: Andrea Corallo To: Eli Zaretskii Subject: Re: bug#64226: 30.0.50; emacs-lisp-native-compile-and-load permission error In-Reply-To: <83cz1n2xjp.fsf@gnu.org> (Eli Zaretskii's message of "Thu, 22 Jun 2023 20:53:46 +0300") 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> Date: Sun, 25 Jun 2023 11:02:41 -0400 Message-ID: User-Agent: Gnus/5.13 (Gnus v5.13) MIME-Version: 1.0 Content-Type: text/plain X-Spam-Score: -2.3 (--) X-Debbugs-Envelope-To: 64226 Cc: No Wayman , 64226@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 (---) Eli Zaretskii writes: >> From: No Wayman >> Cc: acorallo@gnu.org, 64226@debbugs.gnu.org >> Date: Thu, 22 Jun 2023 13:21:49 -0400 >> >> >> Eli Zaretskii writes: >> >> > What is the value of native-comp-eln-load-path? >> >> ("/home/n/.emacs.d/eln-cache/" >> "/usr/lib/emacs/30.0.50/native-lisp/") >> >> >> > Also, can you show the contents of the file being compiled, >> > which >> > seems to be /home/n/.emacs.d/elpaca/repos/elpaca/elpaca.el ? >> >> I can reproduce with any elisp file. >> e.g. $HOME/test.el containing: >> >> --8<---------------cut here---------------start------------->8--- >> ;; -*- lexical-binding: t; -*- >> (defun +test () (message "PASS")) >> --8<---------------cut here---------------end--------------->8--- > > Then I'm stumped, and hope Andrea will be able to figure this out. I > cannot reproduce the problem on my system, FWIW. That's very bizzare to me as well, I can't reproduce this either. Is anyone able to reproduce this? Thanks Andrea From debbugs-submit-bounces@debbugs.gnu.org Sat Jul 01 04:36:18 2023 Received: (at 64226) by debbugs.gnu.org; 1 Jul 2023 08:36:18 +0000 Received: from localhost ([127.0.0.1]:56523 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1qFW5a-0005Zu-GC for submit@debbugs.gnu.org; Sat, 01 Jul 2023 04:36:18 -0400 Received: from eggs.gnu.org ([209.51.188.92]:39548) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1qFW5Y-0005Zh-Je for 64226@debbugs.gnu.org; Sat, 01 Jul 2023 04:36:17 -0400 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 1qFW5T-0001XB-CD; Sat, 01 Jul 2023 04:36:11 -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=IquKnzZtYmiHwd/tDiiiKPtPDCbXM1EJVG+QkGyUgLw=; b=NBms4ID/i2Qe RXaDFQO9n/yzrOZKHUiA/MJWJSAztNi4ftgF/KZSGm+RBbLD3UUm0mpvi6BIIF4NjXbINCHX7NTrM dWgisHxM7qtjnGn2NknrrhiN+bnF6CJNNLa9krEGn1EXZynrbPUhxrx+lN0Q9+YOR3g2byez6GmVM saNPhXLzw2gNSqVLlO0kFCBiCZ0h4aIz308oD1CDbFTiX7Ua0jjJV//iHlv8nu6hNlfcYZ/RectBn /Fyn6iDqIukSZvdSOel8k4pr3nRqvfAq77cryrEnaYx2WzokRJtB04pYaCpMXKXyTOXvjHI7kH6ub NIpFc/XGjn8bwYYQ/AYoNw==; 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 1qFW5Q-0000fd-HV; Sat, 01 Jul 2023 04:36:09 -0400 Date: Sat, 01 Jul 2023 11:36:40 +0300 Message-Id: <83leg0qb8n.fsf@gnu.org> From: Eli Zaretskii To: Andrea Corallo In-Reply-To: (message from Andrea Corallo on Sun, 25 Jun 2023 11:02:41 -0400) Subject: Re: bug#64226: 30.0.50; emacs-lisp-native-compile-and-load permission error 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> X-Spam-Score: -2.3 (--) X-Debbugs-Envelope-To: 64226 Cc: iarchivedmywholelife@gmail.com, 64226@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 (---) Ping! Can anyone reproduce this issue and report the details, please? > From: Andrea Corallo > Cc: No Wayman , 64226@debbugs.gnu.org > Date: Sun, 25 Jun 2023 11:02:41 -0400 > > Eli Zaretskii writes: > > >> From: No Wayman > >> Cc: acorallo@gnu.org, 64226@debbugs.gnu.org > >> Date: Thu, 22 Jun 2023 13:21:49 -0400 > >> > >> > >> Eli Zaretskii writes: > >> > >> > What is the value of native-comp-eln-load-path? > >> > >> ("/home/n/.emacs.d/eln-cache/" > >> "/usr/lib/emacs/30.0.50/native-lisp/") > >> > >> > >> > Also, can you show the contents of the file being compiled, > >> > which > >> > seems to be /home/n/.emacs.d/elpaca/repos/elpaca/elpaca.el ? > >> > >> I can reproduce with any elisp file. > >> e.g. $HOME/test.el containing: > >> > >> --8<---------------cut here---------------start------------->8--- > >> ;; -*- lexical-binding: t; -*- > >> (defun +test () (message "PASS")) > >> --8<---------------cut here---------------end--------------->8--- > > > > Then I'm stumped, and hope Andrea will be able to figure this out. I > > cannot reproduce the problem on my system, FWIW. > > That's very bizzare to me as well, I can't reproduce this either. Is > anyone able to reproduce this? > > Thanks > > Andrea > From debbugs-submit-bounces@debbugs.gnu.org Sat Jul 01 11:32:41 2023 Received: (at 64226) by debbugs.gnu.org; 1 Jul 2023 15:32:42 +0000 Received: from localhost ([127.0.0.1]:58493 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1qFcaX-0005Mu-Kk for submit@debbugs.gnu.org; Sat, 01 Jul 2023 11:32:41 -0400 Received: from mail-qk1-f173.google.com ([209.85.222.173]:48638) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1qFcaV-0005Mg-20 for 64226@debbugs.gnu.org; Sat, 01 Jul 2023 11:32:39 -0400 Received: by mail-qk1-f173.google.com with SMTP id af79cd13be357-7659c6cae2cso228883085a.1 for <64226@debbugs.gnu.org>; Sat, 01 Jul 2023 08:32:39 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20221208; t=1688225553; x=1690817553; h=mime-version:message-id:in-reply-to:date:subject:cc:to:from :user-agent:references:from:to:cc:subject:date:message-id:reply-to; bh=GhEGF6XydpeG5mKnzcH3UGurek9f3rvK0vM27ttAhS8=; b=GdclqKN9nlK/3Kkk6BByT2orBTfXB14JL87LaaC1O50ahG21jym6PQ5ysV2kvsBBNK mu+SmTQgRHzY5+Ysch7CRIGCSarl3EJjeP/WlF6rG2dMoM7YozN7wFxvK1dSpmvquFcd UHnPWQGmpG0lR9kM96Gth2/GWqNIbma1xal31mU+BEVs19xcdaep92o13oFcCa+kx51j kjhhaDgFdaoU51OZR0py1hNxmgBlyeDHqFlNEEjuM3yv2iv3jXUOSZdqmuBtmx6g4TxF FjBs2xDT2DdVyrYLWKoUlsgK3CnBCHM0uKwfLAWYO8QxcUhhS3EI/Mczg6BlOjlT1DD9 kgXw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1688225553; x=1690817553; h=mime-version:message-id:in-reply-to:date:subject:cc:to:from :user-agent:references:x-gm-message-state:from:to:cc:subject:date :message-id:reply-to; bh=GhEGF6XydpeG5mKnzcH3UGurek9f3rvK0vM27ttAhS8=; b=TaNMfnuxCE18qwanpf8Y8+W1DDob7MN1AcrUDb105wEa0jP9g7Rj11RRISqmYJdT94 pNlwRo+tgvOryw2s3uYVWw9DUj8O3xx0LEl8rQQJDrcB8wI6vqV8WPgRed7loX8cG85e T4aTB5r2Vth5d5z7bTWoZOKVIgECi6QqWi9zwuz+lftGgnFEZwLOe0hFQvQT4eNQjdYB HWIXBn4fEtJuP+dQOLynutPwazIabQUoyDEQg9rzrGRmQVIAmdt4+d/CAPW5eAtfGc0H qudyBJio+A3lyEQxRcFaOEDJZ35x53yYOGvcsXr8wHkKiTKj9jNohMQTPCGTsf9I9n3i q4Dw== X-Gm-Message-State: AC+VfDwSbOLHZp5PSAm7n2+5PgMGptGYQfD9/2xPHuRaHl49dFmL0LQr Hjj0WulblOqelSV3lKcDp29Q6+jrkStoRA== X-Google-Smtp-Source: APBJJlEXvtYbhV79oTewvTLWiqqqBXkSgXOzsHJxXvrVshVkmnwHnIX0Y8fIJw/1Cm9xv408tzGm9w== X-Received: by 2002:a05:620a:2687:b0:765:aa35:f03f with SMTP id c7-20020a05620a268700b00765aa35f03fmr6056631qkp.37.1688225552929; Sat, 01 Jul 2023 08:32:32 -0700 (PDT) Received: from laptop ([2601:84:847f:c697:2d4:9eff:feb6:970c]) by smtp.gmail.com with ESMTPSA id x13-20020ae9e90d000000b00767291640e8sm3328909qkf.90.2023.07.01.08.32.32 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 01 Jul 2023 08:32:32 -0700 (PDT) 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> User-agent: mu4e 1.11.7; emacs 30.0.50 From: No Wayman To: Eli Zaretskii Subject: Re: bug#64226: 30.0.50; emacs-lisp-native-compile-and-load permission error Date: Sat, 01 Jul 2023 11:28:49 -0400 In-reply-to: <83leg0qb8n.fsf@gnu.org> Message-ID: <87fs67wsto.fsf@gmail.com> MIME-Version: 1.0 Content-Type: text/plain; format=flowed X-Spam-Score: 0.0 (/) X-Debbugs-Envelope-To: 64226 Cc: Andrea Corallo , 64226@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: -1.0 (-) Eli Zaretskii writes: > Ping! Can anyone reproduce this issue and report the details, > please? Still reproducible on my end on two machines: 1. GNU Emacs 30.0.50 (build 1, x86_64-pc-linux-gnu, GTK+ Version 3.24.38, cairo version 1.17.8) of 2023-06-28 2. GNU Emacs 30.0.50 (build 1, x86_64-pc-linux-gnu, GTK+ Version 3.24.38, cairo version 1.17.8) of 2023-06-15 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-bfea2b95.eln... Creating file with prefix: Permission denied, /usr/lib/emacs/30.0.50/native-lisp/30.0.50-58a66af6/elpaca-0646d6fc-bfea2b95 Error: permission-denied (\"Creating file with prefix\" \"Permission denied\" \"/usr/lib/emacs/30.0.50/native-lisp/30.0.50-58a66af6/elpaca-0646d6fc-bfea2b95\") 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-bfea2b95\")) make-temp-file(\"/usr/lib/emacs/30.0.50/native-lisp/30.0.50-58a66af6/elpaca-0646d6fc-bfea2b95\" nil \".eln.tmp\" nil) comp--compile-ctxt-to-file(\"/usr/lib/emacs/30.0.50/native-lisp/30.0.50-58a66af6/elpaca-0646d6fc-bfea2b95.eln\") comp-compile-ctxt-to-file(\"/usr/lib/emacs/30.0.50/native-lisp/30.0.50-58a66af6/elpaca-0646d6fc-bfea2b95.eln\") comp-final1() load-with-code-conversion(\"/tmp/emacs-int-comp-elpaca-0646d6fc-bfea2b95-SXTWTL.el\" \"/tmp/emacs-int-comp-elpaca-0646d6fc-bfea2b95-SXTWTL.el\" nil t) command-line-1((\"-l\" \"/tmp/emacs-int-comp-elpaca-0646d6fc-bfea2b95-SXTWTL.el\")) command-line() normal-top-level() " From debbugs-submit-bounces@debbugs.gnu.org Sat Jul 01 11:41:20 2023 Received: (at 64226) by debbugs.gnu.org; 1 Jul 2023 15:41:20 +0000 Received: from localhost ([127.0.0.1]:58506 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1qFcit-0005ZP-OP for submit@debbugs.gnu.org; Sat, 01 Jul 2023 11:41:20 -0400 Received: from eggs.gnu.org ([209.51.188.92]:49408) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1qFciq-0005ZB-HI for 64226@debbugs.gnu.org; Sat, 01 Jul 2023 11:41:19 -0400 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 1qFcil-0007eC-5C; Sat, 01 Jul 2023 11:41:11 -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=5ud6H+IONJ46F/uaje0bQUBtm6mQ5Ct+YkOUwQdHaPE=; b=F+9eqW9OCWDe g5ZrjAnwrFnmNV/kRxhH75mHS9okQjBUzl8p/aP71lVyiqHElCP0E/uQlW6OPHangN/8fc+divK1x nZYguSmO7+vwnEFiMKBCab9sGLH43QWkJz9HJy0egBOgDQaxzZaVgl970PAwmYa66wP03SyKb6D1J xlAZykFrmmyNEhnQG0Sq1vpXs0rcXNYtyvQr2+VEiGYr1Fie7M/LINcQxJCfV2DXc7IFOTXIv0qCq nENOkMt+s2IVxRF8EgASuRtHNvQssjB/wOsAyYZB482NgJT9uGgt7whUsrjfps1dA0ge7D/sViK38 QxDhNdqTGUWzgQlT12DIng==; 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 1qFcib-0000tw-El; Sat, 01 Jul 2023 11:41:03 -0400 Date: Sat, 01 Jul 2023 18:41:33 +0300 Message-Id: <83r0prprki.fsf@gnu.org> From: Eli Zaretskii To: No Wayman In-Reply-To: <87fs67wsto.fsf@gmail.com> (message from No Wayman on Sat, 01 Jul 2023 11:28:49 -0400) Subject: Re: bug#64226: 30.0.50; emacs-lisp-native-compile-and-load permission error 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> X-Spam-Score: -2.3 (--) X-Debbugs-Envelope-To: 64226 Cc: acorallo@gnu.org, 64226@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 (---) > From: No Wayman > Cc: Andrea Corallo , 64226@debbugs.gnu.org > Date: Sat, 01 Jul 2023 11:28:49 -0400 > > > Eli Zaretskii writes: > > > Ping! Can anyone reproduce this issue and report the details, > > please? > > Still reproducible on my end on two machines: Thanks, but that's a small wonder: we didn't yet do anything to fix this, whatever it is. I was asking others to provide details, not just reproduce. If you want to provide those details, 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 main aspect of this which is completely unclear is: how come Emacs tries to write in the /usr/lib tree when compiling Lisp files from your home directory. This is not supposed to happen: Emacs should write to the eln-cache subdirectory of your ~/.emacs.d/ directory. From debbugs-submit-bounces@debbugs.gnu.org Sat Jul 01 16:52:44 2023 Received: (at 64226) by debbugs.gnu.org; 1 Jul 2023 20:52:44 +0000 Received: from localhost ([127.0.0.1]:58779 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1qFhaG-0005eP-3I for submit@debbugs.gnu.org; Sat, 01 Jul 2023 16:52:44 -0400 Received: from mail-qk1-f169.google.com ([209.85.222.169]:61823) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1qFhaE-0005eA-3K for 64226@debbugs.gnu.org; Sat, 01 Jul 2023 16:52:42 -0400 Received: by mail-qk1-f169.google.com with SMTP id af79cd13be357-7653bd3ff2fso323566985a.3 for <64226@debbugs.gnu.org>; Sat, 01 Jul 2023 13:52:42 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20221208; t=1688244756; x=1690836756; h=mime-version:message-id:in-reply-to:date:subject:cc:to:from :user-agent:references:from:to:cc:subject:date:message-id:reply-to; bh=aLNzTvSKhqjUhMT2MTP8ZEPKbg8FYLOyi2Hc+OdcqbA=; b=QQioad6Vgq58m0TwmZxEGn0vBY9myDdlYC3yV+QB68qJIMtlm+dls7xMwy+FVWlVvM Cs3V+tddd+wEQqugxNi0Q+Xx4xjLxQGqHb2CvekztpoXUilA84ttzrWAEhu0WvWueEBa BnH5lHQZMiwt/0WXAWuWqeM6UIyi6Kh+4fzWnl/wjrqoyHXm2uhTzrjqGDH/mdzFFjzg T8b4NqRYSwVZ6nNx923iv2u+yAUxLNzHMhnSrUE8ZzZSwTvQxGFMx0DR0ifS1hHtKcmb r8dui4Kx9qry5w10uLPE619/Gh6WRD567re9bFmuKJvdmD1GlXESWUo7FTgkLrf5/kCH gonQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1688244756; x=1690836756; h=mime-version:message-id:in-reply-to:date:subject:cc:to:from :user-agent:references:x-gm-message-state:from:to:cc:subject:date :message-id:reply-to; bh=aLNzTvSKhqjUhMT2MTP8ZEPKbg8FYLOyi2Hc+OdcqbA=; b=Mj/b9S4d/hOIDbizkCLgg6hpfCkYDcMmP49qr68F+AgJtvm0a7OT7n5JO9/f4EIzDu sk4bj7K9fPe4NXy7nrIN09fC8Hre/cnFROHNwM8hqXhQHEW8r18tuP/iq3UqZCdNliHu YB2OHJg+ZeOyGRpRllOOVUa6lEZG+pD0unFVTLH9KFzuJszE9imq/I9zrSKVD/thS8Ka WrbClGUmUFydC8eKjfHhAYuj3LC+yLQPVU5/sbkI6PiwfheEaMCdLqSsC9+rxDzM87bD PFn3A2VAzJdj5vPs5qFVyU5+mDSXhGKMrM6mUUele7PBv/ZDmFUzRXT/6nUuf62yuiUN 66ag== X-Gm-Message-State: ABy/qLawpQrJLkQkHr0grF/bhIZKQ1PzRYfnkmisHEz2rBF9f+pWwGEQ NQ49i6leGKWEVCAQB/MiOv6/2BLUibMCcA== X-Google-Smtp-Source: APBJJlGBEihnGw6V3R8eoZEr21sK1TCodFG2Xl86EDwrps4WiWf9Q0aplW7KmcQwebtEgd5W5VM9Dw== X-Received: by 2002:a05:620a:40d6:b0:765:8a18:e3c0 with SMTP id g22-20020a05620a40d600b007658a18e3c0mr8545857qko.57.1688244755823; Sat, 01 Jul 2023 13:52:35 -0700 (PDT) Received: from laptop ([2601:84:847f:c697:2d4:9eff:feb6:970c]) by smtp.gmail.com with ESMTPSA id s6-20020a05620a16a600b007675209bcf1sm1341278qkj.61.2023.07.01.13.52.35 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 01 Jul 2023 13:52:35 -0700 (PDT) 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> User-agent: mu4e 1.11.7; emacs 30.0.50 From: No Wayman To: Eli Zaretskii Subject: Re: bug#64226: 30.0.50; emacs-lisp-native-compile-and-load permission error Date: Sat, 01 Jul 2023 15:14:16 -0400 In-reply-to: <83r0prprki.fsf@gnu.org> Message-ID: <87bkgvwe05.fsf@gmail.com> MIME-Version: 1.0 Content-Type: text/plain; format=flowed X-Spam-Score: 0.0 (/) X-Debbugs-Envelope-To: 64226 Cc: acorallo@gnu.org, 64226@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: -1.0 (-) 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. I'm not sure how I can meaningfully pare it down from there. > The main aspect of this which is completely unclear is: how come > Emacs > tries to write in the /usr/lib tree when compiling Lisp files > from > your home directory. This is not supposed to happen: Emacs > should > write to the eln-cache subdirectory of your ~/.emacs.d/ > directory. That makes sense to me and I agree. It looks like the critical path is in the file `comp-spill-lap-function' method. The comp-ctxt-output slot is set to (car (last native-comp-eln-load-path)). I don't know enough about the native-comp machinery to say whether or not this is the appropriate solution, but let-binding `native-compile-target-directory' to the car of native-comp-eln-load-path in emacs-lisp-native-compile-and-load compiles in the correct directory and avoids the error: (defun emacs-lisp-native-compile-and-load () "Native-compile synchronously the current file (if it has changed). Load the compiled code when finished. Use `emacs-lisp-byte-compile-and-load' in combination with `native-comp-jit-compilation' set to t to achieve asynchronous native compilation." (interactive nil emacs-lisp-mode) (emacs-lisp--before-compile-buffer) (let ((byte+native-compile t) (native-compile-target-directory (car native-comp-eln-load-path)) (byte-to-native-output-buffer-file nil)) (when-let ((eln (native-compile buffer-file-name))) (load (file-name-sans-extension (comp-write-bytecode-file eln)))))) I'll leave the work of a proper patch to someone who is more familiar with the system. From debbugs-submit-bounces@debbugs.gnu.org Sun Jul 02 01:59:10 2023 Received: (at 64226) by debbugs.gnu.org; 2 Jul 2023 05:59:10 +0000 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 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 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==; 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 Date: Sun, 02 Jul 2023 08:59:32 +0300 Message-Id: <834jmmq2ez.fsf@gnu.org> From: Eli Zaretskii To: No Wayman In-Reply-To: <87bkgvwe05.fsf@gmail.com> (message from No Wayman on Sat, 01 Jul 2023 15:14:16 -0400) Subject: Re: bug#64226: 30.0.50; emacs-lisp-native-compile-and-load permission error 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> X-Spam-Score: -2.3 (--) X-Debbugs-Envelope-To: 64226 Cc: acorallo@gnu.org, 64226@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 (---) > 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. From debbugs-submit-bounces@debbugs.gnu.org Sun Jul 02 02:18:04 2023 Received: (at 64226) by debbugs.gnu.org; 2 Jul 2023 06:18:05 +0000 Received: from localhost ([127.0.0.1]:59044 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1qFqPM-0006FF-II for submit@debbugs.gnu.org; Sun, 02 Jul 2023 02:18:04 -0400 Received: from mail-yw1-f176.google.com ([209.85.128.176]:48425) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1qFqPK-0006El-6X for 64226@debbugs.gnu.org; Sun, 02 Jul 2023 02:18:03 -0400 Received: by mail-yw1-f176.google.com with SMTP id 00721157ae682-57722942374so39260847b3.1 for <64226@debbugs.gnu.org>; Sat, 01 Jul 2023 23:18:02 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20221208; t=1688278676; x=1690870676; h=mime-version:message-id:in-reply-to:date:subject:cc:to:from :user-agent:references:from:to:cc:subject:date:message-id:reply-to; bh=Any01OBtTu6P67vrFwlww4WstFa3jWV2JQTr2JPQ/Ec=; b=autR9Pbi4l7viw0fsYv9J9CmDJXfcdVWlKRwKh66dAs/N8QHRn+S6WidsDKzhJemOE HxkjC+WwbFbPXfehhbvcC5B6YrxNdntR7FQF1NXlgC5DMVt61tdWF7nuoeijahGJVHW/ p/D/J3Iz6txCk+TF4MBMBdXu05codRDIFtoHShwEiJC6ISZ2DDv5c+5TeKdpAJ1m9169 D61X6WAtdN3gzWZhp70rXcMP3G6P7zF8jDhdLY0QH7rXpLqNNVMxkLSPpG0336r80XLk GrTE2RHyPpWtp1IyUpEjh0zd4ZqAFPyIyJesEviH9BtnArTYbfunrXsVt2QC3G/Vgl8z AAIQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1688278676; x=1690870676; h=mime-version:message-id:in-reply-to:date:subject:cc:to:from :user-agent:references:x-gm-message-state:from:to:cc:subject:date :message-id:reply-to; bh=Any01OBtTu6P67vrFwlww4WstFa3jWV2JQTr2JPQ/Ec=; b=PoZb1f/ZlCxFeNjBIyF1vUvmr7mr5b7hIkbCwoCXku15/Nh7JE5L+TfcZPcaqDL9YM ZqjM3uCjU5zJGoe8d0Ci1WST6EXWt2pakc/sav8A8CxEQwvxnmTtSm6ICSQ666GQNVYZ nrtfQPZM+BCRvhSGE+2lruoznOIJ40BmwATWJZyUvLkexWrRBcdRPK3oTnSE6/OIltVO zM+pEuI46KFTgEVuz0+LFTN95fsb52QISEKZBmBhMz67CzbJKSaJ5G4flOOJHDCojKZU iwkd5WRgqNCyrW1xSGkOe77Wumw4d3Cyb4wU8ci10hGkaBkJGEkEr8DRUVNNTAwDPzto wNRA== X-Gm-Message-State: ABy/qLb4jMt8cwa2wfeB1y8+n3c5EoWikV9wpKpOeuM6PGnINN9wqyQi tZXBKCh3NPC8HdJCto4Ha4jR52GcvEjKgA== X-Google-Smtp-Source: APBJJlG19RoDqnxY9N9RBZynhF07U8oTZcDdrX76E1tWncfP2VuumHrOiJ54DKo+ymg1xaN9gZMAxg== X-Received: by 2002:a0d:ea0a:0:b0:577:1f50:ee01 with SMTP id t10-20020a0dea0a000000b005771f50ee01mr6956597ywe.47.1688278676231; Sat, 01 Jul 2023 23:17:56 -0700 (PDT) Received: from laptop ([2601:84:847f:c697:2d4:9eff:feb6:970c]) by smtp.gmail.com with ESMTPSA id k15-20020ac8604f000000b0040321ca109fsm5193808qtm.96.2023.07.01.23.17.55 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 01 Jul 2023 23:17:55 -0700 (PDT) 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> <834jmmq2ez.fsf@gnu.org> User-agent: mu4e 1.11.7; emacs 30.0.50 From: No Wayman To: Eli Zaretskii Subject: Re: bug#64226: 30.0.50; emacs-lisp-native-compile-and-load permission error Date: Sun, 02 Jul 2023 02:08:45 -0400 In-reply-to: <834jmmq2ez.fsf@gnu.org> Message-ID: <87edlqygyx.fsf@gmail.com> MIME-Version: 1.0 Content-Type: text/plain; format=flowed X-Spam-Score: 1.3 (+) X-Spam-Report: Spam detection software, running on the system "debbugs.gnu.org", has NOT identified this incoming email as spam. The original message has been attached to this so you can view it or label similar future email. If you have any questions, see the administrator of that system for details. Content preview: Eli Zaretskii writes: > 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 $H [...] Content analysis details: (1.3 points, 10.0 required) pts rule name description ---- ---------------------- -------------------------------------------------- 0.0 FREEMAIL_FROM Sender email is commonly abused enduser mail provider (iarchivedmywholelife[at]gmail.com) 0.0 SPF_HELO_NONE SPF: HELO does not publish an SPF Record -0.0 SPF_PASS SPF: sender matches SPF record -0.0 RCVD_IN_DNSWL_NONE RBL: Sender listed at https://www.dnswl.org/, no trust [209.85.128.176 listed in list.dnswl.org] 1.3 RCVD_IN_VALIDITY_RPBL RBL: Relay in Validity RPBL, https://senderscore.org/blocklistlookup/ [209.85.128.176 listed in bl.score.senderscore.com] -0.0 RCVD_IN_MSPIKE_H2 RBL: Average reputation (+2) [209.85.128.176 listed in wl.mailspike.net] X-Debbugs-Envelope-To: 64226 Cc: acorallo@gnu.org, 64226@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: 0.3 (/) Eli Zaretskii writes: > 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. I sincerely doubt that will show anything more than what has been demonstrated already. Here you are from emacs -Q /tmp/test.el (contents mentioned in last message): Compiling /tmp/test.el...done comp--native-compile: Native compiler error: "/tmp/test.el", "Compiling /usr/lib/emacs/30.0.50/native-lisp/30.0.50-58a66af6/test-53c62054-ac29ecab.eln... Creating file with prefix: Permission denied, /usr/lib/emacs/30.0.50/native-lisp/30.0.50-58a66af6/test-53c62054-ac29ecab Error: permission-denied (\"Creating file with prefix\" \"Permission denied\" \"/usr/lib/emacs/30.0.50/native-lisp/30.0.50-58a66af6/test-53c62054-ac29ecab\") 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/test-53c62054-ac29ecab\")) make-temp-file(\"/usr/lib/emacs/30.0.50/native-lisp/30.0.50-58a66af6/test-53c62054-ac29ecab\" nil \".eln.tmp\" nil) comp--compile-ctxt-to-file(\"/usr/lib/emacs/30.0.50/native-lisp/30.0.50-58a66af6/test-53c62054-ac29ecab.eln\") comp-compile-ctxt-to-file(\"/usr/lib/emacs/30.0.50/native-lisp/30.0.50-58a66af6/test-53c62054-ac29ecab.eln\") comp-final1() load-with-code-conversion(\"/tmp/emacs-int-comp-test-53c62054-ac29ecab-s3wF7W.el\" \"/tmp/emacs-int-comp-test-53c62054-ac29ecab-s3wF7W.el\" nil t) command-line-1((\"-l\" \"/tmp/emacs-int-comp-test-53c62054-ac29ecab-s3wF7W.el\")) command-line() normal-top-level() " From debbugs-submit-bounces@debbugs.gnu.org Mon Jul 03 04:51:07 2023 Received: (at 64226) by debbugs.gnu.org; 3 Jul 2023 08:51:07 +0000 Received: from localhost ([127.0.0.1]:33119 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1qGFGy-0002sT-Bn for submit@debbugs.gnu.org; Mon, 03 Jul 2023 04:51:07 -0400 Received: from eggs.gnu.org ([209.51.188.92]:52838) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1qGFGu-0002rw-Nb for 64226@debbugs.gnu.org; Mon, 03 Jul 2023 04:51:03 -0400 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 1qGFGo-000459-G9; Mon, 03 Jul 2023 04:50:55 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnu.org; s=fencepost-gnu-org; h=MIME-Version:Date:References:In-Reply-To:Subject:To: From; bh=kgUyji4ZI+OVN5qdeothOmE1SHXTd/e9gb6sEuentHY=; b=lyFLlI016p4MG12aE/o/ 5KhOsfCywBLErjDvoIvIIK4SrwSKhlCwi3FIQuXIGKDLgX57TAKToFqn84A8q+hYRpze9fAvvMg7W 8YeD4qkRvA7kx5rp2S5ByGcfWYgqH27ly2xn8HeHrPK3LgJsiruOTQhzStbj+bN89wdvoVi+Tkd8e b+m1nK7hioOfaPaUbXAh/nVMiM4FnDLXEH5qOzIrn2crVzfVvNyS04iZH3reeQFz6ds6+OVN4cnwu ps+izM05/MVCaEYyQTESC8aBrD32MR468XPDI9CXDppJrcZVkCjd6VZ0+/lxNY6uWJfIuK4YK+iyA XM/zHmBRIuRxBA==; Received: from acorallo by fencepost.gnu.org with local (Exim 4.90_1) (envelope-from ) id 1qGFGn-0003VP-SO; Mon, 03 Jul 2023 04:50:54 -0400 From: Andrea Corallo To: Eli Zaretskii Subject: Re: bug#64226: 30.0.50; emacs-lisp-native-compile-and-load permission error In-Reply-To: <834jmmq2ez.fsf@gnu.org> (Eli Zaretskii's message of "Sun, 02 Jul 2023 08:59:32 +0300") 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> <834jmmq2ez.fsf@gnu.org> Date: Mon, 03 Jul 2023 04:50:53 -0400 Message-ID: User-Agent: Gnus/5.13 (Gnus v5.13) MIME-Version: 1.0 Content-Type: text/plain X-Spam-Score: -0.0 (/) X-Debbugs-Envelope-To: 64226 Cc: No Wayman , 64226@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 (---) Eli Zaretskii writes: >> 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.) Just retried and can finally reproduce the error. Will look at. Thanks Andrea From debbugs-submit-bounces@debbugs.gnu.org Wed Aug 09 09:22:46 2023 Received: (at 64226) by debbugs.gnu.org; 9 Aug 2023 13:22:46 +0000 Received: from localhost ([127.0.0.1]:38542 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1qTj9C-0007Up-Dh for submit@debbugs.gnu.org; Wed, 09 Aug 2023 09:22:46 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:54578) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1qTj9B-0007Ub-8O for 64226@debbugs.gnu.org; Wed, 09 Aug 2023 09:22:45 -0400 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 1qTj94-0007Cu-8q; Wed, 09 Aug 2023 09:22:40 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnu.org; s=fencepost-gnu-org; h=MIME-Version:Date:References:In-Reply-To:Subject:To: From; bh=fkTnWsmJuZedhL4+YHU8Ihk78JVdpqViFrw/BfqeDQI=; b=XSLRk8UwMVjfl5YUNjIT MhMDdT9h7P9fo1sfemO6LskdGKb4HFSBmCdeUPtcosv+zzTNM2XR4EmM2Hpz6MuMZ8SECswt3CqDc jc3iFZaLbrntQ/OZw7nwSgP+bmfo8i9n/FmYtwZ0lWDx8aDMZhVBNOkmKfkR2s8TNA7ETy5zNG4ns qY7tqFlL3rc/GXkxyGZ+HHrMTeu9hNABMBtZ9BDTdDM7GkHViAy+BzclV4tLK7lRDm6RwVhkwpIu5 Cr/8T0aIbkrVsm02qzXjTYpo6uKjxTLBo+HL4Iidgqe+C4Thd+bCd9xj60p0l8gRyBl3pdw/uOFTt Tb6hDLDKt/Z0eA==; Received: from acorallo by fencepost.gnu.org with local (Exim 4.90_1) (envelope-from ) id 1qTj91-00082G-BW; Wed, 09 Aug 2023 09:22:35 -0400 From: Andrea Corallo To: Eli Zaretskii Subject: Re: bug#64226: 30.0.50; emacs-lisp-native-compile-and-load permission error In-Reply-To: (Andrea Corallo's message of "Mon, 03 Jul 2023 04:50:53 -0400") 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> <834jmmq2ez.fsf@gnu.org> Date: Wed, 09 Aug 2023 09:22:35 -0400 Message-ID: User-Agent: Gnus/5.13 (Gnus v5.13) MIME-Version: 1.0 Content-Type: text/plain X-Spam-Score: -2.3 (--) X-Debbugs-Envelope-To: 64226 Cc: No Wayman , 64226@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 (---) Andrea Corallo writes: > Eli Zaretskii writes: > >>> 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.) > > Just retried and can finally reproduce the error. Will look at. > > Thanks > > Andrea Okay I pushed b93107c20b2 to fix this. I tested as best as I could but tweaking these dynamic variables is always tricky. No Wayman if you could verify everything works for you would be great. Thanks Andrea From debbugs-submit-bounces@debbugs.gnu.org Wed Aug 09 12:11:38 2023 Received: (at 64226) by debbugs.gnu.org; 9 Aug 2023 16:11:38 +0000 Received: from localhost ([127.0.0.1]:40368 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1qTlmb-0004KI-O3 for submit@debbugs.gnu.org; Wed, 09 Aug 2023 12:11:37 -0400 Received: from mail-oi1-x232.google.com ([2607:f8b0:4864:20::232]:52261) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1qTlmZ-0004K6-IY for 64226@debbugs.gnu.org; Wed, 09 Aug 2023 12:11:35 -0400 Received: by mail-oi1-x232.google.com with SMTP id 5614622812f47-3a751d2e6ecso5575367b6e.0 for <64226@debbugs.gnu.org>; Wed, 09 Aug 2023 09:11:35 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20221208; t=1691597490; x=1692202290; h=mime-version:message-id:in-reply-to:date:subject:cc:to:from :user-agent:references:from:to:cc:subject:date:message-id:reply-to; bh=Xt9n9rvfkjFpVIIOiCkdhN77QuWx+nKwhQ3Dn4KbeJE=; b=k3rpyf8tgzokfeT5U05hVOZqKRKjAzvDlVCHwidLZVm+iej8AgEl+ckHwb3WUnf6aa mCLcrb8EYY71TtDieoPezUlgl0QA5wWtLIpyGOfaChK22E1GyXm+VJEa0Ddt+SlI9jZO f9MBH7qC0Q5jjRf2a74XNacUEEjFXzc5XmDU6pgk1Tf+qZpRtXbv6y/AtSy1xCu0IvyN svUp8owZccKYxV0YcRSCGSATmWzdXjJxXht2pdUwD1PHmxGARJyeOZKlfoOAmRJGN73M /PgB/V+JzHNCJG67wVxSQs8RSqEoGSk06U27OTlLLlVm9p/J9iXFncrxakJbvJnaIiUQ Afug== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1691597490; x=1692202290; h=mime-version:message-id:in-reply-to:date:subject:cc:to:from :user-agent:references:x-gm-message-state:from:to:cc:subject:date :message-id:reply-to; bh=Xt9n9rvfkjFpVIIOiCkdhN77QuWx+nKwhQ3Dn4KbeJE=; b=mEVBhVfAo5/hTET65lfa+EF8fdBDgb8EwcFjdeXyZncXwFm9OpjVl2FGWI50CwFpHl QEHXxphF+VBnGqQed3nAN1wUSv43LHmq4ZSK6TgefZl2noOBYgK/TBkm1tWTkiRkaHyP 2wPMNSBqTc6lg2elX6/zn2HTtvb+XC5SPVIhvq/F+e2ut8ykX3jKFKYBPiEpEgCimJll Tw83TnORLaE8OZZme5Tx7HYmo5RxVG1OK5Xnw+bgOtrRjcvgKFGygy90m716W1xg99ZN aU4G/NTQMNyhjoIYxhIx5Vs/OLZzmaUsbMX2xgOPvf4rKNjjP13dT1Ih0fSO8Qr2Ecqc tUzQ== X-Gm-Message-State: AOJu0YzqVw23OrAcez32OoqxQBPfFTXXplpWG3b2Y2J/D7bGxMgsPNQx u0Gxd9Tc0QZM5vrAK4SSWfgXuEvwc3A= X-Google-Smtp-Source: AGHT+IEAOQBZZ9nbu0TNIGaKtI/2919CV/Qt5aJT0VR80wUawoFKg67sqNi1u6mPo7heuzL/BHUyug== X-Received: by 2002:a05:6808:221f:b0:3a7:b3e7:54d1 with SMTP id bd31-20020a056808221f00b003a7b3e754d1mr3904703oib.45.1691597489714; Wed, 09 Aug 2023 09:11:29 -0700 (PDT) Received: from laptop ([2601:84:847f:c697:e217:2894:4724:14f4]) by smtp.gmail.com with ESMTPSA id j17-20020a0cf311000000b0063007ccaf42sm2713278qvl.57.2023.08.09.09.11.28 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 09 Aug 2023 09:11:29 -0700 (PDT) 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> <834jmmq2ez.fsf@gnu.org> User-agent: mu4e 1.11.12; emacs 30.0.50 From: No Wayman To: Andrea Corallo Subject: Re: bug#64226: 30.0.50; emacs-lisp-native-compile-and-load permission error Date: Wed, 09 Aug 2023 11:24:03 -0400 In-reply-to: Message-ID: <87y1ikb3gj.fsf@gmail.com> MIME-Version: 1.0 Content-Type: text/plain; format=flowed X-Spam-Score: -0.0 (/) X-Debbugs-Envelope-To: 64226 Cc: Eli Zaretskii , 64226@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: -1.0 (-) Andrea Corallo writes: > Okay I pushed b93107c20b2 to fix this. I tested as best as I > could but > tweaking these dynamic variables is always tricky. > > No Wayman if you could verify everything works for you would be > great. > > Thanks > > Andrea Still present on: GNU Emacs 30.0.50 (build 1, x86_64-pc-linux-gnu, GTK+ Version 3.24.38, cairo version 1.17.8) of 2023-08-09 Fixed on: GNU Emacs 29.1.50 (build 3, x86_64-pc-linux-gnu, GTK+ Version 3.24.38, cairo version 1.17.8) of 2023-08-09 Thank you. From debbugs-submit-bounces@debbugs.gnu.org Wed Aug 09 12:29:18 2023 Received: (at 64226-done) by debbugs.gnu.org; 9 Aug 2023 16:29:18 +0000 Received: from localhost ([127.0.0.1]:40393 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1qTm3i-0004oE-3l for submit@debbugs.gnu.org; Wed, 09 Aug 2023 12:29:18 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:44816) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1qTm3g-0004o2-B0 for 64226-done@debbugs.gnu.org; Wed, 09 Aug 2023 12:29:17 -0400 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 1qTm3b-0005y5-4T; Wed, 09 Aug 2023 12:29:11 -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=IJHArNeSgcUjD3MNz/Z7uAbPKLMKludb4VUPEerRIyw=; b=rwwovU7I8X5/ 0O3lVOF3c/7c8lwQGUg9/d4L6dAXIuEQBzC08DnYYahkhnfMWOqZRPTBuM3ANJ3TBSaQ/5lqq/lg7 HxjPTpowcYZomdJuh+Cs28GboA7Od3W2Yfj+L8tB7cm/YhpbZq4P10uzT9KvMZUuNJzUQM5gNjka9 5LpcmnYo1aFJhEDsWDTicwf03vQmo5Hy7SdMX3HKGj2Lo2AmDoFJRqgQLAOeVgp94v4zTlRZXKK+K A+E+A5bpug1SO8mZUGT9IvqEfQdMocgZWPTnbhMGzHlAHqSCM0WvDCj2rxVL7u+rvhUCCDnQrJH7N wFODgLzpYhnOcQnWpat08g==; Date: Wed, 09 Aug 2023 19:29:34 +0300 Message-Id: <838rakkwlt.fsf@gnu.org> From: Eli Zaretskii To: No Wayman In-Reply-To: <87y1ikb3gj.fsf@gmail.com> (message from No Wayman on Wed, 09 Aug 2023 11:24:03 -0400) Subject: Re: bug#64226: 30.0.50; emacs-lisp-native-compile-and-load permission error 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> <834jmmq2ez.fsf@gnu.org> <87y1ikb3gj.fsf@gmail.com> X-Spam-Score: -2.3 (--) X-Debbugs-Envelope-To: 64226-done Cc: 64226-done@debbugs.gnu.org, acorallo@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 (---) > From: No Wayman > Cc: Eli Zaretskii , 64226@debbugs.gnu.org > Date: Wed, 09 Aug 2023 11:24:03 -0400 > > > Andrea Corallo writes: > > > Okay I pushed b93107c20b2 to fix this. I tested as best as I > > could but > > tweaking these dynamic variables is always tricky. > > > > No Wayman if you could verify everything works for you would be > > great. > > > > Thanks > > > > Andrea > > Still present on: > > GNU Emacs 30.0.50 (build 1, x86_64-pc-linux-gnu, GTK+ Version > 3.24.38, cairo version 1.17.8) of 2023-08-09 That's expected, since the fix was installed on the emacs-29 branch, and will be merged to master only in a couple of days. Thanks for testing (and thanks to Andrea for fixing it), I'm therefore closing this bug. From debbugs-submit-bounces@debbugs.gnu.org Sat Aug 12 05:18:59 2023 Received: (at 64226) by debbugs.gnu.org; 12 Aug 2023 09:18:59 +0000 Received: from localhost ([127.0.0.1]:48739 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1qUklv-0000aK-7j for submit@debbugs.gnu.org; Sat, 12 Aug 2023 05:18:59 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:59036) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1qUklr-0000Zw-VI for 64226@debbugs.gnu.org; Sat, 12 Aug 2023 05:18:57 -0400 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 1qUklm-0007kC-7Q; Sat, 12 Aug 2023 05:18:50 -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=fYpk1CAW9UJpq+BZb8t48/chmENngHDkKX6znAIXlOE=; b=IjxYWH/scuiy nhaEYl/Mtnb4OgRQYzcaxmL84rxGxV6P6Z86wxApyX8AabQNZeZ5q0p1I3GcXl5THJcLZz73aRTdO SGRvZRCDCUBU3vs4uCDdAiU35RO/09kpRbma2AU6mfXXUVZ5SzKPpHH+kCvI6sBBXeROYUz5vOWYM 29LQuFSaiLsauBYV5GfiT45BcHollHvGeT0n7JpoZreoGAJGRzEHqec6mbT7ZlpRmtWbi3+/uWPv4 pyDyAhIEAUmtuJi7+lu/2ItTb7oUINYP3cBG1MYX7XM+x86dZvlZC1g5mzoq4l8wNb0LwWjVIb/Og /wjrq7+3Hfbx0CgG/109DQ==; Date: Sat, 12 Aug 2023 12:19:20 +0300 Message-Id: <83il9kehyf.fsf@gnu.org> From: Eli Zaretskii To: Andrea Corallo In-Reply-To: (message from Andrea Corallo on Wed, 09 Aug 2023 09:22:35 -0400) Subject: Re: bug#64226: 30.0.50; emacs-lisp-native-compile-and-load permission error 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> <834jmmq2ez.fsf@gnu.org> X-Spam-Score: -2.3 (--) X-Debbugs-Envelope-To: 64226 Cc: iarchivedmywholelife@gmail.com, 64226@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 (---) > From: Andrea Corallo > Cc: No Wayman , 64226@debbugs.gnu.org > Date: Wed, 09 Aug 2023 09:22:35 -0400 > > Okay I pushed b93107c20b2 to fix this. I tested as best as I could but > tweaking these dynamic variables is always tricky. These changes broke building Emacs in the source tree: now all the *.eln files produced by the build's ELC+ELN rule are written to the user's eln-cache directory instead of into native-lisp subdirectory of the build tree. To reproduce, touch, say, lisp/files.el or delete lisp/files.elc, and then say "make" -- you will see that the *.eln file is written under ~/.emacs.d/eln-cache, and if you also delete the corresponding files-NNNN.eln file from native-lisp, Emacs will load files.elc during loadup. From debbugs-submit-bounces@debbugs.gnu.org Sat Aug 12 12:07:53 2023 Received: (at 64226) by debbugs.gnu.org; 12 Aug 2023 16:07:53 +0000 Received: from localhost ([127.0.0.1]:56707 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1qUr9c-0000mb-Tz for submit@debbugs.gnu.org; Sat, 12 Aug 2023 12:07:53 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:52778) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1qUr9a-0000mL-P5 for 64226@debbugs.gnu.org; Sat, 12 Aug 2023 12:07:51 -0400 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 1qUqke-0003VA-73; Sat, 12 Aug 2023 11:42:04 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnu.org; s=fencepost-gnu-org; h=MIME-Version:Date:References:In-Reply-To:Subject:To: From; bh=bVHwccqDpnn17/TMhtaL1ecasxx8SOa0XW8K8Ro7DNc=; b=YsNI0M6dpHB4Q1r/RkXA gDu4pxEKetBF3q5+TnpheFYGxUfEPHip7GWdR5i/gdKJddHKMMzHYiwaip1UrGW7BE28m9fagX56z 7XyjLRFvNOra+ryyEUB98aAPtkKdkJLI3j3lEg4pGc+opwCnzdwYiO+PjjREVFSqxHcnLF4pbo07Y SEwyDJViKngTZE6mzzifYKzDHBSL6tIucV63BqiO0RjX0Dk6y4dYMUohBf3N0CFX4d1kPiBIWLMMc Jz6bHGIeD4PSWKkJF7cjNoqqC8D5yksxAAPb0TzPGoLIgOOHsSn+sgAqtCvHLQZ3uJel0EOkYsiQQ ud1wdVV7twgkjA==; Received: from acorallo by fencepost.gnu.org with local (Exim 4.90_1) (envelope-from ) id 1qUqkc-0004qv-2S; Sat, 12 Aug 2023 11:42:02 -0400 From: Andrea Corallo To: Eli Zaretskii Subject: Re: bug#64226: 30.0.50; emacs-lisp-native-compile-and-load permission error In-Reply-To: <83il9kehyf.fsf@gnu.org> (Eli Zaretskii's message of "Sat, 12 Aug 2023 12:19:20 +0300") 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> <834jmmq2ez.fsf@gnu.org> <83il9kehyf.fsf@gnu.org> Date: Sat, 12 Aug 2023 11:42:01 -0400 Message-ID: User-Agent: Gnus/5.13 (Gnus v5.13) MIME-Version: 1.0 Content-Type: text/plain X-Spam-Score: -2.3 (--) X-Debbugs-Envelope-To: 64226 Cc: iarchivedmywholelife@gmail.com, 64226@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 (---) Eli Zaretskii writes: >> From: Andrea Corallo >> Cc: No Wayman , 64226@debbugs.gnu.org >> Date: Wed, 09 Aug 2023 09:22:35 -0400 >> >> Okay I pushed b93107c20b2 to fix this. I tested as best as I could but >> tweaking these dynamic variables is always tricky. > > These changes broke building Emacs in the source tree: now all the > *.eln files produced by the build's ELC+ELN rule are written to the > user's eln-cache directory instead of into native-lisp subdirectory of > the build tree. To reproduce, touch, say, lisp/files.el or delete > lisp/files.elc, and then say "make" -- you will see that the *.eln > file is written under ~/.emacs.d/eln-cache, and if you also delete the > corresponding files-NNNN.eln file from native-lisp, Emacs will load > files.elc during loadup. Thanks, looking at it. Andrea From debbugs-submit-bounces@debbugs.gnu.org Sat Aug 12 12:56:48 2023 Received: (at 64226) by debbugs.gnu.org; 12 Aug 2023 16:56:48 +0000 Received: from localhost ([127.0.0.1]:56748 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1qUruy-00023S-C6 for submit@debbugs.gnu.org; Sat, 12 Aug 2023 12:56:48 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:54052) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1qUruu-00023D-LM for 64226@debbugs.gnu.org; Sat, 12 Aug 2023 12:56:46 -0400 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 1qUruo-0001D3-NC; Sat, 12 Aug 2023 12:56:39 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnu.org; s=fencepost-gnu-org; h=MIME-Version:Date:References:In-Reply-To:Subject:To: From; bh=777fKF+GbomQ5AhLB6RwDSUgHIeTxp7XSsgdYyiyRWQ=; b=cvnMWi3pJJU6Y5A/3y1J yxK1lpdIm+pz6FRgI4VYq5uQXXSILNO+o4wjJIdJJ7fmI1euoZhYETu+fq/hXmYQvUpqjBJa8NQzc m78hpq/R5amanLuCV+NQkrD1r7KesIENz8rIv+FLGwcq07rpuGJGyOY22kyuNxY8STAMgmTzlWb7W GwEZmeQIsTqp8UEJmTpuqFCkluazf6Y7rtKzrzBpL3pCSZMP2Y5VRjMsoipnD8+Th0ZTZOx/eCAGx CkHCTZ8tWRsQYVNA1h1kSGUr+7IFv/8Z+u6MzQX7NQpuAlQt+gs0eK8Pl4pcLHvuAidFgl13xKV76 8iqmCh5YwQeBGw==; Received: from acorallo by fencepost.gnu.org with local (Exim 4.90_1) (envelope-from ) id 1qUruo-00043p-ES; Sat, 12 Aug 2023 12:56:38 -0400 From: Andrea Corallo To: Eli Zaretskii Subject: Re: bug#64226: 30.0.50; emacs-lisp-native-compile-and-load permission error In-Reply-To: (Andrea Corallo's message of "Sat, 12 Aug 2023 11:42:01 -0400") 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> <834jmmq2ez.fsf@gnu.org> <83il9kehyf.fsf@gnu.org> Date: Sat, 12 Aug 2023 12:56:38 -0400 Message-ID: User-Agent: Gnus/5.13 (Gnus v5.13) MIME-Version: 1.0 Content-Type: text/plain X-Spam-Score: -2.3 (--) X-Debbugs-Envelope-To: 64226 Cc: iarchivedmywholelife@gmail.com, 64226@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 (---) Andrea Corallo writes: > Eli Zaretskii writes: > >>> From: Andrea Corallo >>> Cc: No Wayman , 64226@debbugs.gnu.org >>> Date: Wed, 09 Aug 2023 09:22:35 -0400 >>> >>> Okay I pushed b93107c20b2 to fix this. I tested as best as I could but >>> tweaking these dynamic variables is always tricky. >> >> These changes broke building Emacs in the source tree: now all the >> *.eln files produced by the build's ELC+ELN rule are written to the >> user's eln-cache directory instead of into native-lisp subdirectory of >> the build tree. To reproduce, touch, say, lisp/files.el or delete >> lisp/files.elc, and then say "make" -- you will see that the *.eln >> file is written under ~/.emacs.d/eln-cache, and if you also delete the >> corresponding files-NNNN.eln file from native-lisp, Emacs will load >> files.elc during loadup. > > Thanks, looking at it. Okay, just pushed 842dbf500e0, seems to solve the issue here for me, please have a look. Thanks! Andrea From debbugs-submit-bounces@debbugs.gnu.org Sat Aug 12 13:22:23 2023 Received: (at 64226) by debbugs.gnu.org; 12 Aug 2023 17:22:23 +0000 Received: from localhost ([127.0.0.1]:56764 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1qUsJj-0002ll-8e for submit@debbugs.gnu.org; Sat, 12 Aug 2023 13:22:23 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:44624) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1qUsJg-0002lV-Ox for 64226@debbugs.gnu.org; Sat, 12 Aug 2023 13:22:21 -0400 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 1qUsJb-0005zn-IE; Sat, 12 Aug 2023 13:22:15 -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=H/PlxrvcinDRd++UtNg3OdZrHCjc4SziTDkOkZkzaXI=; b=J8qztWuI5ecn Zp8BeofXQCre/2ER6L0YA0KWz6hBnZCUJ2szIH2Vx5fuW/Dgng1iobuvq/UroGrAfvDYqS/FwTW0r KTp0LtOk7uC4+lGABLKAeyoGBBb5M5tnrdabv+C/atjlbdvwsRgtFWTT59AUWbW7G0/ToXe03tNUr GYzDdXBjeemaExbOZDtqd6zgdXMU2deOmVw0xkxXPN1dB0BQ7Eex/+XaBWe97Bsxqcg6izMHFvEpA uNWeE8LI7dJdBSnKdFSZmmiYxofnW39cr1TuG0jDqSAdin2WhoaYgyom9/bkB2+QnSgKRM1ffD+uv /aWErVG1SV47hhvEt2vsFw==; Date: Sat, 12 Aug 2023 20:22:46 +0300 Message-Id: <834jl4dvkp.fsf@gnu.org> From: Eli Zaretskii To: Andrea Corallo In-Reply-To: (message from Andrea Corallo on Sat, 12 Aug 2023 12:56:38 -0400) Subject: Re: bug#64226: 30.0.50; emacs-lisp-native-compile-and-load permission error 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> <834jmmq2ez.fsf@gnu.org> <83il9kehyf.fsf@gnu.org> X-Spam-Score: -2.3 (--) X-Debbugs-Envelope-To: 64226 Cc: iarchivedmywholelife@gmail.com, 64226@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 (---) > From: Andrea Corallo > Cc: iarchivedmywholelife@gmail.com, 64226@debbugs.gnu.org > Date: Sat, 12 Aug 2023 12:56:38 -0400 > > Andrea Corallo writes: > > > Eli Zaretskii writes: > > > >>> From: Andrea Corallo > >>> Cc: No Wayman , 64226@debbugs.gnu.org > >>> Date: Wed, 09 Aug 2023 09:22:35 -0400 > >>> > >>> Okay I pushed b93107c20b2 to fix this. I tested as best as I could but > >>> tweaking these dynamic variables is always tricky. > >> > >> These changes broke building Emacs in the source tree: now all the > >> *.eln files produced by the build's ELC+ELN rule are written to the > >> user's eln-cache directory instead of into native-lisp subdirectory of > >> the build tree. To reproduce, touch, say, lisp/files.el or delete > >> lisp/files.elc, and then say "make" -- you will see that the *.eln > >> file is written under ~/.emacs.d/eln-cache, and if you also delete the > >> corresponding files-NNNN.eln file from native-lisp, Emacs will load > >> files.elc during loadup. > > > > Thanks, looking at it. > > Okay, just pushed 842dbf500e0, seems to solve the issue here for me, > please have a look. Thanks, works correctly now. From unknown Mon Jun 23 05:59:16 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, 10 Sep 2023 11:24:09 +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