{"action":"created","issue":{"url":"https://api.github.com/repos/NixOS/nixpkgs/issues/76935","repository_url":"https://api.github.com/repos/NixOS/nixpkgs","labels_url":"https://api.github.com/repos/NixOS/nixpkgs/issues/76935/labels{/name}","comments_url":"https://api.github.com/repos/NixOS/nixpkgs/issues/76935/comments","events_url":"https://api.github.com/repos/NixOS/nixpkgs/issues/76935/events","html_url":"https://github.com/NixOS/nixpkgs/issues/76935","id":545293943,"node_id":"MDU6SXNzdWU1NDUyOTM5NDM=","number":76935,"title":"tensorflow: build fails","user":{"login":"prusnak","id":42201,"node_id":"MDQ6VXNlcjQyMjAx","avatar_url":"https://avatars2.githubusercontent.com/u/42201?v=4","gravatar_id":"","url":"https://api.github.com/users/prusnak","html_url":"https://github.com/prusnak","followers_url":"https://api.github.com/users/prusnak/followers","following_url":"https://api.github.com/users/prusnak/following{/other_user}","gists_url":"https://api.github.com/users/prusnak/gists{/gist_id}","starred_url":"https://api.github.com/users/prusnak/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/prusnak/subscriptions","organizations_url":"https://api.github.com/users/prusnak/orgs","repos_url":"https://api.github.com/users/prusnak/repos","events_url":"https://api.github.com/users/prusnak/events{/privacy}","received_events_url":"https://api.github.com/users/prusnak/received_events","type":"User","site_admin":false},"labels":[{"id":6314750,"node_id":"MDU6TGFiZWw2MzE0NzUw","url":"https://api.github.com/repos/NixOS/nixpkgs/labels/0.kind:%20bug","name":"0.kind: bug","color":"84b6eb","default":false,"description":null}],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2020-01-04T14:57:02Z","updated_at":"2020-01-04T15:34:29Z","closed_at":null,"author_association":"MEMBER","body":"**Describe the bug**\r\n\r\npython3Packages.tensorflowWithCuda build fails with:\r\n\r\n```\r\nERROR: /build/output/external/nccl_archive/BUILD.bazel:53:1: fatbinary external/nccl_archive/device_dlink_hdrs.fatbin failed (Exit 1)\r\nfatbinary fatal   : Unknown option '-bin2c-path'\r\n```\r\n\r\n**To Reproduce**\r\n\r\n1. `nix-shell -p python3Packages.tensorflowWithCuda`\r\n2. observe build failure\r\n\r\n**Expected behavior**\r\n\r\nBuild is successful.\r\n\r\n**Additional context**\r\n\r\nMight be related to https://github.com/tensorflow/tensorflow/issues/34429\r\n\r\nMaintainer information:\r\n```yaml\r\n# a list of nixpkgs attributes affected by the problem\r\nattribute: jyp abbradar\r\n# a list of nixos modules affected by the problem\r\nmodule:\r\n```\r\n\r\ncc @timokau\r\n"},"comment":{"url":"https://api.github.com/repos/NixOS/nixpkgs/issues/comments/570794778","html_url":"https://github.com/NixOS/nixpkgs/issues/76935#issuecomment-570794778","issue_url":"https://api.github.com/repos/NixOS/nixpkgs/issues/76935","id":570794778,"node_id":"MDEyOklzc3VlQ29tbWVudDU3MDc5NDc3OA==","user":{"login":"prusnak","id":42201,"node_id":"MDQ6VXNlcjQyMjAx","avatar_url":"https://avatars2.githubusercontent.com/u/42201?v=4","gravatar_id":"","url":"https://api.github.com/users/prusnak","html_url":"https://github.com/prusnak","followers_url":"https://api.github.com/users/prusnak/followers","following_url":"https://api.github.com/users/prusnak/following{/other_user}","gists_url":"https://api.github.com/users/prusnak/gists{/gist_id}","starred_url":"https://api.github.com/users/prusnak/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/prusnak/subscriptions","organizations_url":"https://api.github.com/users/prusnak/orgs","repos_url":"https://api.github.com/users/prusnak/repos","events_url":"https://api.github.com/users/prusnak/events{/privacy}","received_events_url":"https://api.github.com/users/prusnak/received_events","type":"User","site_admin":false},"created_at":"2020-01-04T15:34:29Z","updated_at":"2020-01-04T15:34:29Z","author_association":"MEMBER","body":"Trying to apply the following patch (as suggested by https://github.com/tensorflow/tensorflow/issues/34429):\r\n\r\n```--- a/third_party/nccl/build_defs.bzl.tpl~<---->2020-01-04 16:31:43.317721408 +0100\r\n+++ b/third_party/nccl/build_defs.bzl.tpl<----->2020-01-04 16:31:48.091632861 +0100\r\n@@ -113,7 +113,6 @@ def _device_link_impl(ctx):\r\n             \"--cmdline=--compile-only\",\r\n             \"--link\",\r\n             \"--compress-all\",\r\n-            \"--bin2c-path=%s\" % bin2c.dirname,\r\n             \"--create=%s\" % tmp_fatbin.path,\r\n             \"--embedded-fatbin=%s\" % fatbin_h.path,\r\n         ] + images,\r\n```\r\n"}}
{"actor":{"display_login":"prusnak"}}