22 Dec 2024 |
| ian joined the room. | 09:04:39 |
| phasmid joined the room. | 16:27:31 |
| allrealmsoflife joined the room. | 20:28:41 |
24 Dec 2024 |
qbit | huh, seems gs is missing from the latest texlive stuff | 00:53:49 |
| misha joined the room. | 09:26:31 |
misha | Hi all, I (think) I have been closely following this manual for installing Emacs on NixOS, but with this set-up, when I run Emacs, it cannot find the packages that I have installed (in this test case only evil). Do you maybe have any tips? | 09:31:50 |
misha | (I can see that packages are installed in the /nix/store...) | 09:32:35 |
misha | It's just that Emacs doesn't find them | 09:32:43 |
misha | I would say it's an issue of load-path? But I'm a bit stuck. | 09:33:24 |
adisbladis | The ((emacsPackagesFor emacs30).emacsWithPackages bit returns a wrapped Emacs with all the packages available, but you also have emacs30 above which is an unwrapped emacs | 09:38:49 |
adisbladis | You'll want to remove the unwrapped one | 09:39:18 |
misha | Ah... How stupid. Thank you so much. | 10:00:16 |
26 Dec 2024 |
| tubobo joined the room. | 00:37:02 |
tubobo | Folks my emacs kept on crashing after a recent nixos rebuild. I'm on NixOS running KDE Plasma 6.2.4, on nixos-unstable. My doom-emacs config hasn't changed for more than a year. I've tried changing package to emacs, emacs30, emacs30-pgtk etc and none of them works. emacs -nw and emacs -q works fine.
Fatal error 11: Segmentation fault
Backtrace:
/nix/store/laalwa0p76k3vqc4z7hvdjgir47ncgl8-emacs-pgtk-30.0.92/bin/emacs() [0x538468]
/nix/store/laalwa0p76k3vqc4z7hvdjgir47ncgl8-emacs-pgtk-30.0.92/bin/emacs() [0x422995]
/nix/store/laalwa0p76k3vqc4z7hvdjgir47ncgl8-emacs-pgtk-30.0.92/bin/emacs() [0x422f09]
/nix/store/laalwa0p76k3vqc4z7hvdjgir47ncgl8-emacs-pgtk-30.0.92/bin/emacs() [0x536258]
/nix/store/laalwa0p76k3vqc4z7hvdjgir47ncgl8-emacs-pgtk-30.0.92/bin/emacs() [0x5362dc]
/nix/store/wn7v2vhyyyi6clcyn0s9ixvl7d4d87ic-glibc-2.40-36/lib/libc.so.6(+0x40620) [0x7fb7068de620]
/nix/store/laalwa0p76k3vqc4z7hvdjgir47ncgl8-emacs-pgtk-30.0.92/bin/emacs() [0x44a349]
/nix/store/laalwa0p76k3vqc4z7hvdjgir47ncgl8-emacs-pgtk-30.0.92/bin/emacs() [0x4633e1]
/nix/store/laalwa0p76k3vqc4z7hvdjgir47ncgl8-emacs-pgtk-30.0.92/bin/emacs() [0x464221]
/nix/store/laalwa0p76k3vqc4z7hvdjgir47ncgl8-emacs-pgtk-30.0.92/bin/emacs() [0x464c80]
/nix/store/laalwa0p76k3vqc4z7hvdjgir47ncgl8-emacs-pgtk-30.0.92/bin/emacs() [0x45df56]
/nix/store/laalwa0p76k3vqc4z7hvdjgir47ncgl8-emacs-pgtk-30.0.92/bin/emacs() [0x468d98]
/nix/store/laalwa0p76k3vqc4z7hvdjgir47ncgl8-emacs-pgtk-30.0.92/bin/emacs() [0x466966]
/nix/store/laalwa0p76k3vqc4z7hvdjgir47ncgl8-emacs-pgtk-30.0.92/bin/emacs() [0x46f6e0]
/nix/store/laalwa0p76k3vqc4z7hvdjgir47ncgl8-emacs-pgtk-30.0.92/bin/emacs() [0x473ef0]
/nix/store/laalwa0p76k3vqc4z7hvdjgir47ncgl8-emacs-pgtk-30.0.92/bin/emacs() [0x4949b1]
/nix/store/laalwa0p76k3vqc4z7hvdjgir47ncgl8-emacs-pgtk-30.0.92/bin/emacs() [0x4955fb]
/nix/store/laalwa0p76k3vqc4z7hvdjgir47ncgl8-emacs-pgtk-30.0.92/bin/emacs() [0x5a76fc]
/nix/store/laalwa0p76k3vqc4z7hvdjgir47ncgl8-emacs-pgtk-30.0.92/bin/emacs() [0x448459]
/nix/store/laalwa0p76k3vqc4z7hvdjgir47ncgl8-emacs-pgtk-30.0.92/bin/emacs() [0x47dc4d]
/nix/store/laalwa0p76k3vqc4z7hvdjgir47ncgl8-emacs-pgtk-30.0.92/bin/emacs() [0x524004]
/nix/store/laalwa0p76k3vqc4z7hvdjgir47ncgl8-emacs-pgtk-30.0.92/bin/emacs() [0x528229]
/nix/store/laalwa0p76k3vqc4z7hvdjgir47ncgl8-emacs-pgtk-30.0.92/bin/emacs() [0x52a5b2]
/nix/store/laalwa0p76k3vqc4z7hvdjgir47ncgl8-emacs-pgtk-30.0.92/bin/emacs() [0x5a7667]
/nix/store/laalwa0p76k3vqc4z7hvdjgir47ncgl8-emacs-pgtk-30.0.92/bin/emacs() [0x514946]
/nix/store/laalwa0p76k3vqc4z7hvdjgir47ncgl8-emacs-pgtk-30.0.92/bin/emacs() [0x5a7553]
/nix/store/laalwa0p76k3vqc4z7hvdjgir47ncgl8-emacs-pgtk-30.0.92/bin/emacs() [0x5148d9]
/nix/store/laalwa0p76k3vqc4z7hvdjgir47ncgl8-emacs-pgtk-30.0.92/bin/emacs() [0x51970a]
/nix/store/laalwa0p76k3vqc4z7hvdjgir47ncgl8-emacs-pgtk-30.0.92/bin/emacs() [0x519aaf]
/nix/store/laalwa0p76k3vqc4z7hvdjgir47ncgl8-emacs-pgtk-30.0.92/bin/emacs() [0x42bd2a]
/nix/store/wn7v2vhyyyi6clcyn0s9ixvl7d4d87ic-glibc-2.40-36/lib/libc.so.6(+0x2a27e) [0x7fb7068c827e]
/nix/store/wn7v2vhyyyi6clcyn0s9ixvl7d4d87ic-glibc-2.40-36/lib/libc.so.6(__libc_start_main+0x89) [0x7fb7068c8339]
/nix/store/laalwa0p76k3vqc4z7hvdjgir47ncgl8-emacs-pgtk-30.0.92/bin/emacs() [0x42c365]
fish: Job 1, 'emacs' terminated by signal SIGSEGV (Address boundary error)
| 00:55:57 |
| @10leej:matrix.org left the room. | 01:42:06 |
rrix | that is not a valuable stack trace unfortunately | 03:55:19 |
rrix | https://nixos.wiki/wiki/Debug_Symbols | 03:55:55 |
tubobo | it seems getting the debug symbols is quite involved haha... a bit beyond my nix-fu | 04:31:38 |
rrix | wherever you set your emacs package you can call overrideAttrs on it to specify dontStrip etc https://nixos.org/manual/nixpkgs/stable/#sec-pkg-overrideAttrs | 04:35:21 |
rrix | the nix-build example oneliner too in that debug symbols page should get you there | 04:36:18 |
rrix | on my phone but sth like nix-build -E 'with import <nixpkgs> {}; enableDebugging emacs' | 04:36:58 |
rrix | bit more of a pain to use the oxerlay version tho | 04:37:16 |
tubobo | thank you so much. will this work for nix flake? | 04:38:08 |
rrix | oh i forgot that gdb needs source etc i see what you mean | 04:38:21 |
rrix | but you can still get the emacs stack without going all the way down the rabbit hole | 04:38:51 |
rrix | In reply to @tubobo:matrix.org thank you so much. will this work for nix flake? enableDebugging is just a function in nixpkgs, you can access it in flake outputs sure | 04:39:52 |
| * rrix afk | 04:40:14 |
tubobo | So, I recompiled emacs with the dontStripe attribute, and this failed to compile until after I removed emacsPackage.vterm . After that emacs is starting fine. | 04:59:44 |
tubobo | thank you @rrix for helping out | 05:08:20 |
rrix | lol ofc its a heisenbug crash that goes away when you enable symbols 🤣 | 06:09:23 |