Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 296798 - review gallium useflags in mesa
Summary: review gallium useflags in mesa
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Library (show other bugs)
Hardware: All Linux
: High normal (vote)
Assignee: Gentoo X packagers
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2009-12-13 23:20 UTC by Alec Meyers
Modified: 2009-12-24 15:29 UTC (History)
8 users (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 Alec Meyers 2009-12-13 23:20:49 UTC
media-libs/mesa-7.7_rc2[gallium] fails to build.

Reproducible: Always

Steps to Reproduce:
1. USE=gallium emerge -1 mesa
Actual Results:  
i686-pc-linux-gnu-gcc -c -O2 -march=native -pipe -fomit-frame-pointer -fno-ident -ggdb -floop-interchange -floop-strip-mine -floop-block -ffast-math -Wall -Wmissing-prototypes -std=c99 -ffast-math -fno-strict-aliasing  -fPIC  -DUSE_X86_ASM -DUSE_MMX_ASM -DUSE_3DNOW_ASM -DUSE_SSE_ASM -D_GNU_SOURCE -DPTHREADS -DHAVE_POSIX_MEMALIGN -DUSE_XCB -DGLX_USE_TLS -DPTHREADS -DUSE_EXTERNAL_DXTN_LIB=1 -DIN_DRI_DRIVER -DGLX_DIRECT_RENDERING -DGLX_INDIRECT_RENDERING -DHAVE_ALIAS -DHAVE_XEXTPROTO_71 -I/usr/include/pixman-1 -I/usr/include/xorg -I/usr/include/drm   -I../../../../../../src/gallium/include -I../../../../../../src/gallium/drivers -I../../../../../../src/gallium/auxiliary -I../../../../../../src/gallium -std=gnu99 -DHAVE_CONFIG_H vmw_screen.c -o vmw_screen.o
vmw_screen.c: In function 'vmw_screen_cursor_load_argb':
vmw_screen.c:48: error: dereferencing pointer to incomplete type
vmw_screen.c:48: error: dereferencing pointer to incomplete type
gmake[5]: *** [vmw_screen.o] Error 1
gmake[5]: Leaving directory `/var/tmp/portage/media-libs/mesa-7.7_rc2/work/Mesa-7.7-rc2/src/gallium/winsys/drm/vmware/xorg'
gmake[4]: *** [default] Error 1
gmake[4]: Leaving directory `/var/tmp/portage/media-libs/mesa-7.7_rc2/work/Mesa-7.7-rc2/src/gallium/winsys/drm/vmware'
gmake[3]: *** [default] Error 1
gmake[3]: Leaving directory `/var/tmp/portage/media-libs/mesa-7.7_rc2/work/Mesa-7.7-rc2/src/gallium/winsys/drm'
gmake[2]: *** [default] Error 1
gmake[2]: Leaving directory `/var/tmp/portage/media-libs/mesa-7.7_rc2/work/Mesa-7.7-rc2/src/gallium/winsys'
make[1]: *** [subdirs] Error 1
make[1]: Leaving directory `/var/tmp/portage/media-libs/mesa-7.7_rc2/work/Mesa-7.7-rc2/src'
make: *** [default] Error 1
 * ERROR: media-libs/mesa-7.7_rc2 failed:
 *   emake failed
 *
 * Call stack:
 *     ebuild.sh, line   55:  Called src_compile
 *   environment, line 3197:  Called _eapi2_src_compile
 *     ebuild.sh, line  647:  Called die
 * The specific snippet of code:
 *              emake || die "emake failed"


$ emerge --info                                                                         
Portage 2.2_rc59 (default/linux/x86/10.0/desktop, gcc-4.4.2, glibc-2.11-r1, 2.6.32 i686)                                                  
=================================================================                                                                         
System uname: Linux-2.6.32-i686-Intel-R-_Core-TM-2_CPU_T5300_@_1.73GHz-with-gentoo-2.0.1                                                  
Timestamp of tree: Sun, 13 Dec 2009 22:15:01 +0000                                                                                        
app-shells/bash:     4.0_p35                                                                                                              
dev-java/java-config: 2.1.10                                                                                                              
dev-lang/python:     2.6.4                                                                                                                
dev-util/cmake:      2.8.0                                                                                                                
sys-apps/baselayout: 2.0.1
sys-apps/openrc:     0.5.3
sys-apps/sandbox:    2.2
sys-devel/autoconf:  2.13, 2.64
sys-devel/automake:  1.9.6-r3, 1.10.3, 1.11.1
sys-devel/binutils:  2.20
sys-devel/gcc-config: 1.4.1
sys-devel/libtool:   2.2.6b
virtual/os-headers:  2.6.30-r1
ACCEPT_KEYWORDS="x86 ~x86"
ACCEPT_LICENSE="* -@EULA PUEL dlj-1.1"
CBUILD="i686-pc-linux-gnu"
CFLAGS="-O2 -march=native -pipe -fomit-frame-pointer -fno-ident -ggdb -floop-interchange -floop-strip-mine -floop-block"
CHOST="i686-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/kde/3.5/env /usr/kde/3.5/share/config /usr/kde/3.5/shutdown /usr/share/X11/xkb /usr/share/config /var/lib/hsqldb"
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/env.d /etc/env.d/java/ /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="-O2 -march=native -pipe -fomit-frame-pointer -fno-ident -ggdb -floop-interchange -floop-strip-mine -floop-block"
DISTDIR="/usr/portage/distfiles"
FEATURES="assume-digests candy distlocks fixpackages metadata-transfer news preserve-libs protect-owned sandbox sfperms splitdebug strict unmerge-logs unmerge-orphans"
GENTOO_MIRRORS="http://mirror.csclub.uwaterloo.ca/gentoo-distfiles/ http://gentoo.netnitco.net http://gentoo.chem.wisc.edu/gentoo"
LANG="en_US.UTF-8"
LDFLAGS="-Wl,-O1 -Wl,--as-needed"
LINGUAS="en"
MAKEOPTS="-j3"
PKGDIR="/usr/portage/packages"
PORTAGE_CONFIGROOT="/"
PORTAGE_RSYNC_EXTRA_OPTS="--exclude-from=/etc/portage/rsync_excludes"
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --compress --force --whole-file --delete --stats --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage/tree/official"
PORTDIR_OVERLAY="/usr/portage/tree/layman/Spring /usr/portage/tree/local"
SYNC="rsync://rsync21.us.gentoo.org/gentoo-portage"
USE="X a52 aac aalib acl acpi aio alsa audiofile avahi avi bash-completion berkdb bitmap-fonts branding bzip2 cairo cdparanoia cdr chm cli cracklib crypt css cups curl custom-optimization cxx daap dbus dell dirac dri dts dvd dvdr dvdread emboss encode evo exif expat fam fame ffmpeg firefox flac foomaticdb gdbm gif gmp gpm gtk iconv icu imagemagick imlib inotify java5 java6 jpeg kde kdehiddenvisibility laptop latex lcms logrotate lqr lzma lzo mad mikmod mmx mmxext mng modules mp3 mp4 mpeg mplayer mudflap musepack ncurses npp nptl nptlonly nsplugin nvidia ogg openexr opengl openmp openssl pam pch pcre pdf perl plasma png ppds pppd python qt qt3support qt4 quicktime rar rdesktop readline reflection resolvconf samba schroedinger sdl session slang sndfile speex spell spl sqlite sqlite3 srt sse sse2 ssl ssse3 startup-notification svg sysfs tcpd theora threads thunar tiff truetype unicode usb userlocales v4l v4l2 vcd videos vorbis webkit wifi win32codecs wmf x264 x86 xcb xcomposite xml xorg xscreensaver xulrunner xv xvid xvmc xz zip 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 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" ELIBC="glibc" INPUT_DEVICES="keyboard mouse synaptics" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LINGUAS="en" QEMU_SOFTMMU_TARGETS="arm ppc x86_64" QEMU_USER_TARGETS="arm x86_64" RUBY_TARGETS="ruby18" USERLAND="GNU" VIDEO_CARDS="nvidia nv"
Unset:  CPPFLAGS, CTARGET, EMERGE_DEFAULT_OPTS, FFLAGS, INSTALL_MASK, LC_ALL, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS
Comment 1 Albert W. Hopkins 2009-12-14 01:17:57 UTC
I do not know the solution to this problem, but here is a work-around

Add the following to the ebuild at ~ line 159:

            --disable-gallium-svga

This will stop the build from trying to compile the vmware drivers (I don't use the vmware drivers so I don't care).

I'm not 100% certain this still builds with gallium, but

    $ grep -i gallium /usr/lib64/dri/*
    Binary file /usr/lib64/dri/EGL_i915.so matches
    Binary file /usr/lib64/dri/i915_dri.so matches

seems to indicate it does.

Also this code is new to 7.7*, the last 7.6 ebuild with gallium compiles fine.
Comment 2 dongxu li 2009-12-15 16:38:43 UTC
(In reply to comment #1)
> I do not know the solution to this problem, but here is a work-around
> 
> Add the following to the ebuild at ~ line 159:
> 
>             --disable-gallium-svga
> 
> This will stop the build from trying to compile the vmware drivers (I don't use
> the vmware drivers so I don't care).
> 

I don't use vmware, however, I do use kvm(qemu-kvm). Could there be any problem from --disable-gallium-svga? I suppose it doesn't matter for the host OS, which uses xf86-video-ati.

> I'm not 100% certain this still builds with gallium, but
> 
>     $ grep -i gallium /usr/lib64/dri/*
>     Binary file /usr/lib64/dri/EGL_i915.so matches
>     Binary file /usr/lib64/dri/i915_dri.so matches
> 
> seems to indicate it does.
> 
> Also this code is new to 7.7*, the last 7.6 ebuild with gallium compiles fine.
> 

Comment 3 Rémi Cardona (RETIRED) gentoo-dev 2009-12-15 17:40:59 UTC
Let's disable SVGA support for now, both in 7.7 and in 9999. We'll reenable it later when there's demand for it.

Thanks
Comment 4 Tomáš Chvátal (RETIRED) gentoo-dev 2009-12-17 12:43:16 UTC
It looks like there is quite few more new features, so it needs review and useflags.
Comment 5 Tomáš Chvátal (RETIRED) gentoo-dev 2009-12-19 14:01:20 UTC
Ok the useflags were revisited on x11 overlay in live mesa ebuild, please test it and i will backport to 7.7 soonish :]
Comment 6 Tomáš Chvátal (RETIRED) gentoo-dev 2009-12-24 15:29:17 UTC
Fixed in both live ebuild and main tree.