unofficial mirror of bug-gnu-emacs@gnu.org 
 help / color / mirror / code / Atom feed
* bug#55741: Getting an error when running the Emacs 28.1 binary that I built from source
@ 2022-05-31 13:01 cinnaroll45 via Bug reports for GNU Emacs, the Swiss army knife of text editors
  2022-05-31 15:58 ` Eli Zaretskii
  2022-05-31 16:29 ` Eli Zaretskii
  0 siblings, 2 replies; 9+ messages in thread
From: cinnaroll45 via Bug reports for GNU Emacs, the Swiss army knife of text editors @ 2022-05-31 13:01 UTC (permalink / raw)
  To: 55741

[-- Attachment #1: Type: text/plain, Size: 1768 bytes --]

OS: Debian 11 (Fresh Install)

ARCH: amd64

When building Emacs 27.2 from source, I use the following config:

```bash

./autogen.sh
./configure --prefix=/home/user/emacs --bindir=/home/user/bin \
    --with-json --with-gif --with-jpeg --with-png --with-tiff --with-rsvg

```

It builds without an issue and the binaries end up in my PATH and I can run Emacs.

When building Emacs 28.1 on the same system, I use the same config but with the addition of the `--with-native-compilation`flag:

```bash

./autogen.sh
./configure --prefix=/home/user/emacs --bindir=/home/user/bin \
    --with-native-compilation \
    --with-json --with-gif --with-jpeg --with-png --with-tiff --with-rsvg

```

The build goes without a hitch and the binaries end up in my PATH. However when I try to run the Emacs binary, I get the following error:

`Error using execdir /home/user/emacs/libexec/emacs/28.1/x86_64-pc-linux-gnu/../../../../bin/:
emacs: /home/user/emacs/libexec/emacs/28.1/x86_64-pc-linux-gnu/../../../../bin/../native-lisp/28.1-2120ad00/preloaded/window-0d1b8b93-7ef4271a.eln: cannot open shared object file: No such file or directory`

I should also note that, if I try to run the built binary within the `src`folder, Emacs starts without an issue. Only the binary that's on my PATH seems to have this error.

I have found a very similar problem on the emacs-devel mailing list:

[https://lists.gnu.org/archive/html/emacs-devel/2021-05/msg00003.htm](https://lists.gnu.org/archive/html/emacs-devel/2021-05/msg00003.html)

However, the person is trying to create a deb package so the recommendations there didn't help me.

Both source files are tarballs from the GNU FTP server and my system is Debian stable. Cleaning up build configs and trying fresh builds has not helped.

[-- Attachment #2: Type: text/html, Size: 13050 bytes --]

^ permalink raw reply	[flat|nested] 9+ messages in thread

end of thread, other threads:[~2022-06-20 16:05 UTC | newest]

Thread overview: 9+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-05-31 13:01 bug#55741: Getting an error when running the Emacs 28.1 binary that I built from source cinnaroll45 via Bug reports for GNU Emacs, the Swiss army knife of text editors
2022-05-31 15:58 ` Eli Zaretskii
     [not found]   ` <RKVYjycV9vhF-w_P2jZl06F_xdQXNTPAE8q9YTBR2day91p9qWwBo93JnKMApdg4BE_Uqhkk1BpMQEHKPQVuMWoujvnk5yC6Jsh3Y28whLE=@proton.me>
2022-05-31 19:10     ` Eli Zaretskii
2022-05-31 16:29 ` Eli Zaretskii
2022-05-31 16:57   ` Eli Zaretskii
2022-05-31 19:50     ` cinnaroll45 via Bug reports for GNU Emacs, the Swiss army knife of text editors
2022-06-02  7:02       ` Eli Zaretskii
2022-06-11 10:54         ` Eli Zaretskii
2022-06-20 16:05           ` Eli Zaretskii

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