From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Thierry Volpiatto Newsgroups: gmane.emacs.bugs Subject: bug#46790: 28.0.50; make install with native-comp branch Date: Sat, 10 Apr 2021 19:55:15 +0200 Message-ID: <875z0uqat6.fsf@posteo.net> References: <87h7lzgtyv.fsf@posteo.net> <83h7kf70dz.fsf@gnu.org> <87y2dqb67z.fsf@posteo.net> Mime-Version: 1.0 Content-Type: multipart/signed; boundary="=-=-="; micalg=pgp-sha512; protocol="application/pgp-signature" Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="11384"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: mu4e 1.5.11; emacs 27.2 Cc: 46790@debbugs.gnu.org To: Andrea Corallo Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Sat Apr 10 20:01:20 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 1lVHv6-0002qQ-0b for geb-bug-gnu-emacs@m.gmane-mx.org; Sat, 10 Apr 2021 20:01:20 +0200 Original-Received: from localhost ([::1]:35916 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1lVHv4-0002rI-H3 for geb-bug-gnu-emacs@m.gmane-mx.org; Sat, 10 Apr 2021 14:01:18 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:43426) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1lVHuo-0002pl-L3 for bug-gnu-emacs@gnu.org; Sat, 10 Apr 2021 14:01:02 -0400 Original-Received: from debbugs.gnu.org ([209.51.188.43]:41703) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1lVHuo-00029Q-Da for bug-gnu-emacs@gnu.org; Sat, 10 Apr 2021 14:01:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1lVHuo-0007tV-Am for bug-gnu-emacs@gnu.org; Sat, 10 Apr 2021 14:01:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Thierry Volpiatto Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sat, 10 Apr 2021 18:01: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.161807765329831 (code B ref 46790); Sat, 10 Apr 2021 18:01:02 +0000 Original-Received: (at 46790) by debbugs.gnu.org; 10 Apr 2021 18:00:53 +0000 Original-Received: from localhost ([127.0.0.1]:53249 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1lVHue-0007ka-Ex for submit@debbugs.gnu.org; Sat, 10 Apr 2021 14:00:52 -0400 Original-Received: from mout01.posteo.de ([185.67.36.65]:36558) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1lVHua-0007bo-Tv for 46790@debbugs.gnu.org; Sat, 10 Apr 2021 14:00:51 -0400 Original-Received: from submission (posteo.de [89.146.220.130]) by mout01.posteo.de (Postfix) with ESMTPS id 52A351A022B for <46790@debbugs.gnu.org>; Sat, 10 Apr 2021 20:00:42 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=posteo.net; s=2017; t=1618077642; bh=ESXQMl+UAZivDzESLlVjy/zJ0v6pJH/PJbbD4DpUopM=; h=From:To:Cc:Subject:Date:Autocrypt:From; b=BufUX3UrXzNVfk9HPd0WhW1HdvY3wL3LOuRAjeiA15PdKjZXMDnJeG1u340FQcrqq fGhAYzuBq+tUhY0lC2+4PR6/RNw+6i3+BawK/H6zq7ie7wSw2bVBtlFH84Ykv73Noh 2Dj2UAMMgX/gj1v3Ey5arfNffgq+/jK4Xz3p0zL88IL7HPd8m3V+ql/WyQ+Picu7iC HgQl6E12nHS/Ls/MkaaQ8NXknMwAnN7kuYid66jqFeH5+e+UCGPmYAVm82GwmifLBa lY0/CRojrSluqnPja1aAGbFcyhTO/eie+rYhLk175Wc2tzCRWbmmn5e6yDbOY+BUyM XkpNTFpED6mjw== Original-Received: from customer (localhost [127.0.0.1]) by submission (posteo.de) with ESMTPSA id 4FHjTh4w1Wz9rxG; Sat, 10 Apr 2021 20:00:40 +0200 (CEST) In-reply-to: Autocrypt: addr=thievol@posteo.net; prefer-encrypt=mutual; keydata= mQGNBF8ylcIBDADG+hy+zR6L4/vbdDDZuSaMmSrU3A5QZJpeBCvxTr7MpzzruZbhLPW1K3R6N2MA edi8Y+C8o27FVRIjpdbaKMGu9je7JV/TbUQYo3SOwCK1vM4LUn4V6ZLzSYkuiEt4eyMoiDdyvN0p kcK6P9x9DCetcEVszXzQg+yzCVrQ2hXWDXWT4M18EC3wtO7RHPouMqGiwBFhBAYErCqFWFxQHkfb tG/4yGyJ58rglb65O3qijjMWvYwcWZun9/7qm8Z4/4mHopmo2zgU+OrptnLSZfkZGz3Y7Uf452xQ GVq0Fv75NPvQru7y+DYVhuVXXyAmGxt+vf4rIiixMBbhKEPjcxEPAa2LTzex2IsTZR+QVG9uDnqC WcgaOEQ58fzXNvNhtwwF/Rgio2XWAJVdmFWS59/k9W58CIUSNKBMZh2XeGdEmtHvDtCxW3z6FJha 36RzOM3fMNNiAGdFZJA84gcdloJR+sHCDTTPT3784fjr+V8An7sI581NGFzkRQqPvEQCZbUAEQEA AbQSdGhpZXZvbEBwb3N0ZW8ubmV0iQHUBBMBCgA+FiEEI9twfRN7r3nig/xwDsVtFB0W75MFAl8y lcICGwMFCQPCZwAFCwkIBwIGFQoJCAsCBBYCAwECHgECF4AACgkQDsVtFB0W75MB3QwAlTsVzFmr +S/tMKwwwOibjhNPi/OZiUC2AYfaqfVAiIHDT3RbzDe03sAJoomJkJnYVjGzQZwibCMO2+ITkMPV 2wvrd4CbgS1KCVbrltwcuK/nxPCBaHytOCZUIInnhJo5PE/h03K 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:203815 Archived-At: --=-=-= Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Andrea Corallo writes: > Thierry Volpiatto writes: > >> Andrea Corallo writes: >> >>> Eli Zaretskii writes: >>> >>>>> From: Thierry Volpiatto >>>>> Date: Fri, 26 Feb 2021 08:35:30 +0100 >>>>> >>>>> giving a try to native-comp branch. >>>>> >>>>> I install Emacs generaly with: >>>>> >>>>> make install bindir=3D/usr/local/sbin/emacs-28.0.50 infodir=3D/usr/lo= cal/share/info-28.0.50 >>>>> >>>>> This always worked fine. However with native-comp branch, I have to >>>>> manually add a symlink of "/usr/local/lib/emacs/28.0.50/native-lisp/"= to >>>>> "/usr/local/sbin" otherwise I endup with an error: >>>>> >>>>> thierry@IPadS340:/usr/local/sbin/emacs-28.0.50$ ls >>>>> ctags ebrowse emacs emacs-28.0.50 emacsclient etags >>>>> thierry@IPadS340:/usr/local/sbin/emacs-28.0.50$ ./emacs-28.0.50 >>>>> emacs: /usr/local/sbin/emacs-28.0.50/../native-lisp/28.0.50-40158ec0/= window-0d1b8b93-738411b0.eln: cannot open shared object file: No such file = or directory >>>>> thierry@IPadS340:/usr/local/sbin/emacs-28.0.50$ ./emacs >>>>> emacs: /usr/local/sbin/emacs-28.0.50/../native-lisp/28.0.50-40158ec0/= window-0d1b8b93-738411b0.eln: cannot open shared object file: No such file = or directory >>>> >>>> Hmm... I'm not sure we can resolve this in any other way, although we >>>> should try. What worked for you with previous versions was just a >>>> side effect of the implementation detail: how Emacs finds the files it >>>> needs when it starts. The *.eln files bring more restrictions to the >>>> table, and it could very well be that the symlink trick will be the >>>> only practical solution to such a non-standard installation. >>>> >>>> A possible solution is to set EMACSNATIVELOADPATH in the environment. >>> >>> As the error is while resurrecting from dump I think acting on the load >>> path will not help as in this phase we relocate elns simply by filename. >>> >>> Thierry, are you specifying your custom bindir only when installing or >>> also while building? >> >> Only when installing. >> >>> If the case is the first could you please try again setting bindir >>> also while building? >> >> How, is this allowed or even possible? > > make bootstrap bindir=3D/xxx > > I think ATM this should work (would be nice if you could check this), I tried and it is working partially. Calling emacs from /usr/local/sbin works, however when I symlink /usr/local/sbin/emacs-28.0.50/emacs-28.0.50 to /usr/local/bin I have the same error: make[1]=C2=A0: on quitte le r=C3=A9pertoire =C2=AB=C2=A0/home/thierry/tmp/e= macs/lib-src=C2=A0=C2=BB find native-lisp -type d -exec /bin/mkdir -p "/usr/local/lib/emacs/28.0.50/= {}" \; ; \ find native-lisp -type f -exec /usr/bin/install -c -m 644 "{}" "/usr/local/= lib/emacs/28.0.50/{}" \; thierry@IPadS340:~/tmp/emacs$ cd thierry@IPadS340:~$ cd /usr/local/sbin/emacs-28.0.50/ thierry@IPadS340:/usr/local/sbin/emacs-28.0.50$ ls ctags ebrowse emacs emacs-28.0.50 emacsclient etags thierry@IPadS340:/usr/local/sbin/emacs-28.0.50$ ./emacs thierry@IPadS340:/usr/local/sbin/emacs-28.0.50$ sudo eselect-emacs Versions availables: 1) emacs-27.1 2) emacs-26.3 3) emacs-28.0.50 Current version is emacs-27.2 Choose a new version: 3 Deleting Symlink /usr/local/bin/emacsclient Deleting Symlink /usr/local/bin/ctags Deleting Symlink /usr/local/bin/etags Deleting Symlink /usr/local/bin/ebrowse Deleting Symlink /usr/local/bin/emacs Symlinking /usr/local/sbin/emacs-28.0.50/emacsclient to /usr/local/bin/emac= sclient Symlinking /usr/local/sbin/emacs-28.0.50/ctags to /usr/local/bin/ctags Symlinking /usr/local/sbin/emacs-28.0.50/etags to /usr/local/bin/etags Symlinking /usr/local/sbin/emacs-28.0.50/ebrowse to /usr/local/bin/ebrowse Symlinking /usr/local/sbin/emacs-28.0.50/emacs-28.0.50 to /usr/local/bin/em= acs Deleting symlink/usr/local/share/info Symlinking /usr/local/share/info-28.0.50 to /usr/local/share/info emacs-28.0.50 installed thierry@IPadS340:/usr/local/sbin/emacs-28.0.50$ cdl thierry@IPadS340:/usr/local/sbin$ cdl thierry@IPadS340:/usr/local$ cd bin thierry@IPadS340:/usr/local/bin$ ls apt ctags ebrowse emacs emacsclient emacseditor eselect-emacs etags = gnome-help helm highlight-mint mint-sha256sum mu piactl search xour= nal yelp thierry@IPadS340:/usr/local/bin$ ./emacs emacs: /usr/local/bin/../native-lisp/28.0.50-2f134e58/preloaded/window-0d1b= 8b93-513ac8ca.eln: cannot open shared object file: No such file or directory thierry@IPadS340:/usr/local/bin$ emacs emacs: /usr/local/bin/../native-lisp/28.0.50-2f134e58/preloaded/window-0d1b= 8b93-513ac8ca.eln: cannot open shared object file: No such file or directory =20 So for now what is working best for me is symlinking native-lisp directory to /usr/local/sbin. >=20 > reading Eli's opinion we may change it tho. > >>> Sorry for not responding earlier, I've been in round robin on the issues >>> I had the feeling were higher priority but was still in my todo list :) >> >> No problems, congrats for the huge work. > > Thanks > > Andrea =2D-=20 Thierry --=-=-= Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQHHBAEBCgAxFiEEI9twfRN7r3nig/xwDsVtFB0W75MFAmBx58UTHHRoaWV2b2xA cG9zdGVvLm5ldAAKCRAOxW0UHRbvk3+bC/9au7iDNQYxtHAa2MmZS03oynBzicjx 5PJsmgot/wXvcFXmDm09zpArU503bpf/5IK1dMW10HOwEb9l5eYA9/xqXpmkOdi3 lPcv9ZeF0MgFs3Z1dz71VDIEP92pP3wj2LprWY03xyBB62vFuMenRurb6dYPdrjo j/X8A/yoMW89of4tOK8oi3405QpuVJLZ+ucaxVS5HqzHFquJgZcfQULrDDQf3EKR a9yHxFm7M7hyK2ObYT2NdEG+h3WY1eKDKOcFr4HOp6oRI9VUa8cBuUdKbc5yROjt 2hHfph1pT+iQBCy4Am/+kRckCnhO2ARzEiU1vbXs1IgSJbhE59h4SeoqWhZXwdMh bE0QfcuiXNGMjRXNFB2oYvuL/zp9jQ/b5LzOk9NAIYTUWsqc6rif55bd0KT/krnk fd1QgbWfllIQUFj+ABizk7s2bJTlOB1GZilSVpM6WkvN9gLTV9XiXF65cTtqxfnu G8edWuqJBUTJo/d0FNFomdUu28BmPlntCDQ= =oyO8 -----END PGP SIGNATURE----- --=-=-=--