Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 611732 - media-libs/mesa-9999: configure: error: 3.6.0 requires libelf when using llvm
Summary: media-libs/mesa-9999: configure: error: 3.6.0 requires libelf when using llvm
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Overlays (show other bugs)
Hardware: All Linux
: Normal normal
Assignee: Matt Turner
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2017-03-04 19:16 UTC by Vasco Gervasi
Modified: 2017-03-06 21:07 UTC (History)
1 user (show)

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


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Vasco Gervasi 2017-03-04 19:16:25 UTC
Hi all,
I am trying to update mesa live ebuild, but I get this error:

Package libomxil-bellagio was not found in the pkg-config search path.
Perhaps you should add the directory containing `libomxil-bellagio.pc'
to the PKG_CONFIG_PATH environment variable
No package 'libomxil-bellagio' found
checking for RADEON... yes
configure: error: 3.6.0 requires libelf when using llvm

These are the use flag enabled:
[ebuild     U *] media-libs/mesa-9999::gentoo [17.0.0::gentoo] USE="classic dri3 egl gallium gbm gles2 llvm nptl wayland -bindist -d3d9 -debug -gles1 -opencl -openmax -osmesa -pax_kernel -pic (-selinux) -vaapi -valgrind -vdpau -vulkan -xa -xvmc" ABI_X86="(64) -32 (-x32)" VIDEO_CARDS="r600 radeon (-freedreno) -i915 -i965 -imx -intel -nouveau -r100 -r200 -r300 -radeonsi (-vc4) (-vivante) -vmware" 0 KiB
Comment 1 Matt Turner gentoo-dev 2017-03-06 14:49:18 UTC
(mesa-9999.ebuild has been in the main tree since Aug 2015)

The message:

> No package 'libomxil-bellagio' found

is completely harmless, and definitely not fatal.

The actual error that is fatal to the build is:

> configure: error: 3.6.0 requires libelf when using llvm

I assume that you intend to report the fatal error, and not the message about libomxil-bellagio.

I appear to have been under the mistaken impression that the r600 driver did not require LLVM. I will investigate.
Comment 2 Vasco Gervasi 2017-03-06 21:03:28 UTC
OK

Thanks
Comment 3 Matt Turner gentoo-dev 2017-03-06 21:07:46 UTC
I'm not entirely sure under what circumstances LLVM is used with r600, but the upstream code definitely requires libelf when LLVM and r600 are enabled together -- and we're missing that dependency.

I have fixed that with:

commit 430d112b8e4a475e3279c80f2f80a087a05c83a6
Author: Matt Turner <mattst88@gentoo.org>
Date:   Mon Mar 6 13:05:36 2017 -0800

    media-libs/mesa: Require virtual/libelf for r600+llvm.

and I also sent patches upstream to fix the confusing message about libomxil-bellagio.

Thanks for the report!