* native-comp error: Invalid function #<subr or>
@ 2024-10-31 9:00 mousebot
2024-10-31 13:46 ` Stefan Monnier via Users list for the GNU Emacs text editor
0 siblings, 1 reply; 2+ messages in thread
From: mousebot @ 2024-10-31 9:00 UTC (permalink / raw)
To: help-gnu-emacs
hi,
i maintain mastodon.el.
when i build it from a package archive, i get the following errors during native compiling:
Warning (comp): /path/to/.emacs.d/straight/build/mastodon/mastodon-tl.el: Error: Invalid function #<subr or>
it happens for two files in mastodon.el.
i'm unsure how to debug, or how to even understand this message. i'm also unable to reproduce it locally, or perhaps i just don't know how to native compile a package locally...
is anyone able to throw me any little bones/pointers?
thanks,
m
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: native-comp error: Invalid function #<subr or>
2024-10-31 9:00 native-comp error: Invalid function #<subr or> mousebot
@ 2024-10-31 13:46 ` Stefan Monnier via Users list for the GNU Emacs text editor
0 siblings, 0 replies; 2+ messages in thread
From: Stefan Monnier via Users list for the GNU Emacs text editor @ 2024-10-31 13:46 UTC (permalink / raw)
To: help-gnu-emacs
> when i build it from a package archive, i get the following errors
> during native compiling:
>
> Warning (comp): /path/to/.emacs.d/straight/build/mastodon/mastodon-tl.el:
> Error: Invalid function #<subr or>
AFAIK this error is what you get when you treat `or` as a function
(e.g. pass it to `funcall`).
Try and `(setq debug-on-error t byte-compile-debug t)` before
reproducing that problem, which will hopefully give you a backtrace.
Stefan
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2024-10-31 13:46 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2024-10-31 9:00 native-comp error: Invalid function #<subr or> mousebot
2024-10-31 13:46 ` Stefan Monnier via Users list for the GNU Emacs text editor
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).