emacs-ng icon indicating copy to clipboard operation
emacs-ng copied to clipboard

macOS nix-build: "make[1]: *** [Makefile:687: ../rust_src/crates/emacs/src/definitions.rs] Killed: 9"

Open Atemu opened this issue 3 years ago • 3 comments

Describe the bug A clear and concise description of what the bug is.

When building emacs-ng on macOS with Web~~reader~~render, something gets killed with signal 9 during the build. I don't think this is an OOM since I've never seen something get reaped on OSX (it does very aggressive swapping).

Getting killed with -9 can sometimes mean that macOS doesn't allow you to be executed because you're lacking an apple-blessed signature or whatever; that might be a lead.

To Reproduce Steps to reproduce the behavior. What were the options you passed to configure?

diff --git a/flake.nix b/flake.nix
index 073326c19b..579c0082bc 100644
--- a/flake.nix
+++ b/flake.nix
@@ -195,7 +195,7 @@
           librusty_v8 = prev.callPackage ./nix/librusty_v8.nix { };
 
           emacsNg = with prev; let
-            withWebreader = false;
+            withWebreader = true;
           in
           (
             final.emacsGcc.override
@@ -248,6 +248,7 @@
                   "--with-zlib"
                   "--with-dumping=pdumper"
                 ] ++ lib.optionals withWebreader [
+                  "--without-ns"
                   "--with-webrender"
                 ] ++ lib.optionals stdenv.isLinux [
                   "--with-dbus"
git checkout 8c9cf76c03c9aa3f84827b4cc5a4d31a779aebc2
nix-build

Expected behavior A clear and concise description of what you expected to happen.

OS Which os do you use? (uname -a)

Darwin MacBook-Pro 20.5.0 Darwin Kernel Version 20.5.0: Sat May 8 05:10:33 PDT 2021; root:xnu-7195.121.3~9/RELEASE_X86_64 x86_64 i386 MacBookPro15,1 Darwin

Error callstack

Atemu avatar Jun 05 '21 14:06 Atemu

Webrender feature can't build on macOS currently.

harryfei avatar Jun 05 '21 17:06 harryfei

Also, I have no idea how to build emacsNg(without webrender) with Nix on darwin. (Maybe the current problem was from the older version of darwin-SDK)

GTrunSec avatar Jun 05 '21 19:06 GTrunSec

Webrender feature can't build on macOS currently.

I see, having the build fail because of a process being killed seemed unusual though.

I have no idea how to build emacsNg(without webrender) with Nix on darwin. (Maybe the current problem was from the older version of darwin-SDK)

The current non-webrender master gets quite far actually, only fails to link in the end.

Atemu avatar Jun 05 '21 22:06 Atemu

You can use nix flake here https://github.com/declantsien/emacs-webrender/actions/runs/3835526145 to build webrender on macOS.

declantsien avatar Jan 04 '23 06:01 declantsien