fh
fh copied to clipboard
Build error on macOS ARM64 with sandbox enabled
Running nix shell "https://flakehub.com/f/DeterminateSystems/fh/*.tar.gz" as instructed in the README leads to a build error on macOS ARM64 when the sandbox is enabled:
@nix { "action": "setPhase", "phase": "unpackPhase" }
unpacking sources
unpacking source archive /nix/store/lkq9afi41f8kpfm64lsnsr1bq78iglxg-dummy-src
source root is dummy-src
@nix { "action": "setPhase", "phase": "patchPhase" }
patching sources
@nix { "action": "setPhase", "phase": "updateAutotoolsGnuConfigScriptsPhase" }
updateAutotoolsGnuConfigScriptsPhase
@nix { "action": "setPhase", "phase": "configurePhase" }
configuring
Auto configuration failed
8612711424:error:02FFF001:system library:func(4095):Operation not permitted:/AppleInternal/Library/BuildRoots/91a344b1-f985-11ee-b563-fe8bc7981bff/Library/Caches/com.apple.xbs/Sources/libressl/libressl-3.3/crypto/bio/bss_file.c:122:fopen('/private/etc/ssl/openssl.cnf', 'rb')
8612711424:error:20FFF002:BIO routines:CRYPTO_internal:system lib:/AppleInternal/Library/BuildRoots/91a344b1-f985-11ee-b563-fe8bc7981bff/Library/Caches/com.apple.xbs/Sources/libressl/libressl-3.3/crypto/bio/bss_file.c:127:
8612711424:error:0EFFF002:configuration file routines:CRYPTO_internal:system lib:/AppleInternal/Library/BuildRoots/91a344b1-f985-11ee-b563-fe8bc7981bff/Library/Caches/com.apple.xbs/Sources/libressl/libressl-3.3/crypto/conf/conf_def.c:202:
More info:
[user@system:~]$ nix-shell -p nix-info --run "nix-info -m"
- system: `"aarch64-darwin"`
- host os: `Darwin 23.5.0, macOS 14.5`
- multi-user?: `yes`
- sandbox: `yes`
- version: `nix-env (Nix) 2.18.3`
- nixpkgs: `/nix/store/qw546xwg1r5xbw87gfgf4rajnjr7m5a8-source`
It works when I disable the sandbox. I guess because it then has access to the openssl.cnf file.
I believe this was fixed in https://github.com/DeterminateSystems/fh/pull/120 -- if that's not the case, please feel free to reopen and we'll look again!
Still get the same error unfortunately.