AnsweredAssumed Answered

Build error for amdgpu-pro 16.30.3-315407

Question asked by jollywizard on Sep 9, 2016
Latest reply on Oct 16, 2016 by volumetricsteve
  I have the following error generated when running the ubuntu 16.04 installer from the download page on (2016-09-09).
It looks like an implicit function definition warning, which is causing the build to fail because warnings are treated as errors.  Is this a problem with my kernel / environment, or is it an issue with the module as provided?
cat /var/lib/dkms/amdgpu-pro/16.30.3-315407/build/make.log | more
DKMS make.log for amdgpu-pro-16.30.3-315407 for kernel 3.19.0-32-generic (amd64)
Fri Sep  9 20:18:55 EDT 2016
make: Entering directory `/usr/src/linux-headers-3.19.0-32-generic'
  LD      /var/lib/dkms/amdgpu-pro/16.30.3-315407/build/built-in.o
  LD      /var/lib/dkms/amdgpu-pro/16.30.3-315407/build/amd/amdgpu/built-in.o
  CC [M]  /var/lib/dkms/amdgpu-pro/16.30.3-315407/build/amd/amdgpu/amdgpu_drv.o
  CC [M]  /var/lib/dkms/amdgpu-pro/16.30.3-315407/build/amd/amdgpu/amdgpu_device.o
  CC [M]  /var/lib/dkms/amdgpu-pro/16.30.3-315407/build/amd/amdgpu/amdgpu_kms.o
  CC [M]  /var/lib/dkms/amdgpu-pro/16.30.3-315407/build/amd/amdgpu/amdgpu_atombios.o
  CC [M]  /var/lib/dkms/amdgpu-pro/16.30.3-315407/build/amd/amdgpu/atombios_crtc.o
  CC [M]  /var/lib/dkms/amdgpu-pro/16.30.3-315407/build/amd/amdgpu/amdgpu_connectors.o
  CC [M]  /var/lib/dkms/amdgpu-pro/16.30.3-315407/build/amd/amdgpu/atom.o
  CC [M]  /var/lib/dkms/amdgpu-pro/16.30.3-315407/build/amd/amdgpu/amdgpu_fence.o
  CC [M]  /var/lib/dkms/amdgpu-pro/16.30.3-315407/build/amd/amdgpu/amdgpu_ttm.o
  CC [M]  /var/lib/dkms/amdgpu-pro/16.30.3-315407/build/amd/amdgpu/amdgpu_object.o
/var/lib/dkms/amdgpu-pro/16.30.3-315407/build/amd/amdgpu/amdgpu_object.c: In function ‘amdgpu_bo_create_restricted’:
/var/lib/dkms/amdgpu-pro/16.30.3-315407/build/amd/amdgpu/amdgpu_object.c:269:2: error: implicit declaration of function ‘drm_arch_can_wc_memory’ [-Werror=impl icit-function-declaration]
  if (!drm_arch_can_wc_memory())
  ^
cc1: all warnings being treated as errors
make[2]: *** [/var/lib/dkms/amdgpu-pro/16.30.3-315407/build/amd/amdgpu/amdgpu_object.o] Error 1
make[1]: *** [/var/lib/dkms/amdgpu-pro/16.30.3-315407/build/amd/amdgpu] Error 2
make: *** [_module_/var/lib/dkms/amdgpu-pro/16.30.3-315407/build] Error 2
make: Leaving directory `/usr/src/linux-headers-3.19.0-32-generic'

Outcomes