Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 856667 - app-editors/emacs-28.1: Eager macro-expansion failure: (wrong-number-of-arguments (3 . 4) 2)
Summary: app-editors/emacs-28.1: Eager macro-expansion failure: (wrong-number-of-argum...
Status: RESOLVED INVALID
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: GNU Emacs project
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2022-07-06 09:20 UTC by Joakim Tjernlund
Modified: 2022-07-06 11:05 UTC (History)
0 users

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Joakim Tjernlund 2022-07-06 09:20:48 UTC
With emacs-28 I get when starting emacs:
Eager macro-expansion failure: (wrong-number-of-arguments (3 . 4) 2)
Eager macro-expansion failure: (wrong-number-of-arguments (3 . 4) 2)
Error loading autoloads: (wrong-number-of-arguments (3 . 4) 2)

This turns out to be surprisingly hard to track down, what magic
do I need to do to get some BT to find where this is coming from?
Comment 1 Maciej Barć gentoo-dev 2022-07-06 09:28:41 UTC
> Error loading autoloads: (wrong-number-of-arguments (3 . 4) 2)

Interesting, this might be coming from one of your installed pkgs autoload files.
I'm not sure if it would print this if it were one of pkgs installed from the app-emacs category...

What pkgs do you have installed if any?

Also, you can try passing the --debug-init option to get more info.
Comment 2 Ulrich Müller gentoo-dev 2022-07-06 09:31:35 UTC
Does the problem occur if you start Emacs with "emacs -Q"? If not, try combinations of the "-q", "--no-site-file" and "--no-site-lisp" option to narrow it down further.

Rebuilding elisp packages with emacs-updater may also help.
Comment 3 Joakim Tjernlund 2022-07-06 09:42:25 UTC
-Q and -q -> no Error
--no-site-file or --no-site-lisp -> Error

emacs-updater already run:
emacs-updater -p
* Searching for byte-compiled elisp files ...
* Currently selected GNU Emacs version: 28.1
Skipping xclip.elc (compiled by Emacs 28.1)
Skipping queue.elc (compiled by Emacs 28.1)
Skipping protobuf-mode.elc (compiled by Emacs 28.1)
Skipping company-abbrev.elc (compiled by Emacs 28.1)
Skipping company-bbdb.elc (compiled by Emacs 28.1)
Skipping company-capf.elc (compiled by Emacs 28.1)
Skipping company-clang.elc (compiled by Emacs 28.1)
Skipping company-cmake.elc (compiled by Emacs 28.1)
Skipping company-css.elc (compiled by Emacs 28.1)
Skipping company-dabbrev-code.elc (compiled by Emacs 28.1)
Skipping company-dabbrev.elc (compiled by Emacs 28.1)
Skipping company-eclim.elc (compiled by Emacs 28.1)
Skipping company-elisp.elc (compiled by Emacs 28.1)
Skipping company-etags.elc (compiled by Emacs 28.1)
Skipping company-files.elc (compiled by Emacs 28.1)
Skipping company-gtags.elc (compiled by Emacs 28.1)
Skipping company-ispell.elc (compiled by Emacs 28.1)
Skipping company-keywords.elc (compiled by Emacs 28.1)
Skipping company-nxml.elc (compiled by Emacs 28.1)
Skipping company-oddmuse.elc (compiled by Emacs 28.1)
Skipping company-semantic.elc (compiled by Emacs 28.1)
Skipping company-template.elc (compiled by Emacs 28.1)
Skipping company-tempo.elc (compiled by Emacs 28.1)
Skipping company-tests.elc (compiled by Emacs 28.1)
Skipping company-tng.elc (compiled by Emacs 28.1)
Skipping company-xcode.elc (compiled by Emacs 28.1)
Skipping company-yasnippet.elc (compiled by Emacs 28.1)
Skipping company.elc (compiled by Emacs 28.1)
Skipping rtags.elc (compiled by Emacs 28.1)
Skipping ac-rtags.elc (compiled by Emacs 28.1)
Skipping helm-rtags.elc (compiled by Emacs 28.1)
Skipping ivy-rtags.elc (compiled by Emacs 28.1)
Skipping company-rtags.elc (compiled by Emacs 28.1)
Skipping flycheck-rtags.elc (compiled by Emacs 28.1)
Skipping rtags-xref.elc (compiled by Emacs 28.1)
Skipping mailutils-mh.elc (compiled by Emacs 28.1)
Skipping mercurial.elc (compiled by Emacs 28.1)
Skipping cython-mode.elc (compiled by Emacs 28.1)
Skipping gtk-doc.elc (compiled by Emacs 28.1)
Skipping evil-command-window.elc (compiled by Emacs 28.1)
Skipping evil-commands.elc (compiled by Emacs 28.1)
Skipping evil-common.elc (compiled by Emacs 28.1)
Skipping evil-core.elc (compiled by Emacs 28.1)
Skipping evil-development.elc (compiled by Emacs 28.1)
Skipping evil-digraphs.elc (compiled by Emacs 28.1)
Skipping evil-ex.elc (compiled by Emacs 28.1)
Skipping evil-integration.elc (compiled by Emacs 28.1)
Skipping evil-jumps.elc (compiled by Emacs 28.1)
Skipping evil-keybindings.elc (compiled by Emacs 28.1)
Skipping evil-macros.elc (compiled by Emacs 28.1)
Skipping evil-maps.elc (compiled by Emacs 28.1)
Skipping evil-repeat.elc (compiled by Emacs 28.1)
Skipping evil-search.elc (compiled by Emacs 28.1)
Skipping evil-states.elc (compiled by Emacs 28.1)
Skipping evil-types.elc (compiled by Emacs 28.1)
Skipping evil-vars.elc (compiled by Emacs 28.1)
Skipping evil.elc (compiled by Emacs 28.1)
Skipping undo-tree.elc (compiled by Emacs 28.1)
Skipping gtags.elc (compiled by Emacs 28.1)
Skipping ninja-mode.elc (compiled by Emacs 28.1)
Skipping autoconf-mode.elc (compiled by Emacs 28.1)
Skipping autotest-mode.elc (compiled by Emacs 28.1)
Skipping po-compat.elc (compiled by Emacs 28.1)
Skipping po-mode.elc (compiled by Emacs 28.1)
Skipping desktop-entry-mode.elc (compiled by Emacs 28.1)
Skipping xml-parse.elc (compiled by Emacs 28.1)
Skipping doxymacs.elc (compiled by Emacs 28.1)
Skipping vhdl-mode.elc (compiled by Emacs 28.1)
Skipping counter.elc (compiled by Emacs 28.1)
Skipping dm-c.elc (compiled by Emacs 28.1)
Skipping dmacro.elc (compiled by Emacs 28.1)
Skipping npcm-mode.elc (compiled by Emacs 28.1)
Skipping tm-3000-c-dmacro.elc (compiled by Emacs 28.1)
Skipping tm-3000-mode.elc (compiled by Emacs 28.1)
Skipping tm-doxymacs.elc (compiled by Emacs 28.1)
Skipping tm-jsdoxy.elc (compiled by Emacs 28.1)
Skipping tm-rtags.elc (compiled by Emacs 28.1)
Skipping transmode-dmacros.elc (compiled by Emacs 28.1)
Skipping transmode-modes.elc (compiled by Emacs 28.1)
Skipping ts-1100-c-dmacro.elc (compiled by Emacs 28.1)
Skipping ts-1100-mode.elc (compiled by Emacs 28.1)
Skipping php-align.elc (compiled by Emacs 28.1)
Skipping php-face.elc (compiled by Emacs 28.1)
Skipping php-local-manual.elc (compiled by Emacs 28.1)
Skipping php-mode-debug.elc (compiled by Emacs 28.1)
Skipping php-mode.elc (compiled by Emacs 28.1)
Skipping php-project.elc (compiled by Emacs 28.1)
Skipping php.elc (compiled by Emacs 28.1)
Skipping js2-imenu-extras.elc (compiled by Emacs 28.1)
Skipping js2-mode.elc (compiled by Emacs 28.1)
Skipping js2-old-indent.elc (compiled by Emacs 28.1)
Skipping xcscope.elc (compiled by Emacs 28.1)
Skipping idna.elc (compiled by Emacs 28.1)
Skipping punycode.elc (compiled by Emacs 28.1)
Skipping eselect-mode.elc (compiled by Emacs 28.1)
Skipping ecb-advice-test.elc (compiled by Emacs 28.1)
Skipping ecb-analyse.elc (compiled by Emacs 28.1)
Skipping ecb-autogen.elc (compiled by Emacs 28.1)
Skipping ecb-buffertab.elc (compiled by Emacs 28.1)
Skipping ecb-cedet-wrapper.elc (compiled by Emacs 28.1)
Skipping ecb-common-browser.elc (compiled by Emacs 28.1)
Skipping ecb-compatibility.elc (compiled by Emacs 28.1)
Skipping ecb-compilation.elc (compiled by Emacs 28.1)
Skipping ecb-create-layout.elc (compiled by Emacs 28.1)
Skipping ecb-cycle.elc (compiled by Emacs 28.1)
Skipping ecb-eshell.elc (compiled by Emacs 28.1)
Skipping ecb-examples.elc (compiled by Emacs 28.1)
Skipping ecb-face.elc (compiled by Emacs 28.1)
Skipping ecb-file-browser.elc (compiled by Emacs 28.1)
Skipping ecb-help.elc (compiled by Emacs 28.1)
Skipping ecb-jde.elc (compiled by Emacs 28.1)
Skipping ecb-layout-defs.elc (compiled by Emacs 28.1)
Skipping ecb-layout.elc (compiled by Emacs 28.1)
Skipping ecb-method-browser.elc (compiled by Emacs 28.1)
Skipping ecb-mode-line.elc (compiled by Emacs 28.1)
Skipping ecb-multiframe.elc (compiled by Emacs 28.1)
Skipping ecb-navigate.elc (compiled by Emacs 28.1)
Skipping ecb-semantic-wrapper.elc (compiled by Emacs 28.1)
Skipping ecb-semantic.elc (compiled by Emacs 28.1)
Skipping ecb-speedbar.elc (compiled by Emacs 28.1)
Skipping ecb-symboldef.elc (compiled by Emacs 28.1)
Skipping ecb-tod.elc (compiled by Emacs 28.1)
Skipping ecb-upgrade.elc (compiled by Emacs 28.1)
Skipping ecb-util.elc (compiled by Emacs 28.1)
Skipping ecb-winman-support.elc (compiled by Emacs 28.1)
Skipping ecb.elc (compiled by Emacs 28.1)
Skipping silentcomp.elc (compiled by Emacs 28.1)
Skipping tree-buffer.elc (compiled by Emacs 28.1)
Skipping xdvi-search.elc (compiled by Emacs 28.1)
Skipping devbook-mode.elc (compiled by Emacs 28.1)
Skipping ebuild-mode.elc (compiled by Emacs 28.1)
Skipping gentoo-newsitem-mode.elc (compiled by Emacs 28.1)
Skipping glep-mode.elc (compiled by Emacs 28.1)
Skipping dts-mode.elc (compiled by Emacs 28.1)
Skipping cmake-mode.elc (compiled by Emacs 28.1)

* No files to update, quitting.
Comment 4 Sam James archtester Gentoo Infrastructure gentoo-dev Security 2022-07-06 09:46:04 UTC
If emacs -Q is fine, you need to bisect your init (e.g. https://stackoverflow.com/questions/23772890/how-to-find-a-bug-in-emacs-or-init-el) to figure out the naughty pkg.

I've been there and it's no fun!
Comment 5 Ulrich Müller gentoo-dev 2022-07-06 10:03:44 UTC
My guess is that it's a similar issue as in bug 836772, bug 836904, bug 836906, bug 836924 and bug 837347. It is triggered by a change in the definition of define-obsolete-function-alias in Emacs 28.
Comment 6 Joakim Tjernlund 2022-07-06 10:07:21 UTC
(In reply to Ulrich Müller from comment #5)
> My guess is that it's a similar issue as in bug 836772, bug 836904, bug
> 836906, bug 836924 and bug 837347. It is triggered by a change in the
> definition of define-obsolete-function-alias in Emacs 28.

Yes, I have found something in my  ~/.emacs.d, if I remove .emacs.d there
is no error. Looks like i have old stuff in there I need to clean out.
I can manage from here, thanks.