Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 536478

Summary: media-libs/mesa-10.4.2 USE=llvm should depend on dev-libs/elfutils[${MULTILIB_USEDEP}]
Product: Gentoo Linux Reporter: David Carlos Manuelda <StormByte>
Component: [OLD] LibraryAssignee: Gentoo X packagers <x11>
Status: RESOLVED DUPLICATE    
Severity: normal    
Priority: Normal    
Version: unspecified   
Hardware: All   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---
Attachments: emerge --info media-libs/mesa
mesa build log

Description David Carlos Manuelda 2015-01-13 13:53:55 UTC
When updating world, I've seen mesa-10.4.2 failing at configure phase due to:

checking for joinable pthread attribute... PTHREAD_CREATE_JOINABLE
checking if more special flags are required for pthreads... no
checking for PTHREAD_PRIO_INHERIT... no
checking for LIBDRM... yes
checking for LIBUDEV... yes
checking for GLPROTO... yes
checking for DRI2PROTO... yes
checking for DRI3PROTO... yes
checking for PRESENTPROTO... yes
checking for XF86VIDMODE... yes
checking for DRIGL... yes
checking for EXPAT... yes
checking for INTEL... yes
checking for INTEL... yes
checking for mincore... yes
checking for XVMC... yes
checking for VDPAU... yes
checking for OMX... yes
checking for VA... yes
checking for elf_memory in -lelf... no
configure: error: Clover requires libelf

Looking deep at the error, I finally solved it, by recompiling elfutils in both 32 and 64 bit (I only had it 64bit) and now mesa compiles.

My suggestion is to add that as a dependency if it is going to be built on 32bit.

These are the USE flags I have enabled for mesa: USE="classic dri3 egl gallium gbm llvm nptl opencl openmax osmesa udev vaapi%* vdpau xa* xvmc* -bindist -debug -gles1 -gles2 -pax_kernel -pic -r600-llvm-compiler (-selinux) -wayland (-openvg%*)" ABI_X86="32 (64) (-x32)" VIDEO_CARDS="i915 i965 intel (-freedreno) -ilo -nouveau -r100 -r200 -r300 -r600 -radeon -radeonsi -vmware"

Reproducible: Always
Comment 1 Jeroen Roovers (RETIRED) gentoo-dev 2015-01-13 15:38:18 UTC
1) Please post your `emerge --info media-libs/mesa' output in a comment.
2) Please attach the entire build log to this bug report.
Comment 2 David Carlos Manuelda 2015-01-13 15:49:45 UTC
Created attachment 393870 [details]
emerge --info media-libs/mesa
Comment 3 David Carlos Manuelda 2015-01-13 15:50:43 UTC
Created attachment 393872 [details]
mesa build log
Comment 4 David Carlos Manuelda 2015-01-13 15:51:14 UTC
Added the requested attachments.

All of that is fixed by enabling 32bit build in elfutils.
Comment 5 Jeroen Roovers (RETIRED) gentoo-dev 2015-01-13 16:27:28 UTC
(In reply to David Carlos Manuelda from comment #4)
> Added the requested attachments.

I didn't ask to attach `emerge --info' output, but this should work.

> All of that is fixed by enabling 32bit build in elfutils.

But that should already be in place. Only you don't seem to have either of
the VIDEO_CARDS that pull it in.
Comment 6 Michael Mair-Keimberger (iamnr3) 2015-01-13 17:23:19 UTC
I think this is a duplicate of bug #536456
Comment 7 Ulrich Müller gentoo-dev 2015-01-13 22:15:24 UTC

*** This bug has been marked as a duplicate of bug 536456 ***