Skip to content

macOS: unexpected EOF reading a line #3605

@roberth

Description

@roberth

Describe the bug

Nix has failed to build on darwin with this log.
https://hydra.nixos.org/build/119296096/nixlog/1

It did succeed afterwards, so unless someone recognizes what's the problem in the log, it's ok to close this and move on.

The failure happens in test case tests/user-envs.sh, with the last couple of lines being:

    29 store paths deleted, 0.01 MiB freed
    + test -e /private/tmp/nix-build-nix-2.3.4.drv-0/nix-test/store/8fid272lbh1milx38cni6wi6dx7v8z7b-foo-1.0
    + '[' -e /private/tmp/nix-build-nix-2.3.4.drv-0/nix-test/store/kzm50sz0sp6gsvav10kx8xasppw0yrql-foo-2.0 ']'
    + nix-env -e '*'
    uninstalling 'foo-1.0'
    uninstalling 'bar-0.1'
    building '/private/tmp/nix-build-nix-2.3.4.drv-0/nix-test/store/prvd5da3s52k2gr2pvx510wvn7shyjqh-user-environment.drv'...
    created 0 symlinks in user environment
    ++ nix-env -q '*'
    ++ wc -l
    + test 0 -eq 0
    + nix-env -i foo
    installing 'foo-2.0'
    these derivations will be built:
      /private/tmp/nix-build-nix-2.3.4.drv-0/nix-test/store/wsrlj1hjzncx3g2i1jp65lbb1v3py2wp-foo-2.0.drv
    building '/private/tmp/nix-build-nix-2.3.4.drv-0/nix-test/store/wsrlj1hjzncx3g2i1jp65lbb1v3py2wp-foo-2.0.drv'...
    error: unexpected EOF reading a line

Steps To Reproduce

This may be a race condition or other intermittent bug.

The entire log of the build failure is available here:
https://hydra.nixos.org/build/119296096/nixlog/1

Expected behavior

Nix just builds on darwin without a test failure.

nix-env --version output

N/A

Additional context

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugbuild-problemNix fails to compile or test; also improvements to build processmacosNix on macOS, aka OS X, aka darwin

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions