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

Bug 176631

Summary: media-libs/mesa-6.5.2-r1 fails to compile
Product: Gentoo Linux Reporter: Randall Wald <rdwald>
Component: Current packagesAssignee: Gentoo Linux bug wranglers <bug-wranglers>
Status: RESOLVED DUPLICATE    
Severity: normal    
Priority: High    
Version: 2006.1   
Hardware: All   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---
Attachments: Output of lspci -v
Output of zcat /proc/config.gz

Description Randall Wald 2007-04-30 22:43:26 UTC
I don't know why; hopefully someone else has better ideas. It may relate to my difficulties (so far, inability to) getting drm/dri working; there's no direct evidence for that, but it's a hunch. Here's the last bit of the compile log:
i686-pc-linux-gnu-gcc -c -I. -I../../../../../src/mesa/drivers/dri/common -Iserver -I../../../../../include -I../../../../../include/GL/internal -I../../../../../src/mesa -I../../../../../src/mesa/main -I../../../../../src/mesa/glapi -I../../../../../src/mesa/math -I../../../../../src/mesa/transform -I../../../../../src/mesa/shader -I../../../../../src/mesa/swrast -I../../../../../src/mesa/swrast_setup -I../../../../../src/egl/main -I../../../../../src/egl/drivers/dri `pkg-config --cflags libdrm`  -O2 -march=pentium4 -fno-strict-aliasing -fPIC -m32 -DGLX_USE_TLS -D_POSIX_SOURCE -D_POSIX_C_SOURCE=199309L -D_SVID_SOURCE -D_BSD_SOURCE -D_GNU_SOURCE -DPTHREADS -DUSE_EXTERNAL_DXTN_LIB=1 -DIN_DRI_DRIVER -DGLX_DIRECT_RENDERING -DGLX_INDIRECT_RENDERING -DHAVE_ALIAS -DHAVE_POSIX_MEMALIGN -DUSE_X86_ASM -DUSE_MMX_ASM -DUSE_3DNOW_ASM -DUSE_SSE_ASM  ../common/vblank.c -o ../common/vblank.o
../common/vblank.c: In function ‘driGetCurrentVBlank’:
../common/vblank.c:306: error: ‘DRM_VBLANK_SECONDARY’ undeclared (first use in this function)
../common/vblank.c:306: error: (Each undeclared identifier is reported only once
../common/vblank.c:306: error: for each function it appears in.)
../common/vblank.c: In function ‘driWaitForVBlank’:
../common/vblank.c:363: error: ‘DRM_VBLANK_SECONDARY’ undeclared (first use in this function)
make[6]: *** [../common/vblank.o] Error 1
make[6]: Leaving directory `/var/tmp/portage/media-libs/mesa-6.5.2-r1/work/Mesa-6.5.2/src/mesa/drivers/dri/i810'
make[5]: *** [subdirs] Error 1
make[5]: Leaving directory `/var/tmp/portage/media-libs/mesa-6.5.2-r1/work/Mesa-6.5.2/src/mesa/drivers/dri'
make[4]: *** [linux-solo] Error 2
make[4]: Leaving directory `/var/tmp/portage/media-libs/mesa-6.5.2-r1/work/Mesa-6.5.2/src/mesa'
make[3]: *** [default] Error 2
make[3]: Leaving directory `/var/tmp/portage/media-libs/mesa-6.5.2-r1/work/Mesa-6.5.2/src/mesa'
make[2]: *** [subdirs] Error 1
make[2]: Leaving directory `/var/tmp/portage/media-libs/mesa-6.5.2-r1/work/Mesa-6.5.2/src'
make[1]: *** [default] Error 1
make[1]: Leaving directory `/var/tmp/portage/media-libs/mesa-6.5.2-r1/work/Mesa-6.5.2'
make: *** [linux-dri-x86] Error 2

!!! ERROR: media-libs/mesa-6.5.2-r1 failed.
Call stack:
  ebuild.sh, line 1614:   Called dyn_compile
  ebuild.sh, line 971:   Called qa_call 'src_compile'
  environment, line 3370:   Called src_compile
  mesa-6.5.2-r1.ebuild, line 231:   Called die

!!! Build failed
!!! If you need support, post the topmost build error, and the call stack if relevant.
!!! A complete build log is located at '/var/tmp/portage/media-libs/mesa-6.5.2-r1/temp/build.log'.


And my emerge --info:
Portage 2.1.2.2 (default-linux/x86/2006.1/desktop, gcc-4.1.1, glibc-2.5-r0, 2.6.19-suspend2-r2 i686)
=================================================================
System uname: 2.6.19-suspend2-r2 i686 Intel(R) Celeron(R) M processor         1.40GHz
Gentoo Base System release 1.12.9
Timestamp of tree: Mon, 30 Apr 2007 19:50:01 +0000
dev-java/java-config: 1.3.7, 2.0.31-r5
dev-lang/python:     2.3.5-r3, 2.4.3-r4
dev-python/pycrypto: 2.0.1-r5
sys-apps/sandbox:    1.2.17
sys-devel/autoconf:  2.13, 2.61
sys-devel/automake:  1.4_p6, 1.5, 1.6.3, 1.7.9-r1, 1.8.5-r3, 1.9.6-r2, 1.10
sys-devel/binutils:  2.16.1-r3
sys-devel/gcc-config: 1.3.15-r1
sys-devel/libtool:   1.5.22
virtual/os-headers:  2.6.17-r2
ACCEPT_KEYWORDS="x86"
AUTOCLEAN="yes"
CBUILD="i686-pc-linux-gnu"
CFLAGS="-O2 -march=pentium4"
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"
CONFIG_PROTECT_MASK="/etc/env.d /etc/env.d/java/ /etc/gconf /etc/java-config/vms/ /etc/revdep-rebuild /etc
/splash /etc/terminfo /etc/texmf/web2c"
CXXFLAGS="-O2 -march=pentium4"
DISTDIR="/usr/portage/distfiles"
FEATURES="distlocks metadata-transfer sandbox sfperms strict"
GENTOO_MIRRORS="http://toughguy.caltech.edu/pub/gentoo/ http://gentoo.osuosl.org/ ftp://ftp.ucsb.edu/pub/m
irrors/linux/gentoo/ http://ftp.ucsb.edu/pub/mirrors/linux/gentoo/ http://gentoo.cites.uiuc.edu/pub/gentoo
/ ftp://gentoo.cites.uiuc.edu/pub/gentoo/"
LANG="en_US.UTF-8"
LINGUAS="en ja"
MAKEOPTS="-j2"
PKGDIR="/usr/portage/packages"
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --compress --force --whole-file --del
ete --delete-after --stats --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages --filte
r=H_**/files/digest-*"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
SYNC="rsync://rsync.us.gentoo.org/gentoo-portage"
USE="X aalib acpi aim alsa arts berkdb bitmap-fonts bzip2 cairo cdparanoia cdr cjk cli cracklib crypt cups
 dbus directfb dri dvd eds emboss encode esd exif fam firefox fortran gdbm gif glitz gpm gstreamer gtk gtk
2 hal iconv icq immqt ipv6 isdnlog jabber java jpeg ldap libg++ mad matroska matrox midi mikmod mp3 mpeg m
sn ncurses nls nptl nptlonly ogg opengl oscar oss pam pcre pdf perl png ppds pppd python qt3 qt4 quicktime
 readline real reflection samba sdl session spell spl ssl svg tcpd tiff truetype truetype-fonts type1-font
s unicode vorbis wifi win32codecs x86 xml xorg xv xvid yahoo zlib" ALSA_CARDS="hda-intel" ALSA_PCM_PLUGINS
="adpcm alaw asym copy dmix dshare dsnoop empty extplug file hooks iec958 ioplug ladspa lfloat linear mete
r mulaw multi null plug rate route share shm softvol" ELIBC="glibc" INPUT_DEVICES="kbd keyboard mouse syna
ptics evdev" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses 
text" LINGUAS="en ja" USERLAND="GNU" VIDEO_CARDS="i810 i915 vesa fbdev"
Unset:  CTARGET, EMERGE_DEFAULT_OPTS, INSTALL_MASK, LC_ALL, LDFLAGS, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FL
AGS, PORTAGE_RSYNC_EXTRA_OPTS, PORTDIR_OVERLAY
Comment 1 Randall Wald 2007-04-30 22:44:21 UTC
Created attachment 117790 [details]
Output of lspci -v

If there's a problem with dri, you'll probably want to know what my system looks like; here's some info.
Comment 2 Randall Wald 2007-04-30 22:45:23 UTC
Created attachment 117791 [details]
Output of zcat /proc/config.gz

And before someone begins making recommendations about which kernel modules to enable, here's the ones I've currently got.
Comment 3 Łukasz Damentko (RETIRED) gentoo-dev 2007-04-30 23:07:05 UTC

*** This bug has been marked as a duplicate of bug 166218 ***
Comment 4 Joshua Baergen (RETIRED) gentoo-dev 2007-04-30 23:21:17 UTC
*** Bug 176628 has been marked as a duplicate of this bug. ***