Created attachment 490392 [details] build.log (...) Making all in radeon libtool: link: x86_64-pc-linux-gnu-gcc -Wall -Wextra -Wsign-compare -Werror-implicit-function-declaration -Wpointer-arith -Wwrite-strings -Wstrict-prototypes -Wmissing-prototypes -Wmissing-declarations -Wnested-externs -Wpacked -Wswitch-enum -Wmissing-format-attribute -Wstrict-aliasing=2 -Winit-self -Wdeclaration-after-statement -Wold-style-definition -Wno-unused-parameter -Wno-attributes -Wno-long-long -Winline -Wshadow -Wno-missing-field-initializers -I /var/tmp/portage/x11-libs/libdrm-2.4.83/work/libdrm-2.4.83/include/drm -I /var/tmp/portage/x11-libs/libdrm-2.4.83/work/libdrm-2.4.83 -O2 -march=native -pipe -fomit-frame-pointer -Wl,-O1 -o .libs/radeon_ttm rbo.o radeon_ttm.o -Wl,--as-needed ../../.libs/libdrm.so -lm Making all in amdgpu /var/tmp/portage/x11-libs/libdrm-2.4.83/work/libdrm-2.4.83/tests/amdgpu/basic_tests.c: In function ‘amdgpu_userptr_test’: /var/tmp/portage/x11-libs/libdrm-2.4.83/work/libdrm-2.4.83/tests/amdgpu/basic_tests.c:1369:2: warning: ignoring return value of ‘posix_memalign’, declared with attribute warn_unused_result [-Wunused-result] posix_memalign(&ptr, sysconf(_SC_PAGE_SIZE), BUFFER_SIZE); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /var/tmp/portage/x11-libs/libdrm-2.4.83/work/libdrm-2.4.83/tests/amdgpu/uvd_enc_tests.c:39:20: fatal error: uve_ib.h: No such file or directory #include "uve_ib.h" ^ compilation terminated. make[3]: *** [amdgpu_test-uvd_enc_tests.o] Error 1 make[3]: *** Waiting for unfinished jobs.... make[2]: *** [all-recursive] Error 1 make[1]: *** [all-recursive] Error 1
The compilation failure comes from a source file used in a test program. The test program is only build when configure finds cunit (dev-util/cunit). Presumably you only have cunit compiled with ABI_X86=64, and so you did not get the failure on your 32-bit build. I can reproduce the failure after installing cunit. I cannot reproduce the failure by manually building a checkout from git. I can reproduce the failure from the tarball. ... Yep, that's it. They forgot to add uve_ib.h to the list of sources so it didn't make it into the tarball.
Now fixed upstream.
(In reply to Matt Turner from comment #2) > Now fixed upstream. Can you add the missing file as a patch to for 2.4.83, because I'm not sure when 2.4.84 will come.
The bug has been closed via the following commit(s): https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=4502fce581cc4cd9be52f74ac5057741051e0991 commit 4502fce581cc4cd9be52f74ac5057741051e0991 Author: Matt Turner <mattst88@gentoo.org> AuthorDate: 2017-10-13 00:08:07 +0000 Commit: Matt Turner <mattst88@gentoo.org> CommitDate: 2017-10-13 00:08:14 +0000 x11-libs/libdrm: Drop old version 2.4.83 Closes: https://bugs.gentoo.org/628814 x11-libs/libdrm/Manifest | 1 - x11-libs/libdrm/libdrm-2.4.83.ebuild | 63 ------------------------------------ 2 files changed, 64 deletions(-)