cancel
Showing results for 
Search instead for 
Did you mean: 

Drivers & Software

jollywizard
Journeyman III

Build error for amdgpu-pro 16.30.3-315407

  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   /var/lib/dkms/amdgpu-pro/16.30.3-315407/build/amd/amdgpu/amdgpu_drv.o
  CC   /var/lib/dkms/amdgpu-pro/16.30.3-315407/build/amd/amdgpu/amdgpu_device.o
  CC   /var/lib/dkms/amdgpu-pro/16.30.3-315407/build/amd/amdgpu/amdgpu_kms.o
  CC   /var/lib/dkms/amdgpu-pro/16.30.3-315407/build/amd/amdgpu/amdgpu_atombios.o
  CC   /var/lib/dkms/amdgpu-pro/16.30.3-315407/build/amd/amdgpu/atombios_crtc.o
  CC   /var/lib/dkms/amdgpu-pro/16.30.3-315407/build/amd/amdgpu/amdgpu_connectors.o
  CC   /var/lib/dkms/amdgpu-pro/16.30.3-315407/build/amd/amdgpu/atom.o
  CC   /var/lib/dkms/amdgpu-pro/16.30.3-315407/build/amd/amdgpu/amdgpu_fence.o
  CC   /var/lib/dkms/amdgpu-pro/16.30.3-315407/build/amd/amdgpu/amdgpu_ttm.o
  CC   /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'
Tags (1)
0 Kudos
1 Reply
volumetricsteve
Adept II

Re: Build error for amdgpu-pro 16.30.3-315407

It might sound silly, but are you on Ubuntu 16.04?  I thought that was packaged with the 4.4 kernel, but I could be wrong.  I don't usually work with ubuntu, but I would think the error you're getting is due to an old kernel.  If I were you I'd try updating my kernel to something 4.4-ish if you can, and try again.

0 Kudos