Created attachment 541296 [details] emerge --info The built amdgpu_drv.so fails loading for me. Attached are all relevant logs.
Created attachment 541318 [details] xorg log
Created attachment 541338 [details] build log
Upon advice from #radeon I tried removing -Wl,--as-needed from the linker flags (by manually editing the generated Makefile before the compile step), but this did not change anything.
FWIW I tried the following configurations: - libdrm-9999 + mesa-9999 + xf86-video-amdgpu-9999 - libdrm-2.4.92 + mesa-18.1.4 + xf86-video-amdgpu-18.0.1-r1 I did not yet try other gcc versions.
Same error with -18.0.1-r1 and -9999 here. The workaround at https://forums.freebsd.org/threads/x-org-failed-to-load-module-radeon.59717/#post-343120 works for me, FWIW.
> The workaround at https://forums.freebsd.org/threads/x-org-failed-to-load-module-radeon.59717/#post-343120 works for me, FWIW. That one works for me too. I forgot to mention this.
(In reply to Niklas Haas from comment #2) > Created attachment 541338 [details] > build log That's interesting. Your link command: libtool: link: x86_64-pc-linux-gnu-gcc -shared -fPIC -DPIC .libs/amdgpu_video.o .libs/amdgpu_misc.o .libs/amdgpu_probe.o .libs/amdgpu_bo_helper.o .libs/amdgpu_dri2.o .libs/amdgpu_dri3.o .libs/amdgpu_drm_queue.o .libs/amdgpu_kms.o .libs/amdgpu_present.o .libs/amdgpu_sync.o .libs/drmmode_display.o .libs/amdgpu_glamor.o .libs/amdgpu_glamor_wrappers.o .libs/amdgpu_pixmap.o -Wl,--as-needed -ldrm_amdgpu -lgbm -L/lib64 -ludev -march=native -O2 -g -Wl,-O1 -Wl,-soname -Wl,amdgpu_drv.so -o .libs/amdgpu_drv.so My link command: libtool: link: x86_64-pc-linux-gnu-gcc -shared -fPIC -DPIC .libs/amdgpu_video.o .libs/amdgpu_misc.o .libs/amdgpu_probe.o .libs/amdgpu_bo_helper.o .libs/amdgpu_dri2.o .libs/amdgpu_dri3.o .libs/amdgpu_drm_queue.o .libs/amdgpu_kms.o .libs/amdgpu_present.o .libs/amdgpu_sync.o .libs/drmmode_display.o .libs/amdgpu_glamor.o .libs/amdgpu_glamor_wrappers.o .libs/amdgpu_pixmap.o -ldrm_amdgpu -lgbm -L/lib64 -ludev -O2 -march=bdver2 -mtune=bdver2 -mno-tbm -mno-fma4 -mno-xop -mno-lwp -Wl,-O1 -Wl,--as-needed -Wl,-soname -Wl,amdgpu_drv.so -o .libs/amdgpu_drv.so As you can see, the position of "-Wl,--as-needed" argument is different. What if you downgrade libtool and elt-patches to their stable versions (libtool-2.4.6-r3 and elt-patches-20170815)?
Ah, sorry, forget what I said. 18.0.1-r1 doesn't run elibtoolize.
This is a dupe of bug 661502
*** This bug has been marked as a duplicate of bug 661502 ***