From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Phil Sainty 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 00:37:38 +1200 Message-ID: <3e6fedea-b5a8-60be-a5fc-d6e6e4b28dc8@orcon.net.nz> References: <87h7lzgtyv.fsf@posteo.net> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="33665"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:68.0) Gecko/20100101 Thunderbird/68.10.0 Cc: Thierry Volpiatto , Andrea Corallo To: 46790@debbugs.gnu.org Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Tue Apr 13 14:38:41 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 1lWIJU-0008CK-OF for geb-bug-gnu-emacs@m.gmane-mx.org; Tue, 13 Apr 2021 14:38:40 +0200 Original-Received: from localhost ([::1]:39186 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1lWIJ9-0006UP-H5 for geb-bug-gnu-emacs@m.gmane-mx.org; Tue, 13 Apr 2021 08:38:19 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:58314) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1lWIIs-0006Tl-RZ for bug-gnu-emacs@gnu.org; Tue, 13 Apr 2021 08:38:04 -0400 Original-Received: from debbugs.gnu.org ([209.51.188.43]:47667) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1lWIIs-0004K2-BW for bug-gnu-emacs@gnu.org; Tue, 13 Apr 2021 08:38:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1lWIIs-0002wx-8u for bug-gnu-emacs@gnu.org; Tue, 13 Apr 2021 08:38:02 -0400 X-Loop: help-debbugs@gnu.org In-Reply-To: <87h7lzgtyv.fsf@posteo.net> Resent-From: Phil Sainty Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Tue, 13 Apr 2021 12:38: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.161831747711325 (code B ref 46790); Tue, 13 Apr 2021 12:38:02 +0000 Original-Received: (at 46790) by debbugs.gnu.org; 13 Apr 2021 12:37:57 +0000 Original-Received: from localhost ([127.0.0.1]:59213 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1lWIIm-0002wb-Tj for submit@debbugs.gnu.org; Tue, 13 Apr 2021 08:37:57 -0400 Original-Received: from smtp-3.orcon.net.nz ([60.234.4.44]:46925) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1lWIIl-0002wT-MF for 46790@debbugs.gnu.org; Tue, 13 Apr 2021 08:37:56 -0400 Original-Received: from [101.53.216.162] (port=41038 helo=[192.168.20.103]) by smtp-3.orcon.net.nz with esmtpa (Exim 4.90_1) (envelope-from ) id 1lWIIV-0002sc-D6; Wed, 14 Apr 2021 00:37:40 +1200 Content-Language: en-GB X-GeoIP: NZ X-Spam_score: 0.7 X-Spam_score_int: 7 X-Spam_bar: / 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:203961 Archived-At: 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). -Phil In GNU Emacs 28.0.50 (build 1, x86_64-pc-linux-gnu, X toolkit, cairo version 1.15.10, Xaw3d scroll bars) of 2021-04-13 built on shodan Repository revision: 8ed46b7646de7166aa8bbd3b5d29a4947316c900 Repository branch: feature/native-comp Windowing system distributor 'The X.Org Foundation', version 11.0.12008000 System Description: Ubuntu 18.04.5 LTS Configured using: 'configure --prefix=/home/phil/emacs/native-comp/usr/local --with-x-toolkit=lucid --without-sound --with-native-compilation' Configured features: CAIRO DBUS FREETYPE GIF GLIB GMP GNUTLS GSETTINGS HARFBUZZ JPEG JSON LCMS2 LIBXML2 MODULES NATIVE_COMP NOTIFY INOTIFY PDUMPER PNG RSVG THREADS TIFF TOOLKIT_SCROLL_BARS X11 XAW3D XDBE XIM XPM LUCID ZLIB Important settings: value of $LANG: en_NZ.UTF-8 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 eieio eieio-core eieio-loaddefs password-cache json map text-property-search time-date mm-decode mm-bodies mm-encode mail-parse rfc2231 mailabbrev gmm-utils mailheader sendmail rfc2047 rfc2045 ietf-drums mm-util mail-prsvr mail-utils comp comp-cstr warnings subr-x rx cl-seq cl-macs cl-extra help-mode seq byte-opt gv cl-loaddefs cl-lib bytecomp byte-compile cconv 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 x-toolkit x multi-tty make-network-process nativecomp emacs) Memory information: ((conses 16 92899 8806) (symbols 48 7808 1) (strings 32 24363 4126) (string-bytes 1 830720) (vectors 16 17056) (vector-slots 8 316265 21888) (floats 8 37 35) (intervals 56 225 0) (buffers 992 12))