Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 263989 - media-libs/mesa-7.4_rc1 compilation fails cannot find drm.h
Summary: media-libs/mesa-7.4_rc1 compilation fails cannot find drm.h
Status: RESOLVED INVALID
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: New packages (show other bugs)
Hardware: x86 Linux
: High normal (vote)
Assignee: Gentoo X packagers
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2009-03-27 19:10 UTC by Maksim 'max_posedon' Melnikau
Modified: 2009-03-29 16:05 UTC (History)
1 user (show)

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


Attachments
mesa-7.4_rc1 build log (build.log,10.40 KB, text/plain)
2009-03-27 19:12 UTC, Maksim 'max_posedon' Melnikau
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Maksim 'max_posedon' Melnikau 2009-03-27 19:10:57 UTC
/usr/bin/makedepend -fdepend -I/usr/lib/gcc/i686-pc-linux-gnu/4.3.3/include -I/usr/lib/gcc/i686-pc-linux-gnu/4.3.3/include-fixed -I. -I../../../include -I../../../include/GL/internal -I../../../src/mesa -I../../../src/mesa/glapi    glcontextmodes.c clientattrib.c compsize.c eval.c glxcmds.c glxcurrent.c glxext.c glxextensions.c indirect.c indirect_init.c indirect_size.c indirect_window_pos.c indirect_texture_compression.c indirect_transpose_matrix.c indirect_vertex_array.c indirect_vertex_program.c pixel.c pixelstore.c render2.c renderpix.c single2.c singlepix.c vertarr.c xfont.c glx_pbuffer.c glx_query.c drisw_glx.c dri_common.c dri_glx.c XF86dri.c glxhash.c dri2_glx.c dri2.c \                                                         
                ../../../src/mesa/main/dispatch.c ../../../src/mesa/glapi/glapi.c ../../../src/mesa/glapi/glapi_getproc.c ../../../src/mesa/glapi/glthread.c ../../../src/mesa/x86/glapi_x86.S                                                          
/usr/bin/makedepend: warning:  dri2.c (reading /usr/include/xf86drm.h, line 40): cannot find include file "drm.h"           
        not in /usr/lib/gcc/i686-pc-linux-gnu/4.3.3/include/drm.h                                                           
        not in /usr/lib/gcc/i686-pc-linux-gnu/4.3.3/include-fixed/drm.h                                                     
        not in ./drm.h                                                                                                      
        not in ../../../include/drm.h                                                                                       
        not in ../../../include/GL/internal/drm.h                                                                           
        not in ../../../src/mesa/drm.h                                                                                      
        not in ../../../src/mesa/glapi/drm.h                                                                                
        not in /usr/include/drm.h   

Reproducible: Always

Steps to Reproduce:
1. emerge --sync
2. emerge mesa


Actual Results:  
compilation fails

Expected Results:  
compilation shouldn't fails

max_posedon armv4tl-softfloat-linux-gnueabi # emerge --info
 * Overlay eclasses override eclasses from PORTDIR:        
 *                                                         
 *   '/home/data/gentoo/openmoko-overlay/openmoko-target/eclass/enlightenment.eclass'
 *   '/home/data/gentoo/layman/ruby/eclass/gems.eclass'                              
 *   '/home/data/gentoo/openmoko-overlay/openmoko-target/eclass/gst-plugins-bad.eclass'
 *   '/home/data/gentoo/openmoko-overlay/openmoko-target/eclass/gst-plugins-base.eclass'
 *   '/home/data/gentoo/openmoko-overlay/openmoko-target/eclass/gst-plugins-good.eclass'
 *   '/home/data/gentoo/openmoko-overlay/openmoko-target/eclass/gst-plugins-ugly.eclass'
 *   '/home/data/gentoo/openmoko-overlay/openmoko-target/eclass/kernel-2.eclass'        
 *   '/home/data/gentoo/openmoko-overlay/openmoko-target/eclass/subversion.eclass'      
 *                                                                                      
 * It is best to avoid overriding eclasses from PORTDIR because it will                 
 * trigger invalidation of cached ebuild metadata that is distributed with              
 * the portage tree. If you must override eclasses from PORTDIR then you                
 * are advised to add FEATURES="metadata-transfer" to /etc/make.conf and to             
 * run `emerge --regen` after each time that you run `emerge --sync`. Set               
 * PORTAGE_ECLASS_WARNING_ENABLE="0" in /etc/make.conf if you would like to             
 * disable this warning.                                                                
Portage 2.1.6.10 (default/linux/x86/2008.0/desktop, gcc-4.3.3, glibc-2.9_p20081201-r2, 2.6.29 i686)
=================================================================                                  
System uname: Linux-2.6.29-i686-Genuine_Intel-R-_CPU_T2130_@_1.86GHz-with-glibc2.0                 
Timestamp of tree: Fri, 27 Mar 2009 18:00:01 +0000                                                 
app-shells/bash:     3.2_p48-r1                                                                    
dev-java/java-config: 1.3.7-r1, 2.1.7                                                              
dev-lang/python:     2.5.2-r8                                                                      
dev-python/pycrypto: 2.0.1-r7                                                                      
dev-util/cmake:      2.6.3                                                                         
sys-apps/baselayout: 2.0.0                                                                         
sys-apps/openrc:     0.4.3-r1                                                                      
sys-apps/sandbox:    1.5                                                                           
sys-devel/autoconf:  2.13, 2.63                                                                    
sys-devel/automake:  1.5, 1.7.9-r1, 1.8.5-r3, 1.9.6-r2, 1.10.2                                     
sys-devel/binutils:  2.19.1-r1                                                                     
sys-devel/gcc-config: 1.4.1                                                                        
sys-devel/libtool:   2.2.6a                                                                        
virtual/os-headers:  2.6.28-r1                                                                     
ACCEPT_KEYWORDS="x86 ~x86"                                                                         
CBUILD="i686-pc-linux-gnu"                                                                         
CFLAGS="-O2 -march=native"                                                                         
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/config"
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 /etc/udev/rules.d"                                                                                        
CXXFLAGS="-O2 -march=native"                                                                                                
DISTDIR="/home/data/gentoo/distfiles"                                                                                       
FEATURES="distlocks fixpackages parallel-fetch protect-owned sandbox sfperms strict unmerge-orphans userfetch"
GENTOO_MIRRORS="http://distfiles.gentoo.org http://distro.ibiblio.org/pub/linux/distributions/gentoo"
LANG="en_US.UTF-8"
LDFLAGS="-Wl,-O1"
LINGUAS="en ru be_BY"
MAKEOPTS="-j2"
PKGDIR="/home/data/gentoo/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="/home/data/gentoo/tmp"
PORTDIR="/home/data/gentoo/portage"
PORTDIR_OVERLAY="/home/data/gentoo/openmoko-overlay/openmoko-target /home/data/gentoo/layman/ruby /home/data/gentoo/layman/kde-testing /home/data/gentoo/layman/alexxy /home/data/gentoo/overlay"
SYNC="rsync://rsync.gentoo.org/gentoo-portage"
USE="X a52 aac aalib acl acpi alsa amr amrnb amrwb ao audiofile berkdb bluetooth branding bzip2 cairo cddb cdr chm cli cracklib crypt css cups dbus device-mapper djvu doc dri dvd dvdr dvdread eds emacs emboss emovix encode evo fam firefox flac ftpgdbm gif git gps gstreamer hal iconv imagemagick isdnlog jabber jpeg jpeg2k kde kdeenablefinal kdehiddenvisibility kerberoslaptop ldap libcaca libnotify lm_sensors mad midi mikmod mmap mmx mng mp3 mpeg mplayer mudflap musicbrainz ncurses networkmanager nls nptl nptlonly nsplugin ogg opengl openmp pam pcre pdf plasma png postgres ppds pppd qt3 qt3support qt4 quicktime readline reflection rss rtc ruby samba sasl sdl semantic-desktop session slang sndfile spell spl sqlite3 sse sse2 ssl startup-notification subversion svg sysfs tcpd theora threads tiff truetype unicode usb vim-pager vim-syntax vorbis win32codecs x264 x86 xattr xcb xine xinerama xml xorg xulrunner xv xvid xvmc zeroconf zlib zsh-completion" ALSA_CARDS="hda-intel usb-audio" 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" CAMERAS="*" ELIBC="glibc" INPUT_DEVICES="evdev keyboard mouse synaptics" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LINGUAS="en ru be_BY" USERLAND="GNU" VIDEO_CARDS="intel"
Unset:  CPPFLAGS, CTARGET, EMERGE_DEFAULT_OPTS, FFLAGS, INSTALL_MASK, LC_ALL, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS
Comment 1 Maksim 'max_posedon' Melnikau 2009-03-27 19:12:10 UTC
Created attachment 186468 [details]
mesa-7.4_rc1 build log
Comment 2 Rémi Cardona (RETIRED) gentoo-dev 2009-03-27 21:18:34 UTC
Which version of libdrm are you using?

Thanks
Comment 3 Maksim 'max_posedon' Melnikau 2009-03-27 22:48:39 UTC
(In reply to comment #2)
> Which version of libdrm are you using?
x11-libs/libdrm-2.4.5
Comment 4 Rémi Cardona (RETIRED) gentoo-dev 2009-03-28 07:41:10 UTC
Right, you seem to be missing "-I/usr/include/drm" in that very first "makedepend".

Please paste the output of the following :

 - pkg-config --debug 2>&1 | grep drm
 - cat /usr/lib/pkgconfig/libdrm.pc

Thanks
Comment 5 Maksim 'max_posedon' Melnikau 2009-03-28 21:15:54 UTC
max_posedon max_posedon # pkg-config --debug 2>&1 | grep drm
File 'libdrm_intel.pc' appears to be a .pc file
Will find package 'libdrm_intel' in file '/usr/lib/pkgconfig/libdrm_intel.pc'
File 'libdrm.pc' appears to be a .pc file
Will find package 'libdrm' in file '/usr/lib/pkgconfig/libdrm.pc'

max_posedon max_posedon # cat /usr/lib/pkgconfig/libdrm.pc
prefix=/usr
exec_prefix=${prefix}
libdir=${exec_prefix}/lib
includedir=${prefix}/include

Name: libdrm
Description: Userspace interface to kernel DRM services
Version: 2.4.5
Libs: -L${libdir} -ldrm
Cflags: -I${includedir} -I${includedir}/drm
Comment 6 Maksim 'max_posedon' Melnikau 2009-03-28 21:16:26 UTC
max_posedon max_posedon # cat /usr/lib/pkgconfig/libdrm_intel.pc
prefix=/usr
exec_prefix=${prefix}
libdir=${exec_prefix}/lib
includedir=${prefix}/include

Name: libdrm
Description: Userspace interface to kernel DRM services
Version: 2.4.5
Libs: -L${libdir} -ldrm -ldrm_intel
Cflags: -I${includedir} -I${includedir}/drm
Comment 7 Maksim 'max_posedon' Melnikau 2009-03-29 14:24:51 UTC
Remi, thanks for your questions, it helped me find a problem.

During playing with cross-compilation I somehow create symlink
i686-pc-linux-gnu-pkg-config -> cross-pkg-config
and that is a reason, why mesa compilation was broken (same as many others packages).

So it was my mistake.
Comment 8 Rémi Cardona (RETIRED) gentoo-dev 2009-03-29 16:05:33 UTC
Ahhhh, well that's a pretty good explanation as I was running out of ideas :)

Thanks a lot for letting me know you've solved this.

Cheers