Giter VIP home page Giter VIP logo

archlinux-amdgpu-pro's People

Contributors

ashark avatar brainpower avatar corngood avatar davidm-hb avatar eddieringle avatar ldepaulatrac avatar lew21 avatar mesmerx avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

archlinux-amdgpu-pro's Issues

Provide installation instructions

Provide installation instructions or at least mention important information like downgrade to xorg 1.18. Making proper installation instructions might be better since most new arch users wouldn't know how to properly downgrade xorg.

No HDMI Audio with AMDGPU-PRO on my XFX RX480

Any idea how to fix this? I have been reading some people his audio works while other don't.

Sink #0
	State: RUNNING
	Name: alsa_output.pci-0000_01_00.1.hdmi-stereo
	Description: HDA ATI HDMI Digital Stereo (HDMI)
	Driver: module-alsa-card.c
	Sample Specification: s16le 2ch 44100Hz
	Channel Map: front-left,front-right
	Owner Module: 6
	Mute: no
	Volume: front-left: 54384 /  83% / -4.86 dB,   front-right: 54384 /  83% / -4.86 dB
	        balance 0.00
	Base Volume: 65536 / 100% / 0.00 dB
	Monitor Source: alsa_output.pci-0000_01_00.1.hdmi-stereo.monitor
	Latency: 23194 usec, configured 23220 usec
	Flags: HARDWARE DECIBEL_VOLUME LATENCY SET_FORMATS 
	Properties:
		alsa.resolution_bits = "16"
		device.api = "alsa"
		device.class = "sound"
		alsa.class = "generic"
		alsa.subclass = "generic-mix"
		alsa.name = "HDMI 0"
		alsa.id = "HDMI 0"
		alsa.subdevice = "0"
		alsa.subdevice_name = "subdevice #0"
		alsa.device = "3"
		alsa.card = "1"
		alsa.card_name = "HDA ATI HDMI"
		alsa.long_card_name = "HDA ATI HDMI at 0xf7e60000 irq 31"
		alsa.driver_name = "snd_hda_intel"
		device.bus_path = "pci-0000:01:00.1"
		sysfs.path = "/devices/pci0000:00/0000:00:01.0/0000:01:00.1/sound/card1"
		device.bus = "pci"
		device.vendor.id = "1002"
		device.vendor.name = "Advanced Micro Devices, Inc. [AMD/ATI]"
		device.product.id = "aaf0"
		device.string = "hdmi:1"
		device.buffering.buffer_size = "352768"
		device.buffering.fragment_size = "176384"
		device.access_mode = "mmap+timer"
		device.profile.name = "hdmi-stereo"
		device.profile.description = "Digital Stereo (HDMI)"
		device.description = "HDA ATI HDMI Digital Stereo (HDMI)"
		alsa.mixer_name = "ATI R6xx HDMI"
		alsa.components = "HDA:1002aa01,00aa0100,00100700"
		module-udev-detect.discovered = "1"
		device.icon_name = "audio-card-pci"
	Ports:
		hdmi-output-0: HDMI / DisplayPort (priority: 5900, available)
	Active Port: hdmi-output-0
	Formats:
		pcm

Sink #1
	State: SUSPENDED
	Name: alsa_output.pci-0000_00_1b.0.analog-stereo
	Description: Built-in Audio Analog Stereo
	Driver: module-alsa-card.c
	Sample Specification: s16le 2ch 44100Hz
	Channel Map: front-left,front-right
	Owner Module: 7
	Mute: no
	Volume: front-left: 65536 / 100% / 0.00 dB,   front-right: 65536 / 100% / 0.00 dB
	        balance 0.00
	Base Volume: 65536 / 100% / 0.00 dB
	Monitor Source: alsa_output.pci-0000_00_1b.0.analog-stereo.monitor
	Latency: 0 usec, configured 0 usec
	Flags: HARDWARE HW_MUTE_CTRL HW_VOLUME_CTRL DECIBEL_VOLUME LATENCY 
	Properties:
		alsa.resolution_bits = "16"
		device.api = "alsa"
		device.class = "sound"
		alsa.class = "generic"
		alsa.subclass = "generic-mix"
		alsa.name = "ALC892 Analog"
		alsa.id = "ALC892 Analog"
		alsa.subdevice = "0"
		alsa.subdevice_name = "subdevice #0"
		alsa.device = "0"
		alsa.card = "0"
		alsa.card_name = "HDA Intel PCH"
		alsa.long_card_name = "HDA Intel PCH at 0xf7f30000 irq 30"
		alsa.driver_name = "snd_hda_intel"
		device.bus_path = "pci-0000:00:1b.0"
		sysfs.path = "/devices/pci0000:00/0000:00:1b.0/sound/card0"
		device.bus = "pci"
		device.vendor.id = "8086"
		device.vendor.name = "Intel Corporation"
		device.product.id = "1e20"
		device.product.name = "7 Series/C216 Chipset Family High Definition Audio Controller"
		device.form_factor = "internal"
		device.string = "front:0"
		device.buffering.buffer_size = "352800"
		device.buffering.fragment_size = "176400"
		device.access_mode = "mmap+timer"
		device.profile.name = "analog-stereo"
		device.profile.description = "Analog Stereo"
		device.description = "Built-in Audio Analog Stereo"
		alsa.mixer_name = "Realtek ALC892"
		alsa.components = "HDA:10ec0892,80862043,00100302"
		module-udev-detect.discovered = "1"
		device.icon_name = "audio-card-pci"
	Ports:
		analog-output-lineout: Line Out (priority: 9900, available)
		analog-output-speaker: Speakers (priority: 10000, not available)
		analog-output-headphones: Headphones (priority: 9000, not available)
	Active Port: analog-output-lineout
	Formats:
		pcm

sddm will not start after the upgrade.

[21:30:26.364] (II) DAEMON: Initializing...
[21:30:26.409] (II) DAEMON: Starting...
[21:30:26.409] (II) DAEMON: Adding new display on vt 1 ...
[21:30:26.410] (II) DAEMON: Display server starting...
[21:30:26.411] (EE) DAEMON: Failed to start display server process.
[21:30:26.411] (EE) DAEMON: Display server failed to start. Exiting

also the pacman -U *.pkg.tar.xz complains that I don't have

ncurses5-compat-libs>=6

but I cannot find that within the pacman -Ss list ?

I am using

pacman -Q ncurses
ncurses 6.0+20161224-1

I did try https://aur.archlinux.org/packages/ncurses5-compat-libs/

but had the issue of

==> Verifying source file signatures with gpg...
ncurses-6.0-20161224.tgz ... FAILED (unknown public key 702353E0F7E48EDB)
==> ERROR: One or more PGP signatures could not be verified!

which appears to be downloading what I have already installed ?

The dmesg was quoting

[ 37.856567] sddm[532]: segfault at 7a0 ip 00000000000007a0 sp 00007ffed7d45258 error 14 in sddm[400000+72000]
[ 39.625455] sddm[1597]: segfault at 1c88660 ip 0000000001c88660 sp 00007ffc3ce5b538 error 15
[ 44.216735] sddm[1646]: segfault at 129f270 ip 000000000129f270 sp 00007ffd02f27f18 error 15
[ 45.031028] sddm[2050]: segfault at 0 ip 00007fc3eb4a49d3 sp 00007fff50b45650 error 4 in libQt5Core.so.5.8.0[7fc3eb1ea000+4cc000]
[ 48.490727] sddm[2122]: segfault at 30 ip 0000000000000030 sp 00007ffd0e299ce8 error 14 in sddm[400000+72000]
[ 49.591808] sddm[2434]: segfault at 0 ip 00007ff3f7e6c9d3 sp 00007ffe1eb78040 error 4 in libQt5Core.so.5.8.0[7ff3f7bb2000+4cc000]
[ 50.221142] sddm[2508]: segfault at 1f296e0 ip 0000000001f296e0 sp 00007ffe814234a8 error 15
[ 52.116377] sddm[2630]: segfault at 30 ip 0000000000000030 sp 00007ffca3e332a8 error 14 in sddm[400000+72000]
[ 52.626386] sddm[2733]: segfault at bd2b80 ip 0000000000bd2b80 sp 00007ffe26fb0838 error 15
[ 54.370399] sddm[2755]: segfault at 0 ip (null) sp 00007ffcb1701128 error 14 in sddm[400000+72000]

Is there any advice please :)

amdgpu-pro-dkms

Have you tried to use gentoo patches to build dkms module?
Vulkan doesn't work without it, so no point installing it without working dkms driver either (there are fence errors without it)
Here is my version:

package_amdgpu-pro-dkms () {
pkgdesc="amdgpu-pro driver in DKMS format."
depends=('dkms>=1.95')
arch=('any')

rm -Rf "${srcdir}"/amdgpu-pro-dkms_16.30.3-315407_all
mkdir "${srcdir}"/amdgpu-pro-dkms_16.30.3-315407_all
cd "${srcdir}"/amdgpu-pro-dkms_16.30.3-315407_all       
ar x "${srcdir}"/amdgpu-pro-driver/./amdgpu-pro-dkms_16.30.3-315407_all.deb
tar -C "${pkgdir}" -xf data.tar.xz
pushd "${pkgdir}"/usr/src/amdgpu-pro-16.30.3-315407
git clone https://github.com/Lucretia/vulkan-overlay.git
patch -p1 < ./vulkan-overlay/sys-kernel/amdgpu-pro-dkms/files/16.30.3-306809/0001-Find-the-correct-System.map-file.patch
patch -p1 < ./vulkan-overlay/sys-kernel/amdgpu-pro-dkms/files/16.30.3-306809/0002-Add-Gentoo-as-an-OS-option-otherwise-it-won-t-build.patch
patch -p1 < ./vulkan-overlay/sys-kernel/amdgpu-pro-dkms/files/16.30.3-306809/0003-Fixed-kernel-module-installation-location-using-dkms.patch
patch -p1 < ./vulkan-overlay/sys-kernel/amdgpu-pro-dkms/files/16.30.3-306809/0004-Fix-paging-changes-between-kernel-versions.patch
patch -p1 < ./vulkan-overlay/sys-kernel/amdgpu-pro-dkms/files/16.30.3-306809/0005-LRU-stuff-isn-t-available-until-4.7.x.patch
patch -p1 < ./vulkan-overlay/sys-kernel/amdgpu-pro-dkms/files/16.30.3-306809/0006-Extra-parameter-removed-from-ttm_bo_reserve-for-4.7..patch
patch -p1 < ./vulkan-overlay/sys-kernel/amdgpu-pro-dkms/files/16.30.3-306809/0007-Change-name-of-vblank_disable_allowed-to-vblank_disa.patch
patch -p1 < ./vulkan-overlay/sys-kernel/amdgpu-pro-dkms/files/16.30.3-306809/0008-First-parameter-removed-from-drm_gem_object_lookup-i.patch
patch -p1 < ./vulkan-overlay/sys-kernel/amdgpu-pro-dkms/files/16.30.3-306809/0009-Remove-connector-parameter-from-__drm_atomic_helper_.patch
popd

if [ -d "${pkgdir}/usr/lib/x86_64-linux-gnu" ]; then
    mkdir -p "${pkgdir}"/usr/lib
    mv "${pkgdir}"/usr/lib/x86_64-linux-gnu/* "${pkgdir}"/usr/lib
    rmdir "${pkgdir}"/usr/lib/x86_64-linux-gnu
fi

}

I had to edit /var/lib/dkms/amdgpu-pro-16.30.3/315407/source/amd/dal/Makefile and remove the line with -Werror and patch /var/lib/dkms/amdgpu-pro-16.30.3/315407/source/amd/amdgpu/amdgpu_atpx_handler.c and add 0 as a second parameter to vga_switcheroo_register_handler().
I also had to add the link System.map to System.map-4.7.1-1-ARCH.
After that the installation was successfull. I will post after I check if it works.

17.30 is out

Latest version of amdgpu-pro 17.20 was just launched by AMD some days ago. It seems to be compatible with more recent versions of Linux (up to 4.11) but the contents of the package are a bit different, so you might need change the script.

VDPAU: Failed to open VDPAU backend libvdpau_amdgpu.so

Trying to get some info about VDPAU yields:

% vdpauinfo
display: :0   screen: 0
Failed to open VDPAU backend libvdpau_amdgpu.so: cannot open shared object file: No such file or directory
Error creating VDPAU device: 1

This might be due to the fact that the installed lib is located at /usr/lib/x86_64-linux-gnu/vdpau/libvdpau_amdgpu.so, symlinking it to /usr/lib solves the problem:

API version: 1
Information string: G3DVL VDPAU Driver Shared Library version 1.0

Automatically do this for the user as the directions are confusing?

Run ./gen_packages_map.sh > packages_map.py
See differences with git diff -w packages_map.py
If there are differences, then make adjustments to gen_packages_map.sh if needed. Especially, look for the new appeared packages (they will have empty comment) and removed packages. If there are new or removed packages, then use make_pkgbuild_pkgs_template.sh and edit gen-PKGBUILD.py
Run ./gen_replace_deps.sh > replace_deps.py
See differences with git diff -w replace_deps.py
If there are differences, then make adjustments to gen_replace_deps.sh if needed.

[question] How can I tell if I'm running the amdgpu-pro drivers?

I've searched online, read several forum posts, Q&A and relevant Arch wiki articles but I can't figure out how to check whether the amdgpu-pro drivers are being used. I've posted on StackExchange as well, but got no response. How can I tell if the amdgpu-pro drivers are running? Why are DKMS and mkinitcpio not triggered when installing the pro drivers, aren't there kernel components to the pro drivers?

I've checked output from inxi -Gxxxx and lspci -k but I can't find any "pro" reference.

meld won't load for terminal only based systems alternative?

./extract_transaction_scripts_and_triggers.sh
Opening meld for comparison...
Unable to init server: Could not connect: Connection refused
Unable to init server: Could not connect: Connection refused
2020-11-26 14:47:48,772 CRITICAL Gtk: gtk_icon_theme_get_for_screen: assertion 'GDK_IS_SCREEN (screen)' failed
Traceback (most recent call last):
File "/usr/bin/meld", line 384, in
setup_resources()
File "/usr/bin/meld", line 236, in setup_resources
Gtk.IconTheme.get_default().append_search_path(icon_dir)
AttributeError: 'NoneType' object has no attribute 'append_search_path'

Provide a version of libdrm that allows installation of mesa-git from AUR

configure: error: Package requirements (libdrm >= 2.4.75 libdrm_intel >= 2.4.75) were not met:

Requested 'libdrm >= 2.4.75' but version of libdrm is 2.4.70
No package 'libdrm_intel' found

I added "=2.4.75-1" the provides fields for libdrm and lib32-libdrm in gen-PKGBUILD.py and PKGBUILD, recompiled/installed, yet I'm still getting 2.4.70. I'm not sure if this is even possible to fix or not without waiting for new packages from AMD. Can anyone explain to me whether or not this is possible, and why?

move_libdir function in PKGBUILD

by @gardotd426 in AUR comment:
I'm confused about move_libdir in the PKGBUILD.
It doesn't work at all. Packages still got built with files in /usr/lib/x86_64-linux-gnu, /usr/lib32/i686-linux-gnu, etc. Nothing gets moved anywhere, so that little snippet does nothing.
amdgpu-pro-libgl (20.30_1109583-1) is one example. The resulting Arch package has amdgpu_dri.so in /usr/lib/x86_64-linux-gnu/dri/

dkms build error on 4.8.12-3

When installing the DKMS module I get this error log.

DKMS make.log for amdgpu-pro-16.30.3-315407 for kernel 4.8.12-3-ARCH (x86_64)
Fri Dec  9 16:16:09 CET 2016
make: Entering directory '/usr/lib/modules/4.8.12-3-ARCH/build'
  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
In file included from /var/lib/dkms/amdgpu-pro-16.30.3/315407/build/amd/amdgpu/../amdgpu/amdgpu.h:59:0,
                 from /var/lib/dkms/amdgpu-pro-16.30.3/315407/build/amd/amdgpu/../backport/include/kcl/kcl_amdgpu.h:5,
                 from /var/lib/dkms/amdgpu-pro-16.30.3/315407/build/amd/amdgpu/../backport/backport.h:10,
                 from <command-line>:0:
/var/lib/dkms/amdgpu-pro-16.30.3/315407/build/amd/amdgpu/../scheduler/gpu_scheduler.h:27:49: error: operator '==' has no left operand
 #if (defined OS_NAME_RHEL) && (OS_VERSION_MAJOR == 6)
                                                 ^~
In file included from /var/lib/dkms/amdgpu-pro-16.30.3/315407/build/amd/amdgpu/../amdgpu/amdgpu.h:59:0,
                 from /var/lib/dkms/amdgpu-pro-16.30.3/315407/build/amd/amdgpu/../backport/include/kcl/kcl_amdgpu.h:5,
                 from /var/lib/dkms/amdgpu-pro-16.30.3/315407/build/amd/amdgpu/../backport/backport.h:10,
                 from <command-line>:0:
/var/lib/dkms/amdgpu-pro-16.30.3/315407/build/amd/amdgpu/../scheduler/gpu_scheduler.h:27:49: error: operator '==' has no left operand
 #if (defined OS_NAME_RHEL) && (OS_VERSION_MAJOR == 6)
                                                 ^~
In file included from /var/lib/dkms/amdgpu-pro-16.30.3/315407/build/amd/amdgpu/../amdgpu/amdgpu.h:59:0,
                 from /var/lib/dkms/amdgpu-pro-16.30.3/315407/build/amd/amdgpu/../backport/include/kcl/kcl_amdgpu.h:5,
                 from /var/lib/dkms/amdgpu-pro-16.30.3/315407/build/amd/amdgpu/../backport/backport.h:10,
                 from <command-line>:0:
/var/lib/dkms/amdgpu-pro-16.30.3/315407/build/amd/amdgpu/../scheduler/gpu_scheduler.h:27:49: error: operator '==' has no left operand
 #if (defined OS_NAME_RHEL) && (OS_VERSION_MAJOR == 6)
                                                 ^~
In file included from /var/lib/dkms/amdgpu-pro-16.30.3/315407/build/amd/amdgpu/../amdgpu/amdgpu.h:59:0,
                 from /var/lib/dkms/amdgpu-pro-16.30.3/315407/build/amd/amdgpu/../backport/include/kcl/kcl_amdgpu.h:5,
                 from /var/lib/dkms/amdgpu-pro-16.30.3/315407/build/amd/amdgpu/../backport/backport.h:10,
                 from <command-line>:0:
/var/lib/dkms/amdgpu-pro-16.30.3/315407/build/amd/amdgpu/../scheduler/gpu_scheduler.h:27:49: error: operator '==' has no left operand
 #if (defined OS_NAME_RHEL) && (OS_VERSION_MAJOR == 6)
                                                 ^~
In file included from /var/lib/dkms/amdgpu-pro-16.30.3/315407/build/amd/amdgpu/../amdgpu/amdgpu.h:59:0,
                 from /var/lib/dkms/amdgpu-pro-16.30.3/315407/build/amd/amdgpu/../backport/include/kcl/kcl_amdgpu.h:5,
                 from /var/lib/dkms/amdgpu-pro-16.30.3/315407/build/amd/amdgpu/../backport/backport.h:10,
                 from <command-line>:0:
/var/lib/dkms/amdgpu-pro-16.30.3/315407/build/amd/amdgpu/../scheduler/gpu_scheduler.h:27:49: error: operator '==' has no left operand
 #if (defined OS_NAME_RHEL) && (OS_VERSION_MAJOR == 6)
                                                 ^~
In file included from /var/lib/dkms/amdgpu-pro-16.30.3/315407/build/amd/amdgpu/../amdgpu/amdgpu.h:59:0,
                 from /var/lib/dkms/amdgpu-pro-16.30.3/315407/build/amd/amdgpu/../backport/include/kcl/kcl_amdgpu.h:5,
                 from /var/lib/dkms/amdgpu-pro-16.30.3/315407/build/amd/amdgpu/../backport/backport.h:10,
                 from <command-line>:0:
/var/lib/dkms/amdgpu-pro-16.30.3/315407/build/amd/amdgpu/../scheduler/gpu_scheduler.h:27:49: error: operator '==' has no left operand
 #if (defined OS_NAME_RHEL) && (OS_VERSION_MAJOR == 6)
                                                 ^~
In file included from /var/lib/dkms/amdgpu-pro-16.30.3/315407/build/amd/amdgpu/../amdgpu/amdgpu.h:59:0,
                 from /var/lib/dkms/amdgpu-pro-16.30.3/315407/build/amd/amdgpu/../backport/include/kcl/kcl_amdgpu.h:5,
                 from /var/lib/dkms/amdgpu-pro-16.30.3/315407/build/amd/amdgpu/../backport/backport.h:10,
                 from <command-line>:0:
/var/lib/dkms/amdgpu-pro-16.30.3/315407/build/amd/amdgpu/../scheduler/gpu_scheduler.h:27:49: error: operator '==' has no left operand
 #if (defined OS_NAME_RHEL) && (OS_VERSION_MAJOR == 6)
                                                 ^~
In file included from /var/lib/dkms/amdgpu-pro-16.30.3/315407/build/amd/amdgpu/../amdgpu/amdgpu.h:59:0,
                 from /var/lib/dkms/amdgpu-pro-16.30.3/315407/build/amd/amdgpu/../backport/include/kcl/kcl_amdgpu.h:5,
                 from /var/lib/dkms/amdgpu-pro-16.30.3/315407/build/amd/amdgpu/../backport/backport.h:10,
                 from <command-line>:0:
/var/lib/dkms/amdgpu-pro-16.30.3/315407/build/amd/amdgpu/../scheduler/gpu_scheduler.h:27:49: error: operator '==' has no left operand
 #if (defined OS_NAME_RHEL) && (OS_VERSION_MAJOR == 6)
                                                 ^~
In file included from /var/lib/dkms/amdgpu-pro-16.30.3/315407/build/amd/amdgpu/../backport/backport.h:14:0,
                 from <command-line>:0:
/var/lib/dkms/amdgpu-pro-16.30.3/315407/build/amd/amdgpu/../backport/include/kcl/kcl_acpi.h:8:49: error: operator '<=' has no left operand
 #if (defined OS_NAME_RHEL) && (OS_VERSION_MAJOR <= 6)
                                                 ^~
In file included from /var/lib/dkms/amdgpu-pro-16.30.3/315407/build/amd/amdgpu/../backport/backport.h:14:0,
                 from <command-line>:0:
/var/lib/dkms/amdgpu-pro-16.30.3/315407/build/amd/amdgpu/../backport/include/kcl/kcl_acpi.h:8:49: error: operator '<=' has no left operand
 #if (defined OS_NAME_RHEL) && (OS_VERSION_MAJOR <= 6)
                                                 ^~
In file included from /var/lib/dkms/amdgpu-pro-16.30.3/315407/build/amd/amdgpu/../backport/backport.h:14:0,
                 from <command-line>:0:
/var/lib/dkms/amdgpu-pro-16.30.3/315407/build/amd/amdgpu/../backport/include/kcl/kcl_acpi.h:8:49: error: operator '<=' has no left operand
 #if (defined OS_NAME_RHEL) && (OS_VERSION_MAJOR <= 6)
                                                 ^~
In file included from /var/lib/dkms/amdgpu-pro-16.30.3/315407/build/amd/amdgpu/../backport/backport.h:14:0,
                 from <command-line>:0:
/var/lib/dkms/amdgpu-pro-16.30.3/315407/build/amd/amdgpu/../backport/include/kcl/kcl_acpi.h:8:49: error: operator '<=' has no left operand
 #if (defined OS_NAME_RHEL) && (OS_VERSION_MAJOR <= 6)
                                                 ^~
In file included from /var/lib/dkms/amdgpu-pro-16.30.3/315407/build/amd/amdgpu/../backport/backport.h:15:0,
                 from <command-line>:0:
/var/lib/dkms/amdgpu-pro-16.30.3/315407/build/amd/amdgpu/../backport/include/kcl/kcl_hwmon.h: In function ‘kcl_hwmon_device_register_with_groups’:
In file included from /var/lib/dkms/amdgpu-pro-16.30.3/315407/build/amd/amdgpu/../backport/backport.h:15:0,
                 from <command-line>:0:
/var/lib/dkms/amdgpu-pro-16.30.3/315407/build/amd/amdgpu/../backport/include/kcl/kcl_hwmon.h: In function ‘kcl_hwmon_device_register_with_groups’:
In file included from /var/lib/dkms/amdgpu-pro-16.30.3/315407/build/amd/amdgpu/../backport/backport.h:15:0,
                 from <command-line>:0:
/var/lib/dkms/amdgpu-pro-16.30.3/315407/build/amd/amdgpu/../backport/include/kcl/kcl_hwmon.h: In function ‘kcl_hwmon_device_register_with_groups’:
In file included from /var/lib/dkms/amdgpu-pro-16.30.3/315407/build/amd/amdgpu/../backport/backport.h:15:0,
                 from <command-line>:0:
/var/lib/dkms/amdgpu-pro-16.30.3/315407/build/amd/amdgpu/../backport/include/kcl/kcl_hwmon.h: In function ‘kcl_hwmon_device_register_with_groups’:
/var/lib/dkms/amdgpu-pro-16.30.3/315407/build/amd/amdgpu/../backport/include/kcl/kcl_hwmon.h:15:49: error: operator '<=' has no left operand
 #if (defined OS_NAME_RHEL) && (OS_VERSION_MAJOR <= 6)
                                                 ^~
/var/lib/dkms/amdgpu-pro-16.30.3/315407/build/amd/amdgpu/../backport/include/kcl/kcl_hwmon.h:15:49: error: operator '<=' has no left operand
 #if (defined OS_NAME_RHEL) && (OS_VERSION_MAJOR <= 6)
                                                 ^~
/var/lib/dkms/amdgpu-pro-16.30.3/315407/build/amd/amdgpu/../backport/include/kcl/kcl_hwmon.h:15:49: error: operator '<=' has no left operand
 #if (defined OS_NAME_RHEL) && (OS_VERSION_MAJOR <= 6)
                                                 ^~
/var/lib/dkms/amdgpu-pro-16.30.3/315407/build/amd/amdgpu/../backport/include/kcl/kcl_hwmon.h:15:49: error: operator '<=' has no left operand
 #if (defined OS_NAME_RHEL) && (OS_VERSION_MAJOR <= 6)
                                                 ^~
In file included from /var/lib/dkms/amdgpu-pro-16.30.3/315407/build/amd/amdgpu/../backport/backport.h:14:0,
                 from <command-line>:0:
/var/lib/dkms/amdgpu-pro-16.30.3/315407/build/amd/amdgpu/../backport/include/kcl/kcl_acpi.h:8:49: error: operator '<=' has no left operand
 #if (defined OS_NAME_RHEL) && (OS_VERSION_MAJOR <= 6)
                                                 ^~
In file included from /var/lib/dkms/amdgpu-pro-16.30.3/315407/build/amd/amdgpu/../backport/backport.h:15:0,
                 from <command-line>:0:
/var/lib/dkms/amdgpu-pro-16.30.3/315407/build/amd/amdgpu/../backport/include/kcl/kcl_hwmon.h: In function ‘kcl_hwmon_device_register_with_groups’:
/var/lib/dkms/amdgpu-pro-16.30.3/315407/build/amd/amdgpu/../backport/include/kcl/kcl_hwmon.h:15:49: error: operator '<=' has no left operand
 #if (defined OS_NAME_RHEL) && (OS_VERSION_MAJOR <= 6)
                                                 ^~
In file included from /var/lib/dkms/amdgpu-pro-16.30.3/315407/build/amd/amdgpu/../backport/backport.h:14:0,
                 from <command-line>:0:
/var/lib/dkms/amdgpu-pro-16.30.3/315407/build/amd/amdgpu/../backport/include/kcl/kcl_acpi.h:8:49: error: operator '<=' has no left operand
 #if (defined OS_NAME_RHEL) && (OS_VERSION_MAJOR <= 6)
                                                 ^~
In file included from /var/lib/dkms/amdgpu-pro-16.30.3/315407/build/amd/amdgpu/../backport/backport.h:15:0,
                 from <command-line>:0:
/var/lib/dkms/amdgpu-pro-16.30.3/315407/build/amd/amdgpu/../backport/include/kcl/kcl_hwmon.h: In function ‘kcl_hwmon_device_register_with_groups’:
/var/lib/dkms/amdgpu-pro-16.30.3/315407/build/amd/amdgpu/../backport/include/kcl/kcl_hwmon.h:15:49: error: operator '<=' has no left operand
 #if (defined OS_NAME_RHEL) && (OS_VERSION_MAJOR <= 6)
                                                 ^~
In file included from /var/lib/dkms/amdgpu-pro-16.30.3/315407/build/amd/amdgpu/../backport/backport.h:14:0,
                 from <command-line>:0:
/var/lib/dkms/amdgpu-pro-16.30.3/315407/build/amd/amdgpu/../backport/include/kcl/kcl_acpi.h:8:49: error: operator '<=' has no left operand
 #if (defined OS_NAME_RHEL) && (OS_VERSION_MAJOR <= 6)
                                                 ^~
In file included from /var/lib/dkms/amdgpu-pro-16.30.3/315407/build/amd/amdgpu/../backport/backport.h:15:0,
                 from <command-line>:0:
/var/lib/dkms/amdgpu-pro-16.30.3/315407/build/amd/amdgpu/../backport/include/kcl/kcl_hwmon.h: In function ‘kcl_hwmon_device_register_with_groups’:
/var/lib/dkms/amdgpu-pro-16.30.3/315407/build/amd/amdgpu/../backport/include/kcl/kcl_hwmon.h:15:49: error: operator '<=' has no left operand
 #if (defined OS_NAME_RHEL) && (OS_VERSION_MAJOR <= 6)
                                                 ^~
In file included from /var/lib/dkms/amdgpu-pro-16.30.3/315407/build/amd/amdgpu/../backport/backport.h:14:0,
                 from <command-line>:0:
/var/lib/dkms/amdgpu-pro-16.30.3/315407/build/amd/amdgpu/../backport/include/kcl/kcl_acpi.h:8:49: error: operator '<=' has no left operand
 #if (defined OS_NAME_RHEL) && (OS_VERSION_MAJOR <= 6)
                                                 ^~
In file included from /var/lib/dkms/amdgpu-pro-16.30.3/315407/build/amd/amdgpu/../backport/backport.h:15:0,
                 from <command-line>:0:
/var/lib/dkms/amdgpu-pro-16.30.3/315407/build/amd/amdgpu/../backport/include/kcl/kcl_hwmon.h: In function ‘kcl_hwmon_device_register_with_groups’:
/var/lib/dkms/amdgpu-pro-16.30.3/315407/build/amd/amdgpu/../backport/include/kcl/kcl_hwmon.h:15:49: error: operator '<=' has no left operand
 #if (defined OS_NAME_RHEL) && (OS_VERSION_MAJOR <= 6)
                                                 ^~
make[2]: *** [scripts/Makefile.build:289: /var/lib/dkms/amdgpu-pro-16.30.3/315407/build/amd/amdgpu/amdgpu_kms.o] Error 1
make[2]: *** Waiting for unfinished jobs....
make[2]: *** [scripts/Makefile.build:289: /var/lib/dkms/amdgpu-pro-16.30.3/315407/build/amd/amdgpu/amdgpu_drv.o] Error 1
make[2]: *** [scripts/Makefile.build:289: /var/lib/dkms/amdgpu-pro-16.30.3/315407/build/amd/amdgpu/atombios_crtc.o] Error 1
make[2]: *** [scripts/Makefile.build:289: /var/lib/dkms/amdgpu-pro-16.30.3/315407/build/amd/amdgpu/amdgpu_fence.o] Error 1
make[2]: *** [scripts/Makefile.build:289: /var/lib/dkms/amdgpu-pro-16.30.3/315407/build/amd/amdgpu/amdgpu_atombios.o] Error 1
make[2]: *** [scripts/Makefile.build:289: /var/lib/dkms/amdgpu-pro-16.30.3/315407/build/amd/amdgpu/amdgpu_connectors.o] Error 1
make[2]: *** [scripts/Makefile.build:289: /var/lib/dkms/amdgpu-pro-16.30.3/315407/build/amd/amdgpu/atom.o] Error 1
make[2]: *** [scripts/Makefile.build:289: /var/lib/dkms/amdgpu-pro-16.30.3/315407/build/amd/amdgpu/amdgpu_device.o] Error 1
make[1]: *** [scripts/Makefile.build:440: /var/lib/dkms/amdgpu-pro-16.30.3/315407/build/amd/amdgpu] Error 2
make: *** [Makefile:1473: _module_/var/lib/dkms/amdgpu-pro-16.30.3/315407/build] Error 2
make: Leaving directory '/usr/lib/modules/4.8.12-3-ARCH/build'

no libdrm?

doesnt it provide libdrm? alot of programs that require libdrm don't want to install
-- Checking for modules 'gtk+-3.0;appindicator3-0.1' -- Package 'libdrm', required by 'egl', not found -- Package 'libdrm', required by 'egl', not found CMake Error at /usr/share/cmake-3.7/Modules/FindPkgConfig.cmake:415 (message): A required package was not found Call Stack (most recent call first): /usr/share/cmake-3.7/Modules/FindPkgConfig.cmake:588 (_pkg_check_modules_internal) CMakeLists.txt:25 (pkg_check_modules)

Corngood. Them patches tho.

Hey man I know you have 1000 lines of code to edit and you have the patches to make this work. If you don't mind creating a branch with those unapplied patches so I can go through with adding them I'd appreciate it.

I really can't wait and have all the time in the world to get those patches applied and this bitch working by the end of the week.

If you think porting the steamOS AMDGPU-Pro driver should be enough then I'll start there. I just need some resources of which gentoo patches, and steamOS patches should be applied and I'll handle the rest. Thanks man.

Unable to build DKMS module with 4.8 (rc5)

I just built and installed kernel 4.8.0-rc5-g3eab887 (x86_64) using the linux-git package on AUR. I tried to build the archlinux-amdgpu package but run into the following errors when building the DKMS modules:

DKMS make.log for amdgpu-pro-16.30.3-315407 for kernel 4.8.0-rc5-g3eab887 (x86_64)
Thu Sep  8 20:21:48 PDT 2016
make: Entering directory '/usr/lib/modules/4.8.0-rc5-g3eab887/build'
  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
/var/lib/dkms/amdgpu-pro-16.30.3/315407/build/amd/amdgpu/amdgpu_ttm.c: In function ‘amdgpu_move_blit’:
/var/lib/dkms/amdgpu-pro-16.30.3/315407/build/amd/amdgpu/amdgpu_ttm.c:291:18: error: incompatible type for argument 4 of ‘ttm_bo_move_accel_cleanup’
           evict, no_wait_gpu, new_mem);
                  ^~~~~~~~~~~
In file included from /var/lib/dkms/amdgpu-pro-16.30.3/315407/build/amd/amdgpu/../backport/include/kcl/kcl_ttm.h:6:0,
                 from /var/lib/dkms/amdgpu-pro-16.30.3/315407/build/amd/amdgpu/../backport/backport.h:9,
                 from <command-line>:0:
./include/drm/ttm/ttm_bo_driver.h:1032:12: note: expected ‘struct ttm_mem_reg *’ but argument is of type ‘bool {aka _Bool}’
 extern int ttm_bo_move_accel_cleanup(struct ttm_buffer_object *bo,
            ^~~~~~~~~~~~~~~~~~~~~~~~~
/var/lib/dkms/amdgpu-pro-16.30.3/315407/build/amd/amdgpu/amdgpu_ttm.c:290:6: error: too many arguments to function ‘ttm_bo_move_accel_cleanup’
  r = ttm_bo_move_accel_cleanup(bo, fence,
      ^~~~~~~~~~~~~~~~~~~~~~~~~
In file included from /var/lib/dkms/amdgpu-pro-16.30.3/315407/build/amd/amdgpu/../backport/include/kcl/kcl_ttm.h:6:0,
                 from /var/lib/dkms/amdgpu-pro-16.30.3/315407/build/amd/amdgpu/../backport/backport.h:9,
                 from <command-line>:0:
./include/drm/ttm/ttm_bo_driver.h:1032:12: note: declared here
 extern int ttm_bo_move_accel_cleanup(struct ttm_buffer_object *bo,
            ^~~~~~~~~~~~~~~~~~~~~~~~~
/var/lib/dkms/amdgpu-pro-16.30.3/315407/build/amd/amdgpu/amdgpu_ttm.c: In function ‘amdgpu_move_vram_ram’:
/var/lib/dkms/amdgpu-pro-16.30.3/315407/build/amd/amdgpu/amdgpu_ttm.c:337:6: error: too few arguments to function ‘ttm_bo_move_ttm’
  r = ttm_bo_move_ttm(bo, true, no_wait_gpu, new_mem);
      ^~~~~~~~~~~~~~~
In file included from /var/lib/dkms/amdgpu-pro-16.30.3/315407/build/amd/amdgpu/../backport/include/kcl/kcl_ttm.h:6:0,
                 from /var/lib/dkms/amdgpu-pro-16.30.3/315407/build/amd/amdgpu/../backport/backport.h:9,
                 from <command-line>:0:
./include/drm/ttm/ttm_bo_driver.h:979:12: note: declared here
 extern int ttm_bo_move_ttm(struct ttm_buffer_object *bo,
            ^~~~~~~~~~~~~~~
/var/lib/dkms/amdgpu-pro-16.30.3/315407/build/amd/amdgpu/amdgpu_ttm.c: In function ‘amdgpu_move_ram_vram’:
/var/lib/dkms/amdgpu-pro-16.30.3/315407/build/amd/amdgpu/amdgpu_ttm.c:370:2: error: the address of ‘tmp_mem’ will always evaluate as ‘true’ [-Werror=address]
  r = ttm_bo_move_ttm(bo, true, no_wait_gpu, &tmp_mem);
  ^
/var/lib/dkms/amdgpu-pro-16.30.3/315407/build/amd/amdgpu/amdgpu_ttm.c:370:6: error: too few arguments to function ‘ttm_bo_move_ttm’
  r = ttm_bo_move_ttm(bo, true, no_wait_gpu, &tmp_mem);
      ^~~~~~~~~~~~~~~
In file included from /var/lib/dkms/amdgpu-pro-16.30.3/315407/build/amd/amdgpu/../backport/include/kcl/kcl_ttm.h:6:0,
                 from /var/lib/dkms/amdgpu-pro-16.30.3/315407/build/amd/amdgpu/../backport/backport.h:9,
                 from <command-line>:0:
./include/drm/ttm/ttm_bo_driver.h:979:12: note: declared here
 extern int ttm_bo_move_ttm(struct ttm_buffer_object *bo,
            ^~~~~~~~~~~~~~~
/var/lib/dkms/amdgpu-pro-16.30.3/315407/build/amd/amdgpu/amdgpu_ttm.c: In function ‘amdgpu_bo_move’:
/var/lib/dkms/amdgpu-pro-16.30.3/315407/build/amd/amdgpu/amdgpu_ttm.c:432:7: error: too few arguments to function ‘ttm_bo_move_memcpy’
   r = ttm_bo_move_memcpy(bo, evict, no_wait_gpu, new_mem);
       ^~~~~~~~~~~~~~~~~~
In file included from /var/lib/dkms/amdgpu-pro-16.30.3/315407/build/amd/amdgpu/../backport/include/kcl/kcl_ttm.h:6:0,
                 from /var/lib/dkms/amdgpu-pro-16.30.3/315407/build/amd/amdgpu/../backport/backport.h:9,
                 from <command-line>:0:
./include/drm/ttm/ttm_bo_driver.h:1002:12: note: declared here
 extern int ttm_bo_move_memcpy(struct ttm_buffer_object *bo,
            ^~~~~~~~~~~~~~~~~~
cc1: all warnings being treated as errors
make[2]: *** [scripts/Makefile.build:290: /var/lib/dkms/amdgpu-pro-16.30.3/315407/build/amd/amdgpu/amdgpu_ttm.o] Error 1
make[1]: *** [scripts/Makefile.build:440: /var/lib/dkms/amdgpu-pro-16.30.3/315407/build/amd/amdgpu] Error 2
make: *** [Makefile:1471: _module_/var/lib/dkms/amdgpu-pro-16.30.3/315407/build] Error 2
make: Leaving directory '/usr/lib/modules/4.8.0-rc5-g3eab887/build'

Missing .deb files

Hello,

I'm getting a validation check failure when installing and, if I skip validation, I get an error for missing .deb files. Should they be downloaded from AMD?

EDIT: Ok, it happens because the package refers to the 17.40 version which isn't available anymore.

EDIT2: I'm able to get it if I change the link in the PKGBUILD from ...amdgpu-pro-17.40-492261.tar.xz to ...amdgpu-pro-17.40-514569.tar.xz

Missing conflict with xf86-video-amdgpu

When installing, pacman complains:

xserver-xorg-video-amdgpu-pro: /usr/lib/xorg/modules/drivers/amdgpu_drv.so exists

=> So it should probably conflict xf86-video-amdgpu

Help for installing

Hello,

I'm currently trying to install archlinux and i've problem with gnome-shell apparently i must download the amdgpu-pro that is not covered by official amd, and you have made this package.

On the archlinux wiki i see that it's necessary to downgrade kernel and xorg, that's true ?

And can you make a little tuto or documentation for installing this package, i found that the problem of amdgpu-pro is a very big problem and amd does not maintain any package for other linux (only ubuntu and rhel are maintened)

Very thanks and sorry for my english, i'm french

Kernel module doesn't build on linux-4.10

I had a look at 4.10-rc7 today. Here's the patch I've come up with so far:

https://github.com/corngood/nixpkgs/blob/amdgpu-pro/pkgs/os-specific/linux/amdgpu-pro/patches/0005-fixes-for-linux-4.10.patch#L2694

I didn't bother wrapping anything with version guards. Since it's so big I was just going to apply it conditionally. Looks like similar work was done for Gentoo, and it was wrapped properly:

https://github.com/Lucretia/vulkan-overlay/commit/d5288d1ba8021f19cafef5c2acab817f486ea263

My machine locks up around when the driver is loaded (or possibly tty mode switch). I haven't done much investigation, but I thought I'd leave the patch here in case anyone wants to try it out.

@brainpower

No Package : 'libdrm' Found

I'm new to archlinux
I had upgraded libdrm to amdgpu-pro-libdrm. And I uninstall the Package xorg-server1.19 to downgrade to 1.18. then I get this error.
I tried to fix it , I founded some info in the warning in PKGBUILD-Wiki
Change provides=('lib32-libdrm') to provides=('lib32-libdrm-2.4.11-2')
But it didn't work out.

17.50 was released

Driver Download Site: https://support.amd.com/en-us/kb-articles/Pages/Radeon-Software-for-Linux-Release-Notes.aspx
Phoronix Article: https://www.phoronix.com/vr.php?view=25640

This release seems to contain open-source mesa components as well as the closed-source components.
It might take some time to figure out how to package this without breaking arch's mesa or "masking" the newer mesa stack with the older bundled one. It is said they bundle 17.2.4, while arch has 17.3 already, which has many improvements.

Package amdgpu-pro-opencl-icd must provide opencl-icd-loader

Im not sure but i tried a update with pacaur -Syu and got this:

ocl-icd and amdgpu-pro-libopencl-dev are in conflict (libcl). Remove amdgpu-pro-libopencl-dev? [y/N]
unresolvable package conflicts detected
failed to prepare transaction (conflicting dependencies)
ocl-icd and amdgpu-pro-libopencl-dev are in conflict

Package ocl-icd provides:
Provides : libcl opencl-icd-loader

Package amdgpu-pro-opencl-icd provides nothing.

Detach your fork

You should contact GitHub support and make this fork the parent of the network, as mentioned here

sha mismatch and possible corrupted upstream

I've tried a few times to get a good download of the .tar.xz and so far I always get sha256sum of ffa4acdf1bda9666754912ccb26bd9591cbb3a3283514a4ab2d8e74ce216b85d which does not even decompress properly (xz says it does not recognize the format), it worked properly a few days back, I've tried xz from a known good install too so I'm not sure what's happening here.

Missing conflicts in library packages

libegl1-amdgpu-pro{,-dev} contain files conflicting with mesa-libgl, because both contain for example /usr/lib/libEGL.so, but there is no conflicts-dependency in the PKGBUILD which reflects that.
Same with libgl1-amdgpu-pro{,-dev}, libgles2-amdgpu-pro{,-dev} and their lib32 versions.

libglvnd conflict (via mesa)

I'm getting a conflict with libglvnd (nvidia's vendor neutral thing). In particular:

  1. Lots of things depend on gtk3
  2. gtk3 depends on mesa
  3. mesa depends on libglvnd
  4. amdgpu-pro-libgl conflicts with libglvnd

I installed ncurses5-compat-libs from AUR, and downgraded to these packages:
linux-4.9.11-1-x86_64.pkg.tar.xz
xf86-input-evdev-2.10.2-1-x86_64.pkg.tar.xz
xf86-input-keyboard-1.8.1-2-x86_64.pkg.tar.xz
xf86-input-libinput-0.20.0-1-x86_64.pkg.tar.xz
xorg-server-1.18.4-1-x86_64.pkg.tar.xz
xorg-server-1.18.4-1-x86_64.pkg.tar.xz.sig
xorg-server-common-1.18.4-1-x86_64.pkg.tar.xz
xorg-server-common-1.18.4-1-x86_64.pkg.tar.xz.sig
xorg-server-devel-1.18.4-1-x86_64.pkg.tar.xz
xorg-server-xvfb-1.18.4-1-x86_64.pkg.tar.xz
xorg-server-xwayland-1.18.4-1-x86_64.pkg.tar.xz

Maybe mesa needs a downgrade?

Also, is the lib32 part of this required, or can those packages be skipped?

I'm new to arch (as of this morning) so I'm possibly simply ignorant of the right way of doing things. I'd appreciate any feedback.

Xorg Crash with AMDGPU-Pro install

http://pastebin.com/aPJ3jyGK
I sucessfully tested that I got into Xorg 1.18 without issue before installing amdgpu-pro, journalctl shows a core dump that I can post if you would like. I'm a bit of a noob when it comes to graphics so please point out anything that I'm missing.

16.60 doesn't build from AUR w/ pacaur

A couple of people have reported an error when running pacaur -S amdgpu-pro:

:: resolving dependencies...
:: dependency cycle detected (amdgpu-pro=16.60.379184-1 amdgpu-pro-dkms=16.60.379184-1 amdgpu-pro-libdrm=16.60.379184-1 amdgpu-pro-opencl=16.60.379184-1 amdgpu-pro-vdpau=16.60.379184-1 amdgpu-pro-vulkan=16.60.379184-1 lib32-amdgpu-pro=16.60.379184-1 lib32-amdgpu-pro-libdrm=16.60.379184-1 lib32-amdgpu-pro-opencl=16.60.379184-1 lib32-amdgpu-pro-vdpau=16.60.379184-1 lib32-amdgpu-pro-vulkan=16.60.379184-1 xf86-video-amdgpu-pro=16.60.379184-1)

Looks like the cycle is because of things depending on amdgpu-pro? @brainpower do you see anything wrong with the dependencies?

Missing ubuntu version ./extract_transaction_scripts_and_triggers.sh

majornew=$pkgver_base
minornew=$pkgver_build
ubuntuvernew=$ubuntu_ver

majorold=20.20
minorold=1098277
ubuntuverold=20.04

Switch for running this script against another release. Use NEW or OLD values

RUN_FOR_VERSION=NEW

RUN_FOR_VERSION=OLD

if [ $RUN_FOR_VERSION == "NEW" ]; then
major=$majornew
minor=$minornew
ubunt=$ubuntuvernew
elif [ $RUN_FOR_VERSION == "OLD" ];then
major=$majorold
minor=$minorold
ubunt=$ubuntuverold
fi

ARCHIVE=amdgpu-pro-$major-$minor-ubuntu-$ubunt.tar.xz

AMDGPU missing in PKG_CONFIG_PATH

Several libraries (libdrm, etc) is installed into /opt/amdgpu-pro, but that's not in PKG_CONFIG_PATH, so things will refuse to compile.

Better add it to PKG_CONFIG_PATH.

amdgpu-pro-firmware package misplaces lib-folder

I'm not 100% certain if i did everything correct, but since /lib is a symlink on my current Arch Linux installation, pacman complained about /lib already existing when trying to install the package amdgpu-pro-firmware.

Perhaps it is a solution to move that lib-folder into the usr-folder which the package provides?

Below is the snippet that i added the move instruction to:

package_amdgpu-pro-firmware () {
        pkgdesc="Firmware for amdgpu-pro cards."
        depends=()
        arch=('x86_64')

        rm -Rf "${srcdir}"/amdgpu-pro-firmware_16.30.3-306809_amd64
        mkdir "${srcdir}"/amdgpu-pro-firmware_16.30.3-306809_amd64
        cd "${srcdir}"/amdgpu-pro-firmware_16.30.3-306809_amd64
        ar x "${srcdir}"/amdgpu-pro-driver/./amdgpu-pro-firmware_16.30.3-306809_amd64.deb
        tar -C "${pkgdir}" -xf data.tar.xz
        mv "${pkgdir}/lib" "${pkgdir}/usr/" # <-- this is new
}

DKMS install error

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

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.