{"action":"created","issue":{"url":"https://api.github.com/repos/NixOS/nixpkgs/issues/20390","repository_url":"https://api.github.com/repos/NixOS/nixpkgs","labels_url":"https://api.github.com/repos/NixOS/nixpkgs/issues/20390/labels{/name}","comments_url":"https://api.github.com/repos/NixOS/nixpkgs/issues/20390/comments","events_url":"https://api.github.com/repos/NixOS/nixpkgs/issues/20390/events","html_url":"https://github.com/NixOS/nixpkgs/issues/20390","id":188984084,"number":20390,"title":"amdgpu-pro fails to build","user":{"login":"simendsjo","id":351519,"avatar_url":"https://avatars.githubusercontent.com/u/351519?v=3","gravatar_id":"","url":"https://api.github.com/users/simendsjo","html_url":"https://github.com/simendsjo","followers_url":"https://api.github.com/users/simendsjo/followers","following_url":"https://api.github.com/users/simendsjo/following{/other_user}","gists_url":"https://api.github.com/users/simendsjo/gists{/gist_id}","starred_url":"https://api.github.com/users/simendsjo/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/simendsjo/subscriptions","organizations_url":"https://api.github.com/users/simendsjo/orgs","repos_url":"https://api.github.com/users/simendsjo/repos","events_url":"https://api.github.com/users/simendsjo/events{/privacy}","received_events_url":"https://api.github.com/users/simendsjo/received_events","type":"User","site_admin":false},"labels":[{"id":6314750,"url":"https://api.github.com/repos/NixOS/nixpkgs/labels/0.kind:%20bug","name":"0.kind: bug","color":"84b6eb","default":false},{"id":84668464,"url":"https://api.github.com/repos/NixOS/nixpkgs/labels/9.needs:%20reporter%20feedback","name":"9.needs: reporter feedback","color":"eb6420","default":false}],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":4,"created_at":"2016-11-13T17:58:30Z","updated_at":"2016-11-14T20:51:44Z","closed_at":null,"body":"## Issue description\r\n\r\nThere are both errors and warnings while compiling\r\n\r\n```\r\nmake flags: SHELL=/nix/store/28wl3f34vfjpw0y5809bgr6382wqdscf-bash-4.3-p48/bin/bash -C /nix/store/fpix87xkclr4ywd47r84i3jhwdq7ccx3-linux-4.8.7-dev/lib/modules/4.8.7/build modules M=/tmp/nix-build-amdgpu-pro-16.30-4.8.7.drv-0/amdgpu-pro-driver/root/usr/src/amdgpu-pro-16.30.3-315407   \r\nmake: Entering directory '/nix/store/fpix87xkclr4ywd47r84i3jhwdq7ccx3-linux-4.8.7-dev/lib/modules/4.8.7/build'\r\n  CC [M]  /tmp/nix-build-amdgpu-pro-16.30-4.8.7.drv-0/amdgpu-pro-driver/root/usr/src/amdgpu-pro-16.30.3-315407/amd/amdgpu/amdgpu_drv.o\r\n  CC [M]  /tmp/nix-build-amdgpu-pro-16.30-4.8.7.drv-0/amdgpu-pro-driver/root/usr/src/amdgpu-pro-16.30.3-315407/amd/amdgpu/amdgpu_device.o\r\n  CC [M]  /tmp/nix-build-amdgpu-pro-16.30-4.8.7.drv-0/amdgpu-pro-driver/root/usr/src/amdgpu-pro-16.30.3-315407/amd/amdgpu/amdgpu_kms.o\r\n  CC [M]  /tmp/nix-build-amdgpu-pro-16.30-4.8.7.drv-0/amdgpu-pro-driver/root/usr/src/amdgpu-pro-16.30.3-315407/amd/amdgpu/amdgpu_atombios.o\r\n  CC [M]  /tmp/nix-build-amdgpu-pro-16.30-4.8.7.drv-0/amdgpu-pro-driver/root/usr/src/amdgpu-pro-16.30.3-315407/amd/amdgpu/atombios_crtc.o\r\n  CC [M]  /tmp/nix-build-amdgpu-pro-16.30-4.8.7.drv-0/amdgpu-pro-driver/root/usr/src/amdgpu-pro-16.30.3-315407/amd/amdgpu/amdgpu_connectors.o\r\n  CC [M]  /tmp/nix-build-amdgpu-pro-16.30-4.8.7.drv-0/amdgpu-pro-driver/root/usr/src/amdgpu-pro-16.30.3-315407/amd/amdgpu/atom.o\r\n  CC [M]  /tmp/nix-build-amdgpu-pro-16.30-4.8.7.drv-0/amdgpu-pro-driver/root/usr/src/amdgpu-pro-16.30.3-315407/amd/amdgpu/amdgpu_fence.o\r\n  CC [M]  /tmp/nix-build-amdgpu-pro-16.30-4.8.7.drv-0/amdgpu-pro-driver/root/usr/src/amdgpu-pro-16.30.3-315407/amd/amdgpu/amdgpu_ttm.o\r\n/tmp/nix-build-amdgpu-pro-16.30-4.8.7.drv-0/amdgpu-pro-driver/root/usr/src/amdgpu-pro-16.30.3-315407/amd/amdgpu/amdgpu_ttm.c: In function 'amdgpu_move_blit':\r\n/tmp/nix-build-amdgpu-pro-16.30-4.8.7.drv-0/amdgpu-pro-driver/root/usr/src/amdgpu-pro-16.30.3-315407/amd/amdgpu/amdgpu_ttm.c:291:18: error: incompatible type for argument 4 of 'ttm_bo_move_accel_cleanup'\r\n           evict, no_wait_gpu, new_mem);\r\n                  ^\r\nIn file included from /tmp/nix-build-amdgpu-pro-16.30-4.8.7.drv-0/amdgpu-pro-driver/root/usr/src/amdgpu-pro-16.30.3-315407/amd/amdgpu/../backport/include/kcl/kcl_ttm.h:6:0,\r\n                 from /tmp/nix-build-amdgpu-pro-16.30-4.8.7.drv-0/amdgpu-pro-driver/root/usr/src/amdgpu-pro-16.30.3-315407/amd/amdgpu/../backport/backport.h:9,\r\n                 from <command-line>:0:\r\n/nix/store/fpix87xkclr4ywd47r84i3jhwdq7ccx3-linux-4.8.7-dev/lib/modules/4.8.7/source/include/drm/ttm/ttm_bo_driver.h:1032:12: note: expected 'struct ttm_mem_reg *' but argument is of type 'bool {aka _Bool}'\r\n extern int ttm_bo_move_accel_cleanup(struct ttm_buffer_object *bo,\r\n            ^\r\n/tmp/nix-build-amdgpu-pro-16.30-4.8.7.drv-0/amdgpu-pro-driver/root/usr/src/amdgpu-pro-16.30.3-315407/amd/amdgpu/amdgpu_ttm.c:290:6: error: too many arguments to function 'ttm_bo_move_accel_cleanup'\r\n  r = ttm_bo_move_accel_cleanup(bo, fence,\r\n      ^\r\nIn file included from /tmp/nix-build-amdgpu-pro-16.30-4.8.7.drv-0/amdgpu-pro-driver/root/usr/src/amdgpu-pro-16.30.3-315407/amd/amdgpu/../backport/include/kcl/kcl_ttm.h:6:0,\r\n                 from /tmp/nix-build-amdgpu-pro-16.30-4.8.7.drv-0/amdgpu-pro-driver/root/usr/src/amdgpu-pro-16.30.3-315407/amd/amdgpu/../backport/backport.h:9,\r\n                 from <command-line>:0:\r\n/nix/store/fpix87xkclr4ywd47r84i3jhwdq7ccx3-linux-4.8.7-dev/lib/modules/4.8.7/source/include/drm/ttm/ttm_bo_driver.h:1032:12: note: declared here\r\n extern int ttm_bo_move_accel_cleanup(struct ttm_buffer_object *bo,\r\n            ^\r\n/tmp/nix-build-amdgpu-pro-16.30-4.8.7.drv-0/amdgpu-pro-driver/root/usr/src/amdgpu-pro-16.30.3-315407/amd/amdgpu/amdgpu_ttm.c: In function 'amdgpu_move_vram_ram':\r\n/tmp/nix-build-amdgpu-pro-16.30-4.8.7.drv-0/amdgpu-pro-driver/root/usr/src/amdgpu-pro-16.30.3-315407/amd/amdgpu/amdgpu_ttm.c:337:6: error: too few arguments to function 'ttm_bo_move_ttm'\r\n  r = ttm_bo_move_ttm(bo, true, no_wait_gpu, new_mem);\r\n      ^\r\nIn file included from /tmp/nix-build-amdgpu-pro-16.30-4.8.7.drv-0/amdgpu-pro-driver/root/usr/src/amdgpu-pro-16.30.3-315407/amd/amdgpu/../backport/include/kcl/kcl_ttm.h:6:0,\r\n                 from /tmp/nix-build-amdgpu-pro-16.30-4.8.7.drv-0/amdgpu-pro-driver/root/usr/src/amdgpu-pro-16.30.3-315407/amd/amdgpu/../backport/backport.h:9,\r\n                 from <command-line>:0:\r\n/nix/store/fpix87xkclr4ywd47r84i3jhwdq7ccx3-linux-4.8.7-dev/lib/modules/4.8.7/source/include/drm/ttm/ttm_bo_driver.h:979:12: note: declared here\r\n extern int ttm_bo_move_ttm(struct ttm_buffer_object *bo,\r\n            ^\r\n/tmp/nix-build-amdgpu-pro-16.30-4.8.7.drv-0/amdgpu-pro-driver/root/usr/src/amdgpu-pro-16.30.3-315407/amd/amdgpu/amdgpu_ttm.c: In function 'amdgpu_move_ram_vram':\r\n/tmp/nix-build-amdgpu-pro-16.30-4.8.7.drv-0/amdgpu-pro-driver/root/usr/src/amdgpu-pro-16.30.3-315407/amd/amdgpu/amdgpu_ttm.c:370:2: error: the address of 'tmp_mem' will always evaluate as 'true' [-Werror=address]\r\n  r = ttm_bo_move_ttm(bo, true, no_wait_gpu, &tmp_mem);\r\n  ^\r\n/tmp/nix-build-amdgpu-pro-16.30-4.8.7.drv-0/amdgpu-pro-driver/root/usr/src/amdgpu-pro-16.30.3-315407/amd/amdgpu/amdgpu_ttm.c:370:6: error: too few arguments to function 'ttm_bo_move_ttm'\r\n  r = ttm_bo_move_ttm(bo, true, no_wait_gpu, &tmp_mem);\r\n      ^\r\nIn file included from /tmp/nix-build-amdgpu-pro-16.30-4.8.7.drv-0/amdgpu-pro-driver/root/usr/src/amdgpu-pro-16.30.3-315407/amd/amdgpu/../backport/include/kcl/kcl_ttm.h:6:0,\r\n                 from /tmp/nix-build-amdgpu-pro-16.30-4.8.7.drv-0/amdgpu-pro-driver/root/usr/src/amdgpu-pro-16.30.3-315407/amd/amdgpu/../backport/backport.h:9,\r\n                 from <command-line>:0:\r\n/nix/store/fpix87xkclr4ywd47r84i3jhwdq7ccx3-linux-4.8.7-dev/lib/modules/4.8.7/source/include/drm/ttm/ttm_bo_driver.h:979:12: note: declared here\r\n extern int ttm_bo_move_ttm(struct ttm_buffer_object *bo,\r\n            ^\r\n/tmp/nix-build-amdgpu-pro-16.30-4.8.7.drv-0/amdgpu-pro-driver/root/usr/src/amdgpu-pro-16.30.3-315407/amd/amdgpu/amdgpu_ttm.c: In function 'amdgpu_bo_move':\r\n/tmp/nix-build-amdgpu-pro-16.30-4.8.7.drv-0/amdgpu-pro-driver/root/usr/src/amdgpu-pro-16.30.3-315407/amd/amdgpu/amdgpu_ttm.c:432:7: error: too few arguments to function 'ttm_bo_move_memcpy'\r\n   r = ttm_bo_move_memcpy(bo, evict, no_wait_gpu, new_mem);\r\n       ^\r\nIn file included from /tmp/nix-build-amdgpu-pro-16.30-4.8.7.drv-0/amdgpu-pro-driver/root/usr/src/amdgpu-pro-16.30.3-315407/amd/amdgpu/../backport/include/kcl/kcl_ttm.h:6:0,\r\n                 from /tmp/nix-build-amdgpu-pro-16.30-4.8.7.drv-0/amdgpu-pro-driver/root/usr/src/amdgpu-pro-16.30.3-315407/amd/amdgpu/../backport/backport.h:9,\r\n                 from <command-line>:0:\r\n/nix/store/fpix87xkclr4ywd47r84i3jhwdq7ccx3-linux-4.8.7-dev/lib/modules/4.8.7/source/include/drm/ttm/ttm_bo_driver.h:1002:12: note: declared here\r\n extern int ttm_bo_move_memcpy(struct ttm_buffer_object *bo,\r\n            ^\r\ncc1: all warnings being treated as errors\r\nmake[4]: *** [/nix/store/fpix87xkclr4ywd47r84i3jhwdq7ccx3-linux-4.8.7-dev/lib/modules/4.8.7/source/scripts/Makefile.build:290: /tmp/nix-build-amdgpu-pro-16.30-4.8.7.drv-0/amdgpu-pro-driver/root/usr/src/amdgpu-pro-16.30.3-315407/amd/amdgpu/amdgpu_ttm.o] Error 1\r\nmake[3]: *** [/nix/store/fpix87xkclr4ywd47r84i3jhwdq7ccx3-linux-4.8.7-dev/lib/modules/4.8.7/source/scripts/Makefile.build:440: /tmp/nix-build-amdgpu-pro-16.30-4.8.7.drv-0/amdgpu-pro-driver/root/usr/src/amdgpu-pro-16.30.3-315407/amd/amdgpu] Error 2\r\nmake[2]: *** [/nix/store/fpix87xkclr4ywd47r84i3jhwdq7ccx3-linux-4.8.7-dev/lib/modules/4.8.7/source/Makefile:1471: _module_/tmp/nix-build-amdgpu-pro-16.30-4.8.7.drv-0/amdgpu-pro-driver/root/usr/src/amdgpu-pro-16.30.3-315407] Error 2\r\nmake[1]: *** [Makefile:150: sub-make] Error 2\r\nmake: *** [Makefile:24: __sub-make] Error 2\r\nmake: Leaving directory '/nix/store/fpix87xkclr4ywd47r84i3jhwdq7ccx3-linux-4.8.7-dev/lib/modules/4.8.7/build'\r\nbuilder for ‘/nix/store/ynm7qary3vggw9d46rr7h6iadrqd1yl4-amdgpu-pro-16.30-4.8.7.drv’ failed with exit code 2\r\n```\r\n\r\n### Steps to reproduce\r\n\r\nSet `services.xserver.videoDrivers = [ \"amdgpu-pro\" ];`\r\n\r\n## Technical details\r\n\r\n* System: 16.09.1024.c859ea0 (Flounder)\r\n* Nix version: nix-env (Nix) 1.11.4\r\n* Nixpkgs version: \"16.09.1024.c859ea0\""},"comment":{"url":"https://api.github.com/repos/NixOS/nixpkgs/issues/comments/260458792","html_url":"https://github.com/NixOS/nixpkgs/issues/20390#issuecomment-260458792","issue_url":"https://api.github.com/repos/NixOS/nixpkgs/issues/20390","id":260458792,"user":{"login":"vcunat","id":1785925,"avatar_url":"https://avatars.githubusercontent.com/u/1785925?v=3","gravatar_id":"","url":"https://api.github.com/users/vcunat","html_url":"https://github.com/vcunat","followers_url":"https://api.github.com/users/vcunat/followers","following_url":"https://api.github.com/users/vcunat/following{/other_user}","gists_url":"https://api.github.com/users/vcunat/gists{/gist_id}","starred_url":"https://api.github.com/users/vcunat/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/vcunat/subscriptions","organizations_url":"https://api.github.com/users/vcunat/orgs","repos_url":"https://api.github.com/users/vcunat/repos","events_url":"https://api.github.com/users/vcunat/events{/privacy}","received_events_url":"https://api.github.com/users/vcunat/received_events","type":"User","site_admin":false},"created_at":"2016-11-14T20:51:44Z","updated_at":"2016-11-14T20:51:44Z","body":"Well, it's a decision to make. Changes are hand-picked for the release branch and IMO this isn't a completely clear case."}}
{"actor":{"display_login":"vcunat"}}