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

ci: Build failure when running as a flake #930

Open
iFreilicht opened this issue Apr 11, 2024 · 1 comment
Open

ci: Build failure when running as a flake #930

iFreilicht opened this issue Apr 11, 2024 · 1 comment

Comments

@iFreilicht
Copy link

When trying to run eza from current master as described in the README, it fails:

$ nix run github:eza-community/eza
error: builder for '/nix/store/90x4y7k1qsvl67m8gfd8lkrrywzgxkmw-eza-deps-latest.drv' failed with exit code 1;
       last 10 log lines:
       > Running phase: unpackPhase
       > unpacking source archive /nix/store/srbvqgm4anwz6sbmx69yhy0wqn8hp99i-dummy-src
       > source root is dummy-src
       > Running phase: patchPhase
       > Running phase: updateAutotoolsGnuConfigScriptsPhase
       > Running phase: configurePhase
       > Auto configuration failed
       > 8471247552:error:02FFF001:system library:func(4095):Operation not permitted:/AppleInternal/Library/BuildRoots/ce725a5f-c761-11ee-a4ec-b6ef2fd8d87b/Library/Caches/com.apple.xbs/Sources/libressl/libressl-3.3/crypto/bio/bss_file.c:122:fopen('/private/etc/ssl/openssl.cnf', 'rb')
       > 8471247552:error:20FFF002:BIO routines:CRYPTO_internal:system lib:/AppleInternal/Library/BuildRoots/ce725a5f-c761-11ee-a4ec-b6ef2fd8d87b/Library/Caches/com.apple.xbs/Sources/libressl/libressl-3.3/crypto/bio/bss_file.c:127:
       > 8471247552:error:0EFFF002:configuration file routines:CRYPTO_internal:system lib:/AppleInternal/Library/BuildRoots/ce725a5f-c761-11ee-a4ec-b6ef2fd8d87b/Library/Caches/com.apple.xbs/Sources/libressl/libressl-3.3/crypto/conf/conf_def.c:202:
       For full logs, run 'nix log /nix/store/90x4y7k1qsvl67m8gfd8lkrrywzgxkmw-eza-deps-latest.drv'.
error: 1 dependencies of derivation '/nix/store/k1v9fs8ldfr1r2m18nqaabnd6py30rgj-eza-latest.drv' failed to build

Exact commit right now is 75f1f8c.

I'm on aarch64-darwin, my nix info is:

nix-shell -p nix-info --run "nix-info -m"
 - system: `"aarch64-darwin"`
 - host os: `Darwin 23.4.0, macOS 14.4.1`
 - multi-user?: `yes`
 - sandbox: `yes`
 - version: `nix-env (Nix) 2.22.0pre20240320_7d2ead5`

I would like to provide the output of rustc --version and rustc --print cfg, but nix develop fails as well:

$ nix develop github:eza-community/eza/75f1f8cf5204670a076570ef8c4f1d6d50bb32d7
error: builder for '/nix/store/cjw5rhisn0rbnrqnrc9gr0wzvyv9743c-powertest-0.0.2.drv' failed with exit code 1;
       last 10 log lines:
       > Running phase: unpackPhase
       > unpacking source archive /nix/store/scdqnrb65p296flf1r1g8rhd0bgamvy3-source
       > source root is source
       > Running phase: patchPhase
       > Running phase: updateAutotoolsGnuConfigScriptsPhase
       > Running phase: configurePhase
       > Auto configuration failed
       > 8471247552:error:02FFF001:system library:func(4095):Operation not permitted:/AppleInternal/Library/BuildRoots/ce725a5f-c761-11ee-a4ec-b6ef2fd8d87b/Library/Caches/com.apple.xbs/Sources/libressl/libressl-3.3/crypto/bio/bss_file.c:122:fopen('/private/etc/ssl/openssl.cnf', 'rb')
       > 8471247552:error:20FFF002:BIO routines:CRYPTO_internal:system lib:/AppleInternal/Library/BuildRoots/ce725a5f-c761-11ee-a4ec-b6ef2fd8d87b/Library/Caches/com.apple.xbs/Sources/libressl/libressl-3.3/crypto/bio/bss_file.c:127:
       > 8471247552:error:0EFFF002:configuration file routines:CRYPTO_internal:system lib:/AppleInternal/Library/BuildRoots/ce725a5f-c761-11ee-a4ec-b6ef2fd8d87b/Library/Caches/com.apple.xbs/Sources/libressl/libressl-3.3/crypto/conf/conf_def.c:202:
       For full logs, run 'nix log /nix/store/cjw5rhisn0rbnrqnrc9gr0wzvyv9743c-powertest-0.0.2.drv'.
error: 1 dependencies of derivation '/nix/store/pqd0rhjyx2fn3ww089s808hqr1my74v9-nix-shell-env.drv' failed to build

Full build log for nix run:

$ nix log /nix/store/90x4y7k1qsvl67m8gfd8lkrrywzgxkmw-eza-deps-latest.drv
@nix { "action": "setPhase", "phase": "unpackPhase" }
Running phase: unpackPhase
unpacking source archive /nix/store/srbvqgm4anwz6sbmx69yhy0wqn8hp99i-dummy-src
source root is dummy-src
@nix { "action": "setPhase", "phase": "patchPhase" }
Running phase: patchPhase
@nix { "action": "setPhase", "phase": "updateAutotoolsGnuConfigScriptsPhase" }
Running phase: updateAutotoolsGnuConfigScriptsPhase
@nix { "action": "setPhase", "phase": "configurePhase" }
Running phase: configurePhase
Auto configuration failed
8471247552:error:02FFF001:system library:func(4095):Operation not permitted:/AppleInternal/Library/BuildRoots/ce725a5f-c761-11ee-a4ec-b6ef2fd8d87b/Library/Caches/com.apple.xbs/Sources/libressl/libressl-3.3/crypto/bio/bss_file.c:122:fopen('/private/etc/ssl/openssl.cnf', 'rb')
8471247552:error:20FFF002:BIO routines:CRYPTO_internal:system lib:/AppleInternal/Library/BuildRoots/ce725a5f-c761-11ee-a4ec-b6ef2fd8d87b/Library/Caches/com.apple.xbs/Sources/libressl/libressl-3.3/crypto/bio/bss_file.c:127:
8471247552:error:0EFFF002:configuration file routines:CRYPTO_internal:system lib:/AppleInternal/Library/BuildRoots/ce725a5f-c761-11ee-a4ec-b6ef2fd8d87b/Library/Caches/com.apple.xbs/Sources/libressl/libressl-3.3/crypto/conf/conf_def.c:202:

Full build log for nix develop:

$ nix log /nix/store/cjw5rhisn0rbnrqnrc9gr0wzvyv9743c-powertest-0.0.2.drv
warning: The interpretation of store paths arguments ending in `.drv` recently changed. If this command is now failing try again with '/nix/store/cjw5rhisn0rbnrqnrc9gr0wzvyv9743c-powertest-0.0.2.drv^*'
@nix { "action": "setPhase", "phase": "unpackPhase" }
Running phase: unpackPhase
unpacking source archive /nix/store/scdqnrb65p296flf1r1g8rhd0bgamvy3-source
source root is source
@nix { "action": "setPhase", "phase": "patchPhase" }
Running phase: patchPhase
@nix { "action": "setPhase", "phase": "updateAutotoolsGnuConfigScriptsPhase" }
Running phase: updateAutotoolsGnuConfigScriptsPhase
@nix { "action": "setPhase", "phase": "configurePhase" }
Running phase: configurePhase
Auto configuration failed
8471247552:error:02FFF001:system library:func(4095):Operation not permitted:/AppleInternal/Library/BuildRoots/ce725a5f-c761-11ee-a4ec-b6ef2fd8d87b/Library/Caches/com.apple.xbs/Sources/libressl/libressl-3.3/crypto/bio/bss_file.c:122:fopen('/private/etc/ssl/openssl.cnf', 'rb')
8471247552:error:20FFF002:BIO routines:CRYPTO_internal:system lib:/AppleInternal/Library/BuildRoots/ce725a5f-c761-11ee-a4ec-b6ef2fd8d87b/Library/Caches/com.apple.xbs/Sources/libressl/libressl-3.3/crypto/bio/bss_file.c:127:
8471247552:error:0EFFF002:configuration file routines:CRYPTO_internal:system lib:/AppleInternal/Library/BuildRoots/ce725a5f-c761-11ee-a4ec-b6ef2fd8d87b/Library/Caches/com.apple.xbs/Sources/libressl/libressl-3.3/crypto/conf/conf_def.c:202:
@cafkafk
Copy link
Member

cafkafk commented May 5, 2024

Sorry, this seems like a MacOS issue, and I don't currently have access to an apple computer to test this on. I'm assuming this has something to do with the optional darwin build inputs.

Does this still work as a flake input? What about from nixpkgs?

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

No branches or pull requests

2 participants