dmz ~ # emerge -pvuD world These are the packages that I would merge, in order: Calculating world dependencies ...done! [ebuild U ] dev-libs/DirectFB-0.9.21 [0.9.20-r1] -debug +fbcon -fusion +gif +jpeg +mmx -mpeg +png -sdl +sse -static +truetype 0 kB sis315.c: In function `driver_init_driver': sis315.c:227: error: parse error before '[' token make[3]: *** [sis315.lo] Error 1 make[3]: *** Waiting for unfinished jobs.... make[3]: Leaving directory `/var/tmp/portage/DirectFB-0.9.21/work/DirectFB-0.9.21/gfxdrivers/sis315' make[2]: *** [all-recursive] Error 1 make[2]: Leaving directory `/var/tmp/portage/DirectFB-0.9.21/work/DirectFB-0.9.21/gfxdrivers' make[1]: *** [all-recursive] Error 1 make[1]: Leaving directory `/var/tmp/portage/DirectFB-0.9.21/work/DirectFB-0.9.21' make: *** [all-recursive-am] Error 2 !!! ERROR: dev-libs/DirectFB-0.9.21 failed. !!! Function src_compile, Line 87, Exitcode 2 !!! (no error message) !!! If you need support, post the topmost build error, NOT this status message. Env. Info: dmz ~ # emerge info Portage 2.0.51-r8 (default-linux/x86/2004.3, gcc-3.4.3, glibc-2.3.4.20041102-r0, 2.6.10-gentoo-r1 i686) ================================================================= System uname: 2.6.10-gentoo-r1 i686 AMD Athlon(tm) XP 2000+ Gentoo Base System version 1.6.8 Python: dev-lang/python-2.3.4 [2.3.4 (#1, Dec 19 2004, 05:38:25)] ccache version 2.3 [enabled] dev-lang/python: 2.3.4 sys-devel/autoconf: 2.59-r6, 2.13 sys-devel/automake: 1.8.5-r2, 1.5, 1.4_p6, 1.6.3, 1.7.9, 1.9.3 sys-devel/binutils: 2.15.92.0.2-r2 sys-devel/libtool: 1.5.10-r2 virtual/os-headers: 2.6.8.1-r2 ACCEPT_KEYWORDS="x86 ~x86" AUTOCLEAN="yes" CFLAGS="-march=athlon-xp -m3dnow -msse -mfpmath=sse -mmmx -O3 -pipe -fforce-addr -fomit-frame-pointer -funroll-loops -frerun-cse-after-loop -frerun-loop-opt -falign-functions=4 -maccumulate-outgoing-args -ffast-math -fprefetch-loop-arrays -fstack-protector" CHOST="i686-pc-linux-gnu" CONFIG_PROTECT="/etc /usr/kde/2/share/config /usr/kde/3/share/config /usr/share/config /var/bind /var/qmail/alias /var/qmail/control /var/vpopmail/domains /var/vpopmail/etc" CONFIG_PROTECT_MASK="/etc/gconf /etc/terminfo /etc/env.d" CXXFLAGS="-march=athlon-xp -m3dnow -msse -mfpmath=sse -mmmx -O3 -pipe -fforce-addr -fomit-frame-pointer -funroll-loops -frerun-cse-after-loop -frerun-loop-opt -falign-functions=4 -maccumulate-outgoing-args -ffast-math -fprefetch-loop-arrays -fstack-protector" DISTDIR="/usr/portage/distfiles" FEATURES="autoaddcvs autoconfig buildpkg ccache distlocks sandbox sfperms" GENTOO_MIRRORS="http://gentoo.itdnet.net/gentoo/ http://gentoo.inode.at/ http://linux.rz.ruhr-uni-bochum.de/download/gentoo-mirror/ rsync://mirrors.sec.informatik.tu-darmstadt.de/gentoo" LDFLAGS="" MAKEOPTS="-j2" PKGDIR="/usr/portage/packages" PORTAGE_TMPDIR="/var/tmp" PORTDIR="/usr/portage" PORTDIR_OVERLAY="" SYNC="rsync://gentoo.itdnet.net/gentoo-portage" USE="x86 3dnow X509 aalib acl acpi apache2 apm authdaemond bcmath berkdb bitmap-fonts bzlib calendar cdb chroot clamav crypt curl curlwrappers dba dbx directfb erandom exif extensions fbcon flatfile freetds ftp gd gd-external gdbm gif gmp hardened hub iconv icq idea imap innodb ipalias ithreads javascript jpeg justify lcms ldap libclamav libwww lzw lzw-tiff maildir mcal memlimit mhash mime mmx motif mssql mysql ncurses nls no-old-linux nocardbus nomultilib nptl nptlonly oav odbc pam pcntl pcre pdflib perl php pic png posix prelude pwdb python qmail quotas readline samba sasl session sftplogging shared sharedmem skey slang sockets socks5 spamassassin spell sse ssl tcpd threads tiff tokenizer truetype unicode wmf xml xml2 zeo zlib" Reproducible: Always Steps to Reproduce: 1. emerge -u DirectFB 2. 3.
try it with CFLAGS="-pipe" CXXFLAGS="-pipe" Might also try it with gcc-3.3 reopen after trying these things, thanks. builds fine for me.
I tried compiling on a fresh install and had the same errors sis315.c: In function `driver_init_driver': sis315.c:227: error: parse error before '[' token make[3]: *** [sis315.lo] Error 1 make[3]: *** Waiting for unfinished jobs.... i686-pc-linux-gnu-gcc -DHAVE_CONFIG_H -I. -I. -I../.. -I../../include -I../../lib -I../../lib -I../../src -I../../systems -D_REENTRANT -I/usr/include/libmpeg3 -Wall -O3 -ffast-math -pipe -pipe -D_GNU_SOURCE -Werror-implicit-function-declaration -c sis315_mmio.c -fPIC -DPIC -o .libs/sis315_mmio.o make[3]: Leaving directory `/var/tmp/portage/DirectFB-0.9.21/work/DirectFB-0.9.21/gfxdrivers/sis315' make[2]: *** [all-recursive] Error 1 make[2]: Leaving directory `/var/tmp/portage/DirectFB-0.9.21/work/DirectFB-0.9.21/gfxdrivers' make[1]: *** [all-recursive] Error 1 make[1]: Leaving directory `/var/tmp/portage/DirectFB-0.9.21/work/DirectFB-0.9.21' make: *** [all-recursive-am] Error 2 !!! ERROR: dev-libs/DirectFB-0.9.21 failed. !!! Function src_compile, Line 87, Exitcode 2 !!! (no error message) !!! If you need support, post the topmost build error, NOT this status message. I tried converting to gcc 3.3.4, and i tried using the -pipe only but none of those fixed the problem kieran ~ # emerge info Portage 2.0.51-r14 (default-linux/x86/2004.3, gcc-3.4.3-20050110, glibc-2.3.4.20050125-r0, 2.6.10-gentoo-r7 i686) ================================================================= System uname: 2.6.10-gentoo-r7 i686 Mobile Intel(R) Pentium(R) 4 CPU 2.80GHz Gentoo Base System version 1.6.9 Python: dev-lang/python-2.3.4-r1 [2.3.4 (#1, Feb 15 2005, 23:17:48)] dev-lang/python: 2.3.4-r1 sys-devel/autoconf: 2.59-r6, 2.13 sys-devel/automake: 1.7.9-r1, 1.8.5-r3, 1.5, 1.4_p6, 1.6.3, 1.9.4 sys-devel/binutils: 2.15.92.0.2-r2 sys-devel/libtool: 1.5.10-r4 virtual/os-headers: 2.6.8.1-r2 ACCEPT_KEYWORDS="x86 ~x86" AUTOCLEAN="yes" CFLAGS="-march=pentium4 -O3 -pipe" CHOST="i686-pc-linux-gnu" CONFIG_PROTECT="/etc /usr/kde/2/share/config /usr/kde/3.3/env /usr/kde/3.3/share/config /usr/kde/3.3/shutdown /usr/kde/3/share/config /usr/lib/X11/xkb /usr/share/config /var/qmail/control" CONFIG_PROTECT_MASK="/etc/gconf /etc/terminfo /etc/env.d" CXXFLAGS="-march=pentium4 -O3 -pipe" DISTDIR="/usr/portage/distfiles" FEATURES="autoaddcvs autoconfig ccache distlocks sandbox sfperms" GENTOO_MIRRORS="http://mirrors.acm.cs.rpi.edu/gentoo/" MAKEOPTS="-j2" PKGDIR="/usr/portage/packages" PORTAGE_TMPDIR="/var/tmp" PORTDIR="/usr/portage" SYNC="rsync://rsync.gentoo.org/gentoo-portage" USE="x86 X a52 aac aalib acl acpi aim alsa apm arts audiofile avi berkdb bitmap-fonts bluetooth bonobo bzlib caps cdparanoia cdr crypt cups curl dga dio directfb divx4linux dvd dvdread encode esd evo exif f77 fam fbcon fdftk ffmpeg flac font-server foomaticdb fortran ftp gd gdbm gif glut gnome gpm gtk gtk2 howl imlib ipv6 java jikes jpeg kde kdexdeltas ladcca libg++ libwww mad mikmod mmx mng mono motif mozilla mp3 mpeg ncurses nls nptl ogg oggvorbis openal opengl oss pam pcmcia pdflib perl png pnp python qt quicktime readline real samba sdl spell sse sse2 ssl svg svga tcltk tcpd tiff truetype truetype-fonts type1-fonts usb vcd wifi xine xinerama xml2 xmms xpm xprint xv xvid zlib" Unset: ASFLAGS, CBUILD, CTARGET, LANG, LC_ALL, LDFLAGS, PORTDIR_OVERLAY
you say you have linux-headers 2.6.8.1 ... but directfb tried to build the sis driver ... the sis driver is only built if you have linux/sisfb.h ... this file is not included like that with linux-2.6 (it's called video/sisfb.h) ... that means you probably have some crap from 2.4 laying around ? do you have /usr/include/linux/sisfb.h ? if so, what is providing it ?
SpanKY - no 2.4.x crap here (please! - that's a clean from scratch 2.6 / NPTL sys) - I'll check whether i have the sis header - any way to see what provides it, if it's there?
I like epm. emerge epm, then epm -qf /path/to/file
dmz ~ # epm -qf /usr/include/linux/sisfb.h file /usr/include/linux/sisfb.h is not owned by any package But it's still there... interesting...
delete it then and forget about it ;)
*** Bug 86081 has been marked as a duplicate of this bug. ***
Bug 86081 contains useful info
sisfb.h is not normally installed by linux-headers afaict
> dmz ~ # epm -qf /usr/include/linux/sisfb.h > file /usr/include/linux/sisfb.h is not owned by any package Same thing here. From scratch with 2.6, it never saw anything 2.4-related. Removing the file manually fixed it, but why it was there in the first place should probably be the target of some looking into...
*** Bug 88563 has been marked as a duplicate of this bug. ***
*** Bug 91691 has been marked as a duplicate of this bug. ***
*** Bug 92028 has been marked as a duplicate of this bug. ***