Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 523776 - media-libs/mesa-10.2.1 to 10.3.0 fails to build due to DRI requirements
Summary: media-libs/mesa-10.2.1 to 10.3.0 fails to build due to DRI requirements
Alias: None
Product: Gentoo/Alt
Classification: Unclassified
Component: Prefix Support (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Gentoo Prefix
Depends on:
Reported: 2014-09-26 10:06 UTC by Marko Vendelin
Modified: 2021-01-06 12:33 UTC (History)
1 user (show)

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


Note You need to log in before you can comment on or make changes to this bug.
Description Marko Vendelin 2014-09-26 10:06:45 UTC
I am failing to upgrade MESA from 10.1.6 to newer unmasked media-libs/mesa library. The following report is made on the basis of 10.3.0 version.

Using default USE flags leads to 

emerge -1 -v mesa
!!! Problem with sandbox binary. Disabling...

These are the packages that would be merged, in order:

Calculating dependencies... done!

The following keyword changes are necessary to proceed:
 (see "package.accept_keywords" in the portage(5) man page for more details)
# required by virtual/libudev-215-r1[-systemd]
# required by media-libs/mesa-10.3.0[gbm,dri3]
# required by mesa (argument)
=sys-fs/udev-9999 **
# required by sys-fs/udev-9999[kmod]
# required by virtual/libudev-215-r1[-systemd]
# required by media-libs/mesa-10.3.0[gbm,dri3]
# required by mesa (argument)
=sys-apps/kmod-9999 **
# required by media-libs/mesa-10.3.0[gbm,dri3]
# required by mesa (argument)
=virtual/libudev-215-r1 **

NOTE: The --autounmask-keep-masks option will prevent emerge
      from creating package.unmask or ** keyword changes.

Use --autounmask-write to write changes to config files (honoring
CONFIG_PROTECT). Carefully examine the list of proposed changes,
paying special attention to mask or keyword changes that may expose
experimental or unstable packages.

!!! All ebuilds that could satisfy ">=sys-apps/hwids-20140304[udev]" have been masked.
!!! One of the following masked packages is required to complete your request:
- sys-apps/hwids-99999999::gentoo_prefix (masked by: missing keyword)

(dependency required by "sys-fs/udev-9999" [ebuild])
(dependency required by "virtual/libudev-215-r1[-systemd]" [ebuild])
(dependency required by "media-libs/mesa-10.3.0[gbm,dri3]" [ebuild])
(dependency required by "mesa" [argument])
For more information, see the MASKED PACKAGES section in the emerge
man page or refer to the Gentoo Handbook.

Note that these UDEV, KMOD ebuilds are masked. So, mesa depends, as of now, on unstable ebuilds in Prefix.

To overcome UDEV requirement, I used the following flags

emerge -pqv mesa

[ebuild     U ] media-libs/mesa-10.3.0 [10.1.6] USE="classic egl gallium llvm* nptl -bindist -debug -dri3 -gbm -gles1 -gles2 -opencl -openmax% -openvg -osmesa -pax_kernel -pic -r600-llvm-compiler (-selinux) -vdpau -wayland -xa -xvmc" VIDEO_CARDS="i915 i965 intel (-freedreno) -ilo -nouveau -r100 -r200 -r300 -r600 -radeon -radeonsi -vmware"

As a result, compilation fails in configure stage:

checking for XF86VIDMODE... yes
checking for DRIGL... yes
configure: error: libudev-dev or sysfs required for building DRI

!!! Please attach the following file when seeking support:
!!! /shared/envs/sysbio/gentoo/var/tmp/portage/media-libs/mesa-10.3.0/work/Mesa-10.3.0-abi_x86_64.amd64/config.log
 * ERROR: media-libs/mesa-10.3.0::gentoo_prefix failed (configure phase):
 *   econf failed
 * Call stack:
 *, line   93:  Called __call-ebuildshell 'src_configure'
 *        environment, line  509:  Called src_configure
 *        environment, line 4982:  Called multilib-minimal_src_configure
 *        environment, line 3312:  Called multilib_parallel_foreach_abi 'multilib-minimal_abi_src_configure'
 *        environment, line 3618:  Called multibuild_parallel_foreach_variant '_multilib_multibuild_wrapper' 'multilib-minimal_abi_src_configure'
 *        environment, line 3205:  Called multibuild_foreach_variant '_multibuild_parallel' '_multilib_multibuild_wrapper' 'multilib-minimal_abi_src_configure'
 *        environment, line 3148:  Called _multibuild_run '_multibuild_parallel' '_multilib_multibuild_wrapper' 'multilib-minimal_abi_src_configure'
 *        environment, line 3146:  Called _multibuild_parallel '_multilib_multibuild_wrapper' 'multilib-minimal_abi_src_configure'
 *        environment, line 3196:  Called _multilib_multibuild_wrapper 'multilib-minimal_abi_src_configure'
 *        environment, line  827:  Called multilib-minimal_abi_src_configure
 *        environment, line 3306:  Called multilib_src_configure
 *        environment, line 3795:  Called econf '--enable-dri' '--enable-glx' '--enable-shared-glapi' '--enable-texture-float' '--disable-debug' '--disable-dri3' '--enable-egl' '--disable-gbm' '--disable-gles1' '--disable-gles2' '--enable-glx-tls' '--disable-osmesa' '--enable-llvm-shared-libs' '--with-dri-drivers=,swrast,i915,i965' '--with-gallium-drivers=,swrast,i915' 'PYTHON2=/shared/envs/sysbio/gentoo/usr/bin/python2.7' '--with-egl-platforms=x11' '--enable-gallium-llvm' '--disable-openvg' '--disable-gallium-egl' '--disable-omx' '--disable-r600-llvm-compiler' '--disable-vdpau' '--disable-xa' '--disable-xvmc'
 *, line  584:  Called die
 * The specific snippet of code:
 *   			die "econf failed"
 * If you need support, post the output of `emerge --info '=media-libs/mesa-10.3.0::gentoo_prefix'`,
 * the complete build log and the output of `emerge -pqv '=media-libs/mesa-10.3.0::gentoo_prefix'`.
/shared/envs/sysbio/gentoo/usr/lib/portage/bin/ line 195: wait: `econf failed': not a pid or valid job spec
 * The complete build log is located at '/shared/envs/sysbio/gentoo/var/tmp/portage/media-libs/mesa-10.3.0/temp/build.log'.
 * The ebuild environment file is located at '/shared/envs/sysbio/gentoo/var/tmp/portage/media-libs/mesa-10.3.0/temp/environment'.
 * Working directory: '/shared/envs/sysbio/gentoo/var/tmp/portage/media-libs/mesa-10.3.0/work/Mesa-10.3.0-abi_x86_64.amd64'
 * S: '/shared/envs/sysbio/gentoo/var/tmp/portage/media-libs/mesa-10.3.0/work/Mesa-10.3.0'

Reproducible: Always

Steps to Reproduce:
see above
Comment 1 Marko Vendelin 2014-09-26 10:07:27 UTC
Portage (python 2.7.6-final-0, prefix/linux/amd64, gcc-4.7.3, unavailable, 3.14.14-gentoo x86_64)
System uname: Linux-3.14.14-gentoo-x86_64-Intel-R-_Xeon-R-_CPU_E5-2650_v2_@_2.60GHz-with-gentoo-2.2
KiB Mem:   264653840 total,  92847596 free
KiB Swap:    8000360 total,   7745124 free
Timestamp of tree: Fri, 26 Sep 2014 08:36:18 +0000
ld GNU ld (GNU Binutils) 2.24
app-shells/bash:          4.2_p45-r1
dev-lang/python:          2.7.6-r1
dev-util/cmake:           3.0.2
dev-util/pkgconfig:       0.28-r2
sys-devel/autoconf:       2.69
sys-devel/automake:       1.11.6, 1.14
sys-devel/binutils:       2.24-r2
sys-devel/gcc:            4.7.3-r1
sys-devel/gcc-config:     1.8-r00.1
sys-devel/libtool:        2.4.2-r1
sys-devel/make:           4.0-r1
sys-kernel/linux-headers: 3.16 (virtual/os-headers)
Repositories: gentoo_prefix science ioc-science
CFLAGS="-O2 -pipe -O2 -march=native -pipe"
CONFIG_PROTECT="/etc /usr/share/gnupg/qualified.txt"
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/env.d /etc/fonts/fonts.conf /etc/gconf /etc/gentoo-release /etc/revdep-rebuild /etc/terminfo /etc/texmf/language.dat.d /etc/texmf/language.def.d /etc/texmf/updmap.d /etc/texmf/web2c"
CXXFLAGS="-O2 -pipe -O2 -march=native -pipe"
FCFLAGS="-O2 -pipe"
FEATURES="assume-digests binpkg-logs config-protect-if-modified distlocks ebuild-locks fixlafiles force-prefix merge-sync news parallel-fetch preserve-libs protect-owned sfperms strict unknown-features-warn unmerge-logs unmerge-orphans userfetch userpriv usersandbox usersync"
FFLAGS="-O2 -pipe"
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --omit-dir-times --compress --force --whole-file --delete --stats --human-readable --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages"
PORTDIR_OVERLAY="/shared/envs/sysbio/gentoo/var/lib/layman/science /shared/envs/sysbio/gentoo/var/lib/layman/ioc-sysbio"
USE="X amd64 berkdb bzip2 cli cracklib crypt cxx dri fortran gdbm iconv ipv6 mmx modules ncurses nls nptl openmp pcre prefix readline session sse sse2 ssl tcpd tiff unicode zlib" ABI_X86="64" ALSA_CARDS="ali5451 als4000 atiixp atiixp-modem bt87x ca0106 cmipci emu10k1x ens1370 ens1371 es1938 es1968 fm801 hda-intel intel8x0 intel8x0m maestro3 trident usb-audio via82xx via82xx-modem ymfpci" APACHE2_MODULES="authn_core authz_core socache_shmcb unixd actions alias auth_basic authn_alias authn_anon authn_dbm authn_default authn_file authz_dbm authz_default authz_groupfile authz_host authz_owner authz_user autoindex cache cgi cgid dav dav_fs dav_lock deflate dir disk_cache env expires ext_filter file_cache filter headers include info log_config logio mem_cache mime mime_magic negotiation rewrite setenvif speling status unique_id userdir usertrack vhost_alias" CALLIGRA_FEATURES="kexi words flow plan sheets stage tables krita karbon braindump author" CAMERAS="ptp2" COLLECTD_PLUGINS="df interface irq load memory rrdtool swap syslog" ELIBC="glibc" GPSD_PROTOCOLS="ashtech aivdm earthmate evermore fv18 garmin garmintxt gpsclock itrax mtk3301 nmea ntrip navcom oceanserver oldstyle oncore rtcm104v2 rtcm104v3 sirf superstar2 timing tsip tripmate tnt ublox ubx" INPUT_DEVICES="keyboard mouse evdev" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LIBREOFFICE_EXTENSIONS="presenter-console presenter-minimizer" OFFICE_IMPLEMENTATION="libreoffice" PHP_TARGETS="php5-5" PYTHON_SINGLE_TARGET="python2_7" PYTHON_TARGETS="python2_7" RUBY_TARGETS="ruby19 ruby20" USERLAND="GNU" VIDEO_CARDS="intel i915 i965" XTABLES_ADDONS="quota2 psd pknock lscan length2 ipv4options ipset ipp2p iface geoip fuzzy condition tee tarpit sysrq steal rawnat logmark ipmark dhcpmac delude chaos account"
Comment 2 Fabian Groffen gentoo-dev 2021-01-06 12:33:27 UTC
this needs revisiting, sorry