GNU bug report logs -
#55741
Getting an error when running the Emacs 28.1 binary that I built from source
Previous Next
Reported by: cinnaroll45 <cinnaroll45 <at> proton.me>
Date: Tue, 31 May 2022 14:33:02 UTC
Severity: normal
Tags: moreinfo
Done: Eli Zaretskii <eliz <at> gnu.org>
Bug is archived. No further changes may be made.
Full log
View this message in rfc822 format
[Message part 1 (text/plain, inline)]
Your bug report
#55741: Getting an error when running the Emacs 28.1 binary that I built from source
which was filed against the emacs package, has been closed.
The explanation is attached below, along with your original report.
If you require more details, please reply to 55741 <at> debbugs.gnu.org.
--
55741: https://debbugs.gnu.org/cgi/bugreport.cgi?bug=55741
GNU Bug Tracking System
Contact help-debbugs <at> gnu.org with problems
[Message part 2 (message/rfc822, inline)]
> Cc: 55741 <at> debbugs.gnu.org
> Date: Sat, 11 Jun 2022 13:54:01 +0300
> From: Eli Zaretskii <eliz <at> gnu.org>
>
> Ping!
>
> Could you please try the fix I posted? I'd like to install it for
> Emacs 28.2.
No further comments, so I installed the fix on the emacs-28 branch,
and I'm closing the bug.
[Message part 3 (message/rfc822, inline)]
[Message part 4 (text/plain, inline)]
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.
[Message part 5 (text/html, inline)]
This bug report was last modified 2 years and 337 days ago.
Previous Next
GNU bug tracking system
Copyright (C) 1999 Darren O. Benham,
1997,2003 nCipher Corporation Ltd,
1994-97 Ian Jackson.