Lix on aarch64-darwin fails to build #547

Closed
opened 2024-10-14 15:52:07 +00:00 by dinckelman · 4 comments

Describe the bug

Lix 2.91 on aarch64-darwin fails to build with the following trace:

[338/485] Generating src/libcmd/repl-overlays.nix.gen.hh with a custom command
[339/485] Generating doc/manual/nix-env-delete-generations.1 with a custom command
FAILED: doc/manual/nix-env-delete-generations.1 
/private/tmp/nix-build-lix-2.91.0.drv-1/source/doc/manual/./render-manpage.sh --out-no-smarty 'nix-env --delete-generations' 1 doc/manual/markdown/command-ref/nix-env/delete-generations.md doc/manual/nix-env-delete-generations.1
sandbox initialization failed: Operation not permitted
lowdown: sandbox_init: Operation not permitted
[340/485] Compiling C++ object tests/unit/liblixexpr-tests.p/libexpr_primops.cc.o
[341/485] Compiling C++ object tests/unit/liblixmain-tests.p/libmain_progress-bar.cc.o
[342/485] Compiling C++ object tests/functional/plugins/libplugintestfail.dylib.p/plugintestfail.cc.o
[343/485] Compiling C++ object tests/unit/liblixexpr-tests.p/libexpr_error_traces.cc.o
[344/485] Compiling C++ object tests/functional/test-libstoreconsumer/test-libstoreconsumer.p/main.cc.o
[345/485] Compiling C++ object tests/functional/repl_characterization/test-repl-characterization.p/test-session.cc.o
[346/485] Compiling C++ object tests/functional/repl_characterization/test-repl-characterization.p/repl_characterization.cc.o
ninja: build stopped: subcommand failed.

Steps To Reproduce

  1. Add the lix-module input, and the darwinConfiguration module
  2. Attempt to rebuild

Expected behavior

It's expected to not fail to build

nix --version output

nix (Lix, like Nix) 2.91.0

Additional context

Sequoia repair has already been performed. Ignore the config paths, nix-command with flakes is used exclusively
nix-info -m

nix-info -m
 - system: `"aarch64-darwin"`
 - host os: `Darwin 24.0.0, macOS 15.0`
 - multi-user?: `no`
 - sandbox: `yes`
 - version: `nix-env (Lix, like Nix) 2.91.0
System type: aarch64-darwin
Additional system types: x86_64-darwin
Features: gc, signed-caches
System configuration file: /etc/nix/nix.conf
User configuration files: /Users/dinckelman/.config/nix/nix.conf:/etc/xdg/nix/nix.conf
Store directory: /nix/store
State directory: /nix/var/nix
Data directory: /nix/store/93ni93d5g2v62kz9a0v3cwn5p0qrq8nl-lix-2.91.0/share`
 - nixpkgs: `not found`
## Describe the bug Lix 2.91 on aarch64-darwin fails to build with the following trace: ``` [338/485] Generating src/libcmd/repl-overlays.nix.gen.hh with a custom command [339/485] Generating doc/manual/nix-env-delete-generations.1 with a custom command FAILED: doc/manual/nix-env-delete-generations.1 /private/tmp/nix-build-lix-2.91.0.drv-1/source/doc/manual/./render-manpage.sh --out-no-smarty 'nix-env --delete-generations' 1 doc/manual/markdown/command-ref/nix-env/delete-generations.md doc/manual/nix-env-delete-generations.1 sandbox initialization failed: Operation not permitted lowdown: sandbox_init: Operation not permitted [340/485] Compiling C++ object tests/unit/liblixexpr-tests.p/libexpr_primops.cc.o [341/485] Compiling C++ object tests/unit/liblixmain-tests.p/libmain_progress-bar.cc.o [342/485] Compiling C++ object tests/functional/plugins/libplugintestfail.dylib.p/plugintestfail.cc.o [343/485] Compiling C++ object tests/unit/liblixexpr-tests.p/libexpr_error_traces.cc.o [344/485] Compiling C++ object tests/functional/test-libstoreconsumer/test-libstoreconsumer.p/main.cc.o [345/485] Compiling C++ object tests/functional/repl_characterization/test-repl-characterization.p/test-session.cc.o [346/485] Compiling C++ object tests/functional/repl_characterization/test-repl-characterization.p/repl_characterization.cc.o ninja: build stopped: subcommand failed. ``` ## Steps To Reproduce 1. Add the `lix-module` input, and the `darwinConfiguration` module 2. Attempt to rebuild ## Expected behavior It's expected to not fail to build ## `nix --version` output nix (Lix, like Nix) 2.91.0 ## Additional context Sequoia repair has already been performed. Ignore the config paths, nix-command with flakes is used exclusively `nix-info -m` ``` nix-info -m - system: `"aarch64-darwin"` - host os: `Darwin 24.0.0, macOS 15.0` - multi-user?: `no` - sandbox: `yes` - version: `nix-env (Lix, like Nix) 2.91.0 System type: aarch64-darwin Additional system types: x86_64-darwin Features: gc, signed-caches System configuration file: /etc/nix/nix.conf User configuration files: /Users/dinckelman/.config/nix/nix.conf:/etc/xdg/nix/nix.conf Store directory: /nix/store State directory: /nix/var/nix Data directory: /nix/store/93ni93d5g2v62kz9a0v3cwn5p0qrq8nl-lix-2.91.0/share` - nixpkgs: `not found` ```
dinckelman added the
bug
label 2024-10-14 15:52:07 +00:00

It fails for me too with the same error.

$ nix-info -m
 - system: `"aarch64-darwin"`
 - host os: `Darwin 24.0.0, macOS 15.0.1`
 - multi-user?: `yes`
 - sandbox: `no`
 - version: `nix-env (Lix, like Nix) 2.91.0
System type: aarch64-darwin
Additional system types:
Features: gc, signed-caches
System configuration file: /etc/nix/nix.conf
User configuration files: /Users/andreas/.config/nix/nix.conf:/etc/xdg/nix/nix.conf
Store directory: /nix/store
State directory: /nix/var/nix
Data directory: /nix/store/9jrqydgfxzi2a1nks2nlbm8dhdgv5699-lix-2.91.0/share`
 - channels(root): `"nixpkgs"`
 - nixpkgs: `/nix/var/nix/profiles/per-user/root/channels/nixpkgs`
It fails for me too with the same error. ``` $ nix-info -m - system: `"aarch64-darwin"` - host os: `Darwin 24.0.0, macOS 15.0.1` - multi-user?: `yes` - sandbox: `no` - version: `nix-env (Lix, like Nix) 2.91.0 System type: aarch64-darwin Additional system types: Features: gc, signed-caches System configuration file: /etc/nix/nix.conf User configuration files: /Users/andreas/.config/nix/nix.conf:/etc/xdg/nix/nix.conf Store directory: /nix/store State directory: /nix/var/nix Data directory: /nix/store/9jrqydgfxzi2a1nks2nlbm8dhdgv5699-lix-2.91.0/share` - channels(root): `"nixpkgs"` - nixpkgs: `/nix/var/nix/profiles/per-user/root/channels/nixpkgs` ```
Owner

nixpkgs regression in commit dc32d18e52

hi @emilazy

discussion currently happening in the main lix room on matrix

nixpkgs regression in commit https://github.com/nixos/nixpkgs/commit/dc32d18e521e75f5be833bf5e8e5d980bb5211a3 hi @emilazy discussion currently happening in the main lix room on matrix
Member

(I’ve replied at https://github.com/NixOS/nixpkgs/pull/346945#issuecomment-2412417281 to keep the discussion centralized.)

(I’ve replied at https://github.com/NixOS/nixpkgs/pull/346945#issuecomment-2412417281 to keep the discussion centralized.)
jade added the
OS/macOS
label 2024-10-14 23:43:35 +00:00
Member

This issue was mentioned on Gerrit on the following CLs:

  • commit message in cl/2068 ("fix: macOS build broken by fatal lowdown CLI sandbox setup")
  • commit message in cl/2076 ("[backport 2.91] fix: macOS build broken by fatal lowdown CLI sandbox setup")
<!-- GERRIT_LINKBOT: {"cls": [{"backlink": "https://gerrit.lix.systems/c/lix/+/2068", "number": 2068, "kind": "commit message"}, {"backlink": "https://gerrit.lix.systems/c/lix/+/2076", "number": 2076, "kind": "commit message"}], "cl_meta": {"2068": {"change_title": "fix: macOS build broken by fatal lowdown CLI sandbox setup"}, "2076": {"change_title": "[backport 2.91] fix: macOS build broken by fatal lowdown CLI sandbox setup"}}} --> This issue was mentioned on Gerrit on the following CLs: * commit message in [cl/2068](https://gerrit.lix.systems/c/lix/+/2068) ("fix: macOS build broken by fatal lowdown CLI sandbox setup") * commit message in [cl/2076](https://gerrit.lix.systems/c/lix/+/2076) ("[backport 2.91] fix: macOS build broken by fatal lowdown CLI sandbox setup")
Sign in to join this conversation.
No milestone
No project
No assignees
5 participants
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference: lix-project/lix#547
No description provided.