22 Nov 2024 |
Dima | Gcc and libgccjit are installed in my system | 12:08:20 |
Dima | And also I get this: ⛔ Warning (comp): collect2: error: ld returned 1 exit status | 12:16:08 |
Dima | In async-native-compile-log:
/nix/store/7v7g86ml0ri171gfcrs1d442px5bi1p3-binutils-2.41/bin/ld: cannot find crti.o: No such file or directory
/nix/store/7v7g86ml0ri171gfcrs1d442px5bi1p3-binutils-2.41/bin/ld: cannot find -lgcc_s: No such file or directory | 12:20:50 |
Dima | This code was used to built emacs:
{ config, lib, pkgs, ... }:
{
environment.systemPackages = with pkgs; [
# emacs29-pgtk
((emacs29-pgtk.override {
#nativeComp = true;
withNativeCompilation = true;
}).overrideAttrs (old : {
pname = "emacs";
version = "29.4";
#src = pkgs.emacs29-pgtk;
src = fetchFromSavannah {
repo = "emacs";
rev = "29.4";
sha256 = "sha256-FCP6ySkN9mAdp2T09n6foS2OciqZXc/54guRZ0B4Z2s=";
};
patches = [];
configureFlags = old.configureFlags ++
[
#"--with-gnutls"
#"--without-x"
#"--without-ns"
"--with-pgtk"
#"--without-xwidgets"
#"--without-native-compilation"
"--with-png"
"--with-jpeg"
"--with-sound"
"--with-libsystemd"
#"--with-harfbuzz"
"--with-json"
"--with-dbus"
#"--with-file-notifications=yes"
#"--with-wide-int"
#"--with-pdumper=yes"
"--enable-checking=yes,glyphs"
"--enable-check-lisp-object-type"
];
preConfigure = "CFLAGS='-O0 -g3'; ./autogen.sh";
buildInputs = old.buildInputs ++ [
autoconf
dbus
harfbuzz
systemd
texinfo
gnutls
pkg-config
gtk3
giflib
libjpeg
libpng
librsvg
libtiff
ncurses
xorg.libXpm
libungif
imagemagick
zlib
libgccjit
jansson
];
}))
];
}
| 12:57:25 |
Dima | Has someone here built emacs for https://git.savannah.gnu.org/cgit/emacs.git/tree/etc/DEBUG on nixos? | 15:49:03 |
Dima | In reply to @reddima100:matrix.org By the way, has someone migrated from straight/elpaca package manager to nix/nixos packages installation? Am I right that the only things which I need to do is just write: :straight nil for every package in my config and then write the list of package to my nix config? the awnser emacsWithPackagesFromUsePackage | 16:15:10 |
Dima | Optionally provide extra packages not in the configuration file.
extraEmacsPackages = epkgs: [
epkgs.cask
];
| 16:15:35 |
24 Nov 2024 |
| @ixlun:matrix.org changed their display name from Matthew Leach to Matthew L. | 00:43:13 |
| Chris Cochrun joined the room. | 20:24:40 |
25 Nov 2024 |
| Stephen D joined the room. | 02:07:23 |
| Webknot joined the room. | 17:27:07 |
26 Nov 2024 |
| arbel joined the room. | 15:20:22 |
27 Nov 2024 |
| @meidam:matrix.org left the room. | 10:58:16 |
28 Nov 2024 |
| Daniel Huang joined the room. | 00:18:14 |
| @ixlun:matrix.org removed their display name Matthew L. | 22:33:02 |
| @ixlun:matrix.org left the room. | 22:35:10 |
| Matt joined the room. | 22:52:54 |
29 Nov 2024 |
| deniel22 left the room. | 10:19:06 |
| deniel22 joined the room. | 10:21:01 |
| EndureAhead joined the room. | 17:23:03 |
1 Dec 2024 |
zororg | Is there a package to integrate eshell with nix-shell (nix shell ...) ?
| 04:39:29 |
adisbladis | In reply to @zororg:matrix.org Is there a package to integrate eshell with nix-shell (nix shell ...) ?
You can use direnv + envrc | 04:46:12 |
zororg | I use that. But for simply trying out packages in nix shell nixpkgs#lolcat Although I use eat along with eshell | 05:35:59 |
zororg | but yea, thats a work around. Maybe I will make a dir with shell.nix there to act as playground for trying out things | 05:37:01 |
| Eden (they/it/she) changed their display name from Oktawia (it/they/she) to Nerissa (it/they/she). | 10:12:41 |
antifuchs | I'm recently seeing the following warning on a native-compiling emacs from the emacs overlay on macOS:
⛔ Warning (native-compiler): libgccjit.so: error: error invoking gcc driver
⛔ Warning (native-compiler): /nix/store/2l55wkklijm7g98nryvgdc8k7xxcb7kr-emacs-unstable-30.0.92/share/emacs/site-lisp/site-start.el: Error Internal native compiler error: "failed to compile", "/Users/asf/.emacs.d/eln-cache/30.0.92-6c3c1e81/site-start-ceed875f-8f4312e0.eln", "error invoking gcc driver"
| 16:35:26 |
antifuchs | did the closure change to no longer pull in the gcc JIT libraries? | 16:35:53 |
| Eden (they/it/she) changed their display name from Nerissa (it/they/she) to Nerissa (it/she). | 18:51:20 |
bestlem | In reply to @antifuchs:asf.computer
I'm recently seeing the following warning on a native-compiling emacs from the emacs overlay on macOS:
⛔ Warning (native-compiler): libgccjit.so: error: error invoking gcc driver
⛔ Warning (native-compiler): /nix/store/2l55wkklijm7g98nryvgdc8k7xxcb7kr-emacs-unstable-30.0.92/share/emacs/site-lisp/site-start.el: Error Internal native compiler error: "failed to compile", "/Users/asf/.emacs.d/eln-cache/30.0.92-6c3c1e81/site-start-ceed875f-8f4312e0.eln", "error invoking gcc driver"
I think the issue is that libgccjit does not work with the changes in the darwinstdenv | 21:14:18 |
antifuchs | Ooooh | 21:14:32 |