Fresh 30.1 installation : spurious (void-variable ERROR:) messages and emacs working badly

Eric Würbel <[email protected]>
Newsgroups gmane.emacs.help
Message-ID <[email protected]>
I just finished upgrading a computer from debian bookworm to trixie, and 
have a lot of problems with emacs. At the begining I thought that the 
problem was lying in my config, but even with `emacs -q` The 
`*Messages*` buffer contains the following :

```
     Loading /etc/emacs/site-start.d/00debian.el (source)...done
     Loading /etc/emacs/site-start.d/50autoconf.el (source)...done
     Loading /etc/emacs/site-start.d/50dictionaries-common.el (source)...
     Loading debian-ispell...
     Loading /var/cache/dictionaries-common/emacsen-ispell-default.el 
(source)...done
     Loading debian-ispell...done
     Loading /var/cache/dictionaries-common/emacsen-ispell-dicts.el 
(source)...done
     Loading /etc/emacs/site-start.d/50dictionaries-common.el 
(source)...done
     Loading /etc/emacs/site-start.d/50latexmk.el (source)...done
     For information about GNU Emacs and the GNU system, type C-h C-a.
     Error muted by safe_call: (apply native--compile-async 
("/usr/share/emacs/site-lisp/dictionaries-common/debian-ispell.el" nil 
late)) signaled (void-variable ERROR:)
     Error muted by safe_call: (apply native--compile-async 
("/usr/share/emacs/30.1/lisp/emacs-lisp/rx.el.gz" nil late)) signaled 
(void-variable ERROR:) [66 times]
     Error muted by safe_call: (apply native--compile-async 
("/usr/share/emacs/site-lisp/dictionaries-common/debian-ispell.el" nil 
late)) signaled (void-variable ERROR:) [9 times]
     Error muted by safe_call: (apply native--compile-async 
("/usr/share/emacs/30.1/lisp/cus-edit.el.gz" nil late)) signaled 
(void-variable ERROR:) [96 times]
     Error muted by safe_call: (apply native--compile-async 
("/usr/share/emacs/30.1/lisp/emacs-lisp/pp.el.gz" nil late)) signaled 
(void-variable ERROR:) [27 times]
     Error muted by safe_call: (apply native--compile-async 
("/usr/share/emacs/30.1/lisp/cus-edit.el.gz" nil late)) signaled 
(void-variable ERROR:) [105 times]
     Error muted by safe_call: (apply native--compile-async 
("/usr/share/emacs/30.1/lisp/emacs-lisp/icons.el.gz" nil late)) signaled 
(void-variable ERROR:) [17 times]
     Error muted by safe_call: (apply native--compile-async 
("/usr/share/emacs/30.1/lisp/wid-edit.el.gz" nil late)) signaled 
(void-variable ERROR:) [209 times]
     Error muted by safe_call: (apply native--compile-async 
("/usr/share/emacs/30.1/lisp/emacs-lisp/cl-lib.el.gz" nil late)) 
signaled (void-variable ERROR:) [30 times]
     Error muted by safe_call: (apply native--compile-async 
("/usr/share/emacs/site-lisp/debian-startup.el" nil late)) signaled 
(void-variable ERROR:) [4 times]
```


The problem is that after that, almost everything is broken. For 
example, running `packages-list-packages` gives another bunch of 
`(void-variable ERROR:)` in the `*Messages*` buffer and the package list 
never appear.

I tried to deactivate all files launched from `/etc/emacs/site-start.d` 
with no success.
I also tried to uninstall emacs with an `apt purge` command and 
reinstall it with no success.

I grepped recursively in all emacs dirs in search of this "ERROR:" string :

```
$ find /etc/emacs/ /usr/share/emacs /usr/share/emacsen-common/ 
/usr/lib/emacs /usr/lib/emacsen-common/ -exec grep -EHn -e 'ERROR:' '{}' 
';' 2>/dev/null
/usr/share/emacs/30.1/etc/ps-prin0.ps:106:    (# ERROR: )prnt errorname 
prnt nl
/usr/share/emacs/30.1/etc/compilation.txt:212: 
ERROR:/Users/salutis/src/AndroidSchemeExperiment/app/build/intermediates/incremental/debug/mergeDebugResources/stripped.dir/layout/item.xml:3: 
AAPT: error: '16dpw' is incompatible with attribute padding (attr) 
dimension.
/usr/share/emacs/30.1/etc/compilation.txt:628:*** ERROR: Spurious text 
after =cut at line 193 in file foo.pm
/usr/share/emacs/30.1/etc/compilation.txt:629:*** ERROR: =over on line 
37 without closing =back at line EOF in file bar.pm
/usr/share/emacs/30.1/etc/compilation.txt:630:*** ERROR: =over on line 1 
without closing =back (at head1) at line 3 in file x.pod
/usr/lib/emacsen-common/emacs-package-install:62:  die "ERROR: cannot 
unlink $::installed_package_state_dir/$pkg: $!, "
/usr/lib/emacsen-common/emacs-package-install:89:        print STDERR 
"ERROR: install script from $pkg package failed\n";
/usr/lib/emacsen-common/emacs-package-install:104:        print STDERR 
"ERROR: install script from $pkg package failed\n";
/usr/lib/emacsen-common/emacs-install:57:  die "ERROR: cannot unlink $f: 
$!, " unless (unlink($f) or $!{ENOENT});
/usr/lib/emacsen-common/emacs-install:90:    print STDERR "ERROR: 
install script from $pkg package failed\n";
/usr/lib/emacsen-common/emacs-package-remove:59:      print STDERR 
"ERROR: remove script from $pkg package failed\n";
/usr/lib/emacsen-common/emacs-package-remove:74:      print STDERR 
"ERROR: remove script from $pkg package failed\n";
/usr/lib/emacsen-common/emacs-package-remove:80:die "ERROR: cannot 
unlink $::installed_package_state_dir/$pkg: $!, "
/usr/lib/emacsen-common/lib.pl:40:      print STDERR "ERROR: $pkg is 
broken - called $script as an old-style add-on, but has compat file.\n";
/usr/lib/emacsen-common/lib.pl:48:      print STDERR "ERROR: $pkg is 
broken - called $script as a new-style add-on, but has no compat file.\n";
/usr/lib/emacsen-common/emacs-remove:69:    print STDERR "ERROR: remove 
script from $pkg package failed\n";
/usr/lib/emacsen-common/emacs-remove:75:die "ERROR: cannot unlink 
$pending_flavor: $!, "
/usr/lib/emacsen-common/emacs-remove:81:die "ERROR: cannot unlink 
$::installed_flavor_state_dir/$flavor: $!, "
```
I do not see any problem with this : occurrences of ERROR: are only in 
strings, so I cannot see any reference to an undefined ERROR: variable !

I'm completely stuck and urgently need my emacs to work again.

Does anybody have any idea of other directions to investigate ?
Thank you in advance.
Regards.

Eric


-- 
Éric Würbel
http://eric-wurbel.pedaweb.univ-amu.fr/extranet/
Enseignement: IUT R&T
Recherche: LIS CNRS, UMR7020
http://www.lis-lab.fr/
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.