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, 24 Apr 2021 16:20:41 +0000 Message-ID: <87im4br6ei.fsf@posteo.net> References: <87h7lzgtyv.fsf@posteo.net> <83v98hqj5y.fsf@gnu.org> <87y2d8uq8r.fsf@posteo.net> <83wnssm8b0.fsf@gnu.org> <83v98cm6en.fsf@gnu.org> <877dkreudx.fsf@posteo.net> <83lf97n9eg.fsf@gnu.org> <875z0betc1.fsf@posteo.net> <83h7jvn6xu.fsf@gnu.org> <87k0or233h.fsf@posteo.net> <83eeezn594.fsf@gnu.org> <87o8e3r8t9.fsf@posteo.net> <83czujn04h.fsf@gnu.org> 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="39194"; mail-complaints-to="usenet@ciao.gmane.io" Cc: psainty@orcon.net.nz, 46790@debbugs.gnu.org, akrl@sdf.org To: Eli Zaretskii Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Sat Apr 24 18:53:32 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 1laLXA-000A4f-DJ for geb-bug-gnu-emacs@m.gmane-mx.org; Sat, 24 Apr 2021 18:53:32 +0200 Original-Received: from localhost ([::1]:34522 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1laLX9-0005LZ-Gh for geb-bug-gnu-emacs@m.gmane-mx.org; Sat, 24 Apr 2021 12:53:31 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:55374) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1laLCM-00039S-5P for bug-gnu-emacs@gnu.org; Sat, 24 Apr 2021 12:32:02 -0400 Original-Received: from debbugs.gnu.org ([209.51.188.43]:58036) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1laLCL-0007Z7-Tc for bug-gnu-emacs@gnu.org; Sat, 24 Apr 2021 12:32:01 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1laLCL-0001Lr-PK for bug-gnu-emacs@gnu.org; Sat, 24 Apr 2021 12:32:01 -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, 24 Apr 2021 16:32:01 +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.16192818995165 (code B ref 46790); Sat, 24 Apr 2021 16:32:01 +0000 Original-Received: (at 46790) by debbugs.gnu.org; 24 Apr 2021 16:31:39 +0000 Original-Received: from localhost ([127.0.0.1]:41349 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1laLBy-0001LC-Pd for submit@debbugs.gnu.org; Sat, 24 Apr 2021 12:31:39 -0400 Original-Received: from mout01.posteo.de ([185.67.36.65]:50315) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1laLBv-0001Ky-Vj for 46790@debbugs.gnu.org; Sat, 24 Apr 2021 12:31:37 -0400 Original-Received: from submission (posteo.de [89.146.220.130]) by mout01.posteo.de (Postfix) with ESMTPS id 00AE5240026 for <46790@debbugs.gnu.org>; Sat, 24 Apr 2021 18:31:29 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=posteo.net; s=2017; t=1619281890; bh=5rvw293onnUEqyrsvbPPHJ/ntrDMMlC0tvL1NulS3Bk=; h=From:To:Cc:Subject:Date:From; b=l/uJBePRHHEhPg64teJWcHb+up1ZD6IeTHt8yckW8o/erscZbQ9HNDdeARfB6ANqp mAZyMD9wWteHB0v1eFug/f8WTw9iaV1PleMBs+LEePkfPijCzBtRsKjidAvyTUs4YI nQdZBO4rxGqPWP9qH2YY/IqD335ILNcMHauL9uWLRoZPrwgsaTsrGExn7RkLOLc7kk /AHU00DMlkFgRp1sywSWaMRfOCqKBCnHaitT+dzeXrEwhMGY73SosDfg1GVVrOZCf1 +O3/IClXS00HlgY/iBCycCijib4QGX+twUW7+YWABZzd6/y/BdYfAiiSLvTrdtE+RL H2az0nzmTYloA== Original-Received: from customer (localhost [127.0.0.1]) by submission (posteo.de) with ESMTPSA id 4FSGr83mgkz6tmD; Sat, 24 Apr 2021 18:31:20 +0200 (CEST) In-reply-to: <83czujn04h.fsf@gnu.org> 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:204811 Archived-At: --=-=-= Content-Type: text/plain Content-Transfer-Encoding: quoted-printable Eli Zaretskii writes: >> From: Thierry Volpiatto >> Cc: akrl@sdf.org, psainty@orcon.net.nz, 46790@debbugs.gnu.org >> Date: Sat, 24 Apr 2021 15:22:38 +0000 >>=20 >> I rebuilded emacs starting at b064ddd3f60 and trying to copy a file >> with dired-async, it fails with error in process buffer "*emacs*" with: >>=20 >> emacs: >> /usr/local/sbin/emacs-28.0.50/../native-lisp/28.0.50-2f134e58/preloaded/= window-0d1b8b93-581f9fcd.eln: >> cannot open shared object file: No such file or directory > > That's too fast. Let's make one step back. Before you copy the file > with dired-async, you start the interactive Emacs session, right? Yes from PATH with emacs which is a symlink in /usr/local/bin pointing to /usr/local/sbin/emacs-28.0.50/emacs-28.0.50. And yes emacs starts fine like this. And if I start it from=20 /usr/local/sbin/emacs-28.0.50/emacs-28.0.50 with ./emacs it fails to start with always the same error: emacs: /usr/local/sbin/emacs-28.0.50/../native-lisp/28.0.50-2f134e58/preloa= ded/window-0d1b8b93-581f9fcd.eln: cannot open shared object file: No such f= ile or directory I also don't understand why emacs start from /usr/local/bin/emacs (the symlink) but not directly from the true directory /usr/local/sbin/emacs-28.0.50/emacs-28.0.50 with ./emacs. > Or do you start dired-async in batch mode directly from the shell > prompt? No. >> Then I do the symlink (here from /usr/local/sbin/ directory): >>=20 >> sudo ln -s /usr/local/lib/emacs/28.0.50/native-lisp/ . >>=20 >> And now I can copy a file from dired-async with no error even without >> restarting emacs. > > That's understandable with the code that was on the branch back then. > But the code have changed a lot (to support Emacs invocation via > symlinks), and it changed in a way that should have worked for you > even without the symlink to native-lisp/. So what happens with the > branch HEAD if you start Emacs as "emacs -Q" when there's no symlink > in /usr/local/sbin/ to native-lisp/? does it start or does it crash or > does it display some error message and fails to start? Yes it starts. But then fails with dired-async with and without the native-lisp/ symlink. >> If you want to reproduce you can bypass dired-async >> and use something like this much simpler which avoid possible errors >> from something else and need no configuration: >>=20 >> (async-start >> (lambda () >> (copy-file "~/.emacs.d/init.el" "~/tmp/"))) >>=20 >> you should have now a buffer "*emacs*" with same contents as above. > > This is a sexp you evaluate in a running Emacs session, right? Yes. > So how did that running Emacs session start successfully if you say > that you needed the symlink to native-lisp/ ? As said above it starts fine from /usr/local/bin but fails from /usr/local/sbin/emacs-28.0.50/emacs-28.0.50 and running ./emacs. > I'm sorry to ask so many questions, but I'm still in the dark wrt what > exactly do you do to reproduce the problem and what happens when you > do that. No problems. =2D-=20 Thierry --=-=-= Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQHHBAEBCgAxFiEEI9twfRN7r3nig/xwDsVtFB0W75MFAmCER9UTHHRoaWV2b2xA cG9zdGVvLm5ldAAKCRAOxW0UHRbvk9fDC/44H5Y9P4yFpKx9hXt/KllXa+/MNBrO IneoTw/9jMrtm43T0/u7TELGMIjZTWonw0AMFslE3dtGThlVy3024qPeZV1eePMx M/rKHqejhNJCBXvJa47X99C5tDKftXs4qDmCDjfR/lf4kklmOoaIP0QK1XKWn9eg fG0x3xYiop9Y7zx73bcXA1rD8311C9R5wM8S4TPCAsg//0+rOBA9mFRBqF2+krfQ TkAWYrV8jVVlZTuQhz1oLCvqW+3Rjv9pEO2XKyCG2uSqf5Wu8+PxbFCdkVUOEWDG jbwJKhm+92QBWKDJTDnXJCbl78WE52suJxUeeZCeHK4yLo8umenqZpAzbTo2sGXA tqQ9Vj5EWuFQu6MTcsgrEhma42NDYMwZL4PQD85rtc5yCHDfzNW9eafHItfTeXr3 bb8OEd9RCdrfnjF5js9lkUH26SQytsARIwieWJ7Nfp5EfiFBoknk1ZvRRIvT4rlm NqUfVwJfBQXMkWqf1PIYt0y+vAAKxdJz2VY= =fEv0 -----END PGP SIGNATURE----- --=-=-=--