Is this a problem? # CFLAGS="-O0 -ggdb -DDEBUG -DNDEBUG" CXXFLAGS="-O0 -ggdb -DDEBUG -DNDEBUG" USE=debug FEATURES="nostrip debug" emerge media-libs/mesa [cut] gmake[5]: Entering directory `/var/tmp/portage/media-libs/mesa-7.2/work/Mesa-7.2/src/mesa/drivers/dri/r300' mkdir -p server touch depend /usr/bin/makedepend -fdepend -I/usr/lib/gcc/i686-pc-linux-gnu/4.3.2/include -DCOMPILE_R300 -DR200_MERGED=0 -DRADEON_COMMON=1 -DRADEON_COMMON_FOR_R300 -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/egl/main -I../../../../../src/egl/drivers/dri -I/usr/include/drm ../common/utils.c ../common/texmem.c ../common/vblank.c ../common/dri_util.c ../common/xmlconfig.c ../common/drirenderbuffer.c radeon_screen.c radeon_context.c radeon_ioctl.c radeon_lock.c radeon_span.c radeon_state.c r300_mem.c r300_context.c r300_ioctl.c r300_cmdbuf.c r300_state.c r300_render.c r300_texmem.c r300_tex.c r300_texstate.c radeon_program.c radeon_program_alu.c radeon_program_pair.c radeon_nqssadce.c r300_vertprog.c r300_fragprog.c r300_fragprog_swizzle.c r300_fragprog_emit.c r500_fragprog.c r500_fragprog_emit.c r300_shader.c r300_emit.c r300_swtcl.c \ /usr/bin/makedepend: warning: ../common/utils.c (reading /usr/include/limits.h, line 125): cannot find include file "limits.h" /usr/bin/makedepend: warning: radeon_screen.c, line 46: cannot find include file "radeon_chipset.h" not in radeon_chipset.h not in radeon_chipset.h not in /usr/lib/gcc/i686-pc-linux-gnu/4.3.2/include/radeon_chipset.h not in ./radeon_chipset.h not in ../../../../../src/mesa/drivers/dri/common/radeon_chipset.h not in server/radeon_chipset.h not in ../../../../../include/radeon_chipset.h not in ../../../../../include/GL/internal/radeon_chipset.h not in ../../../../../src/mesa/radeon_chipset.h not in ../../../../../src/mesa/main/radeon_chipset.h not in ../../../../../src/mesa/glapi/radeon_chipset.h not in ../../../../../src/egl/main/radeon_chipset.h not in ../../../../../src/egl/drivers/dri/radeon_chipset.h not in /usr/include/drm/radeon_chipset.h not in /usr/include/radeon_chipset.h /usr/bin/makedepend: warning: radeon_screen.c, line 48: cannot find include file "radeon_screen.h" not in radeon_screen.h not in radeon_screen.h not in /usr/lib/gcc/i686-pc-linux-gnu/4.3.2/include/radeon_screen.h not in ./radeon_screen.h not in ../../../../../src/mesa/drivers/dri/common/radeon_screen.h not in server/radeon_screen.h not in ../../../../../include/radeon_screen.h not in ../../../../../include/GL/internal/radeon_screen.h not in ../../../../../src/mesa/radeon_screen.h not in ../../../../../src/mesa/main/radeon_screen.h not in ../../../../../src/mesa/glapi/radeon_screen.h not in ../../../../../src/egl/main/radeon_screen.h not in ../../../../../src/egl/drivers/dri/radeon_screen.h not in /usr/include/drm/radeon_screen.h not in /usr/include/radeon_screen.h /usr/bin/makedepend: warning: radeon_screen.c (reading radeon_context.h, line 47): cannot find include file "radeon_screen.h" not in radeon_screen.h not in radeon_screen.h not in /usr/lib/gcc/i686-pc-linux-gnu/4.3.2/include/radeon_screen.h not in ./radeon_screen.h not in ../../../../../src/mesa/drivers/dri/common/radeon_screen.h not in server/radeon_screen.h not in ../../../../../include/radeon_screen.h not in ../../../../../include/GL/internal/radeon_screen.h not in ../../../../../src/mesa/radeon_screen.h not in ../../../../../src/mesa/main/radeon_screen.h not in ../../../../../src/mesa/glapi/radeon_screen.h not in ../../../../../src/egl/main/radeon_screen.h not in ../../../../../src/egl/drivers/dri/radeon_screen.h not in /usr/include/drm/radeon_screen.h not in /usr/include/radeon_screen.h /usr/bin/makedepend: warning: radeon_screen.c, line 62: cannot find include file "radeon_span.h" not in radeon_span.h not in radeon_span.h not in /usr/lib/gcc/i686-pc-linux-gnu/4.3.2/include/radeon_span.h not in ./radeon_span.h not in ../../../../../src/mesa/drivers/dri/common/radeon_span.h not in server/radeon_span.h not in ../../../../../include/radeon_span.h not in ../../../../../include/GL/internal/radeon_span.h not in ../../../../../src/mesa/radeon_span.h not in ../../../../../src/mesa/main/radeon_span.h not in ../../../../../src/mesa/glapi/radeon_span.h not in ../../../../../src/egl/main/radeon_span.h not in ../../../../../src/egl/drivers/dri/radeon_span.h not in /usr/include/drm/radeon_span.h not in /usr/include/radeon_span.h /usr/bin/makedepend: warning: radeon_context.c, line 49: cannot find include file "radeon_screen.h" not in radeon_screen.h not in radeon_screen.h not in /usr/lib/gcc/i686-pc-linux-gnu/4.3.2/include/radeon_screen.h not in ./radeon_screen.h not in ../../../../../src/mesa/drivers/dri/common/radeon_screen.h not in server/radeon_screen.h not in ../../../../../include/radeon_screen.h not in ../../../../../include/GL/internal/radeon_screen.h not in ../../../../../src/mesa/radeon_screen.h not in ../../../../../src/mesa/main/radeon_screen.h not in ../../../../../src/mesa/glapi/radeon_screen.h not in ../../../../../src/egl/main/radeon_screen.h not in ../../../../../src/egl/drivers/dri/radeon_screen.h not in /usr/include/drm/radeon_screen.h not in /usr/include/radeon_screen.h /usr/bin/makedepend: warning: radeon_span.c, line 49: cannot find include file "radeon_span.h" not in radeon_span.h not in radeon_span.h not in /usr/lib/gcc/i686-pc-linux-gnu/4.3.2/include/radeon_span.h not in ./radeon_span.h not in ../../../../../src/mesa/drivers/dri/common/radeon_span.h not in server/radeon_span.h not in ../../../../../include/radeon_span.h not in ../../../../../include/GL/internal/radeon_span.h not in ../../../../../src/mesa/radeon_span.h not in ../../../../../src/mesa/main/radeon_span.h not in ../../../../../src/mesa/glapi/radeon_span.h not in ../../../../../src/egl/main/radeon_span.h not in ../../../../../src/egl/drivers/dri/radeon_span.h not in /usr/include/drm/radeon_span.h not in /usr/include/radeon_span.h /usr/bin/makedepend: warning: r300_context.c, line 59: cannot find include file "radeon_span.h" not in radeon_span.h not in radeon_span.h not in /usr/lib/gcc/i686-pc-linux-gnu/4.3.2/include/radeon_span.h not in ./radeon_span.h not in ../../../../../src/mesa/drivers/dri/common/radeon_span.h not in server/radeon_span.h not in ../../../../../include/radeon_span.h not in ../../../../../include/GL/internal/radeon_span.h not in ../../../../../src/mesa/radeon_span.h not in ../../../../../src/mesa/main/radeon_span.h not in ../../../../../src/mesa/glapi/radeon_span.h not in ../../../../../src/egl/main/radeon_span.h not in ../../../../../src/egl/drivers/dri/radeon_span.h not in /usr/include/drm/radeon_span.h not in /usr/include/radeon_span.h gmake[5]: Leaving directory `/var/tmp/portage/media-libs/mesa-7.2/work/Mesa-7.2/src/mesa/drivers/dri/r300'
Portage 2.1.6.7 (default/linux/x86/2008.0/desktop, gcc-4.3.2, glibc-2.9_p20081201-r1, 2.6.29-rc2-git1 i686) ================================================================= System uname: Linux-2.6.29-rc2-git1-i686-Mobile_Intel-R-_Pentium-R-_4_-_M_CPU_1.80GHz-with-glibc2.0 Timestamp of tree: Mon, 26 Jan 2009 14:45:01 +0000 distcc 3.1 i686-pc-linux-gnu [disabled] app-shells/bash: 3.2_p48 dev-java/java-config: 1.3.7-r1, 2.1.6-r1 dev-lang/python: 2.5.2-r8 dev-python/pycrypto: 2.0.1-r6 dev-util/cmake: 2.6.2 sys-apps/baselayout: 2.0.0 sys-apps/openrc: 0.4.2 sys-apps/sandbox: 1.3.2 sys-devel/autoconf: 2.13, 2.63 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.2 sys-devel/binutils: 2.19 sys-devel/gcc-config: 1.4.0-r4 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=pentium4 -mmmx -msse -msse2 -pipe" CHOST="i686-pc-linux-gnu" CONFIG_PROTECT="/etc /var/bind /var/qmail/alias /var/qmail/control /var/spool/torque /var/vpopmail/etc" 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/web2c /etc/udev/rules.d" CXXFLAGS="-O2 -march=pentium4 -mmmx -msse -msse2 -pipe" DISTDIR="/usr/portage/distfiles" FEATURES="distlocks fixpackages metadata-transfer parallel-fetch protect-owned sandbox sfperms splitdebug strict unmerge-orphans userfetch" GENTOO_MIRRORS="http://gentoo.mirror.web4u.cz" LDFLAGS="-Wl,-O1" LINGUAS="en cs cz" PKGDIR="/usr/portage/packages" 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="/usr/local/portage/layman/sunrise /usr/local/portage/layman/java-overlay /usr/local/portage/layman/science /usr/local/portage /usr/local/java-experimental /usr/local/portage/layman/java-overlay" SYNC="rsync://rsync.europe.gentoo.org/gentoo-portage" USE="7zip R X Xaw3d a52 aac aalib ace acl acpi alsa amr amrnb amrwb apache2 audacious audiofile bash-completion bcmath berkdb blas bluetooth boost branding bzip2 cairo cblas cddb cdparanoia cdr clamav cli colordiff compress cpio cracklib crypt cscope css ctype cups curl curlwrappers cxx dbus dga dia directfb djbfft dri dts dv dvb dvd dvdr dvdread eds emacs emboss emf enblend encode enscript exif expat fam fame fat fbcon ffmpeg fftw firefox flac flash foomaticdb fortran fpx ftp gcj gd gdbm ggi gif gimp gimpprint glibc-compat20 glibc-omitfp glitz glut gmp gnuplot gnutls gpgme gphoto2 gpm graphviz gs gsl gstreamer gtk gtkhtml hal hdf hdf5 hp2xx i8x0 icc iconv icu id3 ieee1394 ifc imagemagick imlib inifile innodb isdnlog ithreads jack java javascript jbig jce jikes jpeg jpeg2k kdtree kerberos lame lapack laptop lcms leim libcaca libedit libnotify libwww live lzo lzw mad maildir matroska mhash midi mikmod mime ming mjpeg mmap mmx mng mod_python modperl modplug motif mozilla moznoirc mp2 mp3 mp4 mpeg mpi mpi_njtree mpich2 mplayer mudflap mule musepack mxdatetime mysql mysqli ncurses netcdf netpbm network nls nntp nptl nptlonly nsplugin ntfs numeric ogg opengl openmp pam pango pcmcia pcntl pcre pdf perl plotutils plugin png pnm postproc postscript ppds pppd procmail pymol python qt3 qt3support qt4 quicktime rar raw readline recode reflection reiserfs rpm samba sasl scanner scp seamonkey server session sftp sift slp smime sndfile soap sockets spell spl sqlite srt sse sse2 ssl startup-notification subtitles subversion svg svgz sysfs sysvipc t1lib tcl tcpd tetex theora threads tidy tiff tk transcode truetype unicode urandom usb userlocales uuencode v4l v4l2 vcd vhook vim-syntax vim-with-x vorbis wifi win32codecs wmf wxwindows x264 x86 xanim xcf xfs xft xinerama xinetd xml xorg xpm xprint xsl xslt xulrunner xv xvid xvmc yv12 zip zlib" ALSA_CARDS="intel-8x0m" 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 auth_digest authn_anon authn_dbd authn_dbm authn_default authn_file authz_dbm authz_default authz_groupfile authz_host authz_owner authz_user autoindex cache dbd deflate dir disk_cache env expires ext_filter file_cache filter headers ident imagemap include info log_config mem_cache mime mime_magic rewrite setenvif speling status unique_id userdir usertrack vhost_alias negotiation" ELIBC="glibc" INPUT_DEVICES="keyboard mouse evdev" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LINGUAS="en cs cz" USERLAND="GNU" VIDEO_CARDS="radeon vesa" Unset: CPPFLAGS, CTARGET, EMERGE_DEFAULT_OPTS, FFLAGS, INSTALL_MASK, LANG, LC_ALL, MAKEOPTS, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS
To make it clearer what configure flags kicked in: >>> Compiling source in /var/tmp/portage/media-libs/mesa-7.2/work/Mesa-7.2 ... * econf: updating Mesa-7.2/bin/config.guess with /usr/share/gnuconfig/config.guess * econf: updating Mesa-7.2/bin/config.sub with /usr/share/gnuconfig/config.sub ./configure --prefix=/usr --host=i686-pc-linux-gnu --mandir=/usr/share/man --infodir=/usr/share/info --datadir=/usr/share --sysconfdir=/etc --localstatedir=/var/lib --with-driver=dri --disable-ttm-api --disable-glx-tls --with-dri-drivers=,swrast,radeon,r200,r300 --enable-asm --enable-asm --disable-glut --without-demos --disable-xcb --enable-debug --enable-glw --enable-motif --build=i686-pc-linux-gnu
(In reply to comment #0) > Is this a problem? If it builds correctly, then no. If not, please provide the full build.log as suggested by emerge. Thanks
Filed under https://bugs.freedesktop.org/show_bug.cgi?id=19827
Please re-assign to toolchain. There is no limits.h in the directory listed below. $ ls -la /usr/lib/gcc/i686-pc-linux-gnu/4.3.2/include total 480 drwxr-xr-x 4 root root 4096 Jan 23 06:08 . drwxr-xr-x 6 root root 4096 Jan 23 06:08 .. -rw-r--r-- 1 root root 3227 Jan 23 03:58 ammintrin.h -rw-r--r-- 1 root root 43531 Jan 23 03:58 bmmintrin.h -rw-r--r-- 1 root root 5139 Jan 23 03:58 cpuid.h -rw-r--r-- 1 root root 16724 Jan 23 05:59 cxxabi.h -rw-r--r-- 1 root root 50071 Jan 23 03:58 emmintrin.h -rw-r--r-- 1 root root 10746 Jan 23 05:59 ffi.h -rw-r--r-- 1 root root 2798 Jan 23 05:59 ffitarget.h -rw-r--r-- 1 root root 7916 Jan 23 03:58 float.h drwxr-xr-x 16 root root 4096 Jan 23 06:08 g++-v4 drwxr-xr-x 2 root root 4096 Jan 23 06:08 gcj -rw-r--r-- 1 root root 1432 Jan 23 03:58 iso646.h -rw-r--r-- 1 root root 3516 Jan 23 05:59 jawt.h -rw-r--r-- 1 root root 2349 Jan 23 05:59 jawt_md.h -rw-r--r-- 1 root root 64272 Jan 23 05:59 jni.h -rw-r--r-- 1 root root 4584 Jan 23 05:59 jni_md.h -rw-r--r-- 1 root root 6870 Jan 23 05:59 jvmpi.h -rw-r--r-- 1 root root 10439 Jan 23 05:59 mf-runtime.h -rw-r--r-- 1 root root 6891 Jan 23 03:58 mm3dnow.h -rw-r--r-- 1 root root 1907 Jan 23 03:58 mm_malloc.h -rw-r--r-- 1 root root 5532 Jan 23 03:58 mmintrin-common.h -rw-r--r-- 1 root root 30701 Jan 23 03:58 mmintrin.h -rw-r--r-- 1 root root 1523 Jan 23 03:58 nmmintrin.h -rw-r--r-- 1 root root 3219 Jan 23 06:07 omp.h -rw-r--r-- 1 root root 4407 Jan 23 03:58 pmmintrin.h -rw-r--r-- 1 root root 24173 Jan 23 03:58 smmintrin.h -rw-r--r-- 1 root root 4317 Jan 23 03:58 stdarg.h -rw-r--r-- 1 root root 1604 Jan 23 03:58 stdbool.h -rw-r--r-- 1 root root 12695 Jan 23 03:58 stddef.h -rw-r--r-- 1 root root 6154 Jan 23 03:58 stdfix.h -rw-r--r-- 1 root root 8366 Jan 23 03:58 tmmintrin.h -rw-r--r-- 1 root root 10384 Jan 23 03:58 unwind.h -rw-r--r-- 1 root root 139 Jan 23 03:58 varargs.h -rw-r--r-- 1 root root 41838 Jan 23 03:58 xmmintrin.h $
OK, not a toolchain issue. A patch for Mesa is here: http://bugs.freedesktop.org/show_bug.cgi?id=19827#c12 . The patch will be improved in a moment.
I'd suggest a backport of this patch for mesa-7.0. Because of http://bugs.gentoo.org/show_bug.cgi?id=237468 people with intel graphics are required to use mesa 7.0 for the time being. Hence I hit this bug since I'm using gcc-4.3.2.
I just found that using libdrm-2.3.0 resolved this issue for mesa 7.0. Pardon the stirrup :)
The linked patch is in the 7.4 branch and should be in mesa-7.3-r1 Thanks