tpwrules / nixos-apple-silicon

Resources to install NixOS bare metal on Apple Silicon Macs
MIT License
743 stars 73 forks source link

wolfssl failed tests #118

Closed Prn-Ice closed 7 months ago

Prn-Ice commented 7 months ago

Running the kernel and bootstrap command nixos-apple-silicon$ nix build --extra-experimental-features 'nix-command flakes' .#installer-bootstrap -o installer -j4 -L fails with the following error after a few minutes of building.

wolfssl> FAIL scripts/unit.test (exit status: 1)
wolfssl> ============================================================================
wolfssl> Testsuite summary for wolfssl 5.6.3
wolfssl> ============================================================================
wolfssl> # TOTAL: 13
wolfssl> # PASS:  10
wolfssl> # SKIP:  2
wolfssl> # XFAIL: 0
wolfssl> # FAIL:  1
wolfssl> # XPASS: 0
wolfssl> # ERROR: 0
wolfssl> ============================================================================
wolfssl> See ./test-suite.log
wolfssl> Please report to https://github.com/wolfssl/wolfssl/issues
wolfssl> ============================================================================
wolfssl> make[4]: *** [Makefile:7554: test-suite.log] Error 1
wolfssl> make[4]: Leaving directory '/build/source'
wolfssl> make[3]: *** [Makefile:7662: check-TESTS] Error 2
wolfssl> make[3]: Leaving directory '/build/source'
wolfssl> make[2]: *** [Makefile:7906: check-am] Error 2
wolfssl> make[2]: Leaving directory '/build/source'
wolfssl> make[1]: *** [Makefile:7439: check-recursive] Error 1
wolfssl> make[1]: Leaving directory '/build/source'
wolfssl> make: *** [Makefile:7908: check] Error 2
error: builder for '/nix/store/jvg4bbjb92j49hdnp0ld5771i8g4lazr-wolfssl-5.6.3.drv' failed with exit code 2;
       last 10 log lines:
       > ============================================================================
       > make[4]: *** [Makefile:7554: test-suite.log] Error 1
       > make[4]: Leaving directory '/build/source'
       > make[3]: *** [Makefile:7662: check-TESTS] Error 2
       > make[3]: Leaving directory '/build/source'
       > make[2]: *** [Makefile:7906: check-am] Error 2
       > make[2]: Leaving directory '/build/source'
       > make[1]: *** [Makefile:7439: check-recursive] Error 1
       > make[1]: Leaving directory '/build/source'
       > make: *** [Makefile:7908: check] Error 2
       For full logs, run 'nix log /nix/store/jvg4bbjb92j49hdnp0ld5771i8g4lazr-wolfssl-5.6.3.drv'.
error: 1 dependencies of derivation '/nix/store/8hj6g4x8k7ah1n3a1rp5li9p6j06997w-vde2-2.3.3.drv' failed to build
error: 1 dependencies of derivation '/nix/store/6f1rxj2wbqisqsqqwhq8ha3ha08kjcm8-qemu-8.1.2.drv' failed to build
error: 1 dependencies of derivation '/nix/store/3y4flaaaw8228pyr0rkiwnzg8d6l5fn4-cross-file.conf.drv' failed to build
error: 1 dependencies of derivation '/nix/store/py2bivldgigbxacfqrbv7cx0cq0gmr5c-mesonEmulatorHook.drv' failed to build
error: 1 dependencies of derivation '/nix/store/jyjs7zajip5p7r37j0m5zqmlbzzw7ih9-p11-kit-aarch64-unknown-linux-gnu-0.25.0.drv' failed to build
error: 1 dependencies of derivation '/nix/store/mlcspiw8l6awz0rfj37nhzfd01j2fga8-systemd-aarch64-unknown-linux-gnu-254.3.drv' failed to build
error: 1 dependencies of derivation '/nix/store/jhzhl9imy4xsyr4qlag7iw7a5kv418v6-extra-utils.drv' failed to build
error: 1 dependencies of derivation '/nix/store/vzl49hmy6s6fmhshznzby9v32pjsj9gr-nixos-system-nixos-23.11.20231019.7c9cc5a.drv' failed to build
error: 1 dependencies of derivation '/nix/store/jhijxz7vdqh1q4330hds0i88zj35892a-closure-info-aarch64-unknown-linux-gnu.drv' failed to build
error: 1 dependencies of derivation '/nix/store/j298b7nkalraw23pa56791xqflz36lx4-efi-directory.drv' failed to build
error (ignored): error: cannot unlink '/tmp/nix-build-linux-aarch64-unknown-linux-gnu-6.5.0-asahi.drv-3': Directory not empty
error: 1 dependencies of derivation '/nix/store/0c6nv0iaavpf5ldc5rm35zf2gv010pfq-stage-1-init.sh.drv' failed to build
error: 1 dependencies of derivation '/nix/store/zmgjcys7n6l7iy6lkg8bqzxsf4mkj7n1-nixos-23.11.20231019.7c9cc5a-aarch64-linux.iso-aarch64-unknown-linux-gnu.drv' failed to build

My PC info

nix run nixpkgs#nix-info -- -m
 - system: `"x86_64-linux"`
 - host os: `Linux 6.6.0, NixOS, 23.11 (Tapir), 23.11.20231104.85f1ba3`
 - multi-user?: `yes`
 - sandbox: `yes`
 - version: `nix-env (Nix) 2.17.1`
 - nixpkgs: `/nix/var/nix/profiles/per-user/root/channels/nixos`
alyssais commented 7 months ago

https://github.com/NixOS/nixpkgs/pull/266483

Prn-Ice commented 7 months ago

Thanks @alyssais. How can I point this project to the updated or patched wolfssl?

tpwrules commented 7 months ago

I'm guessing this is an intermittent or machine-specific issue (depending on what certificate sets you have installed???)? Surprised I didn't encounter it when initially building.

There will be a release within the next week that includes the fixes for this issue. In the meantime, please use the official released ISO. If you like you can modify flake.nix to point to an appropriate nixpkgs commit with the issue fixed, but that could cause other issues.

vcunat commented 7 months ago

I'm guessing this is an intermittent or machine-specific issue (depending on what certificate sets you have installed???)? Surprised I didn't encounter it when initially building.

It's the test certs expiring, i.e. it's just the real date that's changed to make them fail.