{"action":"created","issue":{"url":"https://api.github.com/repos/NixOS/nixpkgs/issues/41099","repository_url":"https://api.github.com/repos/NixOS/nixpkgs","labels_url":"https://api.github.com/repos/NixOS/nixpkgs/issues/41099/labels{/name}","comments_url":"https://api.github.com/repos/NixOS/nixpkgs/issues/41099/comments","events_url":"https://api.github.com/repos/NixOS/nixpkgs/issues/41099/events","html_url":"https://github.com/NixOS/nixpkgs/issues/41099","id":326735263,"number":41099,"title":"Linking with clang fails on macOS in sandboxed mode","user":{"login":"ThomasMader","id":678511,"avatar_url":"https://avatars2.githubusercontent.com/u/678511?v=4","gravatar_id":"","url":"https://api.github.com/users/ThomasMader","html_url":"https://github.com/ThomasMader","followers_url":"https://api.github.com/users/ThomasMader/followers","following_url":"https://api.github.com/users/ThomasMader/following{/other_user}","gists_url":"https://api.github.com/users/ThomasMader/gists{/gist_id}","starred_url":"https://api.github.com/users/ThomasMader/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ThomasMader/subscriptions","organizations_url":"https://api.github.com/users/ThomasMader/orgs","repos_url":"https://api.github.com/users/ThomasMader/repos","events_url":"https://api.github.com/users/ThomasMader/events{/privacy}","received_events_url":"https://api.github.com/users/ThomasMader/received_events","type":"User","site_admin":false},"labels":[{"id":90308187,"url":"https://api.github.com/repos/NixOS/nixpkgs/labels/6.topic:%20darwin","name":"6.topic: darwin","color":"fef2c0","default":false}],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":1,"created_at":"2018-05-26T12:38:39Z","updated_at":"2018-05-28T14:52:39Z","closed_at":null,"author_association":"CONTRIBUTOR","body":"## Issue description\r\n\r\nWhen 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.\r\n\r\n`ld: file not found: /System/Library/Frameworks/CoreFoundation.framework/Versions/A/CoreFoundation\r\nld: file not found: /System/Library/Frameworks/CoreFoundation.framework/Versions/A/CoreFoundation\r\nclang-5.0: error: clang-5.0linker command failed with exit code 1 (use -v to see invocation):`\r\n\r\n### Steps to reproduce\r\n\r\nComment 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.\r\n\r\n## Technical details\r\n\r\nPlease run `nix-shell -p nix-info --run \"nix-info -m\"` and paste the\r\nresults.\r\n\r\n - system: `\"x86_64-darwin\"`\r\n - host os: `Darwin 17.5.0, macOS 10.13.4`\r\n - multi-user?: `yes`\r\n - sandbox: `relaxed`\r\n - version: `nix-env (Nix) 2.0.2`\r\n - channels(root): `\"nixpkgs-18.03-darwin\"`\r\n - channels(thomad): `\"nixpkgs-18.03-darwin\"`\r\n - nixpkgs: `/nix/var/nix/profiles/per-user/root/channels/nixpkgs`"},"comment":{"url":"https://api.github.com/repos/NixOS/nixpkgs/issues/comments/392547294","html_url":"https://github.com/NixOS/nixpkgs/issues/41099#issuecomment-392547294","issue_url":"https://api.github.com/repos/NixOS/nixpkgs/issues/41099","id":392547294,"user":{"login":"LnL7","id":689294,"avatar_url":"https://avatars2.githubusercontent.com/u/689294?v=4","gravatar_id":"","url":"https://api.github.com/users/LnL7","html_url":"https://github.com/LnL7","followers_url":"https://api.github.com/users/LnL7/followers","following_url":"https://api.github.com/users/LnL7/following{/other_user}","gists_url":"https://api.github.com/users/LnL7/gists{/gist_id}","starred_url":"https://api.github.com/users/LnL7/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/LnL7/subscriptions","organizations_url":"https://api.github.com/users/LnL7/orgs","repos_url":"https://api.github.com/users/LnL7/repos","events_url":"https://api.github.com/users/LnL7/events{/privacy}","received_events_url":"https://api.github.com/users/LnL7/received_events","type":"User","site_admin":false},"created_at":"2018-05-28T14:52:39Z","updated_at":"2018-05-28T14:52:39Z","author_association":"CONTRIBUTOR","body":"Sandboxing currently doesn't work properly with frameworks, nix doesn't propagate the impure paths so so they are not propagated correctly so the extra sandbox paths get lost."}}
{"actor":{"display_login":"LnL7"}}