Skip to content

Linking frameworks on macOS fails in sandboxed mode #41099

@ThomasMader

Description

@ThomasMader

Issue description

When trying to build dmd it works with sandbox mode disabled but if it's enabled or set to relaxed building the package fails quite soon after start because of a failed link.

ld: file not found: /System/Library/Frameworks/CoreFoundation.framework/Versions/A/CoreFoundation ld: file not found: /System/Library/Frameworks/CoreFoundation.framework/Versions/A/CoreFoundation clang-5.0: error: clang-5.0linker command failed with exit code 1 (use -v to see invocation):

Steps to reproduce

Comment out the lines doCheck = true and inherit phobosUnittests in pkgs/development/compilers/dmd/default.nix and start build with nix-build -A dmd and make sure sandbox mode is enabled.

Technical details

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

  • system: "x86_64-darwin"
  • host os: Darwin 17.5.0, macOS 10.13.4
  • multi-user?: yes
  • sandbox: relaxed
  • version: nix-env (Nix) 2.0.2
  • channels(root): "nixpkgs-18.03-darwin"
  • channels(thomad): "nixpkgs-18.03-darwin"
  • nixpkgs: /nix/var/nix/profiles/per-user/root/channels/nixpkgs

Metadata

Metadata

Assignees

No one assigned

    Labels

    2.status: stalehttps://github.com/NixOS/nixpkgs/blob/master/.github/STALE-BOT.md6.topic: darwinRunning or building packages on Darwin
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions