Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 428508 - media-libs/mesa-8.1_rc1_pre20120724[gbm,video_cards_intel] - gbm.c: In function ‘gallium_screen_create’: gbm.c:54:4: error: implicit declaration of function ‘pipe_loader_drm_probe_fd’
Summary: media-libs/mesa-8.1_rc1_pre20120724[gbm,video_cards_intel] - gbm.c: In functi...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: New packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Gentoo X packagers
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2012-07-29 09:24 UTC by Ilya Gordeev
Modified: 2012-08-14 21:30 UTC (History)
8 users (show)

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


Attachments
build.log (build.log,562.59 KB, text/plain)
2012-07-29 09:26 UTC, Ilya Gordeev
Details
gbm: Fix build without gallium_drm_loader (0001-gbm-Fix-build-without-gallium_drm_loader.patch,1.05 KB, patch)
2012-08-03 11:53 UTC, Chí-Thanh Christopher Nguyễn
Details | Diff
Adds gallium_require_drm_loader to i915 and r300 in configure.ac (mesa-8.1-gallium-require-drm-loader-for-i915-and-r300.patch,837 bytes, patch)
2012-08-03 20:29 UTC, Mattia Rossi
Details | Diff
The ebuild to include the patch (mesa-8.1_rc1_pre20120724.ebuild,11.18 KB, patch)
2012-08-03 20:30 UTC, Mattia Rossi
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Ilya Gordeev 2012-07-29 09:24:57 UTC
mesa-8.1_rc1_pre20120724 USE="classic egl g3dvl gallium gbm llvm nptl openvg shared-glapi xa xorg xvmc -bindist -d3d -debug -gles1 -gles2 -pax_kernel -pic -r600-llvm-compiler -vdpau -wayland" VIDEO_CARDS="i965 intel -i915 -nouveau -r100 -r200 -r300 -r600 -radeon -radeonsi -vmware"

Reproducible: Always




Portage 2.1.11.9 (default/linux/amd64/10.0/desktop, gcc-4.5.3, glibc-2.14.1-r3, 3.3.8-gentoo x86_64)
=================================================================
System uname: Linux-3.3.8-gentoo-x86_64-Celeron-R-_Dual-Core_CPU_T3000_@_1.80GHz-with-gentoo-2.1
Timestamp of tree: Sun, 29 Jul 2012 05:45:01 +0000
ccache version 3.1.7 [enabled]
app-shells/bash:          4.2_p37
dev-java/java-config:     2.1.12
dev-lang/python:          2.7.3-r2, 3.2.3-r1
dev-util/ccache:          3.1.7
dev-util/cmake:           2.8.8-r3
dev-util/pkgconfig:       0.27
sys-apps/baselayout:      2.1-r1
sys-apps/openrc:          0.10.5
sys-apps/sandbox:         2.6
sys-devel/autoconf:       2.13, 2.69
sys-devel/automake:       1.11.6, 1.12.2
sys-devel/binutils:       2.21.1-r1
sys-devel/gcc:            4.5.3-r2
sys-devel/gcc-config:     1.6
sys-devel/libtool:        2.4.2
sys-devel/make:           3.82-r3
sys-kernel/linux-headers: 3.3 (virtual/os-headers)
sys-libs/glibc:           2.14.1-r3
Repositories: gentoo my_local_overlay seden ibormuth nektoo
ACCEPT_KEYWORDS="amd64 ~amd64"
ACCEPT_LICENSE="* -@EULA"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-march=native -mmmx -msse -msse2 -mssse3 -mcx16 -mfpmath=sse,387 -O2 -fomit-frame-pointer -pipe"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/share/config /usr/share/gnupg/qualified.txt /usr/share/openvpn/easy-rsa"
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/dconf /etc/env.d /etc/fonts/fonts.conf /etc/gconf /etc/gentoo-release /etc/revdep-rebuild /etc/sandbox.d /etc/terminfo /etc/texmf/language.dat.d /etc/texmf/language.def.d /etc/texmf/updmap.d /etc/texmf/web2c"
CXXFLAGS="-march=native -mmmx -msse -msse2 -mssse3 -mcx16 -mfpmath=sse,387 -O2 -fomit-frame-pointer -pipe"
DISTDIR="/var/portage/distfiles"
EMERGE_DEFAULT_OPTS=" --quiet-build=n"
FCFLAGS="-O2 -pipe"
FEATURES="assume-digests binpkg-logs ccache config-protect-if-modified distlocks ebuild-locks fixlafiles metadata-transfer news parallel-fetch parse-eapi-ebuild-head protect-owned sandbox sfperms strict unknown-features-warn unmerge-logs unmerge-orphans userfetch userpriv usersandbox usersync xattr"
FFLAGS="-O2 -pipe"
GENTOO_MIRRORS="http://mirror.yandex.ru/gentoo-distfiles/ http://mirror2.corbina.ru/gentoo-distfiles/ http://gentoo.bloodhost.ru/"
LANG="ru_RU.UTF-8"
LC_ALL=""
LDFLAGS="-Wl,-O1 -Wl,--as-needed"
LINGUAS="en ru"
MAKEOPTS="-j3"
PKGDIR="/var/portage/packages"
PORTAGE_CONFIGROOT="/"
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --compress --force --whole-file --delete --stats --human-readable --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/usr/local/portage /var/lib/layman/seden /var/lib/layman/ibormuth /var/lib/layman/nektoo"
SYNC="rsync://rsync.ru.gentoo.org/gentoo-portage"
USE="X a52 aac aalib acl acpi alsa amd64 bash-completion berkdb branding bzip2 cairo caps cdda cdr cli consolekit cracklib crypt cups curl cxx dbus dga directfb djvu dri dts dv dvd dvdr egl emboss encode exif expat fam fbcon ffmpeg fftw firefox flac fontconfig gcrypt gdbm gif gimp git gmp gnutls gphoto2 gpm graphite graphviz gstreamer gtk gtk3 gzip hardened iconv icu idn ipv6 jabber jack jpeg jpeg2k lame lcms libcaca libnotify llvm lm_sensors lzma lzo mad madwifi matroska midi mmx mng modules mp3 mp4 mpeg mplayer mudflap multilib musepack nas ncurses nls nptl nss ogg openal opengl openmp openssl oscar pam pango pch pcre pdf png policykit portaudio postscript ppds pppd raw readline samba scanner sdl session smp sndfile sockets socks5 sound spell sqlite sse sse2 ssl ssse3 startup-notification svg syslog taglib tcpd theora threads tiff timidity truetype udev udisks unicode upower usb v4l vorbis vpx wavpack wget wifi x264 xattr xcb xcomposite xml xscreensaver xv xvid xvmc zlib" ALSA_CARDS="hda-intel" ALSA_PCM_PLUGINS="adpcm alaw asym copy dmix dshare dsnoop empty extplug file hooks iec958 ioplug ladspa lfloat linear meter mmap_emul mulaw multi null plug rate route share shm softvol" APACHE2_MODULES="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" 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 ubx" INPUT_DEVICES="evdev synaptics" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LIBREOFFICE_EXTENSIONS="presenter-console presenter-minimizer" LINGUAS="en ru" PHP_TARGETS="php5-3" PYTHON_TARGETS="python3_2 python2_7" QEMU_SOFTMMU_TARGETS="arm i386 x86_64" QEMU_USER_TARGETS="arm i386 x86_64" RUBY_TARGETS="ruby18 ruby19" USERLAND="GNU" VIDEO_CARDS="intel i965" XFCE_PLUGINS="brightness clock" 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"
Unset:  CPPFLAGS, CTARGET, INSTALL_MASK, PORTAGE_BUNZIP2_COMMAND, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS, USE_PYTHON
Comment 1 Ilya Gordeev 2012-07-29 09:26:17 UTC
Created attachment 319598 [details]
build.log
Comment 2 BillWho 2012-07-29 14:21:21 UTC
Same condition here on i686

mklib: Making Linux shared library:  pipe_i915.so
gbm.c: In function ‘gallium_screen_create’:
gbm.c:54:4: error: implicit declaration of function ‘pipe_loader_drm_probe_fd’ [-Werror=implicit-function-declaration]
cc1: some warnings being treated as errors
gmake[3]: *** [gbm.o] Error 1


gentoo ~ # emerge --info '=media-libs/mesa-8.1_rc1_pre20120724'
Portage 2.1.11.9 (default/linux/x86/10.0/desktop, gcc-4.6.3, glibc-2.15-r2, 3.5.0-rc6 i686)
=================================================================
                        System Settings
=================================================================
System uname: Linux-3.5.0-rc6-i686-Intel-R-_Pentium-R-_4_CPU_3.20GHz-with-gentoo-2.1
Timestamp of tree: Sun, 29 Jul 2012 12:00:01 +0000
app-shells/bash:          4.2_p37
dev-lang/python:          2.7.3-r2, 3.2.3-r1
dev-util/cmake:           2.8.8-r3
dev-util/pkgconfig:       0.27
sys-apps/baselayout:      2.1-r1
sys-apps/openrc:          0.10.5
sys-apps/sandbox:         2.6
sys-devel/autoconf:       2.13, 2.69
sys-devel/automake:       1.11.6, 1.12.1
sys-devel/binutils:       2.22.90
sys-devel/gcc:            4.6.3
sys-devel/gcc-config:     1.7.3
sys-devel/libtool:        2.4.2
sys-devel/make:           3.82-r3
sys-kernel/linux-headers: 3.5 (virtual/os-headers)
sys-libs/glibc:           2.15-r2
Repositories: gentoo x-portage
ACCEPT_KEYWORDS="x86 ~x86"
ACCEPT_LICENSE="*"
CBUILD="i686-pc-linux-gnu"
CFLAGS="-O2 -march=pentium4 -pipe"
CHOST="i686-pc-linux-gnu"
CONFIG_PROTECT="/etc"
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/env.d /etc/fonts/fonts.conf /etc/gconf /etc/gentoo-release /etc/revdep-rebuild /etc/sandbox.d /etc/terminfo"
CXXFLAGS="-O2 -march=pentium4 -pipe"
DISTDIR="/usr/portage/distfiles"
FCFLAGS="-O2 -march=i686 -pipe"
FEATURES="assume-digests binpkg-logs config-protect-if-modified distlocks ebuild-locks fixlafiles news parallel-fetch parse-eapi-ebuild-head protect-owned sandbox sfperms strict unknown-features-warn unmerge-logs unmerge-orphans userfetch"
FFLAGS="-O2 -march=i686 -pipe"
GENTOO_MIRRORS="ftp://mirror.datapipe.net/gentoo http://gentoo.mirrors.pair.com/ http://gentoo.osuosl.org/ http://mirrors.rit.edu/gentoo/ ftp://gentoo.cites.uiuc.edu/pub/gentoo/ http://mirror.the-best-hosting.net"
LANG="en_US.UTF-8"
LDFLAGS="-Wl,-O1 -Wl,--as-needed"
LINGUAS="en en_US"
MAKEOPTS="-j3"
PKGDIR="/usr/portage/packages"
PORTAGE_CONFIGROOT="/"
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --compress --force --whole-file --delete --stats --human-readable --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/usr/local/portage"
SYNC="rsync://rsync.gentoo.org/gentoo-portage"
USE="X a52 aac acl acpi alsa auto-hinter bindist bluetooth branding bzip2 cairo cdda cdr cli colord consolekit cracklib crypt css cups cvs cxx dbus dri dts dvd dvdr emboss enca encode exceptions exif fam firefox flac fontconfig fortran gdbm gif git gpm gtk iconv icu ipc ipv6 jpeg lcms ldap libffi libnotify lua lxde lzma mad mercurial midi minizip mmx mng modules mp3 mp4 mpeg mudflap mx ncurses network nfsv3 nls nptl ogg opengl openmp pam pango pcre pdf perl png policykit ppds pppd pulseaudio python qt-bundled qt3support qt4 readline rss sasl schroedinger sdl session sound spell sse2 ssl startup-notification static-libs subversion svg tcpd threads tiff truetype udev udisks unicode unlock-notify upower usb utils video vorbis wxwidgets x264 x86 xcb xml xv xvid zlib" ALSA_CARDS="ali5451 als4000 atiixp atiixp-modem bt87x ca0106 cmipci emu10k1 emu10k1x ens1370 ens1371 es1938 es1968 fm801 hda-intel intel8x0 intel8x0m maestro3 trident usb-audio via82xx via82xx-modem ymfpci" ALSA_PCM_PLUGINS="adpcm alaw asym copy dmix dshare dsnoop empty extplug file hooks iec958 ioplug ladspa lfloat linear meter mmap_emul mulaw multi null plug rate route share shm softvol" APACHE2_MODULES="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" 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 ubx" INPUT_DEVICES="evdev" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LIBREOFFICE_EXTENSIONS="presenter-console presenter-minimizer" LINGUAS="en en_US" PHP_TARGETS="php5-3" PYTHON_TARGETS="python3_2 python2_7" RUBY_TARGETS="ruby18 ruby19" USERLAND="GNU" VIDEO_CARDS="i915 intel fbdev vesa" 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"
Unset:  CPPFLAGS, CTARGET, EMERGE_DEFAULT_OPTS, INSTALL_MASK, LC_ALL, PORTAGE_BUNZIP2_COMMAND, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS, USE_PYTHON
Comment 3 Seong-ho Cho 2012-07-29 15:21:07 UTC
I've also same problem. :( Thank you for reporting this.
Comment 4 Chí-Thanh Christopher Nguyễn gentoo-dev 2012-07-30 00:58:25 UTC
Interestingly, enabling VIDEO_CARDS=radeon or nouveau in addition to intel makes the build complete successfully.
Comment 5 Mattia Rossi 2012-07-30 15:27:47 UTC
I can confirm this bug. adding radeon to VIDEO_CARDS works. Recompiling libdrm with intel only does not help. Somebody made a boo-boo in the intel related code..
Comment 6 Chí-Thanh Christopher Nguyễn gentoo-dev 2012-08-03 08:52:16 UTC
As a stopgap measure to address user-visible breakage, I propose to add

REQUIRED_USE="gbm? ( video_cards_intel? ( || ( video_cards_radeon video_cards_nouveau ) ) )"

to the ebuild. If there are no objections, I will commit that later today or tomorrow.
Comment 7 Chí-Thanh Christopher Nguyễn gentoo-dev 2012-08-03 11:53:01 UTC
Created attachment 320146 [details, diff]
gbm: Fix build without gallium_drm_loader

I seem to be unable to subscribe to mesa3d-dev at this time. Emails from non-subscribers are rejected. If someone else wants to send it, go ahead. Else I'll try again tomorrow.
Comment 8 Robert Förster 2012-08-03 12:06:30 UTC
(In reply to comment #6)
> As a stopgap measure to address user-visible breakage, I propose to add
> 
> REQUIRED_USE="gbm? ( video_cards_intel? ( || ( video_cards_radeon
> video_cards_nouveau ) ) )"
> 
> to the ebuild. If there are no objections, I will commit that later today or
> tomorrow.

VIDEO_CARDS="r300 radeon" (or just r300) does not work either, removing r300 from the var does work, however.

media-libs/mesa-8.1_rc1_pre20120724  USE="egl gallium gbm llvm nptl shared-glapi -bindist -classic -d3d -debug -g3dvl -gles1 -gles2 -openvg (-osmesa) -pax_kernel -pic -r600-llvm-compiler (-selinux) -vdpau -wayland -xa -xorg -xvmc" VIDEO_CARDS="radeon -i915 -i965 -intel -nouveau -r100 -r200 -r300 -r600 -radeonsi -vmware"
Comment 9 Mattia Rossi 2012-08-03 20:29:23 UTC
Created attachment 320206 [details, diff]
Adds gallium_require_drm_loader to i915 and r300 in configure.ac

The alternative to Chí-Thanh Christopher Nguyễn's patch: 
add gallium_require_drm_loader to the i915 and r300 drivers in configure.ac

Always from the same bug report
https://bugs.freedesktop.org/show_bug.cgi?id=52962

Don't know if that's sane though...
Comment 10 Mattia Rossi 2012-08-03 20:30:19 UTC
Created attachment 320208 [details, diff]
The ebuild to include the patch

And here's an updated ebuild to include the patch.
Comment 11 Vadim A. Misbakh-Soloviov (mva) gentoo-dev 2012-08-09 12:29:47 UTC
Hi there! I suggest to remake a patch and move #ifdef BEFORE "int ret", since currently in causes "unused variable" warning
Comment 13 Chí-Thanh Christopher Nguyễn gentoo-dev 2012-08-14 21:30:07 UTC
Fixed in 8.1_rc1_pre20120814