Skip to content

Darwin reproducible builds #21629

@matthewbauer

Description

@matthewbauer

Issue description

Currently, Darwin stdenv doesn't have reproducible builds. According to this post it looks like Clang should support reproducible builds. It looks like macOS has some special PIE/ASLR that may be contributing to this.

Does anyone have insight on what's going on? Perhaps passing --no_pie to LLVM configure will fix something?

Steps to reproduce

$ nix-build -A hello --check
...
error: derivation ‘/nix/store/cq72li3c6vs7vabnlikfrz5vmjd4syj1-hello-2.10.drv’ may not be deterministic: output ‘/nix/store/la0bdn94l74vscz7bivhvi6qg7ih3v0p-hello-2.10’ differs

Technical details

  • System: (NixOS: nixos-version, Ubuntu/Fedora: lsb_release -a, ...)
    macOS Sierra 10.12.2
  • Nix version: (run nix-env --version)
    nix-env (Nix) 1.11.4
  • Nixpkgs version: (run nix-instantiate --eval '<nixpkgs>' -A lib.nixpkgsVersion)
    17.03pre-git

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions