0 Replies Latest reply on Oct 10, 2016 8:29 AM by vitalij

    custom kernel and FGLRX



      Good day!
      help please , Thanks!

      ROCm Platform - ROCm 1.2 GitHub - RadeonOpenCompute/ROCm: ROCm - Radeon Open Compute Platform for HPC and Ultrascale GPU Computing

      uname -r


      lspci | grep -i VGA

      07:00.0 VGA compatible controller: Advanced Micro Devices, Inc. [AMD/ATI] Hawaii XT [Radeon R9 290X]


      ./amd-driver-installer-15.302-x86.x86_64.run --buildpkg ubuntu/trusty --NoXServer

      dpkg -i *.deb



      (Reading database ... 122092 files and directories currently installed.)

      Preparing to unpack fglrx-core_15.302-0ubuntu1_amd64.deb ...

      Removing all DKMS Modules


      Unpacking fglrx-core (2:15.302-0ubuntu1) over (2:15.302-0ubuntu1) ...

      Setting up fglrx-core (2:15.302-0ubuntu1) ...

      Loading new fglrx-core-15.302 DKMS files...

      Building only for 4.4.0-kfd-compute-rocm-rel-1.2-31

      Building for architecture x86_64

      Building initial module for 4.4.0-kfd-compute-rocm-rel-1.2-31

      ERROR (dkms apport): kernel package linux-headers-4.4.0-kfd-compute-rocm-rel-1.2-31 is not supported

      Error! Bad return status for module build on kernel: 4.4.0-kfd-compute-rocm-rel-1.2-31 (x86_64)

      Consult /var/lib/dkms/fglrx-core/15.302/build/make.log for more information.

      update-initramfs: deferring update (trigger activated)

      Processing triggers for initramfs-tools (0.103ubuntu4.2) ...

      update-initramfs: Generating /boot/initrd.img-4.4.0-kfd-compute-rocm-rel-1.2-31

      Processing triggers for libc-bin (2.19-0ubuntu6.6) ...



      DKMS make.log for fglrx-core-15.302 for kernel 4.4.0-kfd-compute-rocm-rel-1.2-31 (x86_64)

      Mon Oct 10 09:20:39 EDT 2016

      /usr/sbin/dkms: line 73: cd: /var/lib/dkms/fglrx/15.302/build: No such file or directory

      AMD kernel module generator version 2.1

      doing Makefile based build for kernel 2.6.x and higher

      rm -rf *.c *.h *.o *.ko *.a .??* *.symvers

      make -C /lib/modules/4.4.0-kfd-compute-rocm-rel-1.2-31/build SUBDIRS=/var/lib/dkms/fglrx-core/15.302/build/2.6.x modules

      make[1]: Entering directory `/usr/src/linux-headers-4.4.0-kfd-compute-rocm-rel-1.2-31'

        CC [M]  /var/lib/dkms/fglrx-core/15.302/build/2.6.x/firegl_public.o

      <command-line>:0:0: warning: "COMPAT_ALLOC_USER_SPACE" redefined [enabled by default]

      <command-line>:0:0: note: this is the location of the previous definition

      /var/lib/dkms/fglrx-core/15.302/build/2.6.x/firegl_public.c: In function ‘KCL_fpu_save_init’:

      /var/lib/dkms/fglrx-core/15.302/build/2.6.x/firegl_public.c:6475:49: error: ‘XSTATE_FP’ undeclared (first use in this function)

             if (!(fpu->state.xsave.header.xfeatures & XSTATE_FP))


      /var/lib/dkms/fglrx-core/15.302/build/2.6.x/firegl_public.c:6475:49: note: each undeclared identifier is reported only once for each function it appears in

      /var/lib/dkms/fglrx-core/15.302/build/2.6.x/firegl_public.c: At top level:

      /var/lib/dkms/fglrx-core/15.302/build/2.6.x/firegl_public.c:6465:12: warning: ‘KCL_fpu_save_init’ defined but not used [-Wunused-function]

      static int KCL_fpu_save_init(struct task_struct *tsk)


      make[2]: *** [/var/lib/dkms/fglrx-core/15.302/build/2.6.x/firegl_public.o] Error 1

      make[1]: *** [_module_/var/lib/dkms/fglrx-core/15.302/build/2.6.x] Error 2

      make[1]: Leaving directory `/usr/src/linux-headers-4.4.0-kfd-compute-rocm-rel-1.2-31'

      make: *** [kmod_build] Error 2

      build failed with return value 2