Open
Description
Hi,
I recently upgraded my MacOS to Sequoia 15.4 and emacs started crashing. I was getting the following error:
nix/apps/aarch64-darwin on HEAD (3c2df18) [$✘!+] 🥋 (q 9 (no description set)) took 9s
➜ emacs
dyld[30686]: Library not loaded: /nix/store/lzxyfrbxm4vjxya4fxvibnw3pj4fqsfn-libgccjit-14-20241116/lib/libgccjit.0.dylib
Referenced from: <86BF1B9D-C07F-32FC-A8E5-851B7FB80E09> /nix/store/9rsrn2wf9c5z3hsarc81z9qqpsfhjjr6-emacs-30.1/bin/emacs-30.1
Reason: tried: '/nix/store/lzxyfrbxm4vjxya4fxvibnw3pj4fqsfn-libgccjit-14-20241116/lib/libgccjit.0.dylib' (duplicate LC_RPATH '@loader_path'), '/System/Volumes/Preboot/Cryptexes/OS/nix/store/lzxyfrbxm4vjxya4fxvibnw3pj4fqsfn-libgccjit-14-20241116/lib/libgccjit.0.dylib' (no such file), '/nix/store/lzxyfrbxm4vjxya4fxvibnw3pj4fqsfn-libgccjit-14-20241116/lib/libgccjit.0.dylib' (duplicate LC_RPATH '@loader_path'), '/usr/local/lib/libgccjit.0.dylib' (duplicate LC_RPATH '@loader_path'), '/usr/lib/libgccjit.0.dylib' (no such file, not in dyld cache)
Error: nu::shell::terminated_by_signal
× External command was terminated by a signal
╭─[entry #45:1:1]
1 │ emacs
· ──┬──
· ╰── terminated by SIGABRT (6)
╰────
I see that libgccjit does exist in the /nix/store/...
path.
I tried overriding it in packages.nix
like so:
(emacs.override {
withNativeCompilation = true;
libgccjit = pkgs.libgccjit.overrideAttrs (old: {
NIX_CFLAGS_COMPILE = "-O3 -march=native";
});
})
and a few other variations of these, but nothing helped.
Is anybody else facing the same issue? Any help to resolve this would be greatly appreciated.
Metadata
Metadata
Assignees
Labels
No labels