Summary: | 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’ | ||
---|---|---|---|
Product: | Gentoo Linux | Reporter: | Ilya Gordeev <mirraz1> |
Component: | New packages | Assignee: | Gentoo X packagers <x11> |
Status: | RESOLVED FIXED | ||
Severity: | normal | CC: | buddha, chainsaw, darkcircle.0426, manschwetus, me, randy-andy-, rion4ik, tsdh |
Priority: | Normal | ||
Version: | unspecified | ||
Hardware: | All | ||
OS: | Linux | ||
See Also: | https://bugs.freedesktop.org/show_bug.cgi?id=52962 | ||
Whiteboard: | |||
Package list: | Runtime testing required: | --- | |
Attachments: |
build.log
gbm: Fix build without gallium_drm_loader Adds gallium_require_drm_loader to i915 and r300 in configure.ac The ebuild to include the patch |
Description
Ilya Gordeev
2012-07-29 09:24:57 UTC
Created attachment 319598 [details]
build.log
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 I've also same problem. :( Thank you for reporting this. Interestingly, enabling VIDEO_CARDS=radeon or nouveau in addition to intel makes the build complete successfully. 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.. 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. 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.
(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" 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... Created attachment 320208 [details, diff]
The ebuild to include the patch
And here's an updated ebuild to include the patch.
Hi there! I suggest to remake a patch and move #ifdef BEFORE "int ret", since currently in causes "unused variable" warning Pushed upstream: http://cgit.freedesktop.org/mesa/mesa/commit/?id=4c73282d2bfa8fa52acdb3ac32c5eca260bad792 Fixed in 8.1_rc1_pre20120814 |