Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 628814 - x11-libs/libdrm-2.4.83 with VIDEO_CARDS=amdgpu: fatal error: uve_ib.h: No such file or directory
Summary: x11-libs/libdrm-2.4.83 with VIDEO_CARDS=amdgpu: fatal error: uve_ib.h: No suc...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Gentoo X packagers
URL: https://bugs.freedesktop.org/show_bug...
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2017-08-24 14:51 UTC by Kobboi
Modified: 2017-10-13 00:08 UTC (History)
4 users (show)

See Also:
Package list:
Runtime testing required: ---


Attachments
build.log (build.log,96.19 KB, text/plain)
2017-08-24 14:51 UTC, Kobboi
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Kobboi 2017-08-24 14:51:08 UTC
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
Comment 1 Matt Turner gentoo-dev 2017-08-30 02:18:29 UTC
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.
Comment 2 Matt Turner gentoo-dev 2017-09-01 19:16:28 UTC
Now fixed upstream.
Comment 3 Kobboi 2017-09-02 08:06:03 UTC
(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.
Comment 4 Larry the Git Cow gentoo-dev 2017-10-13 00:08:34 UTC
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(-)