Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Build fails for nix darwin on MacOS sequoia x86_64. #20

Open
Buddharta opened this issue Jan 11, 2025 · 1 comment
Open

Build fails for nix darwin on MacOS sequoia x86_64. #20

Buddharta opened this issue Jan 11, 2025 · 1 comment

Comments

@Buddharta
Copy link

Installing mac-app-util with nix darwing flake fails with the following error

error: builder for '/nix/store/wv13fz6a9h1nm5bn3pv1mjma3bh55944-system-alexandria.drv' failed with exit code 1;
       last 10 log lines:
       > Running phase: unpackPhase
       > unpacking source archive /nix/store/i6nnd3amy08a3f3v8q76nh9kw9434z29-source
       > source root is source
       > Running phase: patchPhase
       > Running phase: setAsdfPathPhase
       > Running phase: configurePhase
       > no configure script, doing nothing
       > Running phase: buildPhase
       > failed to allocate 1048576 bytes at 0x50000000
       > (hint: Try "ulimit -a"; maybe you should increase memory limits.)
       For full logs, run 'nix log /nix/store/wv13fz6a9h1nm5bn3pv1mjma3bh55944-system-alexandria.drv'.
error: 1 dependencies of derivation '/nix/store/3gcrbcgdkrd1v5nlp57sdriyhhs1sd7k-sbcl-2.4.10.drv' failed to build
error: 1 dependencies of derivation '/nix/store/336zl0qqwvpf0h2d3hgzsns4768dc1d4-mac-app-util.drv' failed to build
error: 1 dependencies of derivation '/nix/store/572257bqgamf88rza7f4mnbcyp2di5aj-darwin-system-25.05.20250108.4bc9c90+darwin5.57733bd.drv' failed to build

This seems to be related this bug with sbcl on MacOS sequoia x86_64: https://bugs.launchpad.net/sbcl/+bug/2085706 with versions 2.4.10 and 2.4.9, since I get the same error when running sbcl (version 2.4.10) alone. Maybe changing the dependency version to a newer one fixes the problem.

My system:

 - system: `"x86_64-darwin"`
 - host os: `Darwin 24.0.0, macOS 15.0.1`
 - multi-user?: `yes`
 - sandbox: `no`
 - version: `nix-env (Nix) 2.24.11`
 - channels(root): `"nixpkgs"`

I have tested this with the nixpkgs-unstable branch.

@hraban
Copy link
Owner

hraban commented Jan 11, 2025

Thanks for the bug report. I followed the link and kind of wish I hadn't 😂. God what a depressing read.

Annnnyway I don't have a sequoia x86_64 machine on which to test so I'd like to ask for your help finding a working sbcl version. Could you try:

nix run github:nixos/nixpkgs/99c0b2ca5c64#sbcl -- --version # should be 2.4.9
nix run github:nixos/nixpkgs/5b1e84da9db7#sbcl -- --version # should be 2.4.8
nix run github:nixos/nixpkgs/93ac88fecd81#sbcl -- --version # should be 2.4.7
nix run github:nixos/nixpkgs/0ad7ed487c49#sbcl -- --version # should be 2.4.6

What's the latest version which works for you?

Thanks 👍

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants