all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
* 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

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.