This bug is similar to 58299, but I couldn't reopen ir :( This is on a PPC machine. The broken compilation looks like this: powerpc-unknown-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 -O2 -pipe -mcpu=7400 -maltivec -mabi=altivec -fno-strict-aliasing -D_GNU_SOURCE -Werror-implicit-function-declaration -c keyboard.c -fPIC -DPIC -o .libs/keyboard.o In file included from /usr/include/linux/wait.h:12, from /usr/include/linux/keyboard.h:4, from keyboard.c:42: /usr/include/linux/list.h: In function `__list_add_rcu': /usr/include/linux/list.h:94: error: implicit declaration of function `__memory_barrier' In file included from /usr/include/linux/thread_info.h:20, from /usr/include/linux/spinlock.h:12, from /usr/include/linux/wait.h:15, from /usr/include/linux/keyboard.h:4, from keyboard.c:42: /usr/include/linux/bitops.h: In function `get_bitmask_order': /usr/include/linux/bitops.h:78: error: implicit declaration of function `fls' make[3]: *** [keyboard.lo] Error 1 make[3]: Leaving directory `/var/tmp/portage/DirectFB-0.9.21/work/DirectFB-0.9.21/inputdrivers/keyboard' make[2]: *** [all-recursive] Error 1 make[2]: Leaving directory `/var/tmp/portage/DirectFB-0.9.21/work/DirectFB-0.9.21/inputdrivers' 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. Reproducible: Always Steps to Reproduce: 1.emerge DirectFB Actual Results: broken compilation Expected Results: completed compilation and merge of the software Portage 2.0.51-r8 (default-ppc-2004.1, gcc-3.3.3, glibc-2.3.4.20041102-r0, 2.6.9-gentoo-r4udev ppc) ================================================================= System uname: 2.6.9-gentoo-r4udev ppc 7455, altivec supported Gentoo Base System version 1.6.8 Python: dev-lang/python-2.2.3-r5,dev-lang/python-2.3.4 [2.3.4 (#1, Dec 9 2004, 02:10:08)] distcc 2.18.3 powerpc-unknown-linux-gnu (protocols 1 and 2) (default port 3632) [disabled] ccache version 2.3 [enabled] dev-lang/python: 2.2.3-r5, 2.3.4 sys-devel/autoconf: 2.59-r6, 2.13 sys-devel/automake: 1.9.3, 1.6.3, 1.5, 1.4_p6, 1.7.9, 1.8.5-r2 sys-devel/binutils: 2.15.90.0.3-r4 sys-devel/libtool: 1.5.10-r2 virtual/os-headers: 2.6.8.1-r1 ACCEPT_KEYWORDS="ppc ~ppc" AUTOCLEAN="yes" CFLAGS="-O2 -pipe -mcpu=7400 -maltivec -mabi=altivec -fno-strict-aliasing" CHOST="powerpc-unknown-linux-gnu" CONFIG_PROTECT="/etc /etc/tomcat /usr/X11R6/lib/X11/xkb /usr/kde/2/share/config /usr/kde/3.1/share/config /usr/kde/3.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/mozilla/defaults/pref /usr/share/config /usr/share/texmf/dvipdfm/config/ /usr/share/texmf/dvips/config/ /usr/share/texmf/tex/generic/config/ /usr/share/texmf/tex/platex/config/ /usr/share/texmf/xdvi/ /var/qmail/control" CONFIG_PROTECT_MASK="/etc/gconf /etc/terminfo /etc/env.d" CXXFLAGS="-O2 -pipe -mcpu=7400 -maltivec -mabi=altivec -fno-strict-aliasing" DISTDIR="/usr/portage/distfiles" FEATURES="autoaddcvs buildpkg ccache distlocks" GENTOO_MIRRORS="http://mirror.datapipe.net/gentoo http://gentoo.inode.at/ http://ftp.snt.utwente.nl/pub/os/linux/gentoo ftp://ftp.snt.utwente.nl/pub/os/linux/gentoo http://mirror.datapipe.net/gentoo" LDFLAGS="" MAKEOPTS="-j1" PKGDIR="/usr/portage/packages" PORTAGE_TMPDIR="/var/tmp" PORTDIR="/usr/portage" PORTDIR_OVERLAY="/usr/local/portage" SYNC="rsync://rsync.europe.gentoo.org/gentoo-portage" USE="X aalib acl autofs berkdb bonobo cdr crypt dedicated dga directfb dnd doc dv dvb dvd dvdr eds emacs encode esd evo f77 fax fbcon ffmpeg foreign-package fortran freetds ftp gb gd gdbm gif gnome gnome-libs gnomedb gpg gphoto2 gpm gps gstreamer gtk gtk2 gtkhtml guile imagemagick imap imlib innodb java javascript jikes jpeg junit kde kerberos krb4 ladcca lcms ldap libwww maildir motif mozilla mpeg msn mysql nls offensive oggvorbis opengl pam pcmcia pdflib perl png postgres ppc python qt quicktime readline samba sdl slang spell ssl tcltk tcpd tetex tiff truetype wxwindows xml xml2 xvid video_cards_radeon"
What kernel-source / kernel-header (and glibc) do you have installed. Those error-messages comes from kernel header files.
* sys-libs/glibc : [ ] 2.2.5-r9 (2.2) [ ] 2.3.2-r12 (2.2) [ ] 2.3.3.20040420-r2 (2.2) [ ~ ] 2.3.4.20040619-r2 (2.2) [ ~ ] 2.3.4.20040808-r1 (2.2) [ I] 2.3.4.20041102 (2.2) * sys-kernel/linux26-headers : [M ] 2.6.5 (0) [ ~ ] 2.6.6-r1 (0) [ ] 2.6.7-r4 (0) [ ] 2.6.8.1 (0) [ I] 2.6.8.1-r1 (0)
try re-emerging linux26-headers
tried, and obtained the same failure any more hints?
try this patch please: http://bugs.gentoo.org/attachment.cgi?id=46914
i applied the patch to /usr/src/linux/include/asm-ppc/bitops.h. There was no asm-ppc/bitops.h in linux26-headers. The compilation failed at the same point. Did i do the patch stuff as I am suppossed to do?
you're supposed to apply that patch to /usr/include/asm/bitops.h
applied it with success and now I have a similar error, also in keyboard.c: make[3]: Entering directory `/var/tmp/portage/DirectFB-0.9.21/work/DirectFB-0.9.21/inputdrivers/keyboard' /bin/sh ../../libtool --mode=compile powerpc-unknown-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 -O2 -pipe -mcpu=7400 -maltivec -mabi=altivec -fno-strict-aliasing -D_GNU_SOURCE -Werror-implicit-function-declaration -c keyboard.c mkdir .libs powerpc-unknown-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 -O2 -pipe -mcpu=7400 -maltivec -mabi=altivec -fno-strict-aliasing -D_GNU_SOURCE -Werror-implicit-function-declaration -c keyboard.c -fPIC -DPIC -o .libs/keyboard.o In file included from /usr/include/linux/wait.h:12, from /usr/include/linux/keyboard.h:4, from keyboard.c:42: /usr/include/linux/list.h: In function `__list_add_rcu': /usr/include/linux/list.h:94: error: implicit declaration of function `__memory_barrier' make[3]: *** [keyboard.lo] Error 1 make[3]: Leaving directory `/var/tmp/portage/DirectFB-0.9.21/work/DirectFB-0.9.21/inputdrivers/keyboard' make[2]: *** [all-recursive] Error 1 make[2]: Leaving directory `/var/tmp/portage/DirectFB-0.9.21/work/DirectFB-0.9.21/inputdrivers' 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.
tim: here's some feedback on the ppc patch (Bug 75606)
Created attachment 47520 [details, diff] Patch 2 Mind trying this patch on /usr/include/linux/compiler.h on top?
it worked. DirectFB is now correctly emerged. I'm using the two patches provided here. Thanks a lot! Should be fixed?
Fixed in CVS; you should get the patched files if you emerge sync and remerge linux26-headers-2.6.8.1-r1... Please reopen this bug if you have any more issues. Thanks!