unofficial mirror of bug-gnu-emacs@gnu.org 
 help / color / mirror / code / Atom feed
From: Phil Sainty <psainty@orcon.net.nz>
To: 46790@debbugs.gnu.org
Cc: Thierry Volpiatto <thievol@posteo.net>, Andrea Corallo <akrl@sdf.org>
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	[thread overview]
Message-ID: <3e6fedea-b5a8-60be-a5fc-d6e6e4b28dc8@orcon.net.nz> (raw)
In-Reply-To: <87h7lzgtyv.fsf@posteo.net>

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))





  parent reply	other threads:[~2021-04-13 12:37 UTC|newest]

Thread overview: 70+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2021-02-26  7:35 bug#46790: 28.0.50; make install with native-comp branch Thierry Volpiatto
2021-04-09 18:56 ` Eli Zaretskii
2021-04-10  5:17   ` Thierry Volpiatto
2021-04-10  7:37     ` Eli Zaretskii
2021-04-10  6:57   ` Andrea Corallo via Bug reports for GNU Emacs, the Swiss army knife of text editors
2021-04-10  7:50     ` Eli Zaretskii
2021-04-10 16:30       ` Andrea Corallo via Bug reports for GNU Emacs, the Swiss army knife of text editors
2021-04-10 13:46     ` Thierry Volpiatto
2021-04-10 16:25       ` Andrea Corallo via Bug reports for GNU Emacs, the Swiss army knife of text editors
2021-04-10 17:55         ` Thierry Volpiatto
2021-04-13 12:37 ` Phil Sainty [this message]
2021-04-13 13:55   ` bug#46790: 28.0.50; [native-comp] Emacs doesn't start when run from a symlink Eli Zaretskii
2021-04-14  9:50   ` Andrea Corallo via Bug reports for GNU Emacs, the Swiss army knife of text editors
2021-04-20  9:33 ` bug#46790: 28.0.50; make install with native-comp branch Phil Sainty
2021-04-20 11:39   ` Eli Zaretskii
2021-04-24  6:48     ` Thierry Volpiatto
2021-04-24  7:49       ` Eli Zaretskii
2021-04-24  8:30         ` Eli Zaretskii
2021-04-24 12:21           ` Thierry Volpiatto
2021-04-24 12:40             ` Eli Zaretskii
2021-04-24 12:47               ` Thierry Volpiatto
2021-04-24 13:33                 ` Eli Zaretskii
2021-04-24 13:39                   ` Eli Zaretskii
2021-04-24 13:58                   ` Thierry Volpiatto
2021-04-24 14:09                     ` Eli Zaretskii
2021-04-24 15:22                       ` Thierry Volpiatto
2021-04-24 16:00                         ` Eli Zaretskii
2021-04-24 16:20                           ` Thierry Volpiatto
2021-04-24 16:52                             ` Eli Zaretskii
2021-04-24 17:35                               ` Thierry Volpiatto
2021-04-25 13:14                               ` Thierry Volpiatto
2021-04-25 13:28                                 ` Eli Zaretskii
2021-04-25 14:02                                   ` Thierry Volpiatto
2021-04-25 14:37                                     ` Eli Zaretskii
2021-04-25 14:28                                   ` Phil Sainty
2021-04-25 15:24                                     ` Eli Zaretskii
2021-04-25 18:21                                       ` Thierry Volpiatto
2021-04-25 18:38                                         ` Eli Zaretskii
2021-04-25 19:50                                           ` Thierry Volpiatto
2021-04-27 11:16                                           ` Thierry Volpiatto
2022-06-19 13:56                                             ` Lars Ingebrigtsen
2022-06-19 16:20                                               ` Thierry Volpiatto
2022-06-19 16:25                                                 ` Lars Ingebrigtsen
2021-04-24 17:00                             ` Eli Zaretskii
2021-04-24 17:39                               ` Thierry Volpiatto
2021-04-24 17:47                                 ` Eli Zaretskii
2021-04-24 18:06                                   ` Thierry Volpiatto
2021-04-24 18:48                                     ` Eli Zaretskii
2021-04-25  4:29                                       ` Thierry Volpiatto
2021-04-25  8:21                                         ` Eli Zaretskii
2021-04-25 12:07                                           ` Thierry Volpiatto
2021-04-25 12:21                                             ` Eli Zaretskii
2021-04-25 15:19                                               ` Thierry Volpiatto
2021-04-24 13:03               ` Eli Zaretskii
2021-04-24 11:11         ` Thierry Volpiatto
2021-04-24 11:56           ` Eli Zaretskii
2021-04-24 12:04             ` Thierry Volpiatto
2021-04-24 12:29               ` Eli Zaretskii
2021-04-24 11:59           ` Phil Sainty
2021-04-24  6:40   ` Thierry Volpiatto
2022-06-26  5:39 ` bug#46790: 28.1; Bug#46790 reintroduced; Was make install with native-comp Thierry Volpiatto
2022-06-26  5:52   ` Eli Zaretskii
2022-06-26  9:30     ` Eli Zaretskii
2022-06-26 14:19       ` Thierry Volpiatto
2022-06-26 14:52         ` Eli Zaretskii
2022-06-27 10:14           ` Thierry Volpiatto
2022-06-27 11:19             ` Eli Zaretskii
2022-06-27 12:59               ` Eli Zaretskii
2022-06-27 13:46                 ` Thierry Volpiatto
2022-06-26 14:10     ` Thierry Volpiatto

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://www.gnu.org/software/emacs/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=3e6fedea-b5a8-60be-a5fc-d6e6e4b28dc8@orcon.net.nz \
    --to=psainty@orcon.net.nz \
    --cc=46790@debbugs.gnu.org \
    --cc=akrl@sdf.org \
    --cc=thievol@posteo.net \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).