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 error on macOS ARM64 with sandbox enabled #119

Open
Brawl345 opened this issue Jun 27, 2024 · 2 comments
Open

Build error on macOS ARM64 with sandbox enabled #119

Brawl345 opened this issue Jun 27, 2024 · 2 comments

Comments

@Brawl345
Copy link

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.

@cole-h
Copy link
Member

cole-h commented Jul 11, 2024

I believe this was fixed in #120 -- if that's not the case, please feel free to reopen and we'll look again!

@cole-h cole-h closed this as completed Jul 11, 2024
@Brawl345
Copy link
Author

Still get the same error unfortunately.

@cole-h cole-h reopened this Jul 11, 2024
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