Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 76358 - [[ 2.6 headers ]] dev-libs/DirectFB-0.9.21 fails to build on ppc
Summary: [[ 2.6 headers ]] dev-libs/DirectFB-0.9.21 fails to build on ppc
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: PPC Linux
: High normal
Assignee: Tim Yamin (RETIRED)
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2005-01-01 17:21 UTC by Fernando Usero
Modified: 2005-01-03 17:46 UTC (History)
2 users (show)

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


Attachments
Patch 2 (linux26-headers-76358.patch,398 bytes, patch)
2005-01-03 13:38 UTC, Tim Yamin (RETIRED)
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Fernando Usero 2005-01-01 17:21:22 UTC
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"
Comment 1 Stian Skjelstad 2005-01-01 19:07:59 UTC
What kernel-source / kernel-header (and glibc) do you have installed. Those error-messages comes from kernel header files.
Comment 2 Fernando Usero 2005-01-02 04:03:31 UTC

*  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)
Comment 3 SpanKY gentoo-dev 2005-01-02 17:48:18 UTC
try re-emerging linux26-headers
Comment 4 Fernando Usero 2005-01-03 04:29:41 UTC
tried, and obtained the same failure

any more hints?
Comment 5 SpanKY gentoo-dev 2005-01-03 05:24:38 UTC
try this patch please:
http://bugs.gentoo.org/attachment.cgi?id=46914
Comment 6 Fernando Usero 2005-01-03 08:35:05 UTC
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?
Comment 7 SpanKY gentoo-dev 2005-01-03 12:07:50 UTC
you're supposed to apply that patch to /usr/include/asm/bitops.h
Comment 8 Fernando Usero 2005-01-03 12:49:57 UTC
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.
Comment 9 SpanKY gentoo-dev 2005-01-03 12:58:24 UTC
tim: here's some feedback on the ppc patch (Bug 75606)
Comment 10 Tim Yamin (RETIRED) gentoo-dev 2005-01-03 13:38:15 UTC
Created attachment 47520 [details, diff]
Patch 2

Mind trying this patch on /usr/include/linux/compiler.h on top?
Comment 11 Fernando Usero 2005-01-03 14:25:36 UTC
it worked. DirectFB is now correctly emerged. I'm using the two patches provided here.

Thanks a lot!

Should be fixed?
Comment 12 Tim Yamin (RETIRED) gentoo-dev 2005-01-03 17:46:53 UTC
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!