From unknown Sat Jun 21 05:10:37 2025 X-Loop: help-debbugs@gnu.org Subject: bug#44128: [feature/native-comp] Resent-From: Jonas Bernoulli Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Wed, 21 Oct 2020 22:00:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 44128 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: To: 44128@debbugs.gnu.org, akrl@sdf.org X-Debbugs-Original-To: bug-gnu-emacs@gnu.org, Andrea Corallo Received: via spool by submit@debbugs.gnu.org id=B.160331755124987 (code B ref -1); Wed, 21 Oct 2020 22:00:02 +0000 Received: (at submit) by debbugs.gnu.org; 21 Oct 2020 21:59:11 +0000 Received: from localhost ([127.0.0.1]:50789 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1kVM8V-0006Uw-75 for submit@debbugs.gnu.org; Wed, 21 Oct 2020 17:59:11 -0400 Received: from lists.gnu.org ([209.51.188.17]:37300) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1kVM8S-0006Un-Sy for submit@debbugs.gnu.org; Wed, 21 Oct 2020 17:59:09 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:55642) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1kVM8S-0002rQ-Jw for bug-gnu-emacs@gnu.org; Wed, 21 Oct 2020 17:59:08 -0400 Received: from mail.hostpark.net ([212.243.197.30]:55554) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1kVM8Q-0006QR-MW for bug-gnu-emacs@gnu.org; Wed, 21 Oct 2020 17:59:08 -0400 Received: from localhost (localhost [127.0.0.1]) by mail.hostpark.net (Postfix) with ESMTP id AAF0B1669F; Wed, 21 Oct 2020 23:59:01 +0200 (CEST) X-Virus-Scanned: by Hostpark/NetZone Mailprotection at hostpark.net Received: from mail.hostpark.net ([127.0.0.1]) by localhost (mail1.hostpark.net [127.0.0.1]) (amavisd-new, port 10124) with ESMTP id xwQd3ItEoksi; Wed, 21 Oct 2020 23:59:01 +0200 (CEST) Received: from customer (localhost [127.0.0.1]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange ECDHE (P-256) server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) by mail.hostpark.net (Postfix) with ESMTPSA id 79411166D9; Wed, 21 Oct 2020 23:59:01 +0200 (CEST) From: Jonas Bernoulli Date: Wed, 21 Oct 2020 23:58:59 +0200 Message-ID: <87eelri6l8.fsf@bernoul.li> MIME-Version: 1.0 Content-Type: text/plain Received-SPF: none client-ip=212.243.197.30; envelope-from=jonas@bernoul.li; helo=mail.hostpark.net X-detected-operating-system: by eggs.gnu.org: First seen = 2020/10/21 17:59:02 X-ACL-Warn: Detected OS = ??? X-Spam_score_int: -25 X-Spam_score: -2.6 X-Spam_bar: -- X-Spam_report: (-2.6 / 5.0 requ) BAYES_00=-1.9, RCVD_IN_DNSWL_LOW=-0.7, RCVD_IN_MSPIKE_H3=0.001, RCVD_IN_MSPIKE_WL=0.001, SPF_HELO_NONE=0.001, SPF_NONE=0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-Spam-Score: -2.3 (--) 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 (---) Hello Andrea [We talked about this briefly on Twitter; https://twitter.com/magit_emacs/status/1313534891506757635.] When running gccemacs from the git repository without installing but by using a symlink like e.g. /usr/local/bin/emacs -> ~/git/emacs/src/emacs, then that results in an error like: emacs: /usr/local/bin/../native-lisp/.eln: cannot open shared object file: No such file or directory You mentioned that this happens because code in pdump[er].c just relies on invocation-directory and that you are wonder whether symlinks should be followed to address this. I think they should. :D Please have a look. Thanks! Jonas From unknown Sat Jun 21 05:10:37 2025 X-Loop: help-debbugs@gnu.org Subject: bug#44128: [feature/native-comp] Resent-From: Andrea Corallo Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Thu, 22 Oct 2020 20:52:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 44128 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: To: Jonas Bernoulli Cc: 44128@debbugs.gnu.org Received: via spool by 44128-submit@debbugs.gnu.org id=B44128.160339990912322 (code B ref 44128); Thu, 22 Oct 2020 20:52:02 +0000 Received: (at 44128) by debbugs.gnu.org; 22 Oct 2020 20:51:49 +0000 Received: from localhost ([127.0.0.1]:54041 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1kVhYr-0003Cg-1F for submit@debbugs.gnu.org; Thu, 22 Oct 2020 16:51:49 -0400 Received: from mab.sdf.org ([205.166.94.33]:34584 helo=ma.sdf.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1kVhYp-0003CY-Gs for 44128@debbugs.gnu.org; Thu, 22 Oct 2020 16:51:48 -0400 Received: from akrl by ma.sdf.org with local (Exim 4.92) (envelope-from ) id 1kVhYm-0006n9-Sp; Thu, 22 Oct 2020 20:51:44 +0000 From: Andrea Corallo References: <87eelri6l8.fsf@bernoul.li> Date: Thu, 22 Oct 2020 20:51:44 +0000 In-Reply-To: <87eelri6l8.fsf@bernoul.li> (Jonas Bernoulli's message of "Wed, 21 Oct 2020 23:58:59 +0200") Message-ID: User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/28.0.50 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain X-Spam-Score: 0.0 (/) 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 (-) Jonas Bernoulli writes: > Hello Andrea Hi Jonas! > [We talked about this briefly on Twitter; > https://twitter.com/magit_emacs/status/1313534891506757635.] > > When running gccemacs from the git repository without installing but by > using a symlink like e.g. /usr/local/bin/emacs -> ~/git/emacs/src/emacs, > then that results in an error like: > > emacs: /usr/local/bin/../native-lisp/.eln: cannot open shared > object file: No such file or directory > > You mentioned that this happens because code in pdump[er].c just relies > on invocation-directory and that you are wonder whether symlinks should > be followed to address this. > > I think they should. :D Well I agree :) I believe the only question is if we want to change `invocation-directory' to have the link followed or to do that in the load mechanism. I guess the second has less impact. Andrea From unknown Sat Jun 21 05:10:37 2025 X-Loop: help-debbugs@gnu.org Subject: bug#44128: [feature/native-comp] Resent-From: Andrea Corallo Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Wed, 14 Apr 2021 13:49:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 44128 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: To: Jonas Bernoulli , Phil Sainty Cc: 44128@debbugs.gnu.org, eli@gnu.org Received: via spool by 44128-submit@debbugs.gnu.org id=B44128.1618408133449 (code B ref 44128); Wed, 14 Apr 2021 13:49:02 +0000 Received: (at 44128) by debbugs.gnu.org; 14 Apr 2021 13:48:53 +0000 Received: from localhost ([127.0.0.1]:33991 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1lWfsy-00007B-Ho for submit@debbugs.gnu.org; Wed, 14 Apr 2021 09:48:52 -0400 Received: from mx.sdf.org ([205.166.94.24]:61008) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1lWfsu-000071-Vl for 44128@debbugs.gnu.org; Wed, 14 Apr 2021 09:48:51 -0400 Received: from mab (ma.sdf.org [205.166.94.33]) by mx.sdf.org (8.15.2/8.14.5) with ESMTPS id 13EDmbve018960 (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256 bits) verified NO); Wed, 14 Apr 2021 13:48:38 GMT From: Andrea Corallo References: <87eelri6l8.fsf@bernoul.li> Date: Wed, 14 Apr 2021 13:48:37 +0000 In-Reply-To: (Andrea Corallo's message of "Thu, 22 Oct 2020 20:51:44 +0000") Message-ID: User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/28.0.50 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain X-Spam-Score: -0.0 (/) 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: > Jonas Bernoulli writes: > >> Hello Andrea > > Hi Jonas! > >> [We talked about this briefly on Twitter; >> https://twitter.com/magit_emacs/status/1313534891506757635.] >> >> When running gccemacs from the git repository without installing but by >> using a symlink like e.g. /usr/local/bin/emacs -> ~/git/emacs/src/emacs, >> then that results in an error like: >> >> emacs: /usr/local/bin/../native-lisp/.eln: cannot open shared >> object file: No such file or directory >> >> You mentioned that this happens because code in pdump[er].c just relies >> on invocation-directory and that you are wonder whether symlinks should >> be followed to address this. >> >> I think they should. :D > > Well I agree :) > > I believe the only question is if we want to change > `invocation-directory' to have the link followed or to do that in the > load mechanism. I guess the second has less impact. Hi all, I think this question got answered by Eli's comment on bug#46790 :) I've pushed 0c1fc9d581 that seams to work for me, please have a try. Thanks! Andrea From unknown Sat Jun 21 05:10:37 2025 X-Loop: help-debbugs@gnu.org Subject: bug#44128: [feature/native-comp] In-Reply-To: <87eelri6l8.fsf@bernoul.li> Resent-From: Johannes =?UTF-8?Q?Gr=C3=B8dem?= Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Wed, 14 Apr 2021 19:05:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 44128 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: To: 44128@debbugs.gnu.org X-Debbugs-Original-To: bug-gnu-emacs@gnu.org Received: via spool by submit@debbugs.gnu.org id=B.16184270968036 (code B ref -1); Wed, 14 Apr 2021 19:05:02 +0000 Received: (at submit) by debbugs.gnu.org; 14 Apr 2021 19:04:56 +0000 Received: from localhost ([127.0.0.1]:35739 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1lWkon-00025V-IT for submit@debbugs.gnu.org; Wed, 14 Apr 2021 15:04:56 -0400 Received: from lists.gnu.org ([209.51.188.17]:40098) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1lWjPv-000465-4i for submit@debbugs.gnu.org; Wed, 14 Apr 2021 13:35:10 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:56638) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1lWjPu-000781-Bk for bug-gnu-emacs@gnu.org; Wed, 14 Apr 2021 13:35:06 -0400 Received: from ciao.gmane.io ([116.202.254.214]:53814) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1lWjPs-0005mu-Dy for bug-gnu-emacs@gnu.org; Wed, 14 Apr 2021 13:35:06 -0400 Received: from list by ciao.gmane.io with local (Exim 4.92) (envelope-from ) id 1lWjPq-0000kv-7h for bug-gnu-emacs@gnu.org; Wed, 14 Apr 2021 19:35:02 +0200 X-Injected-Via-Gmane: http://gmane.org/ From: Johannes =?UTF-8?Q?Gr=C3=B8dem?= Date: Wed, 14 Apr 2021 19:28:53 +0200 Message-ID: <878s5kixm2.fsf@ekki.no> References: <87eelri6l8.fsf@bernoul.li> Mime-Version: 1.0 Content-Type: text/plain User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/28.0.50 (gnu/linux) Cancel-Lock: sha1:ndqoVEiRuI6IAzHKoynid8tzgVM= Received-SPF: pass client-ip=116.202.254.214; envelope-from=geb-bug-gnu-emacs@m.gmane-mx.org; helo=ciao.gmane.io X-Spam_score_int: -16 X-Spam_score: -1.7 X-Spam_bar: - X-Spam_report: (-1.7 / 5.0 requ) BAYES_00=-1.9, HEADER_FROM_DIFFERENT_DOMAINS=0.249, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=no autolearn_force=no X-Spam_action: no action X-Spam-Score: -1.1 (-) X-Mailman-Approved-At: Wed, 14 Apr 2021 15:04:52 -0400 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: -2.1 (--) Andrea Corallo via "Bug reports for GNU Emacs, the Swiss army knife of text editors" writes: >>> You mentioned that this happens because code in pdump[er].c just relies >>> on invocation-directory and that you are wonder whether symlinks should >>> be followed to address this. >>> >>> I think they should. :D >> >> Well I agree :) >> >> I believe the only question is if we want to change >> `invocation-directory' to have the link followed or to do that in the >> load mechanism. I guess the second has less impact. > > Hi all, > > I think this question got answered by Eli's comment on bug#46790 :) > > I've pushed 0c1fc9d581 that seams to work for me, please have a try. This fixed it for me. Thanks! -- Sent from my Emacs From unknown Sat Jun 21 05:10:37 2025 X-Loop: help-debbugs@gnu.org Subject: bug#44128: [feature/native-comp] Resent-From: Phil Sainty Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Wed, 14 Apr 2021 22:23:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 44128 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: To: Andrea Corallo Cc: Jonas Bernoulli , 44128@debbugs.gnu.org, eli@gnu.org Received: via spool by 44128-submit@debbugs.gnu.org id=B44128.161843895927500 (code B ref 44128); Wed, 14 Apr 2021 22:23:02 +0000 Received: (at 44128) by debbugs.gnu.org; 14 Apr 2021 22:22:39 +0000 Received: from localhost ([127.0.0.1]:36007 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1lWnuA-00079U-Sz for submit@debbugs.gnu.org; Wed, 14 Apr 2021 18:22:39 -0400 Received: from smtp-4.orcon.net.nz ([60.234.4.59]:52575) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1lWnu6-00079G-DE for 44128@debbugs.gnu.org; Wed, 14 Apr 2021 18:22:37 -0400 Received: from [101.53.216.162] (port=2619 helo=[192.168.20.103]) by smtp-4.orcon.net.nz with esmtpa (Exim 4.90_1) (envelope-from ) id 1lWnu2-0006qv-8Y; Thu, 15 Apr 2021 10:22:30 +1200 References: <87eelri6l8.fsf@bernoul.li> From: Phil Sainty Message-ID: <574a5ce8-59da-6329-3f94-49a94496f7a9@orcon.net.nz> Date: Thu, 15 Apr 2021 10:22:29 +1200 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:68.0) Gecko/20100101 Thunderbird/68.10.0 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=utf-8 Content-Language: en-GB Content-Transfer-Encoding: 7bit X-GeoIP: NZ X-Spam_score: -2.9 X-Spam_score_int: -28 X-Spam_bar: -- X-Spam-Score: -0.7 (/) 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.7 (-) On 15/04/21 1:48 am, Andrea Corallo via Bug reports for GNU Emacs, the Swiss army knife of text editors wrote: > I think this question got answered by Eli's comment on bug#46790 :) > > I've pushed 0c1fc9d581 that seams to work for me, please have a try. I now get this behaviour: $ emacs-native-comp -Q emacs: could not resolve realpath of "emacs-native-comp": No such file or directory $ ls -l `which emacs-native-comp` lrwxrwxrwx 1 phil phil 48 Apr 14 00:01 /home/phil/bin/emacs-native-comp -> /home/phil/emacs/native-comp/usr/local/bin/emacs $ /home/phil/emacs/native-comp/usr/local/bin/emacs --version GNU Emacs 28.0.50 Copyright (C) 2021 Free Software Foundation, Inc. GNU Emacs comes with ABSOLUTELY NO WARRANTY. You may redistribute copies of GNU Emacs under the terms of the GNU General Public License. For more information about these matters, see the file named COPYING. $ emacs-native-comp --version emacs: could not resolve realpath of "emacs-native-comp": No such file or directory From unknown Sat Jun 21 05:10:37 2025 X-Loop: help-debbugs@gnu.org Subject: bug#44128: [feature/native-comp] Resent-From: Eli Zaretskii Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Thu, 15 Apr 2021 06:53:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 44128 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: To: Phil Sainty Cc: jonas@bernoul.li, 44128@debbugs.gnu.org, eli@gnu.org, akrl@sdf.org Received: via spool by 44128-submit@debbugs.gnu.org id=B44128.161846957611421 (code B ref 44128); Thu, 15 Apr 2021 06:53:01 +0000 Received: (at 44128) by debbugs.gnu.org; 15 Apr 2021 06:52:56 +0000 Received: from localhost ([127.0.0.1]:36327 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1lWvrz-0002y9-Sq for submit@debbugs.gnu.org; Thu, 15 Apr 2021 02:52:56 -0400 Received: from eggs.gnu.org ([209.51.188.92]:40124) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1lWvrx-0002xv-2C for 44128@debbugs.gnu.org; Thu, 15 Apr 2021 02:52:55 -0400 Received: from fencepost.gnu.org ([2001:470:142:3::e]:58925) by eggs.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1lWvrp-0006c8-M0; Thu, 15 Apr 2021 02:52:46 -0400 Received: from 84.94.185.95.cable.012.net.il ([84.94.185.95]:2140 helo=home-c4e4a596f7) by fencepost.gnu.org with esmtpsa (TLS1.2:RSA_AES_256_CBC_SHA1:256) (Exim 4.82) (envelope-from ) id 1lWvrp-00016y-41; Thu, 15 Apr 2021 02:52:45 -0400 Date: Thu, 15 Apr 2021 09:52:37 +0300 Message-Id: <834kg8yr7u.fsf@gnu.org> From: Eli Zaretskii In-Reply-To: <574a5ce8-59da-6329-3f94-49a94496f7a9@orcon.net.nz> (message from Phil Sainty on Thu, 15 Apr 2021 10:22:29 +1200) References: <87eelri6l8.fsf@bernoul.li> <574a5ce8-59da-6329-3f94-49a94496f7a9@orcon.net.nz> X-Spam-Score: -0.7 (/) 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.7 (-) > From: Phil Sainty > Date: Thu, 15 Apr 2021 10:22:29 +1200 > Cc: Jonas Bernoulli , 44128@debbugs.gnu.org, eli@gnu.org > > On 15/04/21 1:48 am, Andrea Corallo via Bug reports for GNU Emacs, the Swiss army knife of text editors wrote: > > I think this question got answered by Eli's comment on bug#46790 :) > > > > I've pushed 0c1fc9d581 that seams to work for me, please have a try. > > I now get this behaviour: > > $ emacs-native-comp -Q > emacs: could not resolve realpath of "emacs-native-comp": No such file or directory > > $ ls -l `which emacs-native-comp` > lrwxrwxrwx 1 phil phil 48 Apr 14 00:01 /home/phil/bin/emacs-native-comp -> /home/phil/emacs/native-comp/usr/local/bin/emacs Where in the Emacs sources does this message come from, please? Bonus points for explaining the reason(s) for that failure. What happens if you call the symlink 'emacs' and not 'emacs-native-comp'? What happens if you invoke it via a full absolute file name, not relying on PATH? Thanks. From unknown Sat Jun 21 05:10:37 2025 X-Loop: help-debbugs@gnu.org Subject: bug#44128: [feature/native-comp] Resent-From: Phil Sainty Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Thu, 15 Apr 2021 12:14:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 44128 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: To: Eli Zaretskii Cc: jonas@bernoul.li, 44128@debbugs.gnu.org, eli@gnu.org, akrl@sdf.org Received: via spool by 44128-submit@debbugs.gnu.org id=B44128.161848878727261 (code B ref 44128); Thu, 15 Apr 2021 12:14:02 +0000 Received: (at 44128) by debbugs.gnu.org; 15 Apr 2021 12:13:07 +0000 Received: from localhost ([127.0.0.1]:36631 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1lX0rq-00075d-Nk for submit@debbugs.gnu.org; Thu, 15 Apr 2021 08:13:07 -0400 Received: from smtp-1.orcon.net.nz ([60.234.4.34]:47521) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1lX0rn-00075H-MI for 44128@debbugs.gnu.org; Thu, 15 Apr 2021 08:13:05 -0400 Received: from [101.53.216.162] (port=37451 helo=[192.168.20.103]) by smtp-1.orcon.net.nz with esmtpa (Exim 4.90_1) (envelope-from ) id 1lX0rh-0007Y8-Gw; Fri, 16 Apr 2021 00:12:58 +1200 References: <87eelri6l8.fsf@bernoul.li> <574a5ce8-59da-6329-3f94-49a94496f7a9@orcon.net.nz> <834kg8yr7u.fsf@gnu.org> From: Phil Sainty Message-ID: Date: Fri, 16 Apr 2021 00:12:57 +1200 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:68.0) Gecko/20100101 Thunderbird/68.10.0 MIME-Version: 1.0 In-Reply-To: <834kg8yr7u.fsf@gnu.org> Content-Type: text/plain; charset=utf-8 Content-Language: en-GB Content-Transfer-Encoding: 7bit X-GeoIP: NZ X-Spam_score: -2.9 X-Spam_score_int: -28 X-Spam_bar: -- X-Spam-Score: 2.9 (++) 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: On 15/04/21 6:52 pm, Eli Zaretskii wrote:>> $ emacs-native-comp -Q >> emacs: could not resolve realpath of "emacs-native-comp": No such file or directory > > Where in the Emacs sources does this messa [...] Content analysis details: (2.9 points, 10.0 required) pts rule name description ---- ---------------------- -------------------------------------------------- 3.6 RCVD_IN_SBL_CSS RBL: Received via a relay in Spamhaus SBL-CSS [101.53.216.162 listed in zen.spamhaus.org] -0.7 RCVD_IN_DNSWL_LOW RBL: Sender listed at https://www.dnswl.org/, low trust [60.234.4.34 listed in list.dnswl.org] 0.0 FREEMAIL_FROM Sender email is commonly abused enduser mail provider (psainty[at]orcon.net.nz) 0.0 SPF_HELO_NONE SPF: HELO does not publish an SPF Record -0.0 SPF_PASS SPF: sender matches SPF record -0.0 NICE_REPLY_A Looks like a legit reply (A) 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.9 (+) 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: On 15/04/21 6:52 pm, Eli Zaretskii wrote:>> $ emacs-native-comp -Q >> emacs: could not resolve realpath of "emacs-native-comp": No such file or directory > > Where in the Emacs sources does this messa [...] Content analysis details: (1.9 points, 10.0 required) pts rule name description ---- ---------------------- -------------------------------------------------- -0.7 RCVD_IN_DNSWL_LOW RBL: Sender listed at https://www.dnswl.org/, low trust [60.234.4.34 listed in list.dnswl.org] 3.6 RCVD_IN_SBL_CSS RBL: Received via a relay in Spamhaus SBL-CSS [101.53.216.162 listed in zen.spamhaus.org] 0.0 FREEMAIL_FROM Sender email is commonly abused enduser mail provider (psainty[at]orcon.net.nz) 0.0 SPF_HELO_NONE SPF: HELO does not publish an SPF Record -0.0 SPF_PASS SPF: sender matches SPF record -1.0 MAILING_LIST_MULTI Multiple indicators imply a widely-seen list manager -0.0 NICE_REPLY_A Looks like a legit reply (A) On 15/04/21 6:52 pm, Eli Zaretskii wrote:>> $ emacs-native-comp -Q >> emacs: could not resolve realpath of "emacs-native-comp": No such file or directory > > Where in the Emacs sources does this message come from, please? Looks like real_filename() in emacs.c: /* Return the real filename following symlinks in case. The caller should deallocate the returned buffer. */ static char * real_filename (char *filename) { char *real_name; #ifdef WINDOWSNT /* w32_my_exename resolves symlinks internally, so no need to call realpath. */ real_name = xstrdup (filename); #else real_name = realpath (filename, NULL); if (!real_name) fatal ("could not resolve realpath of \"%s\": %s", filename, strerror (errno)); #endif return real_name; } > What happens if you invoke it via a full absolute file name, > not relying on PATH? That still works. > What happens if you call the symlink 'emacs' and not > 'emacs-native-comp'? Curious things. It doesn't work, and it apparently gets confused by the 'emacs' directory in my HOME directory too. $ hash emacs $ alias emacs bash: alias: emacs: not found $ command -v emacs /home/phil/bin/emacs $ ls -lad `command -v emacs` lrwxrwxrwx 1 phil phil 48 Apr 15 23:51 /home/phil/bin/emacs -> /home/phil/emacs/native-comp/usr/local/bin/emacs $ pwd /home/phil $ ls -lad emacs drwxrwxr-x 25 phil phil 4096 Mar 28 23:30 emacs $ emacs --version emacs: /home/phil/../native-lisp/28.0.50-abd7aa58/preloaded/window-0d1b8b93-581f9fcd.eln: cannot open shared object file: No such file or directory $ cd .. $ pwd /home $ emacs --version emacs: could not resolve realpath of "emacs": No such file or directory $ /home/phil/emacs/native-comp/usr/local/bin/emacs --version GNU Emacs 28.0.50 Copyright (C) 2021 Free Software Foundation, Inc. GNU Emacs comes with ABSOLUTELY NO WARRANTY. You may redistribute copies of GNU Emacs under the terms of the GNU General Public License. For more information about these matters, see the file named COPYING. $ cd /home/phil/emacs/native-comp/usr/local/bin/ $ emacs --version GNU Emacs 28.0.50 Copyright (C) 2021 Free Software Foundation, Inc. GNU Emacs comes with ABSOLUTELY NO WARRANTY. You may redistribute copies of GNU Emacs under the terms of the GNU General Public License. For more information about these matters, see the file named COPYING. $ /home/phil/emacs/native-comp/usr/local/bin/emacs -Q --batch --eval "(message \"%s %s\" emacs-repository-branch emacs-repository-version)" feature/native-comp bfaa6df492c85d7de007cf69316cbdeea653d703 $ git log -3 bfaa6df492c85d7de007cf69316cbdeea653d703 commit bfaa6df492c85d7de007cf69316cbdeea653d703 (HEAD -> feature/native-comp, origin/feature/native-comp) Author: Andrea Corallo Date: Wed Apr 14 20:00:04 2021 +0200 * configure.ac: Fix native-comp FreeBSD build. commit 95dd6bb08038e31515568943dcfae13afac8ff70 Author: Eli Zaretskii Date: Wed Apr 14 17:28:19 2021 +0300 Fix MS-Windows build following last change * src/emacs.c (real_filename) [WINDOWSNT]: Fix off-by-one error when allocating storage for a file name. commit 0c1fc9d581ad64efc96c1efccbb4d057796ef807 Author: Andrea Corallo Date: Wed Apr 14 15:04:19 2021 +0200 * Fix native-comp startup for symliked binary (bug#44128) * src/emacs.c (real_filename): New function. (set_invocation_vars, load_pdump): Make use of. From unknown Sat Jun 21 05:10:37 2025 X-Loop: help-debbugs@gnu.org Subject: bug#44128: [feature/native-comp] Resent-From: Eli Zaretskii Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Thu, 15 Apr 2021 12:30:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 44128 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: To: Phil Sainty Cc: jonas@bernoul.li, 44128@debbugs.gnu.org, eli@gnu.org, akrl@sdf.org Received: via spool by 44128-submit@debbugs.gnu.org id=B44128.161848979728910 (code B ref 44128); Thu, 15 Apr 2021 12:30:02 +0000 Received: (at 44128) by debbugs.gnu.org; 15 Apr 2021 12:29:57 +0000 Received: from localhost ([127.0.0.1]:36674 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1lX188-0007WC-LS for submit@debbugs.gnu.org; Thu, 15 Apr 2021 08:29:56 -0400 Received: from eggs.gnu.org ([209.51.188.92]:34338) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1lX186-0007W0-Ox for 44128@debbugs.gnu.org; Thu, 15 Apr 2021 08:29:55 -0400 Received: from fencepost.gnu.org ([2001:470:142:3::e]:34699) by eggs.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1lX17z-0007UD-D9; Thu, 15 Apr 2021 08:29:47 -0400 Received: from 84.94.185.95.cable.012.net.il ([84.94.185.95]:3164 helo=home-c4e4a596f7) by fencepost.gnu.org with esmtpsa (TLS1.2:RSA_AES_256_CBC_SHA1:256) (Exim 4.82) (envelope-from ) id 1lX17x-0006Xn-Ah; Thu, 15 Apr 2021 08:29:46 -0400 Date: Thu, 15 Apr 2021 15:29:36 +0300 Message-Id: <83tuo7ybm7.fsf@gnu.org> From: Eli Zaretskii In-Reply-To: (message from Phil Sainty on Fri, 16 Apr 2021 00:12:57 +1200) References: <87eelri6l8.fsf@bernoul.li> <574a5ce8-59da-6329-3f94-49a94496f7a9@orcon.net.nz> <834kg8yr7u.fsf@gnu.org> X-Spam-Score: -0.7 (/) 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.7 (-) > Cc: akrl@sdf.org, jonas@bernoul.li, 44128@debbugs.gnu.org, eli@gnu.org > From: Phil Sainty > Date: Fri, 16 Apr 2021 00:12:57 +1200 > > static char * > real_filename (char *filename) > { > char *real_name; > #ifdef WINDOWSNT > /* w32_my_exename resolves symlinks internally, so no need to > call realpath. */ > real_name = xstrdup (filename); > #else > real_name = realpath (filename, NULL); > if (!real_name) > fatal ("could not resolve realpath of \"%s\": %s", > filename, strerror (errno)); > #endif > return real_name; > } > > > > > What happens if you invoke it via a full absolute file name, > > not relying on PATH? > > That still works. So the problem seems to be that real_filename is passed the literal "emacs-native-comp", without the leading directories? Why does that happen? is it because the PATH search in load_pdump_find_executable rejects symlinks? From unknown Sat Jun 21 05:10:37 2025 X-Loop: help-debbugs@gnu.org Subject: bug#44128: [feature/native-comp] Resent-From: Phil Sainty Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Thu, 15 Apr 2021 13:02:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 44128 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: To: Eli Zaretskii Cc: jonas@bernoul.li, 44128@debbugs.gnu.org, eli@gnu.org, akrl@sdf.org Received: via spool by 44128-submit@debbugs.gnu.org id=B44128.161849167431970 (code B ref 44128); Thu, 15 Apr 2021 13:02:02 +0000 Received: (at 44128) by debbugs.gnu.org; 15 Apr 2021 13:01:14 +0000 Received: from localhost ([127.0.0.1]:36711 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1lX1cQ-0008JZ-2u for submit@debbugs.gnu.org; Thu, 15 Apr 2021 09:01:14 -0400 Received: from smtp-1.orcon.net.nz ([60.234.4.34]:50153) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1lX1cN-0008JQ-W7 for 44128@debbugs.gnu.org; Thu, 15 Apr 2021 09:01:13 -0400 Received: from [101.53.216.162] (port=59440 helo=[192.168.20.103]) by smtp-1.orcon.net.nz with esmtpa (Exim 4.90_1) (envelope-from ) id 1lX1cL-00012x-C5; Fri, 16 Apr 2021 01:01:09 +1200 From: Phil Sainty References: <87eelri6l8.fsf@bernoul.li> <574a5ce8-59da-6329-3f94-49a94496f7a9@orcon.net.nz> <834kg8yr7u.fsf@gnu.org> Message-ID: <710dd7f3-c058-646d-be97-61aaccc076c0@orcon.net.nz> Date: Fri, 16 Apr 2021 01:01:08 +1200 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:68.0) Gecko/20100101 Thunderbird/68.10.0 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=utf-8 Content-Language: en-GB Content-Transfer-Encoding: 7bit X-GeoIP: NZ X-Spam_score: -2.9 X-Spam_score_int: -28 X-Spam_bar: -- X-Spam-Score: 2.9 (++) 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: I'll add that the following two results suggest that the code which (this version of) Emacs tries to load or run might vary depending on the files which happen to be in the CWD at the time. I think at best this may result in failures or inconsistencies as I've encountered, and at worst it's probably exploitable. Content analysis details: (2.9 points, 10.0 required) pts rule name description ---- ---------------------- -------------------------------------------------- 3.6 RCVD_IN_SBL_CSS RBL: Received via a relay in Spamhaus SBL-CSS [101.53.216.162 listed in zen.spamhaus.org] -0.7 RCVD_IN_DNSWL_LOW RBL: Sender listed at https://www.dnswl.org/, low trust [60.234.4.34 listed in list.dnswl.org] 0.0 FREEMAIL_FROM Sender email is commonly abused enduser mail provider (psainty[at]orcon.net.nz) 0.0 SPF_HELO_NONE SPF: HELO does not publish an SPF Record -0.0 SPF_PASS SPF: sender matches SPF record -0.0 NICE_REPLY_A Looks like a legit reply (A) 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.9 (+) 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: I'll add that the following two results suggest that the code which (this version of) Emacs tries to load or run might vary depending on the files which happen to be in the CWD at the time. I think at best this may result in failures or inconsistencies as I've encountered, and at worst it's probably exploitable. Content analysis details: (1.9 points, 10.0 required) pts rule name description ---- ---------------------- -------------------------------------------------- -0.7 RCVD_IN_DNSWL_LOW RBL: Sender listed at https://www.dnswl.org/, low trust [60.234.4.34 listed in list.dnswl.org] 3.6 RCVD_IN_SBL_CSS RBL: Received via a relay in Spamhaus SBL-CSS [101.53.216.162 listed in zen.spamhaus.org] 0.0 FREEMAIL_FROM Sender email is commonly abused enduser mail provider (psainty[at]orcon.net.nz) 0.0 SPF_HELO_NONE SPF: HELO does not publish an SPF Record -0.0 SPF_PASS SPF: sender matches SPF record -1.0 MAILING_LIST_MULTI Multiple indicators imply a widely-seen list manager -0.0 NICE_REPLY_A Looks like a legit reply (A) I'll add that the following two results suggest that the code which (this version of) Emacs tries to load or run might vary depending on the files which happen to be in the CWD at the time. I think at best this may result in failures or inconsistencies as I've encountered, and at worst it's probably exploitable. Surely the start-up process shouldn't be looking in the CWD for anything? > it apparently gets confused by the 'emacs' directory in my HOME > > $ ls -lad emacs > drwxrwxr-x 25 phil phil 4096 Mar 28 23:30 emacs > > $ emacs --version > emacs: /home/phil/../native-lisp/28.0.50-abd7aa58/preloaded/window-0d1b8b93-581f9fcd.eln: cannot open shared object file: No such file or directory > > $ cd /home/phil/emacs/native-comp/usr/local/bin/ > > $ emacs --version > GNU Emacs 28.0.50 > Copyright (C) 2021 Free Software Foundation, Inc. > GNU Emacs comes with ABSOLUTELY NO WARRANTY. > You may redistribute copies of GNU Emacs > under the terms of the GNU General Public License. > For more information about these matters, see the file named COPYING. From unknown Sat Jun 21 05:10:37 2025 X-Loop: help-debbugs@gnu.org Subject: bug#44128: [feature/native-comp] Resent-From: Eli Zaretskii Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Thu, 15 Apr 2021 13:53:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 44128 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: To: Phil Sainty Cc: jonas@bernoul.li, 44128@debbugs.gnu.org, eli@gnu.org, akrl@sdf.org Received: via spool by 44128-submit@debbugs.gnu.org id=B44128.16184947425084 (code B ref 44128); Thu, 15 Apr 2021 13:53:02 +0000 Received: (at 44128) by debbugs.gnu.org; 15 Apr 2021 13:52:22 +0000 Received: from localhost ([127.0.0.1]:36933 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1lX2Pu-0001Jw-Fb for submit@debbugs.gnu.org; Thu, 15 Apr 2021 09:52:22 -0400 Received: from eggs.gnu.org ([209.51.188.92]:38066) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1lX2Ps-0001Ji-32 for 44128@debbugs.gnu.org; Thu, 15 Apr 2021 09:52:21 -0400 Received: from fencepost.gnu.org ([2001:470:142:3::e]:36223) by eggs.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1lX2Pk-0006Br-3j; Thu, 15 Apr 2021 09:52:12 -0400 Received: from 84.94.185.95.cable.012.net.il ([84.94.185.95]:4214 helo=home-c4e4a596f7) by fencepost.gnu.org with esmtpsa (TLS1.2:RSA_AES_256_CBC_SHA1:256) (Exim 4.82) (envelope-from ) id 1lX2Pg-0007MU-Bc; Thu, 15 Apr 2021 09:52:09 -0400 Date: Thu, 15 Apr 2021 16:52:01 +0300 Message-Id: <83r1jby7su.fsf@gnu.org> From: Eli Zaretskii In-Reply-To: <710dd7f3-c058-646d-be97-61aaccc076c0@orcon.net.nz> (message from Phil Sainty on Fri, 16 Apr 2021 01:01:08 +1200) References: <87eelri6l8.fsf@bernoul.li> <574a5ce8-59da-6329-3f94-49a94496f7a9@orcon.net.nz> <834kg8yr7u.fsf@gnu.org> <710dd7f3-c058-646d-be97-61aaccc076c0@orcon.net.nz> X-Spam-Score: -0.7 (/) 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.7 (-) > From: Phil Sainty > Cc: akrl@sdf.org, jonas@bernoul.li, 44128@debbugs.gnu.org, eli@gnu.org > Date: Fri, 16 Apr 2021 01:01:08 +1200 > > I'll add that the following two results suggest that the code > which (this version of) Emacs tries to load or run might vary > depending on the files which happen to be in the CWD at the time. > > I think at best this may result in failures or inconsistencies > as I've encountered, and at worst it's probably exploitable. > > Surely the start-up process shouldn't be looking in the CWD > for anything? I'm not sure I see how you reach that conclusion. Isn't /home/phil/emacs/native-comp/usr/local/bin/ on your PATH? If not, how come the Emacs executable in that directory gets invoked? Or maybe you have "." in your PATH? From unknown Sat Jun 21 05:10:37 2025 X-Loop: help-debbugs@gnu.org Subject: bug#44128: [feature/native-comp] Resent-From: Phil Sainty Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Thu, 15 Apr 2021 14:06:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 44128 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: To: Eli Zaretskii Cc: jonas@bernoul.li, 44128@debbugs.gnu.org, eli@gnu.org, akrl@sdf.org Received: via spool by 44128-submit@debbugs.gnu.org id=B44128.16184955518113 (code B ref 44128); Thu, 15 Apr 2021 14:06:01 +0000 Received: (at 44128) by debbugs.gnu.org; 15 Apr 2021 14:05:51 +0000 Received: from localhost ([127.0.0.1]:38772 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1lX2cw-00026n-Od for submit@debbugs.gnu.org; Thu, 15 Apr 2021 10:05:50 -0400 Received: from smtp-1.orcon.net.nz ([60.234.4.34]:47487) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1lX2cr-00026X-T7 for 44128@debbugs.gnu.org; Thu, 15 Apr 2021 10:05:48 -0400 Received: from [101.53.216.162] (port=5009 helo=[192.168.20.103]) by smtp-1.orcon.net.nz with esmtpa (Exim 4.90_1) (envelope-from ) id 1lX2co-0003KF-My; Fri, 16 Apr 2021 02:05:42 +1200 References: <87eelri6l8.fsf@bernoul.li> <574a5ce8-59da-6329-3f94-49a94496f7a9@orcon.net.nz> <834kg8yr7u.fsf@gnu.org> <710dd7f3-c058-646d-be97-61aaccc076c0@orcon.net.nz> <83r1jby7su.fsf@gnu.org> From: Phil Sainty Message-ID: <1c7af255-8294-39a3-8a7c-8ec938f81b85@orcon.net.nz> Date: Fri, 16 Apr 2021 02:05:42 +1200 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:68.0) Gecko/20100101 Thunderbird/68.10.0 MIME-Version: 1.0 In-Reply-To: <83r1jby7su.fsf@gnu.org> Content-Type: text/plain; charset=utf-8 Content-Language: en-GB Content-Transfer-Encoding: 7bit X-GeoIP: NZ X-Spam_score: -2.9 X-Spam_score_int: -28 X-Spam_bar: -- X-Spam-Score: 2.9 (++) 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: On 16/04/21 1:52 am, Eli Zaretskii wrote: > I'm not sure I see how you reach that conclusion. Isn't > /home/phil/emacs/native-comp/usr/local/bin/ on your PATH? No, it isn't. /home/phil/bin is in my PATH and the 'emacs' symlink in that directory points to /home/phil/emacs/native-comp/usr/local/bin/ Content analysis details: (2.9 points, 10.0 required) pts rule name description ---- ---------------------- -------------------------------------------------- 3.6 RCVD_IN_SBL_CSS RBL: Received via a relay in Spamhaus SBL-CSS [101.53.216.162 listed in zen.spamhaus.org] 0.0 FREEMAIL_FROM Sender email is commonly abused enduser mail provider (psainty[at]orcon.net.nz) 0.0 SPF_HELO_NONE SPF: HELO does not publish an SPF Record -0.0 SPF_PASS SPF: sender matches SPF record -0.7 RCVD_IN_DNSWL_LOW RBL: Sender listed at https://www.dnswl.org/, low trust [60.234.4.34 listed in list.dnswl.org] -0.0 NICE_REPLY_A Looks like a legit reply (A) 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.9 (+) 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: On 16/04/21 1:52 am, Eli Zaretskii wrote: > I'm not sure I see how you reach that conclusion. Isn't > /home/phil/emacs/native-comp/usr/local/bin/ on your PATH? No, it isn't. /home/phil/bin is in my PATH and the 'emacs' symlink in that directory points to /home/phil/emacs/native-comp/usr/local/bin/ Content analysis details: (1.9 points, 10.0 required) pts rule name description ---- ---------------------- -------------------------------------------------- -0.7 RCVD_IN_DNSWL_LOW RBL: Sender listed at https://www.dnswl.org/, low trust [60.234.4.34 listed in list.dnswl.org] 3.6 RCVD_IN_SBL_CSS RBL: Received via a relay in Spamhaus SBL-CSS [101.53.216.162 listed in zen.spamhaus.org] 0.0 FREEMAIL_FROM Sender email is commonly abused enduser mail provider (psainty[at]orcon.net.nz) 0.0 SPF_HELO_NONE SPF: HELO does not publish an SPF Record -0.0 SPF_PASS SPF: sender matches SPF record -1.0 MAILING_LIST_MULTI Multiple indicators imply a widely-seen list manager -0.0 NICE_REPLY_A Looks like a legit reply (A) On 16/04/21 1:52 am, Eli Zaretskii wrote: > I'm not sure I see how you reach that conclusion. Isn't > /home/phil/emacs/native-comp/usr/local/bin/ on your PATH? No, it isn't. /home/phil/bin is in my PATH and the 'emacs' symlink in that directory points to /home/phil/emacs/native-comp/usr/local/bin/ When I was running 'emacs' that symlink was being used; however the *result* of running it varied, depending on which directory I was in at the time. > Or maybe you have "." in your PATH? Yikes, no; definitely not. $ echo $PATH /home/phil/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games:/snap/bin $ cd /tmp $ ls emacs ls: cannot access 'emacs': No such file or directory $ command -v emacs /home/phil/bin/emacs $ emacs --version emacs: could not resolve realpath of "emacs": No such file or directory $ touch emacs $ emacs --version emacs: /tmp/../native-lisp/28.0.50-abd7aa58/preloaded/window-0d1b8b93-581f9fcd.eln: cannot open shared object file: No such file or directory From unknown Sat Jun 21 05:10:37 2025 X-Loop: help-debbugs@gnu.org Subject: bug#44128: symlink problem after applying commit 0c1fc9d References: <87eelri6l8.fsf@bernoul.li> In-Reply-To: <87eelri6l8.fsf@bernoul.li> Resent-From: Kent =?UTF-8?Q?Engstr=C3=B6m?= Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Thu, 15 Apr 2021 14:18:03 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 44128 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: To: 44128@debbugs.gnu.org Received: via spool by 44128-submit@debbugs.gnu.org id=B44128.16184962589293 (code B ref 44128); Thu, 15 Apr 2021 14:18:03 +0000 Received: (at 44128) by debbugs.gnu.org; 15 Apr 2021 14:17:38 +0000 Received: from localhost ([127.0.0.1]:38799 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1lX2oL-0002Pi-GZ for submit@debbugs.gnu.org; Thu, 15 Apr 2021 10:17:38 -0400 Received: from mail.nsc.liu.se ([130.236.101.50]:58930) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1lWywI-0001ia-88 for 44128@debbugs.gnu.org; Thu, 15 Apr 2021 06:09:35 -0400 Received: from ceres.nsc.liu.se (ceres.nsc.liu.se [130.236.101.236]) (using TLSv1.2 with cipher ADH-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.nsc.liu.se (Postfix) with ESMTPS id B2F7968002 for <44128@debbugs.gnu.org>; Thu, 15 Apr 2021 12:09:31 +0200 (CEST) Received: from ceres.nsc.liu.se (localhost [IPv6:::1]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange ECDHE (P-256) server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) by ceres.nsc.liu.se (Postfix) with ESMTPS id 90E19C0946 for <44128@debbugs.gnu.org>; Thu, 15 Apr 2021 12:09:31 +0200 (CEST) From: Kent =?UTF-8?Q?Engstr=C3=B6m?= User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/27.1 (gnu/linux) Date: Thu, 15 Apr 2021 12:09:31 +0200 Message-ID: MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-Spam-Score: -1.6 (-) X-Mailman-Approved-At: Thu, 15 Apr 2021 10:17:34 -0400 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: -2.6 (--) Hi, I use a setup for testing native-comp, where I install to prefix /opt/emacs/native-comp and then symlink as below /opt/emacs =E2=96=B6 ls -l current lrwxrwxrwx. 1 kent kent 11 Apr 15 11:08 current -> native-comp as I have /opt/emacs/current/bin on my $PATH. After updating to 0c1fc9d, "* Fix native-comp startup for symliked binary (bug#44128)" my emacs startup fails with emacs: could not resolve realpath of "emacs": No such file or directory Checking out the previous commit b064ddd, "Merge remote-tracking branch 'savannah/master' into native-comp" and doing a "make install" gives me a working emacs binary again. From unknown Sat Jun 21 05:10:37 2025 X-Loop: help-debbugs@gnu.org Subject: bug#44128: [feature/native-comp] Resent-From: Eli Zaretskii Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Thu, 15 Apr 2021 14:43:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 44128 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: To: Phil Sainty Cc: jonas@bernoul.li, 44128@debbugs.gnu.org, eli@gnu.org, akrl@sdf.org Received: via spool by 44128-submit@debbugs.gnu.org id=B44128.161849777111754 (code B ref 44128); Thu, 15 Apr 2021 14:43:02 +0000 Received: (at 44128) by debbugs.gnu.org; 15 Apr 2021 14:42:51 +0000 Received: from localhost ([127.0.0.1]:38845 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1lX3Cl-00033W-Jv for submit@debbugs.gnu.org; Thu, 15 Apr 2021 10:42:51 -0400 Received: from eggs.gnu.org ([209.51.188.92]:54102) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1lX3Ci-00033C-9H for 44128@debbugs.gnu.org; Thu, 15 Apr 2021 10:42:50 -0400 Received: from fencepost.gnu.org ([2001:470:142:3::e]:37708) by eggs.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1lX3Cb-00034i-DS; Thu, 15 Apr 2021 10:42:41 -0400 Received: from 84.94.185.95.cable.012.net.il ([84.94.185.95]:3319 helo=home-c4e4a596f7) by fencepost.gnu.org with esmtpsa (TLS1.2:RSA_AES_256_CBC_SHA1:256) (Exim 4.82) (envelope-from ) id 1lX3Ca-0005bN-OZ; Thu, 15 Apr 2021 10:42:41 -0400 Date: Thu, 15 Apr 2021 17:42:33 +0300 Message-Id: <83mttzy5gm.fsf@gnu.org> From: Eli Zaretskii In-Reply-To: <1c7af255-8294-39a3-8a7c-8ec938f81b85@orcon.net.nz> (message from Phil Sainty on Fri, 16 Apr 2021 02:05:42 +1200) References: <87eelri6l8.fsf@bernoul.li> <574a5ce8-59da-6329-3f94-49a94496f7a9@orcon.net.nz> <834kg8yr7u.fsf@gnu.org> <710dd7f3-c058-646d-be97-61aaccc076c0@orcon.net.nz> <83r1jby7su.fsf@gnu.org> <1c7af255-8294-39a3-8a7c-8ec938f81b85@orcon.net.nz> X-Spam-Score: -0.7 (/) 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.7 (-) > Cc: akrl@sdf.org, jonas@bernoul.li, 44128@debbugs.gnu.org, eli@gnu.org > From: Phil Sainty > Date: Fri, 16 Apr 2021 02:05:42 +1200 > > $ cd /tmp > > $ ls emacs > ls: cannot access 'emacs': No such file or directory > > $ command -v emacs > /home/phil/bin/emacs > > $ emacs --version > emacs: could not resolve realpath of "emacs": No such file or directory > > $ touch emacs > > $ emacs --version > emacs: /tmp/../native-lisp/28.0.50-abd7aa58/preloaded/window-0d1b8b93-581f9fcd.eln: cannot open shared object file: No such file or directory That's Emacs trying to see if it is run uninstalled, so I see no problem here. What exactly do you think is wrong with this, again? From unknown Sat Jun 21 05:10:37 2025 X-Loop: help-debbugs@gnu.org Subject: bug#44128: [feature/native-comp] Resent-From: Phil Sainty Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Thu, 15 Apr 2021 21:54:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 44128 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: To: Eli Zaretskii Cc: jonas@bernoul.li, 44128@debbugs.gnu.org, eli@gnu.org, akrl@sdf.org Received: via spool by 44128-submit@debbugs.gnu.org id=B44128.161852358612545 (code B ref 44128); Thu, 15 Apr 2021 21:54:01 +0000 Received: (at 44128) by debbugs.gnu.org; 15 Apr 2021 21:53:06 +0000 Received: from localhost ([127.0.0.1]:39413 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1lX9v7-0003GH-RS for submit@debbugs.gnu.org; Thu, 15 Apr 2021 17:53:06 -0400 Received: from smtp-2.orcon.net.nz ([60.234.4.43]:35163) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1lX9v5-0003G2-F5 for 44128@debbugs.gnu.org; Thu, 15 Apr 2021 17:53:04 -0400 Received: from [101.53.216.162] (port=53235 helo=[192.168.20.103]) by smtp-2.orcon.net.nz with esmtpa (Exim 4.90_1) (envelope-from ) id 1lX9v1-0004t0-H4; Fri, 16 Apr 2021 09:52:59 +1200 References: <87eelri6l8.fsf@bernoul.li> <574a5ce8-59da-6329-3f94-49a94496f7a9@orcon.net.nz> <834kg8yr7u.fsf@gnu.org> <710dd7f3-c058-646d-be97-61aaccc076c0@orcon.net.nz> <83r1jby7su.fsf@gnu.org> <1c7af255-8294-39a3-8a7c-8ec938f81b85@orcon.net.nz> <83mttzy5gm.fsf@gnu.org> From: Phil Sainty Message-ID: <39a1a9f8-7ea5-b476-85b7-6639ace8d7d5@orcon.net.nz> Date: Fri, 16 Apr 2021 09:52:59 +1200 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:68.0) Gecko/20100101 Thunderbird/68.10.0 MIME-Version: 1.0 In-Reply-To: <83mttzy5gm.fsf@gnu.org> Content-Type: text/plain; charset=utf-8 Content-Language: en-GB Content-Transfer-Encoding: 7bit X-GeoIP: NZ X-Spam_score: -2.9 X-Spam_score_int: -28 X-Spam_bar: -- X-Spam-Score: 2.9 (++) 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: On 16/04/21 2:42 am, Eli Zaretskii wrote: >> $ emacs --version >> emacs: could not resolve realpath of "emacs": No such file or directory >> $ touch emacs >> $ emacs --version >> emacs: /tmp/../native [...] Content analysis details: (2.9 points, 10.0 required) pts rule name description ---- ---------------------- -------------------------------------------------- 3.6 RCVD_IN_SBL_CSS RBL: Received via a relay in Spamhaus SBL-CSS [101.53.216.162 listed in zen.spamhaus.org] 0.0 FREEMAIL_FROM Sender email is commonly abused enduser mail provider (psainty[at]orcon.net.nz) 0.0 SPF_HELO_NONE SPF: HELO does not publish an SPF Record -0.0 SPF_PASS SPF: sender matches SPF record -0.7 RCVD_IN_DNSWL_LOW RBL: Sender listed at https://www.dnswl.org/, low trust [60.234.4.43 listed in list.dnswl.org] -0.0 NICE_REPLY_A Looks like a legit reply (A) 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.9 (+) 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: On 16/04/21 2:42 am, Eli Zaretskii wrote: >> $ emacs --version >> emacs: could not resolve realpath of "emacs": No such file or directory >> $ touch emacs >> $ emacs --version >> emacs: /tmp/../native [...] Content analysis details: (1.9 points, 10.0 required) pts rule name description ---- ---------------------- -------------------------------------------------- -0.7 RCVD_IN_DNSWL_LOW RBL: Sender listed at https://www.dnswl.org/, low trust [60.234.4.43 listed in list.dnswl.org] 3.6 RCVD_IN_SBL_CSS RBL: Received via a relay in Spamhaus SBL-CSS [101.53.216.162 listed in zen.spamhaus.org] 0.0 FREEMAIL_FROM Sender email is commonly abused enduser mail provider (psainty[at]orcon.net.nz) 0.0 SPF_HELO_NONE SPF: HELO does not publish an SPF Record -0.0 SPF_PASS SPF: sender matches SPF record -1.0 MAILING_LIST_MULTI Multiple indicators imply a widely-seen list manager -0.0 NICE_REPLY_A Looks like a legit reply (A) On 16/04/21 2:42 am, Eli Zaretskii wrote: >> $ emacs --version >> emacs: could not resolve realpath of "emacs": No such file or directory >> $ touch emacs >> $ emacs --version >> emacs: /tmp/../native-lisp/28.0.50-abd7aa58/preloaded/window-0d1b8b93-581f9fcd.eln: cannot open shared object file: No such file or directory > > That's Emacs trying to see if it is run uninstalled, so I see no > problem here. What exactly do you think is wrong with this, again? The first problem is that it's currently not possible to start emacs if you're in a directory which contains a file or directory called 'emacs'. I think that's Bad, and it will undoubtedly be reported as a bug by other people for as long as that persisted. It certainly doesn't happen with non-native-comp builds. The second problem is that this type of behaviour feels rather like something you mentioned earlier: having "." in your PATH, which is widely considered a bad idea. I expect that exploits are unlikely (e.g. arranging for a malicious native-lisp/28.0.50-abd7aa58/preloaded/window-0d1b8b93-581f9fcd.eln to exist is probably a lot of work), but I think Emacs should not behave differently depending on where you are when you start it. In future, once this feature is merged, many people will have multiple local installs of various native-comp-enabled versions, and might be moving between them and/or working on them. If Emacs then tried to run code for the version in the CWD even if the executable that was invoked was for a different install, that would be very surprising (and potentially very difficult for the user to notice). I do see the hashes in the filenames, so maybe that scenario is already avoided, if the eln filenames are unique to the version of Emacs? This "looking in the CWD" behaviour still feels wrong to me, though. Are there other existing ways in which Emacs changes its behaviour based on the CWD? -Phil From unknown Sat Jun 21 05:10:37 2025 X-Loop: help-debbugs@gnu.org Subject: bug#44128: bug#47800: [native-comp] could not resolve realpath of "emacs" Resent-From: Phil Sainty Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Fri, 16 Apr 2021 05:42:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 44128 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: To: Eli Zaretskii Cc: 44128@debbugs.gnu.org Received: via spool by 44128-submit@debbugs.gnu.org id=B44128.16185517201187 (code B ref 44128); Fri, 16 Apr 2021 05:42:02 +0000 Received: (at 44128) by debbugs.gnu.org; 16 Apr 2021 05:42:00 +0000 Received: from localhost ([127.0.0.1]:39905 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1lXHEt-0000J5-QP for submit@debbugs.gnu.org; Fri, 16 Apr 2021 01:42:00 -0400 Received: from smtp-3.orcon.net.nz ([60.234.4.44]:38175) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1lXHEp-0000Io-Hc for 44128@debbugs.gnu.org; Fri, 16 Apr 2021 01:41:57 -0400 Received: from [101.53.216.162] (port=60407 helo=[192.168.20.103]) by smtp-3.orcon.net.nz with esmtpa (Exim 4.90_1) (envelope-from ) id 1lXHEm-0004Ze-KS; Fri, 16 Apr 2021 17:41:52 +1200 References: <86f92666-5978-14b7-9d55-f87cb9010f3f@orcon.net.nz> <83im4ny4a6.fsf@gnu.org> From: Phil Sainty Message-ID: <88c1c243-2427-4917-f932-afdd7400279a@orcon.net.nz> Date: Fri, 16 Apr 2021 17:41:52 +1200 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:68.0) Gecko/20100101 Thunderbird/68.10.0 MIME-Version: 1.0 In-Reply-To: <83im4ny4a6.fsf@gnu.org> Content-Type: multipart/mixed; boundary="------------BC911F554769B3E00CCA5839" Content-Language: en-GB X-GeoIP: NZ X-Spam_score: -2.9 X-Spam_score_int: -28 X-Spam_bar: -- X-Spam-Score: 2.9 (++) 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: On 16/04/21 3:08 am, Eli Zaretskii wrote (on bug 47800): > Does the untested patch below fix the problem? That didn't change the outcomes for me. I've just tried some very basic debugging with the attached patch (yours plus some debug output) which gives me the following outputs: Content analysis details: (2.9 points, 10.0 required) pts rule name description ---- ---------------------- -------------------------------------------------- 3.6 RCVD_IN_SBL_CSS RBL: Received via a relay in Spamhaus SBL-CSS [101.53.216.162 listed in zen.spamhaus.org] 0.0 FREEMAIL_FROM Sender email is commonly abused enduser mail provider (psainty[at]orcon.net.nz) 0.0 SPF_HELO_NONE SPF: HELO does not publish an SPF Record -0.0 SPF_PASS SPF: sender matches SPF record -0.7 RCVD_IN_DNSWL_LOW RBL: Sender listed at https://www.dnswl.org/, low trust [60.234.4.44 listed in list.dnswl.org] -0.0 NICE_REPLY_A Looks like a legit reply (A) 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.9 (+) 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: On 16/04/21 3:08 am, Eli Zaretskii wrote (on bug 47800): > Does the untested patch below fix the problem? That didn't change the outcomes for me. I've just tried some very basic debugging with the attached patch (yours plus some debug output) which gives me the following outputs: Content analysis details: (1.9 points, 10.0 required) pts rule name description ---- ---------------------- -------------------------------------------------- -0.7 RCVD_IN_DNSWL_LOW RBL: Sender listed at https://www.dnswl.org/, low trust [60.234.4.44 listed in list.dnswl.org] 3.6 RCVD_IN_SBL_CSS RBL: Received via a relay in Spamhaus SBL-CSS [101.53.216.162 listed in zen.spamhaus.org] 0.0 FREEMAIL_FROM Sender email is commonly abused enduser mail provider (psainty[at]orcon.net.nz) 0.0 SPF_HELO_NONE SPF: HELO does not publish an SPF Record -0.0 SPF_PASS SPF: sender matches SPF record -1.0 MAILING_LIST_MULTI Multiple indicators imply a widely-seen list manager -0.0 NICE_REPLY_A Looks like a legit reply (A) This is a multi-part message in MIME format. --------------BC911F554769B3E00CCA5839 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit On 16/04/21 3:08 am, Eli Zaretskii wrote (on bug 47800): > Does the untested patch below fix the problem? That didn't change the outcomes for me. I've just tried some very basic debugging with the attached patch (yours plus some debug output) which gives me the following outputs: $ cd /tmp $ ls emacs ls: cannot access 'emacs': No such file or directory $ emacs --version load_pdump_find_executable: candidate: /home/phil/bin/emacs => file: /home/phil/bin/emacs => (link) realpath: /home/phil/emacs/native-comp/usr/local/bin/emacs-28.0.50 load_pdump: /home/phil/emacs/native-comp/usr/local/bin/emacs-28.0.50 real_filename( /home/phil/emacs/native-comp/usr/local/bin/emacs-28.0.50 ) => realpath: /home/phil/emacs/native-comp/usr/local/bin/emacs-28.0.50 set_invocation_vars: emacs real_filename( emacs ) => realpath: (null) emacs: could not resolve realpath of "emacs": No such file or directory $ mkdir emacs $ emacs --version load_pdump_find_executable: candidate: /home/phil/bin/emacs => file: /home/phil/bin/emacs => (link) realpath: /home/phil/emacs/native-comp/usr/local/bin/emacs-28.0.50 load_pdump: /home/phil/emacs/native-comp/usr/local/bin/emacs-28.0.50 real_filename( /home/phil/emacs/native-comp/usr/local/bin/emacs-28.0.50 ) => realpath: /home/phil/emacs/native-comp/usr/local/bin/emacs-28.0.50 set_invocation_vars: emacs real_filename( emacs ) => realpath: /tmp/emacs emacs: /tmp/../native-lisp/28.0.50-abd7aa58/preloaded/window-0d1b8b93-581f9fcd.eln: cannot open shared object file: No such file or directory $ /home/phil/emacs/native-comp/usr/local/bin/emacs --version load_pdump: /home/phil/emacs/native-comp/usr/local/bin/emacs real_filename( /home/phil/emacs/native-comp/usr/local/bin/emacs ) => realpath: /home/phil/emacs/native-comp/usr/local/bin/emacs-28.0.50 set_invocation_vars: /home/phil/emacs/native-comp/usr/local/bin/emacs real_filename( /home/phil/emacs/native-comp/usr/local/bin/emacs ) => realpath: /home/phil/emacs/native-comp/usr/local/bin/emacs-28.0.50 GNU Emacs 28.0.50 Copyright (C) 2021 Free Software Foundation, Inc. GNU Emacs comes with ABSOLUTELY NO WARRANTY. You may redistribute copies of GNU Emacs under the terms of the GNU General Public License. For more information about these matters, see the file named COPYING. --------------BC911F554769B3E00CCA5839 Content-Type: text/x-patch; charset=UTF-8; name="bug47800.patch" Content-Transfer-Encoding: 7bit Content-Disposition: attachment; filename="bug47800.patch" diff --git a/src/emacs.c b/src/emacs.c index a256564..0503504 100644 --- a/src/emacs.c +++ b/src/emacs.c @@ -446,6 +446,7 @@ terminate_due_to_signal (int sig, int backtrace_limit) static char * real_filename (char *filename) { + fprintf (stderr, "real_filename( %s )\n", filename); char *real_name; #ifdef WINDOWSNT /* w32_my_exename resolves symlinks internally, so no need to @@ -453,6 +454,7 @@ real_filename (char *filename) real_name = xstrdup (filename); #else real_name = realpath (filename, NULL); + fprintf (stderr, "=> realpath: %s\n", real_name); if (!real_name) fatal ("could not resolve realpath of \"%s\": %s", filename, strerror (errno)); @@ -495,6 +497,7 @@ set_invocation_vars (char *argv0, char const *original_pwd) if (! NILP (handler)) raw_name = concat2 (slash_colon, raw_name); + fprintf (stderr, "set_invocation_vars: %s\n", SSDATA (raw_name)); char *filename = real_filename (SSDATA (raw_name)); raw_name = build_unibyte_string (filename); xfree (filename); @@ -843,10 +846,18 @@ load_pdump_find_executable (char const *argv0, ptrdiff_t *candidate_size) memcpy (candidate + 0, path_part, path_part_length); candidate[path_part_length] = DIRECTORY_SEP; memcpy (candidate + path_part_length + 1, argv0, argv0_length + 1); + fprintf (stderr, "load_pdump_find_executable: candidate: %s\n", candidate); struct stat st; if (file_access_p (candidate, X_OK) && stat (candidate, &st) == 0 && S_ISREG (st.st_mode)) - return candidate; + { + fprintf (stderr, "=> file: %s\n", candidate); + if (lstat (candidate, &st) == 0 && S_ISLNK (st.st_mode)) { + fprintf (stderr, "=> (link) realpath: %s\n", realpath (candidate, NULL)); + return realpath (candidate, NULL); + } + return candidate; + } *candidate = '\0'; } while (*path++ != '\0'); @@ -912,6 +923,7 @@ load_pdump (int argc, char **argv, char const *original_pwd) the dump in the hardcoded location. */ if (dump_file && *dump_file) { + fprintf (stderr, "load_pdump: %s\n", dump_file); char *real_exename = real_filename (dump_file); xfree (dump_file); dump_file = real_exename; --------------BC911F554769B3E00CCA5839-- From unknown Sat Jun 21 05:10:37 2025 X-Loop: help-debbugs@gnu.org Subject: bug#44128: #44128: [feature/native-comp] When invoking a symlink to the 'emacs' binary Emacs fails to start Resent-From: Eli Zaretskii Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Fri, 16 Apr 2021 06:42:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 44128 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: To: Phil Sainty Cc: 44128@debbugs.gnu.org Received: via spool by 44128-submit@debbugs.gnu.org id=B44128.16185552916742 (code B ref 44128); Fri, 16 Apr 2021 06:42:02 +0000 Received: (at 44128) by debbugs.gnu.org; 16 Apr 2021 06:41:31 +0000 Received: from localhost ([127.0.0.1]:39924 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1lXIAV-0001kg-8E for submit@debbugs.gnu.org; Fri, 16 Apr 2021 02:41:31 -0400 Received: from eggs.gnu.org ([209.51.188.92]:57904) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1lXIAS-0001kR-Bq for 44128@debbugs.gnu.org; Fri, 16 Apr 2021 02:41:30 -0400 Received: from fencepost.gnu.org ([2001:470:142:3::e]:51925) by eggs.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1lXIAM-0003Rs-NL; Fri, 16 Apr 2021 02:41:22 -0400 Received: from 84.94.185.95.cable.012.net.il ([84.94.185.95]:2351 helo=home-c4e4a596f7) by fencepost.gnu.org with esmtpsa (TLS1.2:RSA_AES_256_CBC_SHA1:256) (Exim 4.82) (envelope-from ) id 1lXIAK-00049N-Od; Fri, 16 Apr 2021 02:41:22 -0400 Date: Fri, 16 Apr 2021 09:41:13 +0300 Message-Id: <83zgxywx2u.fsf@gnu.org> From: Eli Zaretskii In-Reply-To: <88c1c243-2427-4917-f932-afdd7400279a@orcon.net.nz> (message from Phil Sainty on Fri, 16 Apr 2021 17:41:52 +1200) References: <86f92666-5978-14b7-9d55-f87cb9010f3f@orcon.net.nz> <83im4ny4a6.fsf@gnu.org> <88c1c243-2427-4917-f932-afdd7400279a@orcon.net.nz> X-Spam-Score: -0.7 (/) 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.7 (-) > Cc: 44128@debbugs.gnu.org > From: Phil Sainty > Date: Fri, 16 Apr 2021 17:41:52 +1200 > > On 16/04/21 3:08 am, Eli Zaretskii wrote (on bug 47800): > > Does the untested patch below fix the problem? > > That didn't change the outcomes for me. But it moves one step closer, AFAICT: the real file name of the Emacs executable is now correctly identified. > I've just tried some very basic debugging with the attached patch > (yours plus some debug output) which gives me the following outputs: > > > $ cd /tmp > > $ ls emacs > ls: cannot access 'emacs': No such file or directory > > > $ emacs --version > load_pdump_find_executable: candidate: /home/phil/bin/emacs > => file: /home/phil/bin/emacs > => (link) realpath: /home/phil/emacs/native-comp/usr/local/bin/emacs-28.0.50 > load_pdump: /home/phil/emacs/native-comp/usr/local/bin/emacs-28.0.50 > real_filename( /home/phil/emacs/native-comp/usr/local/bin/emacs-28.0.50 ) > => realpath: /home/phil/emacs/native-comp/usr/local/bin/emacs-28.0.50 > set_invocation_vars: emacs > real_filename( emacs ) > => realpath: (null) > emacs: could not resolve realpath of "emacs": No such file or directory > > > $ mkdir emacs > > $ emacs --version > load_pdump_find_executable: candidate: /home/phil/bin/emacs > => file: /home/phil/bin/emacs > => (link) realpath: /home/phil/emacs/native-comp/usr/local/bin/emacs-28.0.50 > load_pdump: /home/phil/emacs/native-comp/usr/local/bin/emacs-28.0.50 > real_filename( /home/phil/emacs/native-comp/usr/local/bin/emacs-28.0.50 ) > => realpath: /home/phil/emacs/native-comp/usr/local/bin/emacs-28.0.50 > set_invocation_vars: emacs > real_filename( emacs ) > => realpath: /tmp/emacs > emacs: /tmp/../native-lisp/28.0.50-abd7aa58/preloaded/window-0d1b8b93-581f9fcd.eln: cannot open shared object file: No such file or directory > > > $ /home/phil/emacs/native-comp/usr/local/bin/emacs --version > load_pdump: /home/phil/emacs/native-comp/usr/local/bin/emacs > real_filename( /home/phil/emacs/native-comp/usr/local/bin/emacs ) > => realpath: /home/phil/emacs/native-comp/usr/local/bin/emacs-28.0.50 > set_invocation_vars: /home/phil/emacs/native-comp/usr/local/bin/emacs > real_filename( /home/phil/emacs/native-comp/usr/local/bin/emacs ) > => realpath: /home/phil/emacs/native-comp/usr/local/bin/emacs-28.0.50 > GNU Emacs 28.0.50 Thanks, but this doesn't provide enough information to understand how this Emacs was configured and installed, and AFAICS you didn't supply that information up-thread. So: . how was Emacs configured? with what value of --prefix (or other related directory variables, like libdir etc)? . was Emacs installed, and if so, with what command? . what is the full absolute file name of the native-lisp/ directory that this Emacs binary was supposed to find and load? . what is the full absolute file name of the pdumper file for this Emacs binary? P.S. To avoid confusion, please use the Subject line I used, not the one which mentions bug#48700. From unknown Sat Jun 21 05:10:37 2025 X-Loop: help-debbugs@gnu.org Subject: bug#44128: [feature/native-comp] Resent-From: Eli Zaretskii Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Fri, 16 Apr 2021 06:52:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 44128 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: To: Phil Sainty Cc: jonas@bernoul.li, 44128@debbugs.gnu.org, akrl@sdf.org Received: via spool by 44128-submit@debbugs.gnu.org id=B44128.16185558767615 (code B ref 44128); Fri, 16 Apr 2021 06:52:02 +0000 Received: (at 44128) by debbugs.gnu.org; 16 Apr 2021 06:51:16 +0000 Received: from localhost ([127.0.0.1]:39928 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1lXIJw-0001yk-Ab for submit@debbugs.gnu.org; Fri, 16 Apr 2021 02:51:16 -0400 Received: from eggs.gnu.org ([209.51.188.92]:59460) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1lXIJu-0001yT-5u for 44128@debbugs.gnu.org; Fri, 16 Apr 2021 02:51:15 -0400 Received: from fencepost.gnu.org ([2001:470:142:3::e]:51975) by eggs.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1lXIJj-0000pm-Jx; Fri, 16 Apr 2021 02:51:03 -0400 Received: from 84.94.185.95.cable.012.net.il ([84.94.185.95]:2944 helo=home-c4e4a596f7) by fencepost.gnu.org with esmtpsa (TLS1.2:RSA_AES_256_CBC_SHA1:256) (Exim 4.82) (envelope-from ) id 1lXIJi-0004k9-Uf; Fri, 16 Apr 2021 02:51:03 -0400 Date: Fri, 16 Apr 2021 09:50:58 +0300 Message-Id: <83y2diwwml.fsf@gnu.org> From: Eli Zaretskii In-Reply-To: <39a1a9f8-7ea5-b476-85b7-6639ace8d7d5@orcon.net.nz> (message from Phil Sainty on Fri, 16 Apr 2021 09:52:59 +1200) References: <87eelri6l8.fsf@bernoul.li> <574a5ce8-59da-6329-3f94-49a94496f7a9@orcon.net.nz> <834kg8yr7u.fsf@gnu.org> <710dd7f3-c058-646d-be97-61aaccc076c0@orcon.net.nz> <83r1jby7su.fsf@gnu.org> <1c7af255-8294-39a3-8a7c-8ec938f81b85@orcon.net.nz> <83mttzy5gm.fsf@gnu.org> <39a1a9f8-7ea5-b476-85b7-6639ace8d7d5@orcon.net.nz> X-Spam-Score: -0.7 (/) 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.7 (-) > Cc: akrl@sdf.org, jonas@bernoul.li, 44128@debbugs.gnu.org, eli@gnu.org > From: Phil Sainty > Date: Fri, 16 Apr 2021 09:52:59 +1200 > > On 16/04/21 2:42 am, Eli Zaretskii wrote: > >> $ emacs --version > >> emacs: could not resolve realpath of "emacs": No such file or directory > >> $ touch emacs > >> $ emacs --version > >> emacs: /tmp/../native-lisp/28.0.50-abd7aa58/preloaded/window-0d1b8b93-581f9fcd.eln: cannot open shared object file: No such file or directory > > > > That's Emacs trying to see if it is run uninstalled, so I see no > > problem here. What exactly do you think is wrong with this, again? > > The first problem is that it's currently not possible to start > emacs if you're in a directory which contains a file or directory > called 'emacs'. That's not relevant to the message above; the failure related to the presence of a directory or file named 'emacs' is a bug that will be solved. > The second problem is that this type of behaviour feels rather > like something you mentioned earlier: having "." in your PATH, > which is widely considered a bad idea. But that ship has sailed long, long, LONG ago: Emacs was always looking for its Lisp files in the directory "../lisp" relative to where it was invoked since about forever. How else can we support both installed and uninstalled invocations? When Emacs is run uninstalled, the Lisp files can be anywhere on the system. The only difference is that now we _also_ look for the *.eln files in a similar fashion. IOW, Emacs always tries the configured installation directory first; if the files are not there, it tries relative to the invocation directory on the assumption that we are running uninstalled. And that is why you see the error message above. There's nothing wrong with the message per se, and once the problem with finding the files in your case is solved, the message will disappear. > In future, once this feature is merged, many people will have > multiple local installs of various native-comp-enabled versions, > and might be moving between them and/or working on them. If > Emacs then tried to run code for the version in the CWD even if > the executable that was invoked was for a different install, that > would be very surprising (and potentially very difficult for the > user to notice). The *.eln files include various hashes in their file names that prevent loading of a mismatched .eln file. This should support having several variants of a .eln file, corresponding to several Emacs binaries, in the same directory. So I don't quite see the danger that you have in mind. > I do see the hashes in the filenames, so maybe that scenario is > already avoided, if the eln filenames are unique to the version > of Emacs? Yes. > This "looking in the CWD" behaviour still feels wrong to me, though. > Are there other existing ways in which Emacs changes its behaviour > based on the CWD? See above: we were doing that since day one, more or less. From unknown Sat Jun 21 05:10:37 2025 X-Loop: help-debbugs@gnu.org Subject: bug#44128: #44128: [feature/native-comp] When invoking a symlink to the 'emacs' binary Emacs fails to start Resent-From: Phil Sainty Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Fri, 16 Apr 2021 11:19:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 44128 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: To: Eli Zaretskii Cc: 44128@debbugs.gnu.org Received: via spool by 44128-submit@debbugs.gnu.org id=B44128.16185719318593 (code B ref 44128); Fri, 16 Apr 2021 11:19:01 +0000 Received: (at 44128) by debbugs.gnu.org; 16 Apr 2021 11:18:51 +0000 Received: from localhost ([127.0.0.1]:40170 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1lXMUs-0002EW-T9 for submit@debbugs.gnu.org; Fri, 16 Apr 2021 07:18:51 -0400 Received: from smtp-4.orcon.net.nz ([60.234.4.59]:52067) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1lXMUp-0002EM-OG for 44128@debbugs.gnu.org; Fri, 16 Apr 2021 07:18:49 -0400 Received: from [101.53.216.162] (port=13883 helo=[192.168.20.103]) by smtp-4.orcon.net.nz with esmtpa (Exim 4.90_1) (envelope-from ) id 1lXMUm-0007xK-UT; Fri, 16 Apr 2021 23:18:45 +1200 References: <86f92666-5978-14b7-9d55-f87cb9010f3f@orcon.net.nz> <83im4ny4a6.fsf@gnu.org> <88c1c243-2427-4917-f932-afdd7400279a@orcon.net.nz> <83zgxywx2u.fsf@gnu.org> From: Phil Sainty Message-ID: <9e2f89e7-fadd-369e-4658-a003e03baf8e@orcon.net.nz> Date: Fri, 16 Apr 2021 23:18:44 +1200 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:68.0) Gecko/20100101 Thunderbird/68.10.0 MIME-Version: 1.0 In-Reply-To: <83zgxywx2u.fsf@gnu.org> Content-Type: text/plain; charset=utf-8 Content-Language: en-GB Content-Transfer-Encoding: 7bit X-GeoIP: NZ X-Spam_score: -2.9 X-Spam_score_int: -28 X-Spam_bar: -- X-Spam-Score: 2.9 (++) 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: On 16/04/21 6:41 pm, Eli Zaretskii wrote: > Thanks, but this doesn't provide enough information to understand how > this Emacs was configured and installed, and AFAICS you didn't supply > that informa [...] Content analysis details: (2.9 points, 10.0 required) pts rule name description ---- ---------------------- -------------------------------------------------- 3.6 RCVD_IN_SBL_CSS RBL: Received via a relay in Spamhaus SBL-CSS [101.53.216.162 listed in zen.spamhaus.org] 0.0 FREEMAIL_FROM Sender email is commonly abused enduser mail provider (psainty[at]orcon.net.nz) 0.0 SPF_HELO_NONE SPF: HELO does not publish an SPF Record -0.0 SPF_PASS SPF: sender matches SPF record -0.7 RCVD_IN_DNSWL_LOW RBL: Sender listed at https://www.dnswl.org/, low trust [60.234.4.59 listed in list.dnswl.org] -0.0 NICE_REPLY_A Looks like a legit reply (A) 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.9 (+) 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: On 16/04/21 6:41 pm, Eli Zaretskii wrote: > Thanks, but this doesn't provide enough information to understand how > this Emacs was configured and installed, and AFAICS you didn't supply > that informa [...] Content analysis details: (1.9 points, 10.0 required) pts rule name description ---- ---------------------- -------------------------------------------------- -0.7 RCVD_IN_DNSWL_LOW RBL: Sender listed at https://www.dnswl.org/, low trust [60.234.4.59 listed in list.dnswl.org] 3.6 RCVD_IN_SBL_CSS RBL: Received via a relay in Spamhaus SBL-CSS [101.53.216.162 listed in zen.spamhaus.org] 0.0 FREEMAIL_FROM Sender email is commonly abused enduser mail provider (psainty[at]orcon.net.nz) 0.0 SPF_HELO_NONE SPF: HELO does not publish an SPF Record -0.0 SPF_PASS SPF: sender matches SPF record -1.0 MAILING_LIST_MULTI Multiple indicators imply a widely-seen list manager -0.0 NICE_REPLY_A Looks like a legit reply (A) On 16/04/21 6:41 pm, Eli Zaretskii wrote: > Thanks, but this doesn't provide enough information to understand how > this Emacs was configured and installed, and AFAICS you didn't supply > that information up-thread. It got a bit lost in the scattering of bug IDs, but the following was my M-x report-emacs-bug from the native-comp Emacs I compiled initially: https://lists.gnu.org/archive/html/bug-gnu-emacs/2021-04/msg00560.html For the subsequent testing I just re-ran 'make install' after applying each patch. > . how was Emacs configured? with what value of --prefix (or other > related directory variables, like libdir etc)? Configured using: 'configure --prefix=/home/phil/emacs/native-comp/usr/local --with-x-toolkit=lucid --without-sound --with-native-compilation' > . was Emacs installed, and if so, with what command? make install > . what is the full absolute file name of the native-lisp/ directory > that this Emacs binary was supposed to find and load? Seems like this: /home/phil/emacs/native-comp/usr/local/lib/emacs/28.0.50/native-lisp/28.0.50-abd7aa58/ > . what is the full absolute file name of the pdumper file for this > Emacs binary? Seems like this: /home/phil/emacs/native-comp/usr/local/libexec/emacs/28.0.50/x86_64-pc-linux-gnu/emacs.pdmp (I'm making assumptions about the last two, but they're the only possibilities that I can find under my --prefix dir.) From unknown Sat Jun 21 05:10:37 2025 X-Loop: help-debbugs@gnu.org Subject: bug#44128: [feature/native-comp] Resent-From: Phil Sainty Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Fri, 16 Apr 2021 12:05:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 44128 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: To: Eli Zaretskii Cc: jonas@bernoul.li, 44128@debbugs.gnu.org, akrl@sdf.org Received: via spool by 44128-submit@debbugs.gnu.org id=B44128.161857465820943 (code B ref 44128); Fri, 16 Apr 2021 12:05:02 +0000 Received: (at 44128) by debbugs.gnu.org; 16 Apr 2021 12:04:18 +0000 Received: from localhost ([127.0.0.1]:40210 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1lXNCs-0005Rj-5J for submit@debbugs.gnu.org; Fri, 16 Apr 2021 08:04:18 -0400 Received: from smtp-4.orcon.net.nz ([60.234.4.59]:48651) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1lXNCq-0005Rb-7b for 44128@debbugs.gnu.org; Fri, 16 Apr 2021 08:04:17 -0400 Received: from [101.53.216.162] (port=3971 helo=[192.168.20.103]) by smtp-4.orcon.net.nz with esmtpa (Exim 4.90_1) (envelope-from ) id 1lXNCn-0001Pd-0i; Sat, 17 Apr 2021 00:04:13 +1200 References: <87eelri6l8.fsf@bernoul.li> <574a5ce8-59da-6329-3f94-49a94496f7a9@orcon.net.nz> <834kg8yr7u.fsf@gnu.org> <710dd7f3-c058-646d-be97-61aaccc076c0@orcon.net.nz> <83r1jby7su.fsf@gnu.org> <1c7af255-8294-39a3-8a7c-8ec938f81b85@orcon.net.nz> <83mttzy5gm.fsf@gnu.org> <39a1a9f8-7ea5-b476-85b7-6639ace8d7d5@orcon.net.nz> <83y2diwwml.fsf@gnu.org> From: Phil Sainty Message-ID: <850ca744-dfdd-f6d5-bae5-5614eb5a3d77@orcon.net.nz> Date: Sat, 17 Apr 2021 00:04:12 +1200 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:68.0) Gecko/20100101 Thunderbird/68.10.0 MIME-Version: 1.0 In-Reply-To: <83y2diwwml.fsf@gnu.org> Content-Type: text/plain; charset=utf-8 Content-Language: en-GB Content-Transfer-Encoding: 7bit X-GeoIP: NZ X-Spam_score: -2.9 X-Spam_score_int: -28 X-Spam_bar: -- X-Spam-Score: 2.9 (++) 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: On 16/04/21 6:50 pm, Eli Zaretskii wrote: >> The first problem is that it's currently not possible to start >> emacs if you're in a directory which contains a file or directory >> called 'emacs'. > > [...] Content analysis details: (2.9 points, 10.0 required) pts rule name description ---- ---------------------- -------------------------------------------------- 3.6 RCVD_IN_SBL_CSS RBL: Received via a relay in Spamhaus SBL-CSS [101.53.216.162 listed in zen.spamhaus.org] 0.0 FREEMAIL_FROM Sender email is commonly abused enduser mail provider (psainty[at]orcon.net.nz) 0.0 SPF_HELO_NONE SPF: HELO does not publish an SPF Record -0.0 SPF_PASS SPF: sender matches SPF record -0.7 RCVD_IN_DNSWL_LOW RBL: Sender listed at https://www.dnswl.org/, low trust [60.234.4.59 listed in list.dnswl.org] -0.0 NICE_REPLY_A Looks like a legit reply (A) 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.9 (+) 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: On 16/04/21 6:50 pm, Eli Zaretskii wrote: >> The first problem is that it's currently not possible to start >> emacs if you're in a directory which contains a file or directory >> called 'emacs'. > > [...] Content analysis details: (1.9 points, 10.0 required) pts rule name description ---- ---------------------- -------------------------------------------------- -0.7 RCVD_IN_DNSWL_LOW RBL: Sender listed at https://www.dnswl.org/, low trust [60.234.4.59 listed in list.dnswl.org] 3.6 RCVD_IN_SBL_CSS RBL: Received via a relay in Spamhaus SBL-CSS [101.53.216.162 listed in zen.spamhaus.org] 0.0 FREEMAIL_FROM Sender email is commonly abused enduser mail provider (psainty[at]orcon.net.nz) 0.0 SPF_HELO_NONE SPF: HELO does not publish an SPF Record -0.0 SPF_PASS SPF: sender matches SPF record -1.0 MAILING_LIST_MULTI Multiple indicators imply a widely-seen list manager -0.0 NICE_REPLY_A Looks like a legit reply (A) On 16/04/21 6:50 pm, Eli Zaretskii wrote: >> The first problem is that it's currently not possible to start >> emacs if you're in a directory which contains a file or directory >> called 'emacs'. > > That's not relevant to the message above; the failure related to the > presence of a directory or file named 'emacs' is a bug that will be > solved. Ok, I misinterpreted your question. >> The second problem is that this type of behaviour feels rather >> like something you mentioned earlier: having "." in your PATH, >> which is widely considered a bad idea. > > But that ship has sailed long, long, LONG ago: Emacs was always > looking for its Lisp files in the directory "../lisp" relative to > where it was invoked since about forever. How else can we support > both installed and uninstalled invocations? When Emacs is run > uninstalled, the Lisp files can be anywhere on the system. The only > difference is that now we _also_ look for the *.eln files in a similar > fashion. For clarity, by the directory "where it was invoked" do you mean the arbitrary directory from which the user runs "emacs", or do you mean the directory containing the (real) emacs executable? If you mean the latter, then I don't see a problem. If you mean the former, then... If we are able to successfully establish where the (real) emacs executable is (and your recent patch looked like it achieved this), then surely that can account for the "uninstalled invocations" cases as well? (Because we know where to find all of the uninstalled paths of interest relative to the uninstalled executable.) My only concern is that looking for particular filenames in the user's arbitrary CWD will be prone to false-positives; so if this *is* happening, and there's a better solution at hand, perhaps there's no longer any need to do it. From unknown Sat Jun 21 05:10:37 2025 X-Loop: help-debbugs@gnu.org Subject: bug#44128: [feature/native-comp] Resent-From: Eli Zaretskii Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Fri, 16 Apr 2021 12:21:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 44128 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: To: Phil Sainty Cc: jonas@bernoul.li, 44128@debbugs.gnu.org, akrl@sdf.org Received: via spool by 44128-submit@debbugs.gnu.org id=B44128.161857563422485 (code B ref 44128); Fri, 16 Apr 2021 12:21:01 +0000 Received: (at 44128) by debbugs.gnu.org; 16 Apr 2021 12:20:34 +0000 Received: from localhost ([127.0.0.1]:40223 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1lXNSY-0005qS-U1 for submit@debbugs.gnu.org; Fri, 16 Apr 2021 08:20:34 -0400 Received: from eggs.gnu.org ([209.51.188.92]:33856) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1lXNSU-0005qD-Hj for 44128@debbugs.gnu.org; Fri, 16 Apr 2021 08:20:29 -0400 Received: from fencepost.gnu.org ([2001:470:142:3::e]:38955) by eggs.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1lXNSN-0005hu-Cn; Fri, 16 Apr 2021 08:20:19 -0400 Received: from 84.94.185.95.cable.012.net.il ([84.94.185.95]:3442 helo=home-c4e4a596f7) by fencepost.gnu.org with esmtpsa (TLS1.2:RSA_AES_256_CBC_SHA1:256) (Exim 4.82) (envelope-from ) id 1lXNSM-0003CX-Is; Fri, 16 Apr 2021 08:20:19 -0400 Date: Fri, 16 Apr 2021 15:20:13 +0300 Message-Id: <83v98mwhdu.fsf@gnu.org> From: Eli Zaretskii In-Reply-To: <850ca744-dfdd-f6d5-bae5-5614eb5a3d77@orcon.net.nz> (message from Phil Sainty on Sat, 17 Apr 2021 00:04:12 +1200) References: <87eelri6l8.fsf@bernoul.li> <574a5ce8-59da-6329-3f94-49a94496f7a9@orcon.net.nz> <834kg8yr7u.fsf@gnu.org> <710dd7f3-c058-646d-be97-61aaccc076c0@orcon.net.nz> <83r1jby7su.fsf@gnu.org> <1c7af255-8294-39a3-8a7c-8ec938f81b85@orcon.net.nz> <83mttzy5gm.fsf@gnu.org> <39a1a9f8-7ea5-b476-85b7-6639ace8d7d5@orcon.net.nz> <83y2diwwml.fsf@gnu.org> <850ca744-dfdd-f6d5-bae5-5614eb5a3d77@orcon.net.nz> X-Spam-Score: -0.7 (/) 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.7 (-) > Cc: jonas@bernoul.li, 44128@debbugs.gnu.org, akrl@sdf.org > From: Phil Sainty > Date: Sat, 17 Apr 2021 00:04:12 +1200 > > >> The second problem is that this type of behaviour feels rather > >> like something you mentioned earlier: having "." in your PATH, > >> which is widely considered a bad idea. > > > > But that ship has sailed long, long, LONG ago: Emacs was always > > looking for its Lisp files in the directory "../lisp" relative to > > where it was invoked since about forever. How else can we support > > both installed and uninstalled invocations? When Emacs is run > > uninstalled, the Lisp files can be anywhere on the system. The only > > difference is that now we _also_ look for the *.eln files in a similar > > fashion. > > For clarity, by the directory "where it was invoked" do you mean > the arbitrary directory from which the user runs "emacs", or do > you mean the directory containing the (real) emacs executable? The latter, of course. > If we are able to successfully establish where the (real) emacs > executable is (and your recent patch looked like it achieved this), > then surely that can account for the "uninstalled invocations" > cases as well? No, because if Emacs is invoked as just "emacs" (or, more generally, any string without directory separators), then we don't know whether Emacs was run installed or uninstalled. > My only concern is that looking for particular filenames in the > user's arbitrary CWD will be prone to false-positives; so if this > *is* happening, and there's a better solution at hand, perhaps > there's no longer any need to do it. We never look in CWD, unless it happens to be invocation-directory. From unknown Sat Jun 21 05:10:37 2025 X-Loop: help-debbugs@gnu.org Subject: bug#44128: [feature/native-comp] Resent-From: Phil Sainty Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Fri, 16 Apr 2021 13:00:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 44128 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: To: Eli Zaretskii Cc: jonas@bernoul.li, 44128@debbugs.gnu.org, akrl@sdf.org Received: via spool by 44128-submit@debbugs.gnu.org id=B44128.161857795625935 (code B ref 44128); Fri, 16 Apr 2021 13:00:02 +0000 Received: (at 44128) by debbugs.gnu.org; 16 Apr 2021 12:59:16 +0000 Received: from localhost ([127.0.0.1]:40266 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1lXO40-0006kA-AV for submit@debbugs.gnu.org; Fri, 16 Apr 2021 08:59:16 -0400 Received: from smtp-4.orcon.net.nz ([60.234.4.59]:33829) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1lXO3u-0006jh-Ko for 44128@debbugs.gnu.org; Fri, 16 Apr 2021 08:59:11 -0400 Received: from [101.53.216.162] (port=52946 helo=[192.168.20.103]) by smtp-4.orcon.net.nz with esmtpa (Exim 4.90_1) (envelope-from ) id 1lXO3r-0003Lq-6M; Sat, 17 Apr 2021 00:59:03 +1200 References: <87eelri6l8.fsf@bernoul.li> <574a5ce8-59da-6329-3f94-49a94496f7a9@orcon.net.nz> <834kg8yr7u.fsf@gnu.org> <710dd7f3-c058-646d-be97-61aaccc076c0@orcon.net.nz> <83r1jby7su.fsf@gnu.org> <1c7af255-8294-39a3-8a7c-8ec938f81b85@orcon.net.nz> <83mttzy5gm.fsf@gnu.org> <39a1a9f8-7ea5-b476-85b7-6639ace8d7d5@orcon.net.nz> <83y2diwwml.fsf@gnu.org> <850ca744-dfdd-f6d5-bae5-5614eb5a3d77@orcon.net.nz> <83v98mwhdu.fsf@gnu.org> From: Phil Sainty Message-ID: Date: Sat, 17 Apr 2021 00:59:02 +1200 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:68.0) Gecko/20100101 Thunderbird/68.10.0 MIME-Version: 1.0 In-Reply-To: <83v98mwhdu.fsf@gnu.org> Content-Type: text/plain; charset=utf-8 Content-Language: en-GB Content-Transfer-Encoding: 7bit X-GeoIP: NZ X-Spam_score: -2.9 X-Spam_score_int: -28 X-Spam_bar: -- X-Spam-Score: 2.9 (++) 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: On 17/04/21 12:20 am, Eli Zaretskii wrote: >> For clarity, by the directory "where it was invoked" do you mean >> the arbitrary directory from which the user runs "emacs", or do >> you mean the direct [...] Content analysis details: (2.9 points, 10.0 required) pts rule name description ---- ---------------------- -------------------------------------------------- 3.6 RCVD_IN_SBL_CSS RBL: Received via a relay in Spamhaus SBL-CSS [101.53.216.162 listed in zen.spamhaus.org] 0.0 FREEMAIL_FROM Sender email is commonly abused enduser mail provider (psainty[at]orcon.net.nz) 0.0 SPF_HELO_NONE SPF: HELO does not publish an SPF Record -0.0 SPF_PASS SPF: sender matches SPF record -0.7 RCVD_IN_DNSWL_LOW RBL: Sender listed at https://www.dnswl.org/, low trust [60.234.4.59 listed in list.dnswl.org] -0.0 NICE_REPLY_A Looks like a legit reply (A) 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.9 (+) 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: On 17/04/21 12:20 am, Eli Zaretskii wrote: >> For clarity, by the directory "where it was invoked" do you mean >> the arbitrary directory from which the user runs "emacs", or do >> you mean the direct [...] Content analysis details: (1.9 points, 10.0 required) pts rule name description ---- ---------------------- -------------------------------------------------- -0.7 RCVD_IN_DNSWL_LOW RBL: Sender listed at https://www.dnswl.org/, low trust [60.234.4.59 listed in list.dnswl.org] 3.6 RCVD_IN_SBL_CSS RBL: Received via a relay in Spamhaus SBL-CSS [101.53.216.162 listed in zen.spamhaus.org] 0.0 FREEMAIL_FROM Sender email is commonly abused enduser mail provider (psainty[at]orcon.net.nz) 0.0 SPF_HELO_NONE SPF: HELO does not publish an SPF Record -0.0 SPF_PASS SPF: sender matches SPF record -1.0 MAILING_LIST_MULTI Multiple indicators imply a widely-seen list manager -0.0 NICE_REPLY_A Looks like a legit reply (A) On 17/04/21 12:20 am, Eli Zaretskii wrote: >> For clarity, by the directory "where it was invoked" do you mean >> the arbitrary directory from which the user runs "emacs", or do >> you mean the directory containing the (real) emacs executable? > > The latter, of course. > > We never look in CWD, unless it happens to be invocation-directory. My concerns were all due to a misunderstanding, then. Plus a lack of familiarity with the `invocation-directory' variable, which would have clued me in. FWIW I think that mis-interpreting "where it was invoked" and similar phrases as meaning "where the user ran 'emacs' from" is a particularly easy mistake to make if you don't already know better, so that could be a good thing to habitually write as `invocation-directory' to steer people in the right direction. Sorry for the noise. From unknown Sat Jun 21 05:10:37 2025 X-Loop: help-debbugs@gnu.org Subject: bug#44128: [feature/native-comp] Resent-From: Jonas Bernoulli Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Fri, 16 Apr 2021 13:22:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 44128 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: To: Andrea Corallo , Phil Sainty Cc: 44128@debbugs.gnu.org, eli@gnu.org Received: via spool by 44128-submit@debbugs.gnu.org id=B44128.161857931728037 (code B ref 44128); Fri, 16 Apr 2021 13:22:02 +0000 Received: (at 44128) by debbugs.gnu.org; 16 Apr 2021 13:21:57 +0000 Received: from localhost ([127.0.0.1]:40277 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1lXOQ1-0007I8-I1 for submit@debbugs.gnu.org; Fri, 16 Apr 2021 09:21:57 -0400 Received: from mail.hostpark.net ([212.243.197.30]:44566) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1lXOPw-0007Hu-QP for 44128@debbugs.gnu.org; Fri, 16 Apr 2021 09:21:56 -0400 Received: from localhost (localhost [127.0.0.1]) by mail.hostpark.net (Postfix) with ESMTP id 39221165E2; Fri, 16 Apr 2021 15:21:51 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=bernoul.li; h= content-type:content-type:mime-version:message-id:date:date :references:in-reply-to:subject:subject:from:from:received :received; s=sel2011a; t=1618579309; bh=5xf35vIXXs8a080zZvgeyZQS 5Wlud/bYr7beWQmqX6E=; b=yKpLj/fLKWGMRHXMHTxRTvGueaVvHMb30ZpoT/Th rKGn/MlaG+W1I8Au1KDShMgkVMqc8DX3YbOK5KgtNNuNyagdELZAyDnc2Dmad8Qn Nm0p6eANyN0U/QoMkbnz3e0dDYyD+glBO67YfI/s7tlli0Vpin0qUG0DSXdC6rKP 2oM= X-Virus-Scanned: by Hostpark/NetZone Mailprotection at hostpark.net Received: from mail.hostpark.net ([127.0.0.1]) by localhost (mail0.hostpark.net [127.0.0.1]) (amavisd-new, port 10224) with ESMTP id V_0YgMqMyBqt; Fri, 16 Apr 2021 15:21:49 +0200 (CEST) Received: from customer (localhost [127.0.0.1]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange ECDHE (P-256) server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) by mail.hostpark.net (Postfix) with ESMTPSA id 0B4A9165C4; Fri, 16 Apr 2021 15:21:49 +0200 (CEST) From: Jonas Bernoulli In-Reply-To: References: <87eelri6l8.fsf@bernoul.li> Date: Fri, 16 Apr 2021 15:21:47 +0200 Message-ID: <87k0p2xt3o.fsf@bernoul.li> MIME-Version: 1.0 Content-Type: text/plain X-Spam-Score: -0.7 (/) 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.7 (-) Andrea Corallo writes: > I've pushed 0c1fc9d581 that seams to work for me, please have a try. Unfortunately this still doesn't work (as of f9c1008ced): $ emacs emacs: could not resolve realpath of "emacs": No such file or directory $ which emacs /usr/local/bin/emacs $ ls -l /usr/local/bin/emacs lrwxrwxrwx 1 root staff 55 Apr 16 14:51 /usr/local/bin/emacs -> /home/jonas/git/src/emacs/feature But this works: $ /home/jonas/git/src/emacs/feature/native-comp/src/emacs And so does: $ cat /usr/local/bin/emacs #!/bin/sh /home/jonas/git/src/emacs/feature/native-comp/src/emacs "$@" $ emacs That worked in the past but until now I subsequently ran into errors due to things being undefined including `comp-*' variables and/or completely unrelated things that should not be problem because when using "master" or a release, they are loaded when needed. I cannot be more precise at the moment because back then these issues caused me to give up; and I am just mentioning this because so far it seems like this issues is gone. Jonas From unknown Sat Jun 21 05:10:37 2025 X-Loop: help-debbugs@gnu.org Subject: bug#44128: [feature/native-comp] Resent-From: Eli Zaretskii Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Fri, 16 Apr 2021 15:09:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 44128 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: To: Jonas Bernoulli Cc: psainty@orcon.net.nz, eli@gnu.org, 44128@debbugs.gnu.org, akrl@sdf.org Received: via spool by 44128-submit@debbugs.gnu.org id=B44128.16185857047009 (code B ref 44128); Fri, 16 Apr 2021 15:09:01 +0000 Received: (at 44128) by debbugs.gnu.org; 16 Apr 2021 15:08:24 +0000 Received: from localhost ([127.0.0.1]:41416 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1lXQ4z-0001ot-2X for submit@debbugs.gnu.org; Fri, 16 Apr 2021 11:08:24 -0400 Received: from eggs.gnu.org ([209.51.188.92]:43196) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1lXQ4u-0001oa-Lc for 44128@debbugs.gnu.org; Fri, 16 Apr 2021 11:08:20 -0400 Received: from fencepost.gnu.org ([2001:470:142:3::e]:41864) by eggs.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1lXQ4m-0006mj-JI; Fri, 16 Apr 2021 11:08:08 -0400 Received: from 84.94.185.95.cable.012.net.il ([84.94.185.95]:1795 helo=home-c4e4a596f7) by fencepost.gnu.org with esmtpsa (TLS1.2:RSA_AES_256_CBC_SHA1:256) (Exim 4.82) (envelope-from ) id 1lXQ4l-0000yL-Tu; Fri, 16 Apr 2021 11:08:08 -0400 Date: Fri, 16 Apr 2021 18:08:00 +0300 Message-Id: <83sg3qw9m7.fsf@gnu.org> From: Eli Zaretskii In-Reply-To: <87k0p2xt3o.fsf@bernoul.li> (message from Jonas Bernoulli on Fri, 16 Apr 2021 15:21:47 +0200) References: <87eelri6l8.fsf@bernoul.li> <87k0p2xt3o.fsf@bernoul.li> X-Spam-Score: -0.7 (/) 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.7 (-) > From: Jonas Bernoulli > Date: Fri, 16 Apr 2021 15:21:47 +0200 > Cc: 44128@debbugs.gnu.org, eli@gnu.org > > Andrea Corallo writes: > > > I've pushed 0c1fc9d581 that seams to work for me, please have a try. > > Unfortunately this still doesn't work (as of f9c1008ced): > > $ emacs > emacs: could not resolve realpath of "emacs": No such file or directory > $ which emacs > /usr/local/bin/emacs > $ ls -l /usr/local/bin/emacs > lrwxrwxrwx 1 root staff 55 Apr 16 14:51 /usr/local/bin/emacs -> /home/jonas/git/src/emacs/feature > > But this works: > > $ /home/jonas/git/src/emacs/feature/native-comp/src/emacs > > And so does: > > $ cat /usr/local/bin/emacs > #!/bin/sh > /home/jonas/git/src/emacs/feature/native-comp/src/emacs "$@" > $ emacs Thanks, I think I understand the issues, and I'm working on a fix. From unknown Sat Jun 21 05:10:37 2025 X-Loop: help-debbugs@gnu.org Subject: bug#44128: [feature/native-comp] When invoking a symlink to the 'emacs' binary Emacs fails to start Resent-From: Eli Zaretskii Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sat, 17 Apr 2021 14:00:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 44128 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: To: jonas@bernoul.li, psainty@orcon.net.nz, wilde@sha-bang.de, Dario Gjorgjevski Cc: 44128@debbugs.gnu.org, 47800@debbugs.gnu.org, akrl@sdf.org Received: via spool by 44128-submit@debbugs.gnu.org id=B44128.16186679443567 (code B ref 44128); Sat, 17 Apr 2021 14:00:02 +0000 Received: (at 44128) by debbugs.gnu.org; 17 Apr 2021 13:59:04 +0000 Received: from localhost ([127.0.0.1]:44070 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1lXlTU-0000vN-Ei for submit@debbugs.gnu.org; Sat, 17 Apr 2021 09:59:04 -0400 Received: from eggs.gnu.org ([209.51.188.92]:49046) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1lXlTS-0000uk-VB; Sat, 17 Apr 2021 09:59:03 -0400 Received: from fencepost.gnu.org ([2001:470:142:3::e]:33782) by eggs.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1lXlTL-00037F-7w; Sat, 17 Apr 2021 09:58:55 -0400 Received: from 84.94.185.95.cable.012.net.il ([84.94.185.95]:2431 helo=home-c4e4a596f7) by fencepost.gnu.org with esmtpsa (TLS1.2:RSA_AES_256_CBC_SHA1:256) (Exim 4.82) (envelope-from ) id 1lXlTF-0001m5-R1; Sat, 17 Apr 2021 09:58:52 -0400 Date: Sat, 17 Apr 2021 16:58:40 +0300 Message-Id: <83a6pxvwq7.fsf@gnu.org> From: Eli Zaretskii In-Reply-To: <83sg3qw9m7.fsf@gnu.org> (message from Eli Zaretskii on Fri, 16 Apr 2021 18:08:00 +0300) References: <87eelri6l8.fsf@bernoul.li> <87k0p2xt3o.fsf@bernoul.li> <83sg3qw9m7.fsf@gnu.org> X-Spam-Score: -0.7 (/) 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.7 (-) > Date: Fri, 16 Apr 2021 18:08:00 +0300 > From: Eli Zaretskii > Cc: psainty@orcon.net.nz, akrl@sdf.org, 44128@debbugs.gnu.org, eli@gnu.org > > > From: Jonas Bernoulli > > Date: Fri, 16 Apr 2021 15:21:47 +0200 > > Cc: 44128@debbugs.gnu.org, eli@gnu.org > > > > Andrea Corallo writes: > > > > > I've pushed 0c1fc9d581 that seams to work for me, please have a try. > > > > Unfortunately this still doesn't work (as of f9c1008ced): > > > > $ emacs > > emacs: could not resolve realpath of "emacs": No such file or directory > > $ which emacs > > /usr/local/bin/emacs > > $ ls -l /usr/local/bin/emacs > > lrwxrwxrwx 1 root staff 55 Apr 16 14:51 /usr/local/bin/emacs -> /home/jonas/git/src/emacs/feature > > > > But this works: > > > > $ /home/jonas/git/src/emacs/feature/native-comp/src/emacs > > > > And so does: > > > > $ cat /usr/local/bin/emacs > > #!/bin/sh > > /home/jonas/git/src/emacs/feature/native-comp/src/emacs "$@" > > $ emacs > > Thanks, I think I understand the issues, and I'm working on a fix. Please try the latest native-comp branch. If it still doesn't solve the problem with installing Emacs via symlinks, or if there are some adverse side-effects of the changes I made, please report the details. In a nutshell, Emacs should now decide where to look for its pdumper file and where to look for the *.eln files in a synchronized manner. I hope I got all the varieties of the symlinks involved correctly (but I couldn't test all the possible variants, only some of them). Please be sure to test both installed and uninstalled binaries, and please verify that comp-eln-load-path has the right value after Emacs loads in both cases (the last element of the list should in each case reflect where the *.eln files will be looked for). TIA From unknown Sat Jun 21 05:10:37 2025 X-Loop: help-debbugs@gnu.org Subject: bug#44128: bug#47800: bug#44128: [feature/native-comp] When invoking a symlink to the 'emacs' binary Emacs fails to start Resent-From: Phil Sainty Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sat, 17 Apr 2021 14:14:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 44128 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: To: Eli Zaretskii Cc: jonas@bernoul.li, wilde@sha-bang.de, 47800@debbugs.gnu.org, Dario Gjorgjevski , 44128@debbugs.gnu.org, akrl@sdf.org Received: via spool by 44128-submit@debbugs.gnu.org id=B44128.16186688265056 (code B ref 44128); Sat, 17 Apr 2021 14:14:01 +0000 Received: (at 44128) by debbugs.gnu.org; 17 Apr 2021 14:13:46 +0000 Received: from localhost ([127.0.0.1]:44099 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1lXlhh-0001JP-Sw for submit@debbugs.gnu.org; Sat, 17 Apr 2021 10:13:46 -0400 Received: from smtp-1.orcon.net.nz ([60.234.4.34]:45885) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1lXlhR-0001Iq-1u; Sat, 17 Apr 2021 10:13:44 -0400 Received: from [101.53.216.162] (port=27625 helo=[192.168.20.103]) by smtp-1.orcon.net.nz with esmtpa (Exim 4.90_1) (envelope-from ) id 1lXlhH-0002kl-D4; Sun, 18 Apr 2021 02:13:19 +1200 References: <87eelri6l8.fsf@bernoul.li> <87k0p2xt3o.fsf@bernoul.li> <83sg3qw9m7.fsf@gnu.org> <83a6pxvwq7.fsf@gnu.org> From: Phil Sainty Message-ID: <51b70f75-1e60-7f0f-2614-923bc1b3ba6b@orcon.net.nz> Date: Sun, 18 Apr 2021 02:13:19 +1200 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:68.0) Gecko/20100101 Thunderbird/68.10.0 MIME-Version: 1.0 In-Reply-To: <83a6pxvwq7.fsf@gnu.org> Content-Type: text/plain; charset=utf-8 Content-Language: en-GB Content-Transfer-Encoding: 8bit X-GeoIP: NZ X-Spam_score: -2.9 X-Spam_score_int: -28 X-Spam_bar: -- X-Spam-Score: 0.0 (/) 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.9 (+) 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: On 18/04/21 1:58 am, Eli Zaretskii wrote: > Please try the latest native-comp branch. Unfortunately that didn't compile for me: CC emacs.o emacs.c: In function =?UTF-8?Q?=E2=80=98load=5Fpdump=E2=80=99:?= emacs.c:903:3: error: a label can only be part of a statement and a declaration is not a statement 903 | const char *argv0_base = "emacs"; | ^~~~~ Ma [...] Content analysis details: (1.9 points, 10.0 required) pts rule name description ---- ---------------------- -------------------------------------------------- 3.6 RCVD_IN_SBL_CSS RBL: Received via a relay in Spamhaus SBL-CSS [101.53.216.162 listed in zen.spamhaus.org] -0.7 RCVD_IN_DNSWL_LOW RBL: Sender listed at https://www.dnswl.org/, low trust [60.234.4.34 listed in list.dnswl.org] 0.0 SPF_HELO_NONE SPF: HELO does not publish an SPF Record 0.0 FREEMAIL_FROM Sender email is commonly abused enduser mail provider (psainty[at]orcon.net.nz) -0.0 SPF_PASS SPF: sender matches SPF record -1.0 MAILING_LIST_MULTI Multiple indicators imply a widely-seen list manager -0.0 NICE_REPLY_A Looks like a legit reply (A) On 18/04/21 1:58 am, Eli Zaretskii wrote: > Please try the latest native-comp branch. Unfortunately that didn't compile for me: CC emacs.o emacs.c: In function ‘load_pdump’: emacs.c:903:3: error: a label can only be part of a statement and a declaration is not a statement 903 | const char *argv0_base = "emacs"; | ^~~~~ Makefile:385: recipe for target 'emacs.o' failed make[1]: *** [emacs.o] Error 1 $ gcc --version gcc (Ubuntu 10.1.0-2ubuntu1~18.04) 10.1.0 Copyright (C) 2020 Free Software Foundation, Inc. This is free software; see the source for copying conditions. There is NO warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. My 'configure' result was: Configured for 'x86_64-pc-linux-gnu'. Where should the build process find the source code? . What compiler should emacs be built with? gcc -g3 -O2 Should Emacs use the GNU version of malloc? no (The GNU allocators don't work with this system configuration.) Should Emacs use a relocating allocator for buffers? no Should Emacs use mmap(2) for buffer allocation? no What window system should Emacs use? x11 What toolkit should Emacs use? LUCID Where do we find X Windows header files? Standard dirs Where do we find X Windows libraries? Standard dirs Does Emacs use -lXaw3d? yes Does Emacs use -lXpm? yes Does Emacs use -ljpeg? yes Does Emacs use -ltiff? yes Does Emacs use a gif library? yes -lgif Does Emacs use a png library? yes -lpng16 -lz Does Emacs use -lrsvg-2? yes Does Emacs use cairo? yes Does Emacs use -llcms2? yes Does Emacs use imagemagick? no Does Emacs use native APIs for images? no Does Emacs support sound? no Does Emacs use -lgpm? no Does Emacs use -ldbus? yes Does Emacs use -lgconf? no Does Emacs use GSettings? yes Does Emacs use a file notification library? yes -lglibc (inotify) Does Emacs use access control lists? no Does Emacs use -lselinux? no Does Emacs use -lgnutls? yes Does Emacs use -lxml2? yes Does Emacs use -lfreetype? yes Does Emacs use HarfBuzz? yes Does Emacs use -lm17n-flt? no Does Emacs use -lotf? no Does Emacs use -lxft? no Does Emacs use -lsystemd? no Does Emacs use -ljansson? yes Does Emacs use the GMP library? yes Does Emacs directly use zlib? yes Does Emacs have dynamic modules support? yes Does Emacs use toolkit scroll bars? yes Does Emacs support Xwidgets? no Does Emacs have threading support in lisp? yes Does Emacs support the portable dumper? yes Does Emacs support legacy unexec dumping? no Which dumping strategy does Emacs use? pdumper Does Emacs have native lisp compiler? yes From unknown Sat Jun 21 05:10:37 2025 X-Loop: help-debbugs@gnu.org Subject: bug#44128: bug#47800: bug#44128: [feature/native-comp] When invoking a symlink to the 'emacs' binary Emacs fails to start Resent-From: Eli Zaretskii Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sat, 17 Apr 2021 14:31:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 44128 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: To: Phil Sainty Cc: jonas@bernoul.li, wilde@sha-bang.de, 47800@debbugs.gnu.org, dario.gjorgjevski@gmail.com, 44128@debbugs.gnu.org, akrl@sdf.org Received: via spool by 44128-submit@debbugs.gnu.org id=B44128.16186698166725 (code B ref 44128); Sat, 17 Apr 2021 14:31:02 +0000 Received: (at 44128) by debbugs.gnu.org; 17 Apr 2021 14:30:16 +0000 Received: from localhost ([127.0.0.1]:44128 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1lXlxd-0001kF-5k for submit@debbugs.gnu.org; Sat, 17 Apr 2021 10:30:16 -0400 Received: from eggs.gnu.org ([209.51.188.92]:54650) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1lXlxX-0001ir-PX; Sat, 17 Apr 2021 10:30:08 -0400 Received: from fencepost.gnu.org ([2001:470:142:3::e]:34334) by eggs.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1lXlxR-0005o3-AT; Sat, 17 Apr 2021 10:30:01 -0400 Received: from 84.94.185.95.cable.012.net.il ([84.94.185.95]:4453 helo=home-c4e4a596f7) by fencepost.gnu.org with esmtpsa (TLS1.2:RSA_AES_256_CBC_SHA1:256) (Exim 4.82) (envelope-from ) id 1lXlxP-000591-GM; Sat, 17 Apr 2021 10:30:01 -0400 Date: Sat, 17 Apr 2021 17:29:51 +0300 Message-Id: <8335vpvva8.fsf@gnu.org> From: Eli Zaretskii In-Reply-To: <51b70f75-1e60-7f0f-2614-923bc1b3ba6b@orcon.net.nz> (message from Phil Sainty on Sun, 18 Apr 2021 02:13:19 +1200) References: <87eelri6l8.fsf@bernoul.li> <87k0p2xt3o.fsf@bernoul.li> <83sg3qw9m7.fsf@gnu.org> <83a6pxvwq7.fsf@gnu.org> <51b70f75-1e60-7f0f-2614-923bc1b3ba6b@orcon.net.nz> MIME-version: 1.0 Content-type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Spam-Score: -0.7 (/) 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.7 (-) > Cc: jonas@bernoul.li, wilde@sha-bang.de, > Dario Gjorgjevski , 44128@debbugs.gnu.org, > 47800@debbugs.gnu.org, akrl@sdf.org > From: Phil Sainty > Date: Sun, 18 Apr 2021 02:13:19 +1200 > > CC emacs.o > emacs.c: In function ‘load_pdump’: > emacs.c:903:3: error: a label can only be part of a statement and a declaration is not a statement > 903 | const char *argv0_base = "emacs"; > | ^~~~~ > Makefile:385: recipe for target 'emacs.o' failed > make[1]: *** [emacs.o] Error 1 How about now? From unknown Sat Jun 21 05:10:37 2025 X-Loop: help-debbugs@gnu.org Subject: bug#44128: bug#47800: bug#44128: [feature/native-comp] When invoking a symlink to the 'emacs' binary Emacs fails to start Resent-From: Phil Sainty Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sat, 17 Apr 2021 15:01:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 44128 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: To: Eli Zaretskii Cc: jonas@bernoul.li, wilde@sha-bang.de, 47800@debbugs.gnu.org, dario.gjorgjevski@gmail.com, 44128@debbugs.gnu.org, akrl@sdf.org Received: via spool by 44128-submit@debbugs.gnu.org id=B44128.16186716269424 (code B ref 44128); Sat, 17 Apr 2021 15:01:01 +0000 Received: (at 44128) by debbugs.gnu.org; 17 Apr 2021 15:00:26 +0000 Received: from localhost ([127.0.0.1]:44150 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1lXmQs-0002Rv-48 for submit@debbugs.gnu.org; Sat, 17 Apr 2021 11:00:26 -0400 Received: from smtp-1.orcon.net.nz ([60.234.4.34]:57353) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1lXmQp-0002Rj-7r; Sat, 17 Apr 2021 11:00:23 -0400 Received: from [101.53.216.162] (port=14615 helo=[192.168.20.103]) by smtp-1.orcon.net.nz with esmtpa (Exim 4.90_1) (envelope-from ) id 1lXmQk-0004W5-Bu; Sun, 18 Apr 2021 03:00:18 +1200 References: <87eelri6l8.fsf@bernoul.li> <87k0p2xt3o.fsf@bernoul.li> <83sg3qw9m7.fsf@gnu.org> <83a6pxvwq7.fsf@gnu.org> <51b70f75-1e60-7f0f-2614-923bc1b3ba6b@orcon.net.nz> <8335vpvva8.fsf@gnu.org> From: Phil Sainty Message-ID: <22f456c6-459f-d928-59e3-7616896ffac6@orcon.net.nz> Date: Sun, 18 Apr 2021 03:00:17 +1200 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:68.0) Gecko/20100101 Thunderbird/68.10.0 MIME-Version: 1.0 In-Reply-To: <8335vpvva8.fsf@gnu.org> Content-Type: text/plain; charset=utf-8 Content-Language: en-GB Content-Transfer-Encoding: 8bit X-GeoIP: NZ X-Spam_score: -2.9 X-Spam_score_int: -28 X-Spam_bar: -- X-Spam-Score: 2.9 (++) 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: On 18/04/21 2:29 am, Eli Zaretskii wrote: > How about now? This time it compiled; but with the following warnings, and when I run it from the installed location (whether using the absolute path or a symlink) I get a seg fault / core dump: Content analysis details: (2.9 points, 10.0 required) pts rule name description ---- ---------------------- -------------------------------------------------- 0.0 SPF_HELO_NONE SPF: HELO does not publish an SPF Record 0.0 FREEMAIL_FROM Sender email is commonly abused enduser mail provider (psainty[at]orcon.net.nz) 3.6 RCVD_IN_SBL_CSS RBL: Received via a relay in Spamhaus SBL-CSS [101.53.216.162 listed in zen.spamhaus.org] -0.7 RCVD_IN_DNSWL_LOW RBL: Sender listed at https://www.dnswl.org/, low trust [60.234.4.34 listed in list.dnswl.org] -0.0 SPF_PASS SPF: sender matches SPF record -0.0 NICE_REPLY_A Looks like a legit reply (A) 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.9 (+) 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: On 18/04/21 2:29 am, Eli Zaretskii wrote: > How about now? This time it compiled; but with the following warnings, and when I run it from the installed location (whether using the absolute path or a symlink) I get a seg fault / core dump: Content analysis details: (1.9 points, 10.0 required) pts rule name description ---- ---------------------- -------------------------------------------------- 3.6 RCVD_IN_SBL_CSS RBL: Received via a relay in Spamhaus SBL-CSS [101.53.216.162 listed in zen.spamhaus.org] -0.7 RCVD_IN_DNSWL_LOW RBL: Sender listed at https://www.dnswl.org/, low trust [60.234.4.34 listed in list.dnswl.org] 0.0 SPF_HELO_NONE SPF: HELO does not publish an SPF Record 0.0 FREEMAIL_FROM Sender email is commonly abused enduser mail provider (psainty[at]orcon.net.nz) -0.0 SPF_PASS SPF: sender matches SPF record -1.0 MAILING_LIST_MULTI Multiple indicators imply a widely-seen list manager -0.0 NICE_REPLY_A Looks like a legit reply (A) On 18/04/21 2:29 am, Eli Zaretskii wrote: > How about now? This time it compiled; but with the following warnings, and when I run it from the installed location (whether using the absolute path or a symlink) I get a seg fault / core dump: $ /home/phil/emacs/native-comp/usr/local/bin/emacs --version Segmentation fault (core dumped) Running the uninstalled version works: $ ./src/emacs --version GNU Emacs 28.0.50 Copyright (C) 2021 Free Software Foundation, Inc. GNU Emacs comes with ABSOLUTELY NO WARRANTY. You may redistribute copies of GNU Emacs under the terms of the GNU General Public License. For more information about these matters, see the file named COPYING. -Phil (finished for the night, but can test more tomorrow) CC emacs.o In function ‘load_pdump’, inlined from ‘main’ at emacs.c:1289:5: emacs.c:920:13: warning: argument 1 null where non-null expected [-Wnonnull] 920 | needed += strlen (strip_suffix) - strlen (suffix) + strlen (go_up); | ^~~~~~~~~~~~~~~~~~~~~ In file included from ../lib/string.h:41, from lisp.h:29, from emacs.c:33: emacs.c: In function ‘main’: /usr/include/string.h:384:15: note: in a call to function ‘strlen’ declared here 384 | extern size_t strlen (const char *__s) | ^~~~~~ In file included from /usr/include/stdio.h:862, from ../lib/stdio.h:43, from lisp.h:4731, from emacs.c:33: In function ‘sprintf’, inlined from ‘load_pdump’ at emacs.c:927:3, inlined from ‘main’ at emacs.c:1289:5: /usr/include/x86_64-linux-gnu/bits/stdio2.h:33:10: warning: ‘%s’ directive argument is null [-Wformat-overflow=] 33 | return __builtin___sprintf_chk (__s, __USE_FORTIFY_LEVEL - 1, | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 34 | __bos (__s), __fmt, __va_arg_pack ()); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ From unknown Sat Jun 21 05:10:37 2025 X-Loop: help-debbugs@gnu.org Subject: bug#44128: bug#47800: bug#44128: [feature/native-comp] When invoking a symlink to the 'emacs' binary Emacs fails to start Resent-From: Eli Zaretskii Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sat, 17 Apr 2021 15:13:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 44128 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: To: Phil Sainty Cc: jonas@bernoul.li, wilde@sha-bang.de, 47800@debbugs.gnu.org, dario.gjorgjevski@gmail.com, 44128@debbugs.gnu.org, akrl@sdf.org Received: via spool by 44128-submit@debbugs.gnu.org id=B44128.161867234810501 (code B ref 44128); Sat, 17 Apr 2021 15:13:02 +0000 Received: (at 44128) by debbugs.gnu.org; 17 Apr 2021 15:12:28 +0000 Received: from localhost ([127.0.0.1]:44157 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1lXmcR-0002jE-LC for submit@debbugs.gnu.org; Sat, 17 Apr 2021 11:12:27 -0400 Received: from eggs.gnu.org ([209.51.188.92]:32920) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1lXmcP-0002iy-TG; Sat, 17 Apr 2021 11:12:22 -0400 Received: from fencepost.gnu.org ([2001:470:142:3::e]:34860) by eggs.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1lXmcI-00064k-6O; Sat, 17 Apr 2021 11:12:14 -0400 Received: from 84.94.185.95.cable.012.net.il ([84.94.185.95]:3058 helo=home-c4e4a596f7) by fencepost.gnu.org with esmtpsa (TLS1.2:RSA_AES_256_CBC_SHA1:256) (Exim 4.82) (envelope-from ) id 1lXmcG-0007oW-Ov; Sat, 17 Apr 2021 11:12:13 -0400 Date: Sat, 17 Apr 2021 18:12:04 +0300 Message-Id: <83y2dhuerf.fsf@gnu.org> From: Eli Zaretskii In-Reply-To: <22f456c6-459f-d928-59e3-7616896ffac6@orcon.net.nz> (message from Phil Sainty on Sun, 18 Apr 2021 03:00:17 +1200) References: <87eelri6l8.fsf@bernoul.li> <87k0p2xt3o.fsf@bernoul.li> <83sg3qw9m7.fsf@gnu.org> <83a6pxvwq7.fsf@gnu.org> <51b70f75-1e60-7f0f-2614-923bc1b3ba6b@orcon.net.nz> <8335vpvva8.fsf@gnu.org> <22f456c6-459f-d928-59e3-7616896ffac6@orcon.net.nz> X-Spam-Score: -0.7 (/) 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.7 (-) > Cc: jonas@bernoul.li, wilde@sha-bang.de, 47800@debbugs.gnu.org, > dario.gjorgjevski@gmail.com, 44128@debbugs.gnu.org, akrl@sdf.org > From: Phil Sainty > Date: Sun, 18 Apr 2021 03:00:17 +1200 > > On 18/04/21 2:29 am, Eli Zaretskii wrote: > > How about now? > > This time it compiled; but with the following warnings, and > when I run it from the installed location (whether using the > absolute path or a symlink) I get a seg fault / core dump: Sorry about that. Next try, please. From unknown Sat Jun 21 05:10:37 2025 X-Loop: help-debbugs@gnu.org Subject: bug#44128: bug#47800: bug#44128: [feature/native-comp] When invoking a symlink to the 'emacs' binary Emacs fails to start Resent-From: Dario Gjorgjevski Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sat, 17 Apr 2021 15:40:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 44128 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: To: Eli Zaretskii Cc: jonas@bernoul.li, Phil Sainty , 47800@debbugs.gnu.org, wilde@sha-bang.de, 44128@debbugs.gnu.org, akrl@sdf.org Received: via spool by 44128-submit@debbugs.gnu.org id=B44128.161867397912971 (code B ref 44128); Sat, 17 Apr 2021 15:40:02 +0000 Received: (at 44128) by debbugs.gnu.org; 17 Apr 2021 15:39:39 +0000 Received: from localhost ([127.0.0.1]:44171 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1lXn2o-0003N7-Qk for submit@debbugs.gnu.org; Sat, 17 Apr 2021 11:39:39 -0400 Received: from mail-wm1-f47.google.com ([209.85.128.47]:40884) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1lXn2m-0003Mq-8R; Sat, 17 Apr 2021 11:39:37 -0400 Received: by mail-wm1-f47.google.com with SMTP id y124-20020a1c32820000b029010c93864955so18066263wmy.5; Sat, 17 Apr 2021 08:39:36 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:references:date:in-reply-to:message-id :user-agent:mime-version; bh=QmCqA0EYvYvh6d9SCu/LJWjH1AYlD6qYq2kpgfRsxVg=; b=HQM672q4E/E5VXHsP3neKaGCN4SNNBEf0pJxHvBI4mqMahMzX/H4nuuK8MzPm1I4M1 SB49XhrJdl+a4a5/doPH7RftuLILSCRfgZgWPmPCJ3drKQHKUD0IT0Mn61xKxnSf38R1 yYgzJt53lB6jZNOhja2/5rNsVZoarjb2o2RHWYZhFpy5CLfijZc8qgF+jT1f+WsZFAYM 0zqElRLJrXvDFcispxfwVM1pGYLdmFwRPLh5LLZ++dmygEI6kmtv28JD969l8kcCcu5m yuSnVNh6Ki+mX9QBnNEvbeWWj4U3J3tyeRCXuTA8utWe8VXvw4j1oSVFtd055f8PcwjI kz7w== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:references:date:in-reply-to :message-id:user-agent:mime-version; bh=QmCqA0EYvYvh6d9SCu/LJWjH1AYlD6qYq2kpgfRsxVg=; b=KB/dO+c7kq/bIHyHZhx157qTYZ7GT9ddrDZjDYosfX1koPYez4BTgucFODsp7d6ovG QDlzHCDZCE1ri0X55DbvKvZZY29PKRtSUf1PwkLIjxq76AAVJsEikYEizysuz0DRd8Mi /Ji6ghOFut9NrmmNj0IWfLEtnbUxPbaRGPaCjDw4rbWZqnRQD64i2m2pSr3uVOmd36C8 ADT4aZYwTyeFEpMzgb6aweivEqt1aaVUsBxa1Ee7fxLGW5Q2KDOwU/DDVDLFCNp2Tz6z 98TsBagqjYjgqLMVxJiroPcCM2Q9BAOItfM/QjqXaLUPq//uYlHIu01jW64dIvCDMqou ReMw== X-Gm-Message-State: AOAM531wmKdourQNNmcL24mtE8Ioex+r/uWYh3SNRdpFRsN7BQwpPNEH XhDzkiR4K0bokafUNeS7sBE= X-Google-Smtp-Source: ABdhPJygEvZj5KzeEiqVlwHTu+70EunLqsLMFoN9/rVgbtdIN4IRv+K7fv2B0XszzMKs3zLyx5HIVw== X-Received: by 2002:a7b:c7c8:: with SMTP id z8mr13652043wmk.112.1618673970456; Sat, 17 Apr 2021 08:39:30 -0700 (PDT) Received: from ZALANDO-31298 (p200300e97702ce9f88de2b8d6d20f032.dip0.t-ipconnect.de. [2003:e9:7702:ce9f:88de:2b8d:6d20:f032]) by smtp.gmail.com with ESMTPSA id v7sm15450437wrs.2.2021.04.17.08.39.29 (version=TLS1_2 cipher=ECDHE-ECDSA-CHACHA20-POLY1305 bits=256/256); Sat, 17 Apr 2021 08:39:30 -0700 (PDT) From: Dario Gjorgjevski References: <87eelri6l8.fsf@bernoul.li> <87k0p2xt3o.fsf@bernoul.li> <83sg3qw9m7.fsf@gnu.org> <83a6pxvwq7.fsf@gnu.org> <51b70f75-1e60-7f0f-2614-923bc1b3ba6b@orcon.net.nz> <8335vpvva8.fsf@gnu.org> <22f456c6-459f-d928-59e3-7616896ffac6@orcon.net.nz> <83y2dhuerf.fsf@gnu.org> Date: Sat, 17 Apr 2021 17:39:28 +0200 In-Reply-To: <83y2dhuerf.fsf@gnu.org> (Eli Zaretskii's message of "Sat, 17 Apr 2021 18:12:04 +0300") Message-ID: User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/28.0.50 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain X-Spam-Score: 0.0 (/) 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 (-) > Sorry about that. Next try, please. Hi Eli, The most recent commit, b8d3860, works fine here. (I previously had the same segfault as Phil.) Many thanks for all your work! Best regards, Dario -- $ keyserver=hkps://hkps.pool.sks-keyservers.net $ keyid=744A4F0B4F1C9371 $ gpg --keyserver $keyserver --search-keys $keyid From unknown Sat Jun 21 05:10:37 2025 X-Loop: help-debbugs@gnu.org Subject: bug#44128: bug#47800: bug#44128: [feature/native-comp] When invoking a symlink to the 'emacs' binary Emacs fails to start Resent-From: Eli Zaretskii Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sat, 17 Apr 2021 15:49:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 44128 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: To: Dario Gjorgjevski Cc: jonas@bernoul.li, psainty@orcon.net.nz, 47800@debbugs.gnu.org, wilde@sha-bang.de, 44128@debbugs.gnu.org, akrl@sdf.org Received: via spool by 44128-submit@debbugs.gnu.org id=B44128.161867454113825 (code B ref 44128); Sat, 17 Apr 2021 15:49:02 +0000 Received: (at 44128) by debbugs.gnu.org; 17 Apr 2021 15:49:01 +0000 Received: from localhost ([127.0.0.1]:44182 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1lXnBp-0003ap-Cs for submit@debbugs.gnu.org; Sat, 17 Apr 2021 11:49:01 -0400 Received: from eggs.gnu.org ([209.51.188.92]:37188) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1lXnBl-0003aX-1S; Sat, 17 Apr 2021 11:48:56 -0400 Received: from fencepost.gnu.org ([2001:470:142:3::e]:35387) by eggs.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1lXnBc-00073O-Vo; Sat, 17 Apr 2021 11:48:45 -0400 Received: from 84.94.185.95.cable.012.net.il ([84.94.185.95]:1309 helo=home-c4e4a596f7) by fencepost.gnu.org with esmtpsa (TLS1.2:RSA_AES_256_CBC_SHA1:256) (Exim 4.82) (envelope-from ) id 1lXnBc-0005EI-6u; Sat, 17 Apr 2021 11:48:44 -0400 Date: Sat, 17 Apr 2021 18:48:33 +0300 Message-Id: <83wnt0vrn2.fsf@gnu.org> From: Eli Zaretskii In-Reply-To: (message from Dario Gjorgjevski on Sat, 17 Apr 2021 17:39:28 +0200) References: <87eelri6l8.fsf@bernoul.li> <87k0p2xt3o.fsf@bernoul.li> <83sg3qw9m7.fsf@gnu.org> <83a6pxvwq7.fsf@gnu.org> <51b70f75-1e60-7f0f-2614-923bc1b3ba6b@orcon.net.nz> <8335vpvva8.fsf@gnu.org> <22f456c6-459f-d928-59e3-7616896ffac6@orcon.net.nz> <83y2dhuerf.fsf@gnu.org> X-Spam-Score: -0.7 (/) 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.7 (-) > From: Dario Gjorgjevski > Cc: Phil Sainty , jonas@bernoul.li, > wilde@sha-bang.de, 47800@debbugs.gnu.org, 44128@debbugs.gnu.org, > akrl@sdf.org > Date: Sat, 17 Apr 2021 17:39:28 +0200 > > The most recent commit, b8d3860, works fine here. (I previously had the > same segfault as Phil.) Great, thanks for testing. From unknown Sat Jun 21 05:10:37 2025 X-Loop: help-debbugs@gnu.org Subject: bug#44128: bug#47800: bug#44128: [feature/native-comp] When invoking a symlink to the 'emacs' binary Emacs fails to start Resent-From: wilde@sha-bang.de Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sat, 17 Apr 2021 19:16:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 44128 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: To: Eli Zaretskii Cc: jonas@bernoul.li, psainty@orcon.net.nz, 47800@debbugs.gnu.org, Dario Gjorgjevski , 44128@debbugs.gnu.org, akrl@sdf.org Received: via spool by 44128-submit@debbugs.gnu.org id=B44128.16186869331731 (code B ref 44128); Sat, 17 Apr 2021 19:16:01 +0000 Received: (at 44128) by debbugs.gnu.org; 17 Apr 2021 19:15:33 +0000 Received: from localhost ([127.0.0.1]:44626 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1lXqPh-0000Rk-LM for submit@debbugs.gnu.org; Sat, 17 Apr 2021 15:15:33 -0400 Received: from mail2.sha-bang.de ([78.47.120.114]:50062 helo=mail.sha-bang.de) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1lXqPd-0000RW-OY; Sat, 17 Apr 2021 15:15:29 -0400 Received: from tammy.sha-bang.de (dyndsl-089-166-176-213.ewe-ip-backbone.de [89.166.176.213]) by mail.sha-bang.de (Postfix) with ESMTPSA id 4914E26F; Sat, 17 Apr 2021 21:15:25 +0200 (CEST) Received: by tammy.sha-bang.de (Postfix, from userid 1000) id C36975A79; Sat, 17 Apr 2021 21:15:24 +0200 (CEST) From: wilde@sha-bang.de In-Reply-To: <83wnt0vrn2.fsf@gnu.org> (Eli Zaretskii's message of "Sat, 17 Apr 2021 18:48:33 +0300") References: <87eelri6l8.fsf@bernoul.li> <87k0p2xt3o.fsf@bernoul.li> <83sg3qw9m7.fsf@gnu.org> <83a6pxvwq7.fsf@gnu.org> <51b70f75-1e60-7f0f-2614-923bc1b3ba6b@orcon.net.nz> <8335vpvva8.fsf@gnu.org> <22f456c6-459f-d928-59e3-7616896ffac6@orcon.net.nz> <83y2dhuerf.fsf@gnu.org> <83wnt0vrn2.fsf@gnu.org> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/28.0.50 (berkeley-unix) Date: Sat, 17 Apr 2021 21:15:24 +0200 Message-ID: <877dl0bu43.fsf@tammy.lan.sha-bang.de> MIME-Version: 1.0 Content-Type: text/plain X-Spam-Score: 0.4 (/) 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 wrote: >> From: Dario Gjorgjevski >> Cc: Phil Sainty , jonas@bernoul.li, >> wilde@sha-bang.de, 47800@debbugs.gnu.org, 44128@debbugs.gnu.org, >> akrl@sdf.org >> Date: Sat, 17 Apr 2021 17:39:28 +0200 >> >> The most recent commit, b8d3860, works fine here. (I previously had the >> same segfault as Phil.) > > Great, thanks for testing. I'm very happy to confirm that 75c898e (one past b8d3860) also works as expected on NetBSD 9.1. Thanks a lot for fixing this! From unknown Sat Jun 21 05:10:37 2025 X-Loop: help-debbugs@gnu.org Subject: bug#44128: bug#47800: bug#44128: [feature/native-comp] When invoking a symlink to the 'emacs' binary Emacs fails to start Resent-From: Eli Zaretskii Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sat, 17 Apr 2021 19:20:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 44128 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: To: wilde@sha-bang.de Cc: jonas@bernoul.li, psainty@orcon.net.nz, 47800@debbugs.gnu.org, dario.gjorgjevski@gmail.com, 44128@debbugs.gnu.org, akrl@sdf.org Received: via spool by 44128-submit@debbugs.gnu.org id=B44128.16186871692160 (code B ref 44128); Sat, 17 Apr 2021 19:20:01 +0000 Received: (at 44128) by debbugs.gnu.org; 17 Apr 2021 19:19:29 +0000 Received: from localhost ([127.0.0.1]:44646 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1lXqTV-0000Yg-0Y for submit@debbugs.gnu.org; Sat, 17 Apr 2021 15:19:29 -0400 Received: from eggs.gnu.org ([209.51.188.92]:51752) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1lXqTS-0000YN-UL; Sat, 17 Apr 2021 15:19:23 -0400 Received: from fencepost.gnu.org ([2001:470:142:3::e]:38853) by eggs.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1lXqTN-0001uH-3w; Sat, 17 Apr 2021 15:19:17 -0400 Received: from 84.94.185.95.cable.012.net.il ([84.94.185.95]:2533 helo=home-c4e4a596f7) by fencepost.gnu.org with esmtpsa (TLS1.2:RSA_AES_256_CBC_SHA1:256) (Exim 4.82) (envelope-from ) id 1lXqTJ-00034k-PP; Sat, 17 Apr 2021 15:19:15 -0400 Date: Sat, 17 Apr 2021 22:18:59 +0300 Message-Id: <83h7k4vhwc.fsf@gnu.org> From: Eli Zaretskii In-Reply-To: <877dl0bu43.fsf@tammy.lan.sha-bang.de> (wilde@sha-bang.de) References: <87eelri6l8.fsf@bernoul.li> <87k0p2xt3o.fsf@bernoul.li> <83sg3qw9m7.fsf@gnu.org> <83a6pxvwq7.fsf@gnu.org> <51b70f75-1e60-7f0f-2614-923bc1b3ba6b@orcon.net.nz> <8335vpvva8.fsf@gnu.org> <22f456c6-459f-d928-59e3-7616896ffac6@orcon.net.nz> <83y2dhuerf.fsf@gnu.org> <83wnt0vrn2.fsf@gnu.org> <877dl0bu43.fsf@tammy.lan.sha-bang.de> X-Spam-Score: -0.7 (/) 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.7 (-) > From: wilde@sha-bang.de > Cc: Dario Gjorgjevski , psainty@orcon.net.nz, > jonas@bernoul.li, 47800@debbugs.gnu.org, 44128@debbugs.gnu.org, > akrl@sdf.org > Date: Sat, 17 Apr 2021 21:15:24 +0200 > > Eli Zaretskii wrote: > > >> From: Dario Gjorgjevski > >> Cc: Phil Sainty , jonas@bernoul.li, > >> wilde@sha-bang.de, 47800@debbugs.gnu.org, 44128@debbugs.gnu.org, > >> akrl@sdf.org > >> Date: Sat, 17 Apr 2021 17:39:28 +0200 > >> > >> The most recent commit, b8d3860, works fine here. (I previously had the > >> same segfault as Phil.) > > > > Great, thanks for testing. > > I'm very happy to confirm that 75c898e (one past b8d3860) also works as > expected on NetBSD 9.1. Thanks for testing this. From unknown Sat Jun 21 05:10:37 2025 X-Loop: help-debbugs@gnu.org Subject: bug#44128: bug#47800: bug#44128: [feature/native-comp] When invoking a symlink to the 'emacs' binary Emacs fails to start Resent-From: wilde@sha-bang.de Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sat, 17 Apr 2021 19:33:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 44128 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: To: Eli Zaretskii Cc: jonas@bernoul.li, psainty@orcon.net.nz, 47800@debbugs.gnu.org, dario.gjorgjevski@gmail.com, 44128@debbugs.gnu.org, akrl@sdf.org Received: via spool by 44128-submit@debbugs.gnu.org id=B44128.16186879543520 (code B ref 44128); Sat, 17 Apr 2021 19:33:02 +0000 Received: (at 44128) by debbugs.gnu.org; 17 Apr 2021 19:32:34 +0000 Received: from localhost ([127.0.0.1]:44680 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1lXqgB-0000ud-2u for submit@debbugs.gnu.org; Sat, 17 Apr 2021 15:32:34 -0400 Received: from mail2.sha-bang.de ([78.47.120.114]:50075 helo=mail.sha-bang.de) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1lXqg6-0000uN-2C; Sat, 17 Apr 2021 15:32:29 -0400 Received: from tammy.sha-bang.de (dyndsl-089-166-176-213.ewe-ip-backbone.de [89.166.176.213]) by mail.sha-bang.de (Postfix) with ESMTPSA id 2FE7D26F; Sat, 17 Apr 2021 21:32:24 +0200 (CEST) Received: by tammy.sha-bang.de (Postfix, from userid 1000) id BC6D95A79; Sat, 17 Apr 2021 21:32:23 +0200 (CEST) From: wilde@sha-bang.de In-Reply-To: <83h7k4vhwc.fsf@gnu.org> (Eli Zaretskii's message of "Sat, 17 Apr 2021 22:18:59 +0300") References: <87eelri6l8.fsf@bernoul.li> <87k0p2xt3o.fsf@bernoul.li> <83sg3qw9m7.fsf@gnu.org> <83a6pxvwq7.fsf@gnu.org> <51b70f75-1e60-7f0f-2614-923bc1b3ba6b@orcon.net.nz> <8335vpvva8.fsf@gnu.org> <22f456c6-459f-d928-59e3-7616896ffac6@orcon.net.nz> <83y2dhuerf.fsf@gnu.org> <83wnt0vrn2.fsf@gnu.org> <877dl0bu43.fsf@tammy.lan.sha-bang.de> <83h7k4vhwc.fsf@gnu.org> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/28.0.50 (berkeley-unix) Date: Sat, 17 Apr 2021 21:32:23 +0200 Message-ID: <875z0k7lmg.fsf@tammy.lan.sha-bang.de> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-Spam-Score: 0.4 (/) 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 wrote: >> From: wilde@sha-bang.de >> Cc: Dario Gjorgjevski , psainty@orcon.net.= nz, >> jonas@bernoul.li, 47800@debbugs.gnu.org, 44128@debbugs.gnu.org, >> akrl@sdf.org >> Date: Sat, 17 Apr 2021 21:15:24 +0200 >>=20 >> Eli Zaretskii wrote: >>=20 >> >> From: Dario Gjorgjevski >> >> Cc: Phil Sainty , jonas@bernoul.li, >> >> wilde@sha-bang.de, 47800@debbugs.gnu.org, 44128@debbugs.gnu.org, >> >> akrl@sdf.org >> >> Date: Sat, 17 Apr 2021 17:39:28 +0200 >> >>=20 >> >> The most recent commit, b8d3860, works fine here. (I previously had = the >> >> same segfault as Phil.) >> > >> > Great, thanks for testing. >>=20 >> I'm very happy to confirm that 75c898e (one past b8d3860) also works as >> expected on NetBSD 9.1. > > Thanks for testing this. My pleasure. However, on my test build (for this issue) on GNU/Linux unfortunately I do still see issues: # The situation after setup # (build with --prefix=3D/home/wilde/apps/emacs-native-dev and installed # with make install): % ls -l `which emacs` lrwxrwxrwx 1 wilde wilde 13 Apr 17 21:21 /home/wilde/apps/emacs-native-dev/= bin/emacs -> emacs-28.0.50* % ls -l `which emacs-28.0.50`=20 -rwxr-xr-x 1 wilde wilde 25866768 Apr 17 21:21 /home/wilde/apps/emacs-nativ= e-dev/bin/emacs-28.0.50* # The problem: % emacs=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20 emacs: /home/wilde/apps/emacs-native-dev/libexec/emacs/28.0.50/x86_64-p/hom= e/wilde/apps/emacs-native-dev/libexec/emacs/28.0.50/x86_64-pc-linux-gnu/../= native-lisp/28.0.50-f13b7cda/preloaded/frame-aa2cd9f8-88c2b85c.eln: cannot = open shared object file: No such file or directory 1 wilde@marklar[~/src/stdsrc/emacs-native-comp_BUILD] # What works: % emacs-28.0.50 # =E2=86=92 emacs starts fine. FWIW, The file not found when invoked using the symlink "emasc" is at: /home/wilde/apps/emacs-native-dev/lib/emacs/28.0.50/native-lisp/28.0.50-f13= b7cda/preloaded/frame-aa2cd9f8-88c2b85c.eln cheers sascha From unknown Sat Jun 21 05:10:37 2025 X-Loop: help-debbugs@gnu.org Subject: bug#44128: [feature/native-comp] When invoking a symlink to the 'emacs' binary Emacs fails to start Resent-From: Richard Stallman Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sun, 18 Apr 2021 03:41:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 44128 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: To: Eli Zaretskii Cc: jonas@bernoul.li, psainty@orcon.net.nz, 47800@debbugs.gnu.org, wilde@sha-bang.de, dario.gjorgjevski@gmail.com, 44128@debbugs.gnu.org, akrl@sdf.org Reply-To: rms@gnu.org Received: via spool by 44128-submit@debbugs.gnu.org id=B44128.161871725631887 (code B ref 44128); Sun, 18 Apr 2021 03:41:01 +0000 Received: (at 44128) by debbugs.gnu.org; 18 Apr 2021 03:40:56 +0000 Received: from localhost ([127.0.0.1]:45015 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1lXyIp-0008IE-Ny for submit@debbugs.gnu.org; Sat, 17 Apr 2021 23:40:55 -0400 Received: from eggs.gnu.org ([209.51.188.92]:47780) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1lXyIn-0008Hx-Lw; Sat, 17 Apr 2021 23:40:54 -0400 Received: from fencepost.gnu.org ([2001:470:142:3::e]:45500) by eggs.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1lXyIg-0004XJ-NW; Sat, 17 Apr 2021 23:40:46 -0400 Received: from rms by fencepost.gnu.org with local (Exim 4.82) (envelope-from ) id 1lXyId-00044h-OK; Sat, 17 Apr 2021 23:40:44 -0400 Content-Type: text/plain; charset=Utf-8 From: Richard Stallman In-Reply-To: <83a6pxvwq7.fsf@gnu.org> (message from Eli Zaretskii on Sat, 17 Apr 2021 16:58:40 +0300) References: <87eelri6l8.fsf@bernoul.li> <87k0p2xt3o.fsf@bernoul.li> <83sg3qw9m7.fsf@gnu.org> <83a6pxvwq7.fsf@gnu.org> Message-Id: Date: Sat, 17 Apr 2021 23:40:43 -0400 X-Spam-Score: -0.7 (/) 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.7 (-) [[[ To any NSA and FBI agents reading my email: please consider ]]] [[[ whether defending the US Constitution against all enemies, ]]] [[[ foreign or domestic, requires you to follow Snowden's example. ]]] The version of master that I am running is from Dec 5. I always run it through a symlink. So I think the bug was introduced since then. -- Dr Richard Stallman Chief GNUisance of the GNU Project (https://gnu.org) Founder, Free Software Foundation (https://fsf.org) Internet Hall-of-Famer (https://internethalloffame.org) From unknown Sat Jun 21 05:10:37 2025 X-Loop: help-debbugs@gnu.org Subject: bug#44128: [feature/native-comp] When invoking a symlink to the 'emacs' binary Emacs fails to start Resent-From: Eli Zaretskii Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sun, 18 Apr 2021 07:00:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 44128 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: To: rms@gnu.org Cc: jonas@bernoul.li, psainty@orcon.net.nz, 47800@debbugs.gnu.org, wilde@sha-bang.de, dario.gjorgjevski@gmail.com, 44128@debbugs.gnu.org, akrl@sdf.org Received: via spool by 44128-submit@debbugs.gnu.org id=B44128.161872915819533 (code B ref 44128); Sun, 18 Apr 2021 07:00:02 +0000 Received: (at 44128) by debbugs.gnu.org; 18 Apr 2021 06:59:18 +0000 Received: from localhost ([127.0.0.1]:45178 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1lY1Ok-00054q-Bn for submit@debbugs.gnu.org; Sun, 18 Apr 2021 02:59:18 -0400 Received: from eggs.gnu.org ([209.51.188.92]:37352) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1lY1Of-00054V-0v; Sun, 18 Apr 2021 02:59:09 -0400 Received: from fencepost.gnu.org ([2001:470:142:3::e]:47429) by eggs.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1lY1OX-0002hP-FV; Sun, 18 Apr 2021 02:59:01 -0400 Received: from 84.94.185.95.cable.012.net.il ([84.94.185.95]:1407 helo=home-c4e4a596f7) by fencepost.gnu.org with esmtpsa (TLS1.2:RSA_AES_256_CBC_SHA1:256) (Exim 4.82) (envelope-from ) id 1lY1OI-0004S8-TG; Sun, 18 Apr 2021 02:58:47 -0400 Date: Sun, 18 Apr 2021 09:58:27 +0300 Message-Id: <834kg4ulik.fsf@gnu.org> From: Eli Zaretskii In-Reply-To: (message from Richard Stallman on Sat, 17 Apr 2021 23:40:43 -0400) References: <87eelri6l8.fsf@bernoul.li> <87k0p2xt3o.fsf@bernoul.li> <83sg3qw9m7.fsf@gnu.org> <83a6pxvwq7.fsf@gnu.org> X-Spam-Score: -0.7 (/) 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.7 (-) > From: Richard Stallman > Cc: jonas@bernoul.li, psainty@orcon.net.nz, wilde@sha-bang.de, > dario.gjorgjevski@gmail.com, 44128@debbugs.gnu.org, > 47800@debbugs.gnu.org, akrl@sdf.org > Date: Sat, 17 Apr 2021 23:40:43 -0400 > > The version of master that I am running is from Dec 5. > I always run it through a symlink. > > So I think the bug was introduced since then. You are not running the native-comp branch, that's why you don't see the problem. The problem doesn't exist on the master branch, even not today. From unknown Sat Jun 21 05:10:37 2025 X-Loop: help-debbugs@gnu.org Subject: bug#44128: bug#47800: bug#44128: [feature/native-comp] When invoking a symlink to the 'emacs' binary Emacs fails to start Resent-From: Phil Sainty Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sun, 18 Apr 2021 07:41:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 44128 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: To: Eli Zaretskii Cc: jonas@bernoul.li, wilde@sha-bang.de, 47800@debbugs.gnu.org, dario.gjorgjevski@gmail.com, 44128@debbugs.gnu.org, akrl@sdf.org Received: via spool by 44128-submit@debbugs.gnu.org id=B44128.161873163023375 (code B ref 44128); Sun, 18 Apr 2021 07:41:02 +0000 Received: (at 44128) by debbugs.gnu.org; 18 Apr 2021 07:40:30 +0000 Received: from localhost ([127.0.0.1]:45203 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1lY22f-00064w-PL for submit@debbugs.gnu.org; Sun, 18 Apr 2021 03:40:30 -0400 Received: from smtp-3.orcon.net.nz ([60.234.4.44]:43085) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1lY22d-00064k-WC; Sun, 18 Apr 2021 03:40:28 -0400 Received: from [101.53.216.162] (port=55237 helo=[192.168.20.103]) by smtp-3.orcon.net.nz with esmtpa (Exim 4.90_1) (envelope-from ) id 1lY22W-00032y-Lv; Sun, 18 Apr 2021 19:40:20 +1200 From: Phil Sainty References: <87eelri6l8.fsf@bernoul.li> <87k0p2xt3o.fsf@bernoul.li> <83sg3qw9m7.fsf@gnu.org> <83a6pxvwq7.fsf@gnu.org> <51b70f75-1e60-7f0f-2614-923bc1b3ba6b@orcon.net.nz> <8335vpvva8.fsf@gnu.org> <22f456c6-459f-d928-59e3-7616896ffac6@orcon.net.nz> Message-ID: Date: Sun, 18 Apr 2021 19:40:20 +1200 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:68.0) Gecko/20100101 Thunderbird/68.10.0 MIME-Version: 1.0 In-Reply-To: <22f456c6-459f-d928-59e3-7616896ffac6@orcon.net.nz> Content-Type: text/plain; charset=utf-8 Content-Language: en-GB Content-Transfer-Encoding: 7bit X-GeoIP: NZ X-Spam_score: -2.9 X-Spam_score_int: -28 X-Spam_bar: -- X-Spam-Score: -0.7 (/) 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.7 (-) Thank you Eli, this looks good to me too. I tested with the following set of symlinks: /home/phil/bin/emacs -> /home/phil/emacs/native-comp/usr/local/bin/emacs /home/phil/bin/emacs-native-comp -> /home/phil/emacs/native-comp/usr/local/bin/emacs /home/phil/bin/emacs-28.0.50 -> /home/phil/emacs/native-comp/usr/local/bin/emacs-28.0.50 /home/phil/bin/emacs-native-comp-28.0.50 -> /home/phil/emacs/native-comp/usr/local/bin/emacs-28.0.50 /home/phil/bin/emacs-native-comp-uninstalled -> /home/phil/emacs/native-comp/shallow-repository/src/emacs For each of those symlinks, and also the absolute paths for the link targets, I tested running them from multiple directories. These included the directories of the real binaries, plus two other directories containing a file or sub-directory named 'emacs': drwxrwxr-x 25 phil phil 4096 Mar 28 23:30 /home/phil/emacs -rw-rw-r-- 1 phil phil 0 Apr 18 11:34 /tmp/emacs In each test I ran --batch --eval "(prin1 comp-eln-load-path)" $ (for dir in / /home /home/phil /home/phil/bin /home/phil/emacs /home/phil/emacs/native-comp/usr/local/bin /home/phil/emacs/native-comp/shallow-repository/src /tmp; do echo; echo $dir; cd $dir; for E in emacs emacs-native-comp emacs-28.0.50 emacs-native-comp-28.0.50 /home/phil/emacs/native-comp/usr/local/bin/emacs /home/phil/emacs/native-comp/usr/local/bin/emacs-28.0.50 emacs-native-comp-uninstalled /home/phil/emacs/native-comp/shallow-repository/src/emacs; do $E --batch --eval "(prin1 comp-eln-load-path)"; echo " -- $E"; done; done) Nothing failed, and for every directory the output was the same: ("/home/phil/.emacs.d/eln-cache/" "/home/phil/emacs/native-comp/usr/local/lib/emacs/28.0.50/native-lisp/") -- emacs ("/home/phil/.emacs.d/eln-cache/" "/home/phil/emacs/native-comp/usr/local/lib/emacs/28.0.50/native-lisp/") -- emacs-native-comp ("/home/phil/.emacs.d/eln-cache/" "/home/phil/emacs/native-comp/usr/local/lib/emacs/28.0.50/native-lisp/") -- emacs-28.0.50 ("/home/phil/.emacs.d/eln-cache/" "/home/phil/emacs/native-comp/usr/local/lib/emacs/28.0.50/native-lisp/") -- emacs-native-comp-28.0.50 ("/home/phil/.emacs.d/eln-cache/" "/home/phil/emacs/native-comp/usr/local/lib/emacs/28.0.50/native-lisp/") -- /home/phil/emacs/native-comp/usr/local/bin/emacs ("/home/phil/.emacs.d/eln-cache/" "/home/phil/emacs/native-comp/usr/local/lib/emacs/28.0.50/native-lisp/") -- /home/phil/emacs/native-comp/usr/local/bin/emacs-28.0.50 ("/home/phil/.emacs.d/eln-cache/" "/home/phil/emacs/native-comp/shallow-repository/native-lisp/") -- emacs-native-comp-uninstalled ("/home/phil/.emacs.d/eln-cache/" "/home/phil/emacs/native-comp/shallow-repository/native-lisp/") -- /home/phil/emacs/native-comp/shallow-repository/src/emacs -Phil From unknown Sat Jun 21 05:10:37 2025 X-Loop: help-debbugs@gnu.org Subject: bug#44128: bug#47800: bug#44128: [feature/native-comp] When invoking a symlink to the 'emacs' binary Emacs fails to start Resent-From: Eli Zaretskii Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sun, 18 Apr 2021 08:11:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 44128 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: To: Phil Sainty Cc: jonas@bernoul.li, wilde@sha-bang.de, 47800@debbugs.gnu.org, dario.gjorgjevski@gmail.com, 44128@debbugs.gnu.org, akrl@sdf.org Received: via spool by 44128-submit@debbugs.gnu.org id=B44128.161873342926105 (code B ref 44128); Sun, 18 Apr 2021 08:11:01 +0000 Received: (at 44128) by debbugs.gnu.org; 18 Apr 2021 08:10:29 +0000 Received: from localhost ([127.0.0.1]:45225 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1lY2Vd-0006mu-8D for submit@debbugs.gnu.org; Sun, 18 Apr 2021 04:10:29 -0400 Received: from eggs.gnu.org ([209.51.188.92]:43730) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1lY2Vb-0006md-U7; Sun, 18 Apr 2021 04:10:24 -0400 Received: from fencepost.gnu.org ([2001:470:142:3::e]:47875) by eggs.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1lY2VU-0002rS-Lv; Sun, 18 Apr 2021 04:10:16 -0400 Received: from 84.94.185.95.cable.012.net.il ([84.94.185.95]:1802 helo=home-c4e4a596f7) by fencepost.gnu.org with esmtpsa (TLS1.2:RSA_AES_256_CBC_SHA1:256) (Exim 4.82) (envelope-from ) id 1lY2VT-0004IE-Od; Sun, 18 Apr 2021 04:10:16 -0400 Date: Sun, 18 Apr 2021 11:09:56 +0300 Message-Id: <83y2dgt3mz.fsf@gnu.org> From: Eli Zaretskii In-Reply-To: (message from Phil Sainty on Sun, 18 Apr 2021 19:40:20 +1200) References: <87eelri6l8.fsf@bernoul.li> <87k0p2xt3o.fsf@bernoul.li> <83sg3qw9m7.fsf@gnu.org> <83a6pxvwq7.fsf@gnu.org> <51b70f75-1e60-7f0f-2614-923bc1b3ba6b@orcon.net.nz> <8335vpvva8.fsf@gnu.org> <22f456c6-459f-d928-59e3-7616896ffac6@orcon.net.nz> X-Spam-Score: -0.7 (/) 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.7 (-) > From: Phil Sainty > Cc: jonas@bernoul.li, wilde@sha-bang.de, 47800@debbugs.gnu.org, > dario.gjorgjevski@gmail.com, 44128@debbugs.gnu.org, akrl@sdf.org > Date: Sun, 18 Apr 2021 19:40:20 +1200 > > $ (for dir in / /home /home/phil /home/phil/bin /home/phil/emacs /home/phil/emacs/native-comp/usr/local/bin /home/phil/emacs/native-comp/shallow-repository/src /tmp; do echo; echo $dir; cd $dir; for E in emacs emacs-native-comp emacs-28.0.50 emacs-native-comp-28.0.50 /home/phil/emacs/native-comp/usr/local/bin/emacs /home/phil/emacs/native-comp/usr/local/bin/emacs-28.0.50 emacs-native-comp-uninstalled /home/phil/emacs/native-comp/shallow-repository/src/emacs; do $E --batch --eval "(prin1 comp-eln-load-path)"; echo " -- $E"; done; done) > > Nothing failed, and for every directory the output was the same: > > ("/home/phil/.emacs.d/eln-cache/" "/home/phil/emacs/native-comp/usr/local/lib/emacs/28.0.50/native-lisp/") -- emacs > ("/home/phil/.emacs.d/eln-cache/" "/home/phil/emacs/native-comp/usr/local/lib/emacs/28.0.50/native-lisp/") -- emacs-native-comp > ("/home/phil/.emacs.d/eln-cache/" "/home/phil/emacs/native-comp/usr/local/lib/emacs/28.0.50/native-lisp/") -- emacs-28.0.50 > ("/home/phil/.emacs.d/eln-cache/" "/home/phil/emacs/native-comp/usr/local/lib/emacs/28.0.50/native-lisp/") -- emacs-native-comp-28.0.50 > ("/home/phil/.emacs.d/eln-cache/" "/home/phil/emacs/native-comp/usr/local/lib/emacs/28.0.50/native-lisp/") -- /home/phil/emacs/native-comp/usr/local/bin/emacs > ("/home/phil/.emacs.d/eln-cache/" "/home/phil/emacs/native-comp/usr/local/lib/emacs/28.0.50/native-lisp/") -- /home/phil/emacs/native-comp/usr/local/bin/emacs-28.0.50 > ("/home/phil/.emacs.d/eln-cache/" "/home/phil/emacs/native-comp/shallow-repository/native-lisp/") -- emacs-native-comp-uninstalled > ("/home/phil/.emacs.d/eln-cache/" "/home/phil/emacs/native-comp/shallow-repository/native-lisp/") -- /home/phil/emacs/native-comp/shallow-repository/src/emacs Thanks for testing, this looks very promising. From unknown Sat Jun 21 05:10:37 2025 X-Loop: help-debbugs@gnu.org Subject: bug#44128: bug#47800: bug#44128: [feature/native-comp] When invoking a symlink to the 'emacs' binary Emacs fails to start Resent-From: Eli Zaretskii Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sun, 18 Apr 2021 08:44:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 44128 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: To: wilde@sha-bang.de Cc: jonas@bernoul.li, psainty@orcon.net.nz, 47800@debbugs.gnu.org, dario.gjorgjevski@gmail.com, 44128@debbugs.gnu.org, akrl@sdf.org Received: via spool by 44128-submit@debbugs.gnu.org id=B44128.16187353895010 (code B ref 44128); Sun, 18 Apr 2021 08:44:02 +0000 Received: (at 44128) by debbugs.gnu.org; 18 Apr 2021 08:43:09 +0000 Received: from localhost ([127.0.0.1]:45264 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1lY31F-0001If-5X for submit@debbugs.gnu.org; Sun, 18 Apr 2021 04:43:09 -0400 Received: from eggs.gnu.org ([209.51.188.92]:47614) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1lY31C-0001I8-Up; Sun, 18 Apr 2021 04:43:03 -0400 Received: from fencepost.gnu.org ([2001:470:142:3::e]:48277) by eggs.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1lY314-00067x-W8; Sun, 18 Apr 2021 04:42:55 -0400 Received: from 84.94.185.95.cable.012.net.il ([84.94.185.95]:3852 helo=home-c4e4a596f7) by fencepost.gnu.org with esmtpsa (TLS1.2:RSA_AES_256_CBC_SHA1:256) (Exim 4.82) (envelope-from ) id 1lY313-0007pP-T6; Sun, 18 Apr 2021 04:42:54 -0400 Date: Sun, 18 Apr 2021 11:42:32 +0300 Message-Id: <83wnt0t24n.fsf@gnu.org> From: Eli Zaretskii In-Reply-To: <875z0k7lmg.fsf@tammy.lan.sha-bang.de> (wilde@sha-bang.de) References: <87eelri6l8.fsf@bernoul.li> <87k0p2xt3o.fsf@bernoul.li> <83sg3qw9m7.fsf@gnu.org> <83a6pxvwq7.fsf@gnu.org> <51b70f75-1e60-7f0f-2614-923bc1b3ba6b@orcon.net.nz> <8335vpvva8.fsf@gnu.org> <22f456c6-459f-d928-59e3-7616896ffac6@orcon.net.nz> <83y2dhuerf.fsf@gnu.org> <83wnt0vrn2.fsf@gnu.org> <877dl0bu43.fsf@tammy.lan.sha-bang.de> <83h7k4vhwc.fsf@gnu.org> <875z0k7lmg.fsf@tammy.lan.sha-bang.de> X-Spam-Score: -0.7 (/) 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.7 (-) > From: wilde@sha-bang.de > Cc: dario.gjorgjevski@gmail.com, psainty@orcon.net.nz, jonas@bernoul.li, > 47800@debbugs.gnu.org, 44128@debbugs.gnu.org, akrl@sdf.org > Date: Sat, 17 Apr 2021 21:32:23 +0200 > > % ls -l `which emacs` > lrwxrwxrwx 1 wilde wilde 13 Apr 17 21:21 /home/wilde/apps/emacs-native-dev/bin/emacs -> emacs-28.0.50* > % ls -l `which emacs-28.0.50` > -rwxr-xr-x 1 wilde wilde 25866768 Apr 17 21:21 /home/wilde/apps/emacs-native-dev/bin/emacs-28.0.50* > > # The problem: > > % emacs > emacs: /home/wilde/apps/emacs-native-dev/libexec/emacs/28.0.50/x86_64-p/home/wilde/apps/emacs-native-dev/libexec/emacs/28.0.50/x86_64-pc-linux-gnu/../native-lisp/28.0.50-f13b7cda/preloaded/frame-aa2cd9f8-88c2b85c.eln: cannot open shared object file: No such file or directory There's something here that I'm missing. The file name it tries is clearly a result of some invalid concatenation of string, but I don't quite see how that could happen. Can you step through the code with GDB? If yes, I will ask to show values of some variables, and that will hopefully pinpoint the buggy code. Thanks. From unknown Sat Jun 21 05:10:37 2025 X-Loop: help-debbugs@gnu.org Subject: bug#44128: bug#47800: bug#44128: [feature/native-comp] When invoking a symlink to the 'emacs' binary Emacs fails to start Resent-From: Eli Zaretskii Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sun, 18 Apr 2021 09:03:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 44128 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: To: wilde@sha-bang.de Cc: jonas@bernoul.li, psainty@orcon.net.nz, 47800@debbugs.gnu.org, dario.gjorgjevski@gmail.com, 44128@debbugs.gnu.org, akrl@sdf.org Received: via spool by 44128-submit@debbugs.gnu.org id=B44128.16187365446842 (code B ref 44128); Sun, 18 Apr 2021 09:03:01 +0000 Received: (at 44128) by debbugs.gnu.org; 18 Apr 2021 09:02:24 +0000 Received: from localhost ([127.0.0.1]:45286 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1lY3Jv-0001mH-PS for submit@debbugs.gnu.org; Sun, 18 Apr 2021 05:02:24 -0400 Received: from eggs.gnu.org ([209.51.188.92]:49872) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1lY3Ju-0001m2-H1; Sun, 18 Apr 2021 05:02:23 -0400 Received: from fencepost.gnu.org ([2001:470:142:3::e]:48380) by eggs.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1lY3Jn-0000tG-CD; Sun, 18 Apr 2021 05:02:15 -0400 Received: from 84.94.185.95.cable.012.net.il ([84.94.185.95]:1076 helo=home-c4e4a596f7) by fencepost.gnu.org with esmtpsa (TLS1.2:RSA_AES_256_CBC_SHA1:256) (Exim 4.82) (envelope-from ) id 1lY3Jm-0001zX-Ay; Sun, 18 Apr 2021 05:02:14 -0400 Date: Sun, 18 Apr 2021 12:01:54 +0300 Message-Id: <83v98kt18d.fsf@gnu.org> From: Eli Zaretskii In-Reply-To: <83wnt0t24n.fsf@gnu.org> (message from Eli Zaretskii on Sun, 18 Apr 2021 11:42:32 +0300) References: <87eelri6l8.fsf@bernoul.li> <87k0p2xt3o.fsf@bernoul.li> <83sg3qw9m7.fsf@gnu.org> <83a6pxvwq7.fsf@gnu.org> <51b70f75-1e60-7f0f-2614-923bc1b3ba6b@orcon.net.nz> <8335vpvva8.fsf@gnu.org> <22f456c6-459f-d928-59e3-7616896ffac6@orcon.net.nz> <83y2dhuerf.fsf@gnu.org> <83wnt0vrn2.fsf@gnu.org> <877dl0bu43.fsf@tammy.lan.sha-bang.de> <83h7k4vhwc.fsf@gnu.org> <875z0k7lmg.fsf@tammy.lan.sha-bang.de> <83wnt0t24n.fsf@gnu.org> X-Spam-Score: -0.7 (/) 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.7 (-) > Date: Sun, 18 Apr 2021 11:42:32 +0300 > From: Eli Zaretskii > Cc: jonas@bernoul.li, psainty@orcon.net.nz, 47800@debbugs.gnu.org, > dario.gjorgjevski@gmail.com, 44128@debbugs.gnu.org, akrl@sdf.org > > Can you step through the code with GDB? If yes, I will ask to show > values of some variables, and that will hopefully pinpoint the buggy > code. But before you do anything else, please try the latest branch, where I fixed some thinko. Thanks. From unknown Sat Jun 21 05:10:37 2025 X-Loop: help-debbugs@gnu.org Subject: bug#44128: bug#47800: bug#44128: [feature/native-comp] When invoking a symlink to the 'emacs' binary Emacs fails to start Resent-From: wilde@sha-bang.de Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sun, 18 Apr 2021 12:25:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 44128 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: To: Eli Zaretskii Cc: jonas@bernoul.li, psainty@orcon.net.nz, 47800@debbugs.gnu.org, dario.gjorgjevski@gmail.com, 44128@debbugs.gnu.org, akrl@sdf.org Received: via spool by 44128-submit@debbugs.gnu.org id=B44128.161874866027472 (code B ref 44128); Sun, 18 Apr 2021 12:25:02 +0000 Received: (at 44128) by debbugs.gnu.org; 18 Apr 2021 12:24:20 +0000 Received: from localhost ([127.0.0.1]:45654 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1lY6TL-000790-RC for submit@debbugs.gnu.org; Sun, 18 Apr 2021 08:24:20 -0400 Received: from mail2.sha-bang.de ([78.47.120.114]:50127 helo=mail.sha-bang.de) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1lY6TK-00078p-7U; Sun, 18 Apr 2021 08:24:19 -0400 Received: from tammy.sha-bang.de (dyndsl-188-118-148-253.ewe-ip-backbone.de [188.118.148.253]) by mail.sha-bang.de (Postfix) with ESMTPSA id 6C88726F; Sun, 18 Apr 2021 14:24:16 +0200 (CEST) Received: by tammy.sha-bang.de (Postfix, from userid 1000) id CB8C45A79; Sun, 18 Apr 2021 14:24:15 +0200 (CEST) From: wilde@sha-bang.de In-Reply-To: <83v98kt18d.fsf@gnu.org> (Eli Zaretskii's message of "Sun, 18 Apr 2021 12:01:54 +0300") References: <87eelri6l8.fsf@bernoul.li> <87k0p2xt3o.fsf@bernoul.li> <83sg3qw9m7.fsf@gnu.org> <83a6pxvwq7.fsf@gnu.org> <51b70f75-1e60-7f0f-2614-923bc1b3ba6b@orcon.net.nz> <8335vpvva8.fsf@gnu.org> <22f456c6-459f-d928-59e3-7616896ffac6@orcon.net.nz> <83y2dhuerf.fsf@gnu.org> <83wnt0vrn2.fsf@gnu.org> <877dl0bu43.fsf@tammy.lan.sha-bang.de> <83h7k4vhwc.fsf@gnu.org> <875z0k7lmg.fsf@tammy.lan.sha-bang.de> <83wnt0t24n.fsf@gnu.org> <83v98kt18d.fsf@gnu.org> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/28.0.50 (berkeley-unix) Date: Sun, 18 Apr 2021 14:24:15 +0200 Message-ID: <87lf9f4w7k.fsf@tammy.lan.sha-bang.de> MIME-Version: 1.0 Content-Type: text/plain X-Spam-Score: 0.4 (/) 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 wrote: >> Date: Sun, 18 Apr 2021 11:42:32 +0300 >> From: Eli Zaretskii >> Cc: jonas@bernoul.li, psainty@orcon.net.nz, 47800@debbugs.gnu.org, >> dario.gjorgjevski@gmail.com, 44128@debbugs.gnu.org, akrl@sdf.org >> >> Can you step through the code with GDB? If yes, I will ask to show >> values of some variables, and that will hopefully pinpoint the buggy >> code. > > But before you do anything else, please try the latest branch, where I > fixed some thinko. That latest change fixed it for me. Once again, may thanks for your work! cheers sascha From unknown Sat Jun 21 05:10:37 2025 X-Loop: help-debbugs@gnu.org Subject: bug#44128: bug#47800: bug#44128: [feature/native-comp] When invoking a symlink to the 'emacs' binary Emacs fails to start Resent-From: Eli Zaretskii Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sun, 18 Apr 2021 13:02:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 44128 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: To: wilde@sha-bang.de Cc: jonas@bernoul.li, psainty@orcon.net.nz, 47800@debbugs.gnu.org, dario.gjorgjevski@gmail.com, 44128@debbugs.gnu.org, akrl@sdf.org Received: via spool by 44128-submit@debbugs.gnu.org id=B44128.161875088530901 (code B ref 44128); Sun, 18 Apr 2021 13:02:01 +0000 Received: (at 44128) by debbugs.gnu.org; 18 Apr 2021 13:01:25 +0000 Received: from localhost ([127.0.0.1]:45676 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1lY731-000826-Tb for submit@debbugs.gnu.org; Sun, 18 Apr 2021 09:01:25 -0400 Received: from eggs.gnu.org ([209.51.188.92]:58710) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1lY730-00081q-L8; Sun, 18 Apr 2021 09:01:11 -0400 Received: from fencepost.gnu.org ([2001:470:142:3::e]:50958) by eggs.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1lY72s-0004S1-PR; Sun, 18 Apr 2021 09:01:02 -0400 Received: from 84.94.185.95.cable.012.net.il ([84.94.185.95]:4245 helo=home-c4e4a596f7) by fencepost.gnu.org with esmtpsa (TLS1.2:RSA_AES_256_CBC_SHA1:256) (Exim 4.82) (envelope-from ) id 1lY72r-0008NE-1W; Sun, 18 Apr 2021 09:01:02 -0400 Date: Sun, 18 Apr 2021 16:00:39 +0300 Message-Id: <83pmyru4qw.fsf@gnu.org> From: Eli Zaretskii In-Reply-To: <87lf9f4w7k.fsf@tammy.lan.sha-bang.de> (wilde@sha-bang.de) References: <87eelri6l8.fsf@bernoul.li> <87k0p2xt3o.fsf@bernoul.li> <83sg3qw9m7.fsf@gnu.org> <83a6pxvwq7.fsf@gnu.org> <51b70f75-1e60-7f0f-2614-923bc1b3ba6b@orcon.net.nz> <8335vpvva8.fsf@gnu.org> <22f456c6-459f-d928-59e3-7616896ffac6@orcon.net.nz> <83y2dhuerf.fsf@gnu.org> <83wnt0vrn2.fsf@gnu.org> <877dl0bu43.fsf@tammy.lan.sha-bang.de> <83h7k4vhwc.fsf@gnu.org> <875z0k7lmg.fsf@tammy.lan.sha-bang.de> <83wnt0t24n.fsf@gnu.org> <83v98kt18d.fsf@gnu.org> <87lf9f4w7k.fsf@tammy.lan.sha-bang.de> X-Spam-Score: -0.7 (/) 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 (-) > From: wilde@sha-bang.de > Cc: jonas@bernoul.li, psainty@orcon.net.nz, 47800@debbugs.gnu.org, > dario.gjorgjevski@gmail.com, 44128@debbugs.gnu.org, akrl@sdf.org > Date: Sun, 18 Apr 2021 14:24:15 +0200 > > > But before you do anything else, please try the latest branch, where I > > fixed some thinko. > > That latest change fixed it for me. Great, then I think we are good. I just hope Jonas will be able to test in his configuration as well. From unknown Sat Jun 21 05:10:37 2025 X-Loop: help-debbugs@gnu.org Subject: bug#44128: symlink problem after applying commit 0c1fc9d Resent-From: Kent =?UTF-8?Q?Engstr=C3=B6m?= Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sun, 18 Apr 2021 15:59:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 44128 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: To: 44128@debbugs.gnu.org Received: via spool by 44128-submit@debbugs.gnu.org id=B44128.161876153716715 (code B ref 44128); Sun, 18 Apr 2021 15:59:01 +0000 Received: (at 44128) by debbugs.gnu.org; 18 Apr 2021 15:58:57 +0000 Received: from localhost ([127.0.0.1]:47516 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1lY9p2-0004LW-Dn for submit@debbugs.gnu.org; Sun, 18 Apr 2021 11:58:57 -0400 Received: from mail.nsc.liu.se ([130.236.101.50]:56522) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1lY245-00067E-NH for 44128@debbugs.gnu.org; Sun, 18 Apr 2021 03:41:58 -0400 Received: from ceres.nsc.liu.se (ceres.nsc.liu.se [130.236.101.236]) (using TLSv1.2 with cipher ADH-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.nsc.liu.se (Postfix) with ESMTPS id 90C8268003 for <44128@debbugs.gnu.org>; Sun, 18 Apr 2021 09:41:55 +0200 (CEST) Received: from ceres.nsc.liu.se (localhost [IPv6:::1]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange ECDHE (P-256) server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) by ceres.nsc.liu.se (Postfix) with ESMTPS id 73433C0946 for <44128@debbugs.gnu.org>; Sun, 18 Apr 2021 09:41:55 +0200 (CEST) From: Kent =?UTF-8?Q?Engstr=C3=B6m?= In-Reply-To: ("Kent =?UTF-8?Q?Engstr=C3=B6m?="'s message of "Thu, 15 Apr 2021 12:09:31 +0200") References: User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/27.1 (gnu/linux) Date: Sun, 18 Apr 2021 09:41:55 +0200 Message-ID: MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-Spam-Score: -1.6 (-) X-Mailman-Approved-At: Sun, 18 Apr 2021 11:58:55 -0400 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: -2.6 (--) Kent Engstr=C3=B6m writes: > I use a setup for testing native-comp, where I install to prefix > /opt/emacs/native-comp and then symlink as below > > /opt/emacs =E2=96=B6 ls -l current > lrwxrwxrwx. 1 kent kent 11 Apr 15 11:08 current -> native-comp > > as I have /opt/emacs/current/bin on my $PATH. > > After updating to 0c1fc9d, "* Fix native-comp startup for symliked > binary (bug#44128)" my emacs startup fails with > > emacs: could not resolve realpath of "emacs": No such file or directory > > Checking out the previous commit b064ddd, "Merge remote-tracking branch > 'savannah/master' into native-comp" and doing a "make install" > gives me a working emacs binary again. Just a quick followup: after updating to commit 75c898e, starting emacs works again for my setup above. / kent From unknown Sat Jun 21 05:10:37 2025 X-Loop: help-debbugs@gnu.org Subject: bug#44128: symlink problem after applying commit 0c1fc9d Resent-From: Eli Zaretskii Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sun, 18 Apr 2021 16:06:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 44128 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: To: Kent =?UTF-8?Q?Engstr=C3=B6m?= Cc: 44128@debbugs.gnu.org Received: via spool by 44128-submit@debbugs.gnu.org id=B44128.161876190917399 (code B ref 44128); Sun, 18 Apr 2021 16:06:02 +0000 Received: (at 44128) by debbugs.gnu.org; 18 Apr 2021 16:05:09 +0000 Received: from localhost ([127.0.0.1]:47524 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1lY9v3-0004WZ-5Q for submit@debbugs.gnu.org; Sun, 18 Apr 2021 12:05:09 -0400 Received: from eggs.gnu.org ([209.51.188.92]:55106) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1lY9v1-0004WK-HN for 44128@debbugs.gnu.org; Sun, 18 Apr 2021 12:05:07 -0400 Received: from fencepost.gnu.org ([2001:470:142:3::e]:52501) by eggs.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1lY9uu-00022e-Uz; Sun, 18 Apr 2021 12:05:01 -0400 Received: from 84.94.185.95.cable.012.net.il ([84.94.185.95]:4320 helo=home-c4e4a596f7) by fencepost.gnu.org with esmtpsa (TLS1.2:RSA_AES_256_CBC_SHA1:256) (Exim 4.82) (envelope-from ) id 1lY9uu-0007Cg-DD; Sun, 18 Apr 2021 12:05:00 -0400 Date: Sun, 18 Apr 2021 19:04:41 +0300 Message-Id: <83im4jtw86.fsf@gnu.org> From: Eli Zaretskii In-Reply-To: (message from Kent =?UTF-8?Q?Engstr=C3=B6m?= on Sun, 18 Apr 2021 09:41:55 +0200) References: MIME-version: 1.0 Content-type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Spam-Score: -0.7 (/) 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.7 (-) > From: Kent Engström > Date: Sun, 18 Apr 2021 09:41:55 +0200 > > Kent Engström writes: > > I use a setup for testing native-comp, where I install to prefix > > /opt/emacs/native-comp and then symlink as below > > > > /opt/emacs ▶ ls -l current > > lrwxrwxrwx. 1 kent kent 11 Apr 15 11:08 current -> native-comp > > > > as I have /opt/emacs/current/bin on my $PATH. > > > > After updating to 0c1fc9d, "* Fix native-comp startup for symliked > > binary (bug#44128)" my emacs startup fails with > > > > emacs: could not resolve realpath of "emacs": No such file or directory > > > > Checking out the previous commit b064ddd, "Merge remote-tracking branch > > 'savannah/master' into native-comp" and doing a "make install" > > gives me a working emacs binary again. > > Just a quick followup: after updating to commit 75c898e, starting emacs > works again for my setup above. Great, thanks for testing. From debbugs-submit-bounces@debbugs.gnu.org Sun Apr 18 12:59:32 2021 Received: (at control) by debbugs.gnu.org; 18 Apr 2021 16:59:32 +0000 Received: from localhost ([127.0.0.1]:47632 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1lYAlf-0001lR-S3 for submit@debbugs.gnu.org; Sun, 18 Apr 2021 12:59:32 -0400 Received: from mail-pf1-f180.google.com ([209.85.210.180]:43817) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1lYAlW-0001kX-R3 for control@debbugs.gnu.org; Sun, 18 Apr 2021 12:59:23 -0400 Received: by mail-pf1-f180.google.com with SMTP id p67so16668865pfp.10 for ; Sun, 18 Apr 2021 09:59:22 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:in-reply-to:references:user-agent :mime-version:date:message-id:subject:to:cc; bh=7Qsm0qr+9SY4iBIF7MvMoUsdl/oAwAgZFDWP8Uc0SSM=; b=lXes67XD1SIieILjkidensminC3rjfubKaKKbv+7EkARV40WLv48dyXmKuN++e8TPB sV8aoEeBaFtG76TAOX8Ihu5WwVjXONdd8eECy3YmD0zAn2T2C19QZqnv6OYc/EABxvpO hCvNkWSgLgGFBhIKH8LMMx9DteQvYwBDOys3RHeU+vWMbcO5K/uruYlSaB5QcC4kSKGc ZMUNqAXI7VTzVBZk5CbxvkG3D9rjfQc5rp0jscxrFr39Cp7tAwotx5BqGL9mG+5nfKCm GvxJKfMyYM9kIuLP/4tu1KluPZjO+7EKQXDBTRHlPYRdA2m18LELrrzm/ogQXl4lo5oU XVSQ== X-Gm-Message-State: AOAM5309jV/Bcv99YA3HwY0s/lIW25lmII5TpCBjcDTr2HPBd8U80V1+ oygzSpQM1grrFaGfuk77cAgJWKpdKuu+qTgDY+8= X-Google-Smtp-Source: ABdhPJwCKzLSKkYq0rigds6tRSkQ/pCLhQ3ItDWrH8Z2sGgvHzuvJNPpPmhipuy1HSQqEtCDHf/v1Y8E/L18Fh5tR9k= X-Received: by 2002:a62:5bc1:0:b029:20d:69a5:189 with SMTP id p184-20020a625bc10000b029020d69a50189mr16422247pfb.57.1618765157115; Sun, 18 Apr 2021 09:59:17 -0700 (PDT) Received: from 753933720722 named unknown by gmailapi.google.com with HTTPREST; Sun, 18 Apr 2021 11:59:16 -0500 From: Stefan Kangas In-Reply-To: <83k0p3y5b9.fsf@gnu.org> (Eli Zaretskii's message of "Thu, 15 Apr 2021 17:45:46 +0300") References: <83k0p3y5b9.fsf@gnu.org> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/28.0.50 (gnu/linux) MIME-Version: 1.0 Date: Sun, 18 Apr 2021 11:59:16 -0500 Message-ID: Subject: Re: bug#47801: 28.0.50; [native-comp] could not resolve realpath To: Eli Zaretskii Content-Type: text/plain; charset="UTF-8" Bcc: control@debbugs.gnu.org X-Spam-Score: 0.5 (/) X-Debbugs-Envelope-To: control Cc: 47801@debbugs.gnu.org, pRoMMMModE@outlook.com 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.5 (/) forcemerge 44128 47801 thanks Eli Zaretskii writes: >> From: pRoMMMModE@outlook.com >> Date: Thu, 15 Apr 2021 14:20:24 +0800 >> >> Dear emacs developers: >> >> I recently compiled emacs from commit 95dd6bb08038e31515568943dcfae13afac8ff70, >> after sudo make install I enter emacs in terminal but it gives an error >> then quit: >> >> ----- >> emacs: could not resolve realpath of "emacs": No such file or directory >> ----- >> >> I notice that emacs is just a symlink to /usr/local/bin/emacs-28.0.50, >> but after I type emacs-28.0.50 in and hit enter it give me a similar >> error: >> >> ----- >> emacs: could not resolve realpath of "emacs-28.0.50": No such file or directory >> ----- >> >> path /usr/local/bin is in my PATH variable, and run emacs with absolute >> path /usr/local/bin/emacs is working, also the last version I compiled >> is from commit b064ddd3f600ed28e62b09d556ecced5f80d9883 and that version >> dose not have this issue. > > I think this is a duplicate of bug#44128, in its latest incarnation. Merged. From unknown Sat Jun 21 05:10:37 2025 X-Loop: help-debbugs@gnu.org Subject: bug#44128: bug#47800: bug#44128: [feature/native-comp] When invoking a symlink to the 'emacs' binary Emacs fails to start Resent-From: Jonas Bernoulli Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Mon, 19 Apr 2021 14:38:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 44128 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: To: Eli Zaretskii , Phil Sainty Cc: wilde@sha-bang.de, dario.gjorgjevski@gmail.com, 44128@debbugs.gnu.org, 47800@debbugs.gnu.org, akrl@sdf.org Received: via spool by 44128-submit@debbugs.gnu.org id=B44128.161884307331502 (code B ref 44128); Mon, 19 Apr 2021 14:38:02 +0000 Received: (at 44128) by debbugs.gnu.org; 19 Apr 2021 14:37:53 +0000 Received: from localhost ([127.0.0.1]:51531 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1lYV28-0008C0-K8 for submit@debbugs.gnu.org; Mon, 19 Apr 2021 10:37:52 -0400 Received: from mail.hostpark.net ([212.243.197.30]:59500) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1lYV23-0008Bj-2p; Mon, 19 Apr 2021 10:37:51 -0400 Received: from localhost (localhost [127.0.0.1]) by mail.hostpark.net (Postfix) with ESMTP id 6F1AF165CD; Mon, 19 Apr 2021 16:37:45 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=bernoul.li; h= content-type:content-type:mime-version:message-id:date:date :references:in-reply-to:subject:subject:from:from:received :received; s=sel2011a; t=1618843063; bh=oNa6gFZcAbGBw9lOARImUPZA UZkMYxKOyoOW/RTw9+A=; b=Qjv4nwwPZQJMMlYfFdFiv3SeVKFd8TyttvAre72Z DgUTpuemw2FpaOXJCi6ezybfUgPCUMahEJczE8DNWyXlH2Zg74Nylx4GmCIFZGnx /ZuYCcsexS/LYVapAp4KsFfAwwJr3H0xnUBP6/3gx0foZtf25++JTDGfjpWH7lDy FDQ= X-Virus-Scanned: by Hostpark/NetZone Mailprotection at hostpark.net Received: from mail.hostpark.net ([127.0.0.1]) by localhost (mail0.hostpark.net [127.0.0.1]) (amavisd-new, port 10224) with ESMTP id QGiooBw8XeR9; Mon, 19 Apr 2021 16:37:43 +0200 (CEST) Received: from customer (localhost [127.0.0.1]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange ECDHE (P-256) server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) by mail.hostpark.net (Postfix) with ESMTPSA id 3A038165D6; Mon, 19 Apr 2021 16:37:43 +0200 (CEST) From: Jonas Bernoulli In-Reply-To: <83y2dhuerf.fsf@gnu.org> References: <87eelri6l8.fsf@bernoul.li> <87k0p2xt3o.fsf@bernoul.li> <83sg3qw9m7.fsf@gnu.org> <83a6pxvwq7.fsf@gnu.org> <51b70f75-1e60-7f0f-2614-923bc1b3ba6b@orcon.net.nz> <8335vpvva8.fsf@gnu.org> <22f456c6-459f-d928-59e3-7616896ffac6@orcon.net.nz> <83y2dhuerf.fsf@gnu.org> Date: Mon, 19 Apr 2021 16:37:41 +0200 Message-ID: <87fszmibm2.fsf@bernoul.li> MIME-Version: 1.0 Content-Type: text/plain X-Spam-Score: -0.7 (/) 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.7 (-) Eli Zaretskii writes: >> Cc: jonas@bernoul.li, wilde@sha-bang.de, 47800@debbugs.gnu.org, >> dario.gjorgjevski@gmail.com, 44128@debbugs.gnu.org, akrl@sdf.org >> From: Phil Sainty >> Date: Sun, 18 Apr 2021 03:00:17 +1200 >> >> On 18/04/21 2:29 am, Eli Zaretskii wrote: >> > How about now? >> >> This time it compiled; but with the following warnings, and >> when I run it from the installed location (whether using the >> absolute path or a symlink) I get a seg fault / core dump: > > Sorry about that. Next try, please. Now it works for me too. Thanks! From unknown Sat Jun 21 05:10:37 2025 MIME-Version: 1.0 X-Mailer: MIME-tools 5.505 (Entity 5.505) X-Loop: help-debbugs@gnu.org From: help-debbugs@gnu.org (GNU bug Tracking System) To: Jonas Bernoulli Subject: bug#44128: closed (Re: bug#47800: bug#44128: [feature/native-comp] When invoking a symlink to the 'emacs' binary Emacs fails to start) Message-ID: References: <83im4is4x9.fsf@gnu.org> <87eelri6l8.fsf@bernoul.li> X-Gnu-PR-Message: they-closed 44128 X-Gnu-PR-Package: emacs Reply-To: 44128@debbugs.gnu.org Date: Mon, 19 Apr 2021 14:53:02 +0000 Content-Type: multipart/mixed; boundary="----------=_1618843982-674-1" This is a multi-part message in MIME format... ------------=_1618843982-674-1 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset="utf-8" Your bug report #44128: [feature/native-comp]; When invoking a symlink to the 'emacs' binar= y Emacs fails to start which was filed against the emacs package, has been closed. The explanation is attached below, along with your original report. If you require more details, please reply to 44128@debbugs.gnu.org. --=20 44128: http://debbugs.gnu.org/cgi/bugreport.cgi?bug=3D44128 GNU Bug Tracking System Contact help-debbugs@gnu.org with problems ------------=_1618843982-674-1 Content-Type: message/rfc822 Content-Disposition: inline Content-Transfer-Encoding: 7bit Received: (at 44128-done) by debbugs.gnu.org; 19 Apr 2021 14:52:30 +0000 Received: from localhost ([127.0.0.1]:51592 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1lYVGH-0000A1-MD for submit@debbugs.gnu.org; Mon, 19 Apr 2021 10:52:29 -0400 Received: from eggs.gnu.org ([209.51.188.92]:59496) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1lYVGG-00009k-R5; Mon, 19 Apr 2021 10:52:29 -0400 Received: from fencepost.gnu.org ([2001:470:142:3::e]:42416) by eggs.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1lYVG8-0005Tk-Q0; Mon, 19 Apr 2021 10:52:20 -0400 Received: from 84.94.185.95.cable.012.net.il ([84.94.185.95]:4604 helo=home-c4e4a596f7) by fencepost.gnu.org with esmtpsa (TLS1.2:RSA_AES_256_CBC_SHA1:256) (Exim 4.82) (envelope-from ) id 1lYVG8-0006Qs-5e; Mon, 19 Apr 2021 10:52:20 -0400 Date: Mon, 19 Apr 2021 17:52:02 +0300 Message-Id: <83im4is4x9.fsf@gnu.org> From: Eli Zaretskii To: Jonas Bernoulli In-Reply-To: <87fszmibm2.fsf@bernoul.li> (message from Jonas Bernoulli on Mon, 19 Apr 2021 16:37:41 +0200) Subject: Re: bug#47800: bug#44128: [feature/native-comp] When invoking a symlink to the 'emacs' binary Emacs fails to start References: <87eelri6l8.fsf@bernoul.li> <87k0p2xt3o.fsf@bernoul.li> <83sg3qw9m7.fsf@gnu.org> <83a6pxvwq7.fsf@gnu.org> <51b70f75-1e60-7f0f-2614-923bc1b3ba6b@orcon.net.nz> <8335vpvva8.fsf@gnu.org> <22f456c6-459f-d928-59e3-7616896ffac6@orcon.net.nz> <83y2dhuerf.fsf@gnu.org> <87fszmibm2.fsf@bernoul.li> X-Spam-Score: -0.7 (/) X-Debbugs-Envelope-To: 44128-done Cc: 44128-done@debbugs.gnu.org, 47800-done@debbugs.gnu.org, psainty@orcon.net.nz, wilde@sha-bang.de, dario.gjorgjevski@gmail.com, akrl@sdf.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.7 (-) > >> This time it compiled; but with the following warnings, and > >> when I run it from the installed location (whether using the > >> absolute path or a symlink) I get a seg fault / core dump: > > > > Sorry about that. Next try, please. > > Now it works for me too. > Thanks! Thanks, so I think we can close this issue now. Thanks to everybody who reported their results and tried my buggy code. ------------=_1618843982-674-1 Content-Type: message/rfc822 Content-Disposition: inline Content-Transfer-Encoding: 7bit Received: (at submit) by debbugs.gnu.org; 21 Oct 2020 21:59:11 +0000 Received: from localhost ([127.0.0.1]:50789 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1kVM8V-0006Uw-75 for submit@debbugs.gnu.org; Wed, 21 Oct 2020 17:59:11 -0400 Received: from lists.gnu.org ([209.51.188.17]:37300) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1kVM8S-0006Un-Sy for submit@debbugs.gnu.org; Wed, 21 Oct 2020 17:59:09 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:55642) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1kVM8S-0002rQ-Jw for bug-gnu-emacs@gnu.org; Wed, 21 Oct 2020 17:59:08 -0400 Received: from mail.hostpark.net ([212.243.197.30]:55554) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1kVM8Q-0006QR-MW for bug-gnu-emacs@gnu.org; Wed, 21 Oct 2020 17:59:08 -0400 Received: from localhost (localhost [127.0.0.1]) by mail.hostpark.net (Postfix) with ESMTP id AAF0B1669F; Wed, 21 Oct 2020 23:59:01 +0200 (CEST) X-Virus-Scanned: by Hostpark/NetZone Mailprotection at hostpark.net Received: from mail.hostpark.net ([127.0.0.1]) by localhost (mail1.hostpark.net [127.0.0.1]) (amavisd-new, port 10124) with ESMTP id xwQd3ItEoksi; Wed, 21 Oct 2020 23:59:01 +0200 (CEST) Received: from customer (localhost [127.0.0.1]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange ECDHE (P-256) server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) by mail.hostpark.net (Postfix) with ESMTPSA id 79411166D9; Wed, 21 Oct 2020 23:59:01 +0200 (CEST) From: Jonas Bernoulli To: bug-gnu-emacs@gnu.org, Andrea Corallo Subject: [feature/native-comp] Date: Wed, 21 Oct 2020 23:58:59 +0200 Message-ID: <87eelri6l8.fsf@bernoul.li> MIME-Version: 1.0 Content-Type: text/plain Received-SPF: none client-ip=212.243.197.30; envelope-from=jonas@bernoul.li; helo=mail.hostpark.net X-detected-operating-system: by eggs.gnu.org: First seen = 2020/10/21 17:59:02 X-ACL-Warn: Detected OS = ??? X-Spam_score_int: -25 X-Spam_score: -2.6 X-Spam_bar: -- X-Spam_report: (-2.6 / 5.0 requ) BAYES_00=-1.9, RCVD_IN_DNSWL_LOW=-0.7, RCVD_IN_MSPIKE_H3=0.001, RCVD_IN_MSPIKE_WL=0.001, SPF_HELO_NONE=0.001, SPF_NONE=0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-Spam-Score: -2.3 (--) 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: -3.3 (---) Hello Andrea [We talked about this briefly on Twitter; https://twitter.com/magit_emacs/status/1313534891506757635.] When running gccemacs from the git repository without installing but by using a symlink like e.g. /usr/local/bin/emacs -> ~/git/emacs/src/emacs, then that results in an error like: emacs: /usr/local/bin/../native-lisp/.eln: cannot open shared object file: No such file or directory You mentioned that this happens because code in pdump[er].c just relies on invocation-directory and that you are wonder whether symlinks should be followed to address this. I think they should. :D Please have a look. Thanks! Jonas ------------=_1618843982-674-1-- From unknown Sat Jun 21 05:10:37 2025 MIME-Version: 1.0 X-Mailer: MIME-tools 5.505 (Entity 5.505) X-Loop: help-debbugs@gnu.org From: help-debbugs@gnu.org (GNU bug Tracking System) To: pRoMMMModE@outlook.com Subject: bug#47801: closed (Re: bug#47800: bug#44128: [feature/native-comp] When invoking a symlink to the 'emacs' binary Emacs fails to start) Message-ID: References: <83im4is4x9.fsf@gnu.org> X-Gnu-PR-Message: they-closed 47801 X-Gnu-PR-Package: emacs Reply-To: 47801@debbugs.gnu.org Date: Mon, 19 Apr 2021 14:53:02 +0000 Content-Type: multipart/mixed; boundary="----------=_1618843982-674-3" This is a multi-part message in MIME format... ------------=_1618843982-674-3 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset="utf-8" Your bug report #44128: 28.0.50; [native-comp] could not resolve realpath which was filed against the emacs package, has been closed. The explanation is attached below, along with your original report. If you require more details, please reply to 47801@debbugs.gnu.org. --=20 44128: http://debbugs.gnu.org/cgi/bugreport.cgi?bug=3D44128 GNU Bug Tracking System Contact help-debbugs@gnu.org with problems ------------=_1618843982-674-3 Content-Type: message/rfc822 Content-Disposition: inline Content-Transfer-Encoding: 7bit Received: (at 44128-done) by debbugs.gnu.org; 19 Apr 2021 14:52:30 +0000 Received: from localhost ([127.0.0.1]:51592 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1lYVGH-0000A1-MD for submit@debbugs.gnu.org; Mon, 19 Apr 2021 10:52:29 -0400 Received: from eggs.gnu.org ([209.51.188.92]:59496) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1lYVGG-00009k-R5; Mon, 19 Apr 2021 10:52:29 -0400 Received: from fencepost.gnu.org ([2001:470:142:3::e]:42416) by eggs.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1lYVG8-0005Tk-Q0; Mon, 19 Apr 2021 10:52:20 -0400 Received: from 84.94.185.95.cable.012.net.il ([84.94.185.95]:4604 helo=home-c4e4a596f7) by fencepost.gnu.org with esmtpsa (TLS1.2:RSA_AES_256_CBC_SHA1:256) (Exim 4.82) (envelope-from ) id 1lYVG8-0006Qs-5e; Mon, 19 Apr 2021 10:52:20 -0400 Date: Mon, 19 Apr 2021 17:52:02 +0300 Message-Id: <83im4is4x9.fsf@gnu.org> From: Eli Zaretskii To: Jonas Bernoulli In-Reply-To: <87fszmibm2.fsf@bernoul.li> (message from Jonas Bernoulli on Mon, 19 Apr 2021 16:37:41 +0200) Subject: Re: bug#47800: bug#44128: [feature/native-comp] When invoking a symlink to the 'emacs' binary Emacs fails to start References: <87eelri6l8.fsf@bernoul.li> <87k0p2xt3o.fsf@bernoul.li> <83sg3qw9m7.fsf@gnu.org> <83a6pxvwq7.fsf@gnu.org> <51b70f75-1e60-7f0f-2614-923bc1b3ba6b@orcon.net.nz> <8335vpvva8.fsf@gnu.org> <22f456c6-459f-d928-59e3-7616896ffac6@orcon.net.nz> <83y2dhuerf.fsf@gnu.org> <87fszmibm2.fsf@bernoul.li> X-Spam-Score: -0.7 (/) X-Debbugs-Envelope-To: 44128-done Cc: 44128-done@debbugs.gnu.org, 47800-done@debbugs.gnu.org, psainty@orcon.net.nz, wilde@sha-bang.de, dario.gjorgjevski@gmail.com, akrl@sdf.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.7 (-) > >> This time it compiled; but with the following warnings, and > >> when I run it from the installed location (whether using the > >> absolute path or a symlink) I get a seg fault / core dump: > > > > Sorry about that. Next try, please. > > Now it works for me too. > Thanks! Thanks, so I think we can close this issue now. Thanks to everybody who reported their results and tried my buggy code. ------------=_1618843982-674-3 Content-Type: message/rfc822 Content-Disposition: inline Content-Transfer-Encoding: 7bit Received: (at submit) by debbugs.gnu.org; 15 Apr 2021 14:17:37 +0000 Received: from localhost ([127.0.0.1]:38797 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1lX2oK-0002Pe-2g for submit@debbugs.gnu.org; Thu, 15 Apr 2021 10:17:37 -0400 Received: from lists.gnu.org ([209.51.188.17]:53838) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1lWvcK-0002az-Ki for submit@debbugs.gnu.org; Thu, 15 Apr 2021 02:36:45 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:50018) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1lWvcK-0008FW-1j for bug-gnu-emacs@gnu.org; Thu, 15 Apr 2021 02:36:44 -0400 Received: from mail-oln040092254041.outbound.protection.outlook.com ([40.92.254.41]:6688 helo=APC01-PU1-obe.outbound.protection.outlook.com) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1lWvcG-0005So-VG for bug-gnu-emacs@gnu.org; Thu, 15 Apr 2021 02:36:43 -0400 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=KsXGQme+idzK6FirxDjkAd83SgKDksGA6dJqbbu9Dz6A+CIjB8GQVvV4cSIRkGkVH/v9rZR7iMp9CQk4rQZ8Q3dSDdijRcYkkhk1Fi6dfgZcyrvOWDLDei9VbHDimfe6vhdOlgy2T7ug4cLOFcDu8XLG849LOM878/eZ93/hmlq/yPrsiw0DHq0FDZUacbPHf9Ikr5+iJUsVqygys2P7lxI6sFpS8QUJHrjDjhZK9Gvf+4DQv66pIR4514aR1JVCB072GndhCVr+k9g1ZC3aj4301do9bWgGDd4xvAbb18U+n4LF6abbdSNFeaRsdLwgElKY0vGl0ytxZutleXQ2dA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=5O7dNp3hNMsAtxrmMHfbC2QouZsbXOXcFr+qbym0yOA=; b=ID35e/SNzE+ngVufHO3Dhe/f6T+R5sqpR+FZAQTqJ0JEijSbQt46rPGKDBA0vOU4TOrGnRP+VXrRBeBnCON7mQmNLvSQS3vVEdJ98QXi/oTVepWT5vr69xjjplzwM7D8ogHTvvZEbwrFlPHrBNTvwv0bQvVdBOd3StuS3x5Ptn+iAP2H+hrXZ3BWJY/dgWU6X+iwiYLtnWqpQTF2FIgy2BL5JLCIa7oBxDtZXrJnTnB4xNACJVAsnVA4hiQOHkH/YsXUP7XMV4074wb7y5G3jO3+s1Tw0V4ABb3KMyCMo9zUp5BSau/7ncMI3NgzeMo2F9YYbVHjS3kDEvtBB/Nq0A== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=none; dmarc=none; dkim=none; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=outlook.com; s=selector1; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=5O7dNp3hNMsAtxrmMHfbC2QouZsbXOXcFr+qbym0yOA=; b=tgSPg7mOASQ0U1BTiO/I8+gOUqDXLtGzrp67bRYEI60N7QXy5GR8TaHVZXefJSvmlJwSN0+KJYAN3Lggr26PMP0iJXha0g/p9zKxY874t9Aq2/bV3ijdk7lfJpz+nqOW85tPfdwOJboxkyWJgYyjKWIjZ2RHNg/ZIwaJ7ohMx5IGmt8BqykGrmkR5SKwKL7HpQfftMd8zumB2ZBR63ZH9wxud4Bk7cRUkzN/OQT/w2ffgmVkF/tQFk1Sv8nGmGHAU0WX2AfdXGUlR8Uf7U00yzviSwoarohM7UE3J54X6sosAU3Sk9BRbvcjLBLi15BtNuvHFukot8Ad1oXhi27+rw== Received: from SG2APC01FT055.eop-APC01.prod.protection.outlook.com (2a01:111:e400:7ebd::40) by SG2APC01HT128.eop-APC01.prod.protection.outlook.com (2a01:111:e400:7ebd::486) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.4020.17; Thu, 15 Apr 2021 06:21:16 +0000 Received: from ME3P282MB2403.AUSP282.PROD.OUTLOOK.COM (10.152.250.58) by SG2APC01FT055.mail.protection.outlook.com (10.152.251.60) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.4042.16 via Frontend Transport; Thu, 15 Apr 2021 06:21:16 +0000 X-IncomingTopHeaderMarker: OriginalChecksum:CC11AC566157DAC131794E5E143C0F40034E4A0C777BD566C1E8BC1DA7A75EF7; UpperCasedChecksum:A676127C37507892BE7B69124D2D945CBC8EA5D566C836515B5B0B412E356159; SizeAsReceived:7237; Count:42 Received: from ME3P282MB2403.AUSP282.PROD.OUTLOOK.COM ([fe80::5de1:6adb:1b1a:7169]) by ME3P282MB2403.AUSP282.PROD.OUTLOOK.COM ([fe80::5de1:6adb:1b1a:7169%6]) with mapi id 15.20.4042.018; Thu, 15 Apr 2021 06:21:14 +0000 From: pRoMMMModE@outlook.com To: bug-gnu-emacs@gnu.org Subject: 28.0.50; [native-comp] could not resolve realpath Date: Thu, 15 Apr 2021 14:20:24 +0800 Message-ID: Content-Type: text/plain X-TMN: [2nWn6MZ+ESp6crYJPzYaqnijpoHORsRjuSdyhaLDI4Bhr2Q/SHLy99CPbt7b6wqR] X-ClientProxiedBy: HK2PR04CA0072.apcprd04.prod.outlook.com (2603:1096:202:15::16) To ME3P282MB2403.AUSP282.PROD.OUTLOOK.COM (2603:10c6:220:109::13) X-Microsoft-Original-Message-ID: <874kg8xe53.fsf@archtop.i-did-not-set--mail-host-address--so-tickle-me> MIME-Version: 1.0 X-MS-Exchange-MessageSentRepresentingType: 1 Received: from archtop (2001:da8:d800:196:f1b9:9136:fc8b:86c5) by HK2PR04CA0072.apcprd04.prod.outlook.com (2603:1096:202:15::16) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.4042.16 via Frontend Transport; Thu, 15 Apr 2021 06:21:13 +0000 X-MS-PublicTrafficType: Email X-IncomingHeaderCount: 42 X-EOPAttributedMessage: 0 X-MS-Office365-Filtering-Correlation-Id: b4b9d13a-7572-4df0-7a1f-08d8ffd6abd3 X-MS-TrafficTypeDiagnostic: SG2APC01HT128: X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: vmYwQZEnz/7e63SxUlpD3Xbl9ma1bSMwqoCuVtS/Y5AKPjIujCKHGV52F48Ds6vPdNmru4s/6d2qqrdVA7RR4S+hAEEaYRGxJC7ztHt9fcG0lqjI7yEoo0GK8g7vnSqUpmBDo8WGxdaCMLl5nk3SPkUFeuTlk+j5Mkl4uJaTnG33JPK3EPCyUzXE8ERU7PpAogU+PYq2VZhdWB7frk6S0yqRUK+5GF/ZGLD2D4vzySZEwGf0qIyFhDevhTLifYoB6LRZb1HgFkI5rhaRC5NQ17v6zqsiq555NP3Oafu01+TN/f3Hi239uaNB4M/RN6E5WuQ7igHvsp5muFZ6TGx1XVEvdbjNQUthJ9qTIipwJKV8xDs02Avhym3ZXb54RgCdDok38QZeX1oRjl4/sqBFAw== X-MS-Exchange-AntiSpam-MessageData: YYh9XxL9F/yjPyezvA+AZlSYq3WzVckw4U9ZXqTH/kKkzK1zo87TWIJ8NSSJ/tN3vIE9kC+DtRmrXIA1cwLkj7iXeMi0klQd0rqHeGkx9zqVrzGPpE+9Jdyk9YdoEAYArucRqxpPSMhc+cLw++gUmohUBy+uS/WrU7qc+XB3PkE3hLrYH3v/jjXxCSq9S/OMBdZ5FAecpVAvpwL34ot02A== X-OriginatorOrg: outlook.com X-MS-Exchange-CrossTenant-Network-Message-Id: b4b9d13a-7572-4df0-7a1f-08d8ffd6abd3 X-MS-Exchange-CrossTenant-OriginalArrivalTime: 15 Apr 2021 06:21:14.5992 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: 84df9e7f-e9f6-40af-b435-aaaaaaaaaaaa X-MS-Exchange-CrossTenant-AuthSource: SG2APC01FT055.eop-APC01.prod.protection.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Anonymous X-MS-Exchange-CrossTenant-FromEntityHeader: Internet X-MS-Exchange-CrossTenant-RMS-PersistedConsumerOrg: 00000000-0000-0000-0000-000000000000 X-MS-Exchange-Transport-CrossTenantHeadersStamped: SG2APC01HT128 Received-SPF: pass client-ip=40.92.254.41; envelope-from=pRoMMMModE@outlook.com; helo=APC01-PU1-obe.outbound.protection.outlook.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, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, FREEMAIL_FROM=0.001, HK_RANDOM_ENVFROM=0.001, HK_RANDOM_FROM=0.999, MSGID_FROM_MTA_HEADER=0.001, RCVD_IN_DNSWL_NONE=-0.0001, RCVD_IN_MSPIKE_H2=-0.001, SPF_HELO_PASS=-0.001, SPF_PASS=-0.001 autolearn=no autolearn_force=no X-Spam_action: no action X-Spam-Score: 1.8 (+) 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: Dear emacs developers: I recently compiled emacs from commit 95dd6bb08038e31515568943dcfae13afac8ff70, after sudo make install I enter emacs in terminal but it gives an error then quit: ----- emacs: could not resolve realpath of "emacs": No such file or directory ----- Content analysis details: (1.8 points, 10.0 required) pts rule name description ---- ---------------------- -------------------------------------------------- -2.3 RCVD_IN_DNSWL_MED RBL: Sender listed at https://www.dnswl.org/, medium trust [209.51.188.17 listed in list.dnswl.org] 1.0 HK_RANDOM_FROM From username looks random 0.6 HK_RANDOM_ENVFROM Envelope sender username looks random 1.0 SPF_SOFTFAIL SPF: sender does not match SPF record (softfail) -0.0 SPF_HELO_PASS SPF: HELO matches SPF record 0.0 FREEMAIL_FROM Sender email is commonly abused enduser mail provider (prommmmode[at]outlook.com) 0.0 RCVD_IN_MSPIKE_H4 RBL: Very Good reputation (+4) [209.51.188.17 listed in wl.mailspike.net] 0.0 MSGID_FROM_MTA_HEADER Message-Id was added by a relay 0.0 RCVD_IN_MSPIKE_WL Mailspike good senders 1.5 SPOOFED_FREEMAIL No description available. X-Debbugs-Envelope-To: submit X-Mailman-Approved-At: Thu, 15 Apr 2021 10:17:34 -0400 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.7 (/) Dear emacs developers: I recently compiled emacs from commit 95dd6bb08038e31515568943dcfae13afac8ff70, after sudo make install I enter emacs in terminal but it gives an error then quit: ----- emacs: could not resolve realpath of "emacs": No such file or directory ----- I notice that emacs is just a symlink to /usr/local/bin/emacs-28.0.50, but after I type emacs-28.0.50 in and hit enter it give me a similar error: ----- emacs: could not resolve realpath of "emacs-28.0.50": No such file or directory ----- path /usr/local/bin is in my PATH variable, and run emacs with absolute path /usr/local/bin/emacs is working, also the last version I compiled is from commit b064ddd3f600ed28e62b09d556ecced5f80d9883 and that version dose not have this issue. --------------------------------------------------------------- In GNU Emacs 28.0.50 (build 1, x86_64-pc-linux-gnu, GTK+ Version 3.24.28, cairo version 1.17.4) of 2021-04-15 built on archtop Repository revision: 95dd6bb08038e31515568943dcfae13afac8ff70 Repository branch: feature/native-comp Windowing system distributor 'The X.Org Foundation', version 11.0.12011000 System Description: Arch Linux Configured using: 'configure --with-native-compilation --with-modules' Configured features: ACL CAIRO DBUS FREETYPE GIF GLIB GMP GNUTLS GPM GSETTINGS HARFBUZZ JPEG JSON LCMS2 LIBOTF LIBSYSTEMD LIBXML2 MODULES NATIVE_COMP NOTIFY INOTIFY PDUMPER PNG RSVG SECCOMP SOUND THREADS TIFF TOOLKIT_SCROLL_BARS X11 XDBE XIM XPM GTK3 ZLIB Important settings: value of $LANG: zh_CN.UTF-8 value of $XMODIFIERS: @im=fcitx locale-coding-system: utf-8-unix Major mode: Lisp Interaction Minor modes in effect: tooltip-mode: t global-eldoc-mode: t eldoc-mode: t electric-indent-mode: t mouse-wheel-mode: t tool-bar-mode: t menu-bar-mode: t file-name-shadow-mode: t global-font-lock-mode: t font-lock-mode: t blink-cursor-mode: t auto-composition-mode: t auto-encryption-mode: t auto-compression-mode: t line-number-mode: t transient-mark-mode: t Load-path shadows: None found. Features: (shadow sort mail-extr emacsbug message rmc puny dired dired-loaddefs rfc822 mml mml-sec epa derived epg epg-config gnus-util rmail rmail-loaddefs auth-source cl-seq eieio eieio-core cl-macs eieio-loaddefs password-cache json map text-property-search time-date subr-x seq byte-opt gv bytecomp byte-compile cconv mm-decode mm-bodies mm-encode mail-parse rfc2231 mailabbrev gmm-utils mailheader cl-loaddefs cl-lib sendmail rfc2047 rfc2045 ietf-drums mm-util mail-prsvr mail-utils china-util iso-transl tooltip eldoc electric uniquify ediff-hook vc-hooks lisp-float-type mwheel term/x-win x-win term/common-win x-dnd tool-bar dnd fontset image regexp-opt fringe tabulated-list replace newcomment text-mode elisp-mode lisp-mode prog-mode register page tab-bar menu-bar rfn-eshadow isearch easymenu timer select scroll-bar mouse jit-lock font-lock syntax font-core term/tty-colors frame minibuffer cl-generic cham georgian utf-8-lang misc-lang vietnamese tibetan thai tai-viet lao korean japanese eucjp-ms cp51932 hebrew greek romanian slovak czech european ethiopic indian cyrillic chinese composite charscript charprop case-table epa-hook jka-cmpr-hook help simple abbrev obarray cl-preloaded nadvice button loaddefs faces cus-face macroexp files window text-properties overlay sha1 md5 base64 format env code-pages mule custom widget hashtable-print-readable backquote threads dbusbind inotify lcms2 dynamic-setting system-font-setting font-render-setting cairo move-toolbar gtk x-toolkit x multi-tty make-network-process nativecomp emacs) Memory information: ((conses 16 67607 7988) (symbols 48 6625 0) (strings 32 19257 2257) (string-bytes 1 655459) (vectors 16 13794) (vector-slots 8 336606 10047) (floats 8 22 39) (intervals 56 199 0) (buffers 992 10)) ------------=_1618843982-674-3--