Ashark / archlinux-amdgpu-pro

Radeon Software for Linux (AMDGPU PRO) PKGBUILD generator for ArchLinux AUR
https://aur.archlinux.org/pkgbase/amdgpu-pro-installer/
119 stars 25 forks source link

DKMS install error #35

Closed durazell closed 5 years ago

durazell commented 7 years ago

This shows when I try to install the package

DKMS make.log for amdgpu-pro-16.60-379184 for kernel 4.9.8-1-ARCH (x86_64)
to 9.2.2017 20.53.21 +0200
make: Siirrytään hakemistoon ”/usr/lib/modules/4.9.8-1-ARCH/build”
  LD      /var/lib/dkms/amdgpu-pro-16.60/379184/build/built-in.o
  LD      /var/lib/dkms/amdgpu-pro-16.60/379184/build/amd/amdkcl/built-in.o
  CC [M]  /var/lib/dkms/amdgpu-pro-16.60/379184/build/amd/amdkcl/kcl_drm.o
  LD      /var/lib/dkms/amdgpu-pro-16.60/379184/build/amd/amdgpu/built-in.o
  LD      /var/lib/dkms/amdgpu-pro-16.60/379184/build/ttm/built-in.o
  CC [M]  /var/lib/dkms/amdgpu-pro-16.60/379184/build/amd/amdkcl/kcl_fence.o
  CC [M]  /var/lib/dkms/amdgpu-pro-16.60/379184/build/amd/amdgpu/amdgpu_drv.o
  CC [M]  /var/lib/dkms/amdgpu-pro-16.60/379184/build/ttm/ttm_memory.o
In file included from /var/lib/dkms/amdgpu-pro-16.60/379184/build/amd/amdgpu/../amdgpu/amdgpu_ttm.h:27:0,
                 from /var/lib/dkms/amdgpu-pro-16.60/379184/build/amd/amdgpu/../amdgpu/amdgpu.h:54,
                 from /var/lib/dkms/amdgpu-pro-16.60/379184/build/amd/amdgpu/../backport/include/kcl/kcl_amdgpu.h:5,
                 from /var/lib/dkms/amdgpu-pro-16.60/379184/build/amd/amdgpu/../backport/backport.h:5,
                 from <komentorivi>:0:
/var/lib/dkms/amdgpu-pro-16.60/379184/build/amd/amdgpu/../scheduler/gpu_scheduler.h:27:49: virhe: operator '==' has no left operand
 #if (defined OS_NAME_RHEL) && (OS_VERSION_MAJOR == 6)
                                                 ^~
In file included from /var/lib/dkms/amdgpu-pro-16.60/379184/build/amd/amdgpu/../amdgpu/amdgpu_ttm.h:27:0,
                 from /var/lib/dkms/amdgpu-pro-16.60/379184/build/amd/amdgpu/../amdgpu/amdgpu.h:54,
                 from /var/lib/dkms/amdgpu-pro-16.60/379184/build/amd/amdgpu/../backport/include/kcl/kcl_amdgpu.h:5,
                 from /var/lib/dkms/amdgpu-pro-16.60/379184/build/amd/amdgpu/../backport/backport.h:5,
                 from <komentorivi>:0:
/var/lib/dkms/amdgpu-pro-16.60/379184/build/amd/amdgpu/../scheduler/gpu_scheduler.h:27:49: virhe: operator '==' has no left operand
 #if (defined OS_NAME_RHEL) && (OS_VERSION_MAJOR == 6)
                                                 ^~
In file included from /var/lib/dkms/amdgpu-pro-16.60/379184/build/amd/amdgpu/../backport/backport.h:11:0,
                 from <komentorivi>:0:
/var/lib/dkms/amdgpu-pro-16.60/379184/build/include/kcl/kcl_acpi.h:8:49: virhe: operator '<=' has no left operand
 #if (defined OS_NAME_RHEL) && (OS_VERSION_MAJOR <= 6)
                                                 ^~
In file included from /var/lib/dkms/amdgpu-pro-16.60/379184/build/amd/amdgpu/../backport/backport.h:12:0,
                 from <komentorivi>:0:
/var/lib/dkms/amdgpu-pro-16.60/379184/build/include/kcl/kcl_hwmon.h: Funktio ”kcl_hwmon_device_register_with_groups”:
/var/lib/dkms/amdgpu-pro-16.60/379184/build/include/kcl/kcl_hwmon.h:15:49: virhe: operator '<=' has no left operand
 #if (defined OS_NAME_RHEL) && (OS_VERSION_MAJOR <= 6)
                                                 ^~
make[2]: *** [scripts/Makefile.build:293: /var/lib/dkms/amdgpu-pro-16.60/379184/build/amd/amdgpu/amdgpu_drv.o] Virhe 1
make[1]: *** [scripts/Makefile.build:544: /var/lib/dkms/amdgpu-pro-16.60/379184/build/amd/amdgpu] Virhe 2
 CC [M]  /var/lib/dkms/amdgpu-pro-16.60/379184/build/ttm/ttm_tt.o
 CC [M]  /var/lib/dkms/amdgpu-pro-16.60/379184/build/ttm/ttm_bo.o

After reboot xorg opens, firefox works but opengl fails: $ glxinfo name of display: :0.0 Error: couldn't find RGB GLX visual or fbconfig $ glxgears Error: couldn't get an RGB, Double-buffered visual

corngood commented 7 years ago

This was also reported in #34. I'm struggling to explain why it would only happen to some users. Can you pastebin the whole dksm log with as much verbosity as possible?

Do you have an unusual kernel or gcc installed?

durazell commented 7 years ago

I'm also running up to date Antergos like in #34. Did the install on default kernel and tested on default too. It's as if OS_VERSION_MAJOR is not defined..

gcc (GCC) 6.3.1 20170109

brainpower commented 7 years ago

Well, when using Antergos you'll probably have to modify 0001-add-archlinux-as-build-option.patch and add similar code for antergos, the value you need in the ifeq is the ID field in /etc/os-release, IIRC thats what gets read into $(OS_NAME) somewhre in that Makefile. I remember getting similar build errors without that patch, so Antergos probably has a different value for that ID.

AustinJ235 commented 7 years ago

Is there any reason to keep the checks in for other distros, when most distros that use pacman are Arch based? For Antergos I have also found that just reinstalling filesystem package will rewrite the os-release file with the stock arch one.

AustinJ235 commented 7 years ago

Ok after the the little os-release issue. The DKMS installs fine, but doesn't load.

[    17.727] (II) AMDGPU(0): AMDGPU DDX hybrid version: 16.60.3
[    17.727] (EE) AMDGPU(0): Failed to open amdgpu hybrid version

https://austinj.me/logs/fresh/2/xorg.txt

EDIT: Nouveau and amdgpu hybrid driver don't seem to coexist with each other. The driver loads just fine. Still have the same issue with the segfault as mentioned here #34 .