Bug 1216040 - emacs 29.1.4 native compilation is misbehaving - spacemacs cannot be installed/used
Summary: emacs 29.1.4 native compilation is misbehaving - spacemacs cannot be installe...
Status: RESOLVED NORESPONSE
Alias: None
Product: openSUSE Tumbleweed
Classification: openSUSE
Component: X11 Applications (show other bugs)
Version: Current
Hardware: Other Other
: P5 - None : Normal (vote)
Target Milestone: ---
Assignee: Dr. Werner Fink
QA Contact: E-mail List
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2023-10-09 07:43 UTC by Antonios Konstantinos Pappas
Modified: 2024-01-19 12:20 UTC (History)
3 users (show)

See Also:
Found By: ---
Services Priority:
Business Priority:
Blocker: ---
Marketing QA Status: ---
IT Deployment: ---
werner: needinfo? (apappas)


Attachments
Output of emacs --debug-init (5.55 KB, text/plain)
2023-10-09 12:08 UTC, Antonios Konstantinos Pappas
Details
Output of bash -x /usr/bin/emacs (1.19 KB, text/plain)
2023-10-11 08:24 UTC, Antonios Konstantinos Pappas
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Antonios Konstantinos Pappas 2023-10-09 07:43:52 UTC
Issue: 
A clean installation of spacemacs fails during initializaion with:
eln file inconsistent with current runtime configuration, please recompile: /home/apappas/.emacs.d/eln-cache/29.1-70b784e9/subr--trampoline-6b696c6c2d656d616373_kill_emacs_0.eln

Spacemacs had been working problem free until my last zypper dup

Expected outcome:
Spacemacs works without problems

Steps to reproduce:
1. Install/update to latest emacs (29.1.4)
2. Follow the spacemacs installation instructions  
git clone https://github.com/syl20bnr/spacemacs ~/.emacs.d
mv .emacs .emacs.bak
mv .spacemacs .spacemacs.bak
3. Open emacs and choose any keybind mode
4. Open it again


Last known working release:
emacs 29.1.0

I build the rpms from revision 357 locally and installed them with everything working as expected https://build.opensuse.org/package/show/editors/emacs?rev=357 

I suspect that 
- Provide eln native shared binaries for all emacs program binaries
in the recent updates may be the culprit.
Comment 1 Dr. Werner Fink 2023-10-09 07:58:48 UTC
What exactly should I do here?  Skipping the eln support is not an option.

And the message is clear

 eln file inconsistent with current runtime configuration, please recompile:
 /home/apappas/.emacs.d/eln-cache/29.1-70b784e9/subr--trampoline-
 6b696c6c2d656d616373_kill_emacs_0.eln

simply remove /home/apappas/.emacs.d/eln-cache/29.1-70b784e9/subr--trampoline-
 6b696c6c2d656d616373_kill_emacs_0.eln

and restart.

(In reply to Antonios Konstantinos Pappas from comment #0)
> Issue: 
> A clean installation of spacemacs fails during initializaion with:
> eln file inconsistent with current runtime configuration, please recompile:
> /home/apappas/.emacs.d/eln-cache/29.1-70b784e9/subr--trampoline-
> 6b696c6c2d656d616373_kill_emacs_0.eln
> 
> Spacemacs had been working problem free until my last zypper dup
> 
> Expected outcome:
> Spacemacs works without problems
> 
> Steps to reproduce:
> 1. Install/update to latest emacs (29.1.4)
> 2. Follow the spacemacs installation instructions  
> git clone https://github.com/syl20bnr/spacemacs ~/.emacs.d
> mv .emacs .emacs.bak
> mv .spacemacs .spacemacs.bak
> 3. Open emacs and choose any keybind mode
> 4. Open it again
> 
> 
> Last known working release:
> emacs 29.1.0
> 
> I build the rpms from revision 357 locally and installed them with
> everything working as expected
> https://build.opensuse.org/package/show/editors/emacs?rev=357 
> 
> I suspect that 
> - Provide eln native shared binaries for all emacs program binaries
> in the recent updates may be the culprit.
Comment 2 Dr. Werner Fink 2023-10-09 07:59:15 UTC
Not a bug
Comment 3 Antonios Konstantinos Pappas 2023-10-09 12:03:22 UTC
Deleting the cache does not resolve the issue. Unless using spacemacs and probably other distributions is not a supported use case, I would suggest this is a bug.
Comment 4 Antonios Konstantinos Pappas 2023-10-09 12:08:42 UTC
Created attachment 869998 [details]
Output of  emacs --debug-init
Comment 5 Dr. Werner Fink 2023-10-09 12:37:42 UTC
(In reply to Antonios Konstantinos Pappas from comment #3)
> Deleting the cache does not resolve the issue. Unless using spacemacs and
> probably other distributions is not a supported use case, I would suggest
> this is a bug.

You have run

   rm -rf /home/apappas/.emacs.d/eln-cache/*

have you ... or in emacs the command native-compile-prune-cache ?

(In reply to Antonios Konstantinos Pappas from comment #4)
> Created attachment 869998 [details]
> Output of  emacs --debug-init

First line of the log shows

  native-lisp-file-inconsistent

And what is

  /home/apappas/.emacs.d/init.el

for?
Comment 6 Dr. Werner Fink 2023-10-09 12:38:47 UTC
Who is maintainer of spacemacs?
Comment 7 Dr. Werner Fink 2023-10-11 07:05:37 UTC
Seems that I've to forece that at update time the latest emacs-eln package has to be installed with the latest eamcs-x11 and/or emacs-nox packages as otherwise the binaries do not find their precompiled eln files ... should be fixed with the SR#1116811
Comment 8 Antonios Konstantinos Pappas 2023-10-11 08:20:01 UTC
I don't think this is the solution as the problem persists even after I remove emacs and emacs-eln and install again. The output of zypper info emacs-eln is then 
...
Name           : emacs-eln
Version        : 29.1-4.2
...

However running emacs-x11 works just fine while emacs-wayland shows the same issue.
Comment 9 Antonios Konstantinos Pappas 2023-10-11 08:24:03 UTC
Created attachment 870079 [details]
Output of bash -x /usr/bin/emacs
Comment 10 Dr. Werner Fink 2023-10-11 12:38:48 UTC
Try out

  EMACS_TOOLKIT=gtk emacs

this should enforce gtk as GUI ... does this work?
Comment 11 Antonios Konstantinos Pappas 2023-10-11 12:45:48 UTC
Yes, but this just launches the X11 version. 

➜  ~ xlsclients
localhost  emacs
Comment 12 Dr. Werner Fink 2023-10-11 13:31:58 UTC
(In reply to Antonios Konstantinos Pappas from comment #11)
> Yes, but this just launches the X11 version. 
> 
> ➜  ~ xlsclients
> localhost  emacs

Forget xlsclient ... see e.g.

ll /proc/$(pidof emacs)/exe 
lrwxrwxrwx 1 root root 0 Oct 11 15:30 /proc/2464/exe -> /usr/bin/emacs-gtk
Comment 13 Björn Bidar 2023-10-11 15:53:12 UTC
Can you please start Emacs without Spacemacs to test?

I suspect you should try to delete the eln-cache and try again.
Comment 14 Dr. Werner Fink 2023-10-19 12:04:40 UTC
Please retest and compare with

  https://build.opensuse.org/package/show/editors/emacs#comment-1836530
Comment 15 Dr. Werner Fink 2024-01-19 12:20:58 UTC
No answer yet  ... pelease reopen if you face this problem again even with cleaned eln-cache