* bug#41877: Bug: feature/native-comp on MacOs Catalina w.r.t. subr-x.eln
@ 2020-06-15 17:19 Gregor Eeckels
2020-06-16 8:39 ` Andrea Corallo
` (2 more replies)
0 siblings, 3 replies; 5+ messages in thread
From: Gregor Eeckels @ 2020-06-15 17:19 UTC (permalink / raw)
To: 41877
[-- Attachment #1: Type: text/plain, Size: 1033 bytes --]
Hello. I am experiencing a weird error.
Native elisp load failed:
"/Applications/Emacs.app/Contents/Resources/lisp/emacs-lisp/eln-x86_64-apple-darwin19.5.0-0d5d423ea4500a50/subr-x.eln",
"dlopen(/Applications/Emacs.app/Contents/Resources/lisp/emacs-lisp/eln-x86_64-apple-darwin19.5.0-0d5d423ea4500a50/subr-x.eln,
1): no suitable image found. Did find:
/Applications/Emacs.app/Contents/Resources/lisp/emacs-lisp/eln-x86_64-apple-darwin19.5.0-0d5d423ea4500a50/subr-x.eln:
file too short
/Applications/Emacs.app/Contents/Resources/lisp/emacs-lisp/eln-x86_64-apple-darwin19.5.0-0d5d423ea4500a50/subr-x.eln:
file too short"
I built emacs using this guide carefully:
https://github.com/shshkn/emacs.d/blob/master/docs/nativecomp.md
Everything worked out, but now this causes errors during the first run and
then emacs fails to load because of the same error after rebooting. The
mentioned file subr-x.eln is empty.
I did create the symbolic link from Resources/elisp to elisp in the
Emacs.app directory.
Thank you for your assistance.
[-- Attachment #2: Type: text/html, Size: 1469 bytes --]
^ permalink raw reply [flat|nested] 5+ messages in thread
* bug#41877: Bug: feature/native-comp on MacOs Catalina w.r.t. subr-x.eln
2020-06-15 17:19 bug#41877: Bug: feature/native-comp on MacOs Catalina w.r.t. subr-x.eln Gregor Eeckels
@ 2020-06-16 8:39 ` Andrea Corallo
2020-06-17 13:38 ` Nicolas Bértolo
2020-09-26 13:57 ` Andrea Corallo via Bug reports for GNU Emacs, the Swiss army knife of text editors
2 siblings, 0 replies; 5+ messages in thread
From: Andrea Corallo @ 2020-06-16 8:39 UTC (permalink / raw)
To: Gregor Eeckels; +Cc: 41877
Gregor Eeckels <gregor.eeckels@gmail.com> writes:
> Hello. I am experiencing a weird error.
>
> Native elisp load failed: "/Applications/Emacs.app/Contents/Resources
> /lisp/emacs-lisp/eln-x86_64-apple-darwin19.5.0-0d5d423ea4500a50/
> subr-x.eln", "dlopen(/Applications/Emacs.app/Contents/Resources/lisp/
> emacs-lisp/eln-x86_64-apple-darwin19.5.0-0d5d423ea4500a50/subr-x.eln,
> 1): no suitable image found. Did find:
> /Applications/Emacs.app/Contents/Resources/lisp/emacs-lisp/
> eln-x86_64-apple-darwin19.5.0-0d5d423ea4500a50/subr-x.eln: file too
> short
> /Applications/Emacs.app/Contents/Resources/lisp/emacs-lisp/
> eln-x86_64-apple-darwin19.5.0-0d5d423ea4500a50/subr-x.eln: file too
> short"
>
> I built emacs using this guide carefully: https://github.com/shshkn/
> emacs.d/blob/master/docs/nativecomp.md
>
> Everything worked out, but now this causes errors during the first
> run and then emacs fails to load because of the same error after
> rebooting. The mentioned file subr-x.eln is empty.
>
> I did create the symbolic link from Resources/elisp to elisp in the
> Emacs.app directory.
> Thank you for your assistance.
Hi Gregor,
I'm not a Mac user so I fear I'll not be able to help.
Actually would be interesting to know why this link is required to
understand if there's something we can do to avoid that on our side.
Andrea
--
akrl@sdf.org
^ permalink raw reply [flat|nested] 5+ messages in thread
* bug#41877: Bug: feature/native-comp on MacOs Catalina w.r.t. subr-x.eln
2020-06-15 17:19 bug#41877: Bug: feature/native-comp on MacOs Catalina w.r.t. subr-x.eln Gregor Eeckels
2020-06-16 8:39 ` Andrea Corallo
@ 2020-06-17 13:38 ` Nicolas Bértolo
2020-09-26 13:57 ` Andrea Corallo via Bug reports for GNU Emacs, the Swiss army knife of text editors
2 siblings, 0 replies; 5+ messages in thread
From: Nicolas Bértolo @ 2020-06-17 13:38 UTC (permalink / raw)
To: 41877; +Cc: Andrea Corallo, gregor.eeckels
Hi,
I have seen empty .eln files created in Windows. This usually happens when
libgccjit cannot find the correct GCC installation to run the final steps.
I am not a Mac user either, but AFAIK, launching an .app is not the same as
running it from the console. The PATH variable will not have all your
customizations, for example.
A wild guess is that Emacs didn't compile subr-x.eln during the bootstrap
process because NATIVE_FAST_BOOT was enabled. Then, you opened Emacs.app and it
kickstarted the deferred compilation process. This was run in an environment
without the correct PATH, so it could not find GCC and the empty file was
created.
Try deleting subr-x.eln and start Emacs again. You may have to delete other
empty files too. Then run (executable-find "gcc"). Check that this is the same
as `which gcc` in the shell you used to compile Emacs.
You could also check the "*Async-native-compile-log*" buffer for any error
messages.
Nico.
^ permalink raw reply [flat|nested] 5+ messages in thread
* bug#41877: Bug: feature/native-comp on MacOs Catalina w.r.t. subr-x.eln
2020-06-15 17:19 bug#41877: Bug: feature/native-comp on MacOs Catalina w.r.t. subr-x.eln Gregor Eeckels
2020-06-16 8:39 ` Andrea Corallo
2020-06-17 13:38 ` Nicolas Bértolo
@ 2020-09-26 13:57 ` Andrea Corallo via Bug reports for GNU Emacs, the Swiss army knife of text editors
2020-10-07 14:51 ` Andrea Corallo via Bug reports for GNU Emacs, the Swiss army knife of text editors
2 siblings, 1 reply; 5+ messages in thread
From: Andrea Corallo via Bug reports for GNU Emacs, the Swiss army knife of text editors @ 2020-09-26 13:57 UTC (permalink / raw)
To: Gregor Eeckels; +Cc: 41877
Gregor Eeckels <gregor.eeckels@gmail.com> writes:
> Hello. I am experiencing a weird error.
>
> Native elisp load failed:
> "/Applications/Emacs.app/Contents/Resources/lisp/emacs-lisp/eln-x86_64-apple-darwin19.5.0-0d5d423ea4500a50/subr-x.eln",
> "dlopen
> (/Applications/Emacs.app/Contents/Resources/lisp/emacs-lisp/eln-x86_64-apple-darwin19.5.0-0d5d423ea4500a50/subr-x.eln,
> 1): no suitable image found. Did find:
> /Applications/Emacs.app/Contents/Resources/lisp/emacs-lisp/eln-x86_64-apple-darwin19.5.0-0d5d423ea4500a50/subr-x.eln:
> file too short
> /Applications/Emacs.app/Contents/Resources/lisp/emacs-lisp/eln-x86_64-apple-darwin19.5.0-0d5d423ea4500a50/subr-x.eln:
> file too short"
>
> I built emacs using this guide carefully: https://github.com/shshkn/emacs.d/blob/master/docs/nativecomp.md
>
> Everything worked out, but now this causes errors during the first run and then emacs fails to load because of the same
> error after rebooting. The mentioned file subr-x.eln is empty.
>
> I did create the symbolic link from Resources/elisp to elisp in the Emacs.app directory.
> Thank you for your assistance.
Hi Gregor,
could you tell if this issue still applies to the current branch?
Thanks!
Andrea
^ permalink raw reply [flat|nested] 5+ messages in thread
end of thread, other threads:[~2020-10-07 14:51 UTC | newest]
Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2020-06-15 17:19 bug#41877: Bug: feature/native-comp on MacOs Catalina w.r.t. subr-x.eln Gregor Eeckels
2020-06-16 8:39 ` Andrea Corallo
2020-06-17 13:38 ` Nicolas Bértolo
2020-09-26 13:57 ` Andrea Corallo via Bug reports for GNU Emacs, the Swiss army knife of text editors
2020-10-07 14:51 ` Andrea Corallo via Bug reports for GNU Emacs, the Swiss army knife of text editors
Code repositories for project(s) associated with this external index
https://git.savannah.gnu.org/cgit/emacs.git
https://git.savannah.gnu.org/cgit/emacs/org-mode.git
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.