From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Andrea Corallo via "Bug reports for GNU Emacs, the Swiss army knife of text editors" Newsgroups: gmane.emacs.bugs Subject: bug#46790: 28.0.50; [native-comp] Emacs doesn't start when run from a symlink Date: Wed, 14 Apr 2021 09:50:55 +0000 Message-ID: References: <87h7lzgtyv.fsf@posteo.net> <3e6fedea-b5a8-60be-a5fc-d6e6e4b28dc8@orcon.net.nz> Reply-To: Andrea Corallo Mime-Version: 1.0 Content-Type: text/plain Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="7438"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/28.0.50 (gnu/linux) Cc: Thierry Volpiatto , 46790@debbugs.gnu.org To: Phil Sainty Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Wed Apr 14 11:51:19 2021 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane-mx.org Original-Received: from lists.gnu.org ([209.51.188.17]) by ciao.gmane.io with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1lWcB5-0001oU-7D for geb-bug-gnu-emacs@m.gmane-mx.org; Wed, 14 Apr 2021 11:51:19 +0200 Original-Received: from localhost ([::1]:38892 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1lWcB4-0005gs-9H for geb-bug-gnu-emacs@m.gmane-mx.org; Wed, 14 Apr 2021 05:51:18 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:46476) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1lWcAp-0005dO-Ta for bug-gnu-emacs@gnu.org; Wed, 14 Apr 2021 05:51:04 -0400 Original-Received: from debbugs.gnu.org ([209.51.188.43]:50298) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1lWcAo-0007nM-CY for bug-gnu-emacs@gnu.org; Wed, 14 Apr 2021 05:51:03 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1lWcAo-0008Aw-6y for bug-gnu-emacs@gnu.org; Wed, 14 Apr 2021 05:51:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Andrea Corallo Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Wed, 14 Apr 2021 09:51:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 46790 X-GNU-PR-Package: emacs Original-Received: via spool by 46790-submit@debbugs.gnu.org id=B46790.161839386031419 (code B ref 46790); Wed, 14 Apr 2021 09:51:02 +0000 Original-Received: (at 46790) by debbugs.gnu.org; 14 Apr 2021 09:51:00 +0000 Original-Received: from localhost ([127.0.0.1]:33611 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1lWcAl-0008Ag-U7 for submit@debbugs.gnu.org; Wed, 14 Apr 2021 05:51:00 -0400 Original-Received: from mx.sdf.org ([205.166.94.24]:52665) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1lWcAk-0008AY-DG for 46790@debbugs.gnu.org; Wed, 14 Apr 2021 05:50:59 -0400 Original-Received: from mab (ma.sdf.org [205.166.94.33]) by mx.sdf.org (8.15.2/8.14.5) with ESMTPS id 13E9ot9p027491 (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256 bits) verified NO); Wed, 14 Apr 2021 09:50:55 GMT In-Reply-To: <3e6fedea-b5a8-60be-a5fc-d6e6e4b28dc8@orcon.net.nz> (Phil Sainty's message of "Wed, 14 Apr 2021 00:37:38 +1200") X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-BeenThere: bug-gnu-emacs@gnu.org List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Original-Sender: "bug-gnu-emacs" Xref: news.gmane.io gmane.emacs.bugs:204004 Archived-At: Phil Sainty writes: > I've compiled the feature/native-comp branch and it starts if I run > the real path to the executable; but if I run it from a symlink it > fails: > > $ ls -l /home/phil/bin/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 > > $ emacs-native-comp -Q > emacs: /home/phil/bin/../native-lisp/28.0.50-abd7aa58/preloaded/window-0d1b8b93-513ac8ca.eln: cannot open shared object file: No such file or directory > > > Looking relative to the symlink itself is clearly wrong. Something > like `file-truename' should surely be utilised here. (GNU readlink > with the -m option does much the same thing, if that's at all helpful.) > > I'm sending to what looks like a duplicate bug, although my case seems > like a more standard configuration -- I'm not passing a custom 'bindir' > to 'make install'; I'm simply using the normal 'configure --prefix=...' > (see below). Hi Phil, thanks for reporting, yeah this was reported already in #44128, I'll try to see how we can solve it. Thanks Andrea