Skip to content

Build failure: util-linuxMinimal #244000

Closed
Closed

Description

@shyim

Steps To Reproduce

Steps to reproduce the behavior:

  1. nix build nixpkgs#util-linuxMinimal

Build log

Seems to compile fine, but fails later with the following error:

error: builder for '/nix/store/bqhqfqfblrf2fpn5b7rfizsxyy5s0dig-util-linux-minimal-2.39.drv' failed to produce output path for output 'mount' at '/nix/store/l7qkhbbfxkiamfjzvvkgndmsga6wjxr6-util-linux-minimal-2.39-mount'

Additional context

Add any other context about the problem here.

Notify maintainers

Metadata

Please run nix-shell -p nix-info --run "nix-info -m" and paste the result.

 - system: `"aarch64-darwin"`
 - host os: `Darwin 23.0.0, macOS 14.0`
 - multi-user?: `yes`
 - sandbox: `no`
 - version: `nix-env (Nix) 2.16.1`
 - channels(root): `""`
 - channels(shyim): `"darwin, nixpkgs"`
 - nixpkgs: `/nix/store/3z2ddp392iwz4dm4f040p55gylzcxyfg-source`

Activity

  1. added
    0.kind: build failure
    on Jul 17, 2023
  2. deejayem commented on Jul 18, 2023

    @deejayem
    Member

    This isn't just affecting util-linuxMinimal, I also get it for util-linux:

    error: builder for '/nix/store/ahnhcwziwkh47rf1d212l523lfl4ns3j-util-linux-2.39.drv' failed to produce output path for output 'mount' at '/nix/store/dl914ycgicna9b9nvkzsfg179iimhx8s-util-linux-2.39-mount'
    

    And it's not only aarch64:

     - system: `"x86_64-darwin"`
     - host os: `Darwin 22.5.0, macOS 10.16`
     - multi-user?: `no`
     - sandbox: `yes`
     - version: `nix-env (Nix) 2.15.1`
     - channels(djm): `"home-manager, nixpkgs, unstable"`
     - nixpkgs: `/Users/djm/.nix-defexpr/channels/nixpkgs`
     - ```
    
  3. nrhtr commented on Jul 19, 2023

    @nrhtr
    Contributor

    configure: WARNING: non-linux system; not building mount

    It seems like this results in a non-existent "mount" output, which presumably Nix does not like.

    The following patch allows it to build on my system (aarch64-darwin). I can open a PR (or anyone can feel free) if this is reasonable (does it even make sense to have empty store paths as outputs?).

    diff --git a/pkgs/os-specific/linux/util-linux/default.nix b/pkgs/os-specific/linux/util-linux/default.nix
    index bd87c07879c..8cd7dfe5619 100644
    --- a/pkgs/os-specific/linux/util-linux/default.nix
    +++ b/pkgs/os-specific/linux/util-linux/default.nix
    @@ -111,6 +111,11 @@ stdenv.mkDerivation rec {
       enableParallelBuilding = true;
    
       postInstall = ''
    +    # builds on darwin do not produce all binaries
    +    # so these outputs won't exist otherwise
    +    mkdir -p "$mount"
    +    mkdir -p "$swap"
    +
         moveToOutput bin/mount "$mount"
         moveToOutput bin/umount "$mount"
         ln -svf "$mount/bin/"* $bin/bin/
    
  4. amarshall commented on Jul 19, 2023

    @amarshall
    Member

    Prospective fix in #244371

  5. shyim commented on Jul 23, 2023

    @shyim
    MemberAuthor

    Fixed in master

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    0.kind: build failure

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions