NixOS / nixpkgs

Nix Packages collection & NixOS
MIT License
18.36k stars 14.32k forks source link

Build failure: comby fails to build for aarch64-darwin on 24.11 #359193

Open ARizzo35 opened 3 days ago

ARizzo35 commented 3 days ago

Steps To Reproduce

Steps to reproduce the behavior:

nix build github:nixos/nixpkgs/nixos-24.11#comby on aarch64-darwin

Build log

$ nix build github:nixos/nixpkgs/nixos-24.11#comby
error: builder for '/nix/store/fc153ggh99ccngylbg6fgjxzqx58pw77-ocaml4.14.2-mirage-crypto-rng-1.1.0.drv' failed with exit code 1;
       last 20 log lines:
       > Running phase: unpackPhase
       > unpacking source archive /nix/store/xvyq60axrflddm81wpx4mqvkxzy76z5n-mirage-crypto-1.1.0.tbz
       > source root is mirage-crypto-1.1.0
       > setting SOURCE_DATE_EPOCH to timestamp 1724151213 of file mirage-crypto-1.1.0/tests/x25519_test.json
       > Running phase: patchPhase
       > Running phase: updateAutotoolsGnuConfigScriptsPhase
       > Running phase: configurePhase
       > no configure script, doing nothing
       > Running phase: buildPhase
       > Running phase: checkPhase
       > File "tests/dune", line 41, characters 7-19:
       > 41 |  (name test_entropy)
       >             ^^^^^^^^^^^^
       > (cd _build/default/tests && ./test_entropy.exe)
       > 1211 bd46 Fatal error: exception Failure("same data from timer at 4")
       > (cd _build/default/tests && ./test_random_runner.exe)
       > .........
       > Ran: 9 tests in: 0.20 seconds.
       > OK
       >
       For full logs, run 'nix-store -l /nix/store/fc153ggh99ccngylbg6fgjxzqx58pw77-ocaml4.14.2-mirage-crypto-rng-1.1.0.drv'.
error: 1 dependencies of derivation '/nix/store/hm71ybrmidmyzj7pmg2wdlxff26fh7nq-ocaml4.14.2-mirage-crypto-ec-1.1.0.drv' failed to build
error: 1 dependencies of derivation '/nix/store/g1qpr20djjj1r22456mjk1wvja17viy2-ocaml4.14.2-tls-1.0.2.drv' failed to build
error: 1 dependencies of derivation '/nix/store/yp1cgm93hn2yjcrqzir8glkknhdjbzpp-ocaml4.14.2-comby-1.8.1.drv' failed to build

Additional context

nix build github:nixos/nixpkgs/nixos-24.05#comby succeeds on aarch64-darwin.

Metadata

 - system: `"aarch64-darwin"`
 - host os: `Darwin 23.4.0, macOS 14.4.1`
 - multi-user?: `yes`
 - sandbox: `no`
 - version: `nix-env (Nix) 2.18.5`
 - channels(root): `"nixpkgs"`
 - nixpkgs: `/nix/var/nix/profiles/per-user/root/channels/nixpkgs`

Notify maintainers


Note for maintainers: Please tag this issue in your PR.


Add a :+1: reaction to issues you find important.

paparodeo commented 3 days ago

this is a bug in https://github.com/mirage/mirage-crypto/issues/216. they use a counter that increments at 24mhz and expect a new value every call.

ARizzo35 commented 3 days ago

this is a bug in https://github.com/mirage/mirage-crypto/issues/216. they use a counter that increments at 24mhz and expect a new value every call.

I see...it seems specific to Darwin though? This builds fine on aarch64-linux.

paparodeo commented 3 days ago

this is a bug in mirage/mirage-crypto#216. they use a counter that increments at 24mhz and expect a new value every call.

I see...it seems specific to Darwin though? This builds fine on aarch64-linux.

AFAIK they both have the issue. apparently the m3 will have a 1GHZ counter. it's possible for the build to succeed by running it a few times. it succeeds on my m2 aarch64-darwin some times. it should probably be marked as broken unless upstream decides it is not an issue for their crypto library.