Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 341877

Summary: media-libs/mesa-7.8.2 does not build with libdrm-2.4.22 with nouveau enabled
Product: Gentoo Linux Reporter: kavol
Component: [OLD] LibraryAssignee: Gentoo Linux bug wranglers <bug-wranglers>
Status: RESOLVED DUPLICATE    
Severity: normal CC: esigra
Priority: High    
Version: unspecified   
Hardware: All   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---
Attachments: build.log for mesa-7.8.2

Description kavol 2010-10-20 11:01:52 UTC
trying to rebuild mesa-7.8.2 I'm getting the following error:

gmake[4]: Entering directory `/var/tmp/portage/media-libs/mesa-7.8.2/work/Mesa-7.8.2/src/gallium/drivers/nouveau'
x86_64-pc-linux-gnu-gcc -c -I. -I../../../../src/gallium/include -I../../../../src/gallium/auxiliary -I../../../../src/gallium/drivers  -march=native -O2 -pipe -ggdb -ffast-math -Wall -Wmissing-prototypes -std=c99 -ffast-math -fvisibility=hidden -fno-strict-aliasing  -fPIC  -DUSE_X86_64_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  nouveau_screen.c -o nouveau_screen.o
In file included from nouveau_screen.c:12:
nouveau_winsys.h:10:35: error: nouveau/nouveau_class.h: No such file or directory
gmake[4]: *** [nouveau_screen.o] Error 1
gmake[4]: Leaving directory `/var/tmp/portage/media-libs/mesa-7.8.2/work/Mesa-7.8.2/src/gallium/drivers/nouveau'
gmake[3]: *** [default] Error 1
gmake[3]: Leaving directory `/var/tmp/portage/media-libs/mesa-7.8.2/work/Mesa-7.8.2/src/gallium/drivers'
gmake[2]: *** [default] Error 1
gmake[2]: Leaving directory `/var/tmp/portage/media-libs/mesa-7.8.2/work/Mesa-7.8.2/src/gallium'
make[1]: *** [subdirs] Error 1
make[1]: Leaving directory `/var/tmp/portage/media-libs/mesa-7.8.2/work/Mesa-7.8.2/src'
make: *** [default] Error 1


but there's no nouveau_class.h - a quick google suggests that it was part of libdrm and it got dropped

using libdrm-2.4.20-r1, the compilation goes fine

so that mesa-7.8.2 should use versioned dependency to disallow newer libdrm

mesa-7.9 from x11 overlay (see also bug #341097) seems to work for me with newer libdrm ... well, except that eselect mesa doesn't list nvidia :)
Comment 1 Jeroen Roovers (RETIRED) gentoo-dev 2010-10-20 16:26:58 UTC
Please post your `emerge --info' in a comment, and attach the full build log.
Comment 2 kavol 2010-10-21 09:38:36 UTC
(In reply to comment #1)
> Please post your `emerge --info' in a comment, and attach the full build log.
> 

Portage 2.1.8.3 (default/linux/amd64/10.0/no-multilib, gcc-4.4.4, glibc-2.11.2-r0, 2.6.35-gentoo-r4 x86_64)
=================================================================
System uname: Linux-2.6.35-gentoo-r4-x86_64-Intel-R-_Core-TM-_i5_CPU_750_@_2.67GHz-with-gentoo-1.12.13
Timestamp of tree: Wed, 20 Oct 2010 08:00:01 +0000
app-shells/bash:     4.1_p7
dev-lang/python:     2.6.5-r3, 3.1.2-r4
dev-util/cmake:      2.8.1-r2
sys-apps/baselayout: 1.12.13
sys-apps/sandbox:    2.3-r1
sys-devel/autoconf:  2.13, 2.65-r1
sys-devel/automake:  1.8.5-r4, 1.9.6-r3, 1.11.1
sys-devel/binutils:  2.20.1-r1
sys-devel/gcc:       4.4.4-r2
sys-devel/gcc-config: 1.4.1
sys-devel/libtool:   2.2.10
sys-devel/make:      3.81-r2
virtual/os-headers:  2.6.30-r1
ACCEPT_KEYWORDS="amd64"
ACCEPT_LICENSE="* -@EULA AdobeFlash-10"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-march=native -O2 -pipe -ggdb"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/share/X11/xkb /usr/share/config"
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/env.d /etc/fonts/fonts.conf /etc/gconf /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 -O2 -pipe -ggdb"
DISTDIR="/usr/portage/distfiles"
FEATURES="assume-digests distlocks fixpackages news parallel-fetch protect-owned sandbox sfperms splitdebug strict unmerge-logs unmerge-orphans userfetch"
GENTOO_MIRRORS="http://distfiles.gentoo.org"
LANG="cs_CZ.UTF-8"                                                                                                                                                                                   
LDFLAGS="-Wl,-O1 -Wl,--as-needed"                                                                                                                                                                    
LINGUAS="cs"                                                                                                                                                                                         
MAKEOPTS="-j5"                                                                                                                                                                                       
PKGDIR="/usr/portage/packages"                                                                                                                                                                       
PORTAGE_CONFIGROOT="/"                                                                                                                                                                               
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"
PORTDIR_OVERLAY="/var/lib/layman/x11"
SYNC="rsync://rsync.gentoo.org/gentoo-portage"
USE="X aac alsa amd64 berkdb bzip2 cracklib crypt cups cxx dbus dri dv encode exif ffmpeg flac fortran gallium gdbm gif iconv jingle jpeg jpeg2k kde kerberos kvm lzma mad mikmod mmx mng modules mp3 mp4 mudflap ncurses nls nptl nptlonly ogg opengl openmp pam pdf perl png pppd python qt3support qt4 readline scrobbler sdl spell sse sse2 ssl ssse3 svg symlink sysfs tiff truetype unicode usb vorbis x264 xcomposite xorg xv xvid zlib" 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" 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" 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="keyboard mouse evdev" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LINGUAS="cs" PHP_TARGETS="php-5.2" RUBY_TARGETS="ruby18" USERLAND="GNU" VIDEO_CARDS="nvidia nouveau" 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, FFLAGS, INSTALL_MASK, LC_ALL, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS
Comment 3 kavol 2010-10-21 09:41:51 UTC
Created attachment 251421 [details]
build.log for mesa-7.8.2
Comment 4 Chí-Thanh Christopher Nguyễn gentoo-dev 2010-10-24 11:43:19 UTC

*** This bug has been marked as a duplicate of bug 324539 ***