Racket 8.6 broken on aarch64-darwin
Steps To Reproduce
Steps to reproduce the behavior:
nix-env -iA nixpkgs.racket-minimal
Build log
compiler/cm: start-compile: /private/tmp/nix-build-racket-minimal-8.6.drv-0/racket-8.6/src/mac/codesign.rkt
compiler/cm: finish-compile: /private/tmp/nix-build-racket-minimal-8.6.drv-0/racket-8.6/src/mac/codesign.rkt
cs/c/racketcs -O info'@'compiler/cm -l- setup --boot ../setup-go.rkt cs/c/compiled ignored cs/c/ignored.d ../cs/known.rkt ../cs/
failed
in build-one
in loop
in module->hash
make: *** [Makefile:13: all] Error 1
error: builder for '/nix/store/ilywy5nllnmjq0lz9xlbd1v7rzrg7axj-racket-minimal-8.6.drv' failed with exit code 2;
last 10 log lines:
> compiler/cm: finish-compile: /private/tmp/nix-build-racket-minimal-8.6.drv-0/racket-8.6/src/cs/c/embed-boot.rkt
> cs/c/raw_racketcs -O info'@'compiler/cm -l- setup --boot ../setup-go.rkt cs/c/compiled ignored cs/c/ignored.d ../mac/codesign.rkt -s - --entitlements ../mac/entitlements.plist cs/c/racketcs
> compiler/cm: start-compile: /private/tmp/nix-build-racket-minimal-8.6.drv-0/racket-8.6/src/mac/codesign.rkt
> compiler/cm: finish-compile: /private/tmp/nix-build-racket-minimal-8.6.drv-0/racket-8.6/src/mac/codesign.rkt
> cs/c/racketcs -O info'@'compiler/cm -l- setup --boot ../setup-go.rkt cs/c/compiled ignored cs/c/ignored.d ../cs/known.rkt ../cs/
> failed
> in build-one
> in loop
> in module->hash
> make: *** [Makefile:13: all] Error 1
For full logs, run 'nix log /nix/store/ilywy5nllnmjq0lz9xlbd1v7rzrg7axj-racket-minimal-8.6.drv'.
Notify maintainers
@henrytill @vrthra
Metadata
~ $ nix-shell -p nix-info --run "nix-info -m"
these 2 paths will be fetched (0.01 MiB download, 0.14 MiB unpacked):
/nix/store/0gfg84zy171sgpwfbgwji3ybbjh38rh4-nix-info
/nix/store/yarklbql3fs5b3r38h3w25nax2s8rnd3-DarwinTools-1
copying path '/nix/store/yarklbql3fs5b3r38h3w25nax2s8rnd3-DarwinTools-1' from 'https://cache.nixos.org'...
copying path '/nix/store/0gfg84zy171sgpwfbgwji3ybbjh38rh4-nix-info' from 'https://cache.nixos.org'...
- system: `"aarch64-darwin"`
- host os: `Darwin 21.6.0, macOS 12.6`
- multi-user?: `yes`
- sandbox: `no`
- version: `nix-env (Nix) 2.8.0`
- channels(hmih): `""`
- channels(root): `"nixpkgs"`
- nixpkgs: `/nix/var/nix/profiles/per-user/root/channels/nixpkgs`
Could you elaborate more? I have noticed this posted issue and decided to check, considering I need racket in the near future, and I am on M1 Mac mini.
I was unable to replicate by installing with specified command nix-env -iA nixpkgs.racket-minimal
Outcome is valid /nix/store/nnsgpvag85c5kjhg6ns4ll3nv0vc6kd6-racket-minimal-8.6
My system has numerous differences though:
nix-shell -p nix-info --run "nix-info -m"
these 2 paths will be fetched (0.01 MiB download, 0.14 MiB unpacked):
/nix/store/vwrmfx47spb7p3241pvgmbzbacvq2fic-DarwinTools-1
/nix/store/vzmbw94qf0rhimbr5gfrk0cnd10w59fq-nix-info
copying path '/nix/store/vwrmfx47spb7p3241pvgmbzbacvq2fic-DarwinTools-1' from 'https://cache.nixos.org'...
copying path '/nix/store/vzmbw94qf0rhimbr5gfrk0cnd10w59fq-nix-info' from 'https://cache.nixos.org'...
- system: `"aarch64-darwin"`
- host os: `Darwin 21.6.0, macOS 12.5`
- multi-user?: `yes`
- sandbox: `no`
- version: `nix-env (Nix) 2.11.0`
- channels(root): `"[REDACTED], nixpkgs"`
- nixpkgs: `/nix/var/nix/profiles/per-user/root/channels/nixpkgs`
My nix version is higher. Consider updating your channel and nix version. Maybe it is the culprit?
Additionally, I am on previous macOS release. Is this an upstream regression in racket itself related to os update?
In my case software looks like to be working:
racket --version
Welcome to Racket v8.6 [cs].
Additionally, I am on previous macOS release. Is this an upstream regression in racket itself related to os update?
Possibly. I am on version 12.6 and the homebrew minimal-racket package works well. Also, as you see in the log, the failure happens right after compiler/cm: finish-compile: /private/tmp/nix-build-racket-minimal-8.6.drv-0/racket-8.6/src/mac/codesign.rkt, and in the repo there is a codesign patch. Maybe it's out of date.
FWIW, I'm getting the same error on nix=2.11.0.
- system: `"aarch64-darwin"`
- host os: `Darwin 21.6.0, macOS 12.6`
- multi-user?: `yes`
- sandbox: `no`
- version: `nix-env (Nix) 2.11.0`
- channels(root): `"nixpkgs"`
- channels ... : `"darwin"`
- nixpkgs: `/nix/var/nix/profiles/per-user/root/channels/nixpkgs`
Same error here with basically the same Nix setup. I’m on an M2 MacBook Air.
- system: `"aarch64-darwin"`
- host os: `Darwin 21.6.0, macOS 12.6`
- multi-user?: `yes`
- sandbox: `no`
- version: `nix-env (Nix) 2.11.0`
- channels(root): `"nixpkgs"`
- channels(dpk): `""`
- nixpkgs: `/nix/var/nix/profiles/per-user/root/channels/nixpkgs`
This happens with both racket and racket-minimal.