linux-headers-2.6.11-r2/r3 bitops.h conflicts with the definition of "ffs" found in many packages. Am able to compile packages that can exclude gpm. eg ncurses Reproducible: Always Steps to Reproduce: 1.emerge ncurses 2. 3. Actual Results: Failed with error message about conflict between the definition of ffs in <include/bitops.h> and the one located in ncurses. Portage 2.0.53 (default-linux/ppc/2005.0, gcc-4.1.0-beta20051209, glibc-2.3.6-r1, 2.6.14-gentoo-r2 ppc) ================================================================= System uname: 2.6.14-gentoo-r2 ppc 7455, altivec supported Gentoo Base System version 1.12.0_pre10 dev-lang/python: 2.3.5-r2, 2.4.2 sys-apps/sandbox: 1.2.12 sys-devel/autoconf: 2.13, 2.59-r6 sys-devel/automake: 1.4_p6, 1.5, 1.6.3, 1.7.9-r1, 1.8.5-r3, 1.9.6-r1 sys-devel/binutils: 2.16.1 sys-devel/libtool: 1.5.20 virtual/os-headers: 2.6.11-r3 ACCEPT_KEYWORDS="ppc" AUTOCLEAN="yes" CBUILD="powerpc-unknown-linux-gnu" CFLAGS="-O2 -mtune=G4 -maltivec -mabi=altivec -fno-strict-aliasing -pipe" CHOST="powerpc-unknown-linux-gnu" CONFIG_PROTECT="/etc /usr/kde/2/share/config /usr/kde/3.4/env /usr/kde/3.4/share/config /usr/kde/3.4/shutdown /usr/kde/3/share/config /usr/lib/X11/xkb /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 -mtune=G4 -maltivec -mabi=altivec -fno-strict-aliasing -pipe" DISTDIR="/usr/portage/distfiles" FEATURES="autoconfig distlocks sandbox sfperms strict" GENTOO_MIRRORS="http://mirror.datapipe.net/gentoo http://gentoo.chem.wisc.edu/gentoo/ http://gentoo.mirrors.tds.net/gentoo http://distro.ibiblio.org/pub/linux/distributions/gentoo/" MAKEOPTS="-j3" PKGDIR="/usr/portage/packages" PORTAGE_TMPDIR="/var/tmp" PORTDIR="/usr/portage" PORTDIR_OVERLAY="/usr/local/portage" SYNC="rsync://rsync.gentoo.org/gentoo-portage" USE="ppc X aac alsa altivec apache2 arts audiofile berkdb bidi bitmap-fonts bonobo bzip2 cairo cdda cdr cjk crypt cups curl dbus doc dvd dvdr dvdread eds emboss esd exif expat fam fbcon ffmpeg flac foomaticdb fortran gd gdbm ggi gif glut gmp gnutls gpm gstreamer gtk gtk2 guile hal howl idn imagemagick imlib ipv6 jack java jpeg junit kde lcms libwww live lua mad matroska mikmod mng motif mozilla mp3 mpeg multislot ncurses nls nntp nptl nptlonly ogg oggvorbis openal opengl oss pam pcre pdflib perl pic png ppds python qt readline samba scanner sdl slang smp snmp spell ssl stream tcltk tcpd tetex theora tiff truetype truetype-fonts type1-fonts udev unicode usb vorbis wmf xine xml xml2 xmms xosd xv xvid zlib userland_GNU kernel_linux elibc_glibc" Unset: ASFLAGS, CTARGET, LANG, LC_ALL, LDFLAGS, LINGUAS
Not a sys-apps/portage bug.
"many packages" doesnt describe much post some actual error output
Created attachment 74853 [details] MAKEOPTS="-j1" USE="gpm" emerge ncurses >& log && tail -n 36 log
Created attachment 74856 [details] same error in recompiling xorg-x11
xorg-x11 seems to have no problem once dmx is unset.
(In reply to comment #5) > xorg-x11 seems to have no problem once dmx is unset. It appears I was incorrect.
Want to edit /usr/include/asm/bitops.h as follows? Find line 250 where you have ffs(...) but *not* __ffs; and move that down below the #ifdef __KERNEL__. Keep the ffz(...) above the #ifdef __KERNEL__.
(In reply to comment #7) > Want to edit /usr/include/asm/bitops.h as follows? Find line 250 where you have > ffs(...) but *not* __ffs; and move that down below the #ifdef __KERNEL__. Keep > the ffz(...) above the #ifdef __KERNEL__. > I am willing to try that. Before I do, I installed linux-headers-2.6.14.2 and copied /usr/src/linux/include/asm-powerpc/* to /usr/include/asm. Many headers were missing from there. After I installed that, ncurses compiled with no problem, but xorg-x11-6.8.2-r6 had the same problem. Should I revert to linux-headers-2.6.11-r3 first?
(In reply to comment #8) > (In reply to comment #7) > > Want to edit /usr/include/asm/bitops.h as follows? Find line 250 where you have > > ffs(...) but *not* __ffs; and move that down below the #ifdef __KERNEL__. Keep > > the ffz(...) above the #ifdef __KERNEL__. > > > > I am willing to try that. Before I do, I installed linux-headers-2.6.14.2 and > copied /usr/src/linux/include/asm-powerpc/* to /usr/include/asm. Many headers > were missing from there. After I installed that, ncurses compiled with no > problem, but xorg-x11-6.8.2-r6 had the same problem. > > Should I revert to linux-headers-2.6.11-r3 first? > xorg-x11-6.8.99 compiled with no trouble. This version so far is not a noticeable difference from 6.8.2. Perhaps I failed to clean out the previous attempt before.
> I am willing to try that. Before I do, I installed linux-headers-2.6.14.2 and > copied /usr/src/linux/include/asm-powerpc/* to /usr/include/asm. Only Portage doesn't have linux-headers-2.6.14.2 and it won't since 2.6.14 is a mess for PPC due to headers moving upstream. I'd suggest reverting to 2.6.11 and then trying that patch.
*** Bug 115487 has been marked as a duplicate of this bug. ***
Fixed; emerge sync and remerge linux-headers-2.6.11-r3. Thanks!
I have modified linux-headers-2.6.11-r3 to install linux-headers-2.6.14.4. I also copied the entire contents of gentoo-sources-2.6.14.2-r2 include/asm-powerpc directory into /usr/include/asm as these were all missed by various packages. At this point I have completed emerge -e system and emerge -e world. There were 2 difficulties. 1)slang-1.4.9-r1 had a sandbox violation, worked around by 'rm /usr/lib/libslang-utf8.a'. Probably a bug in slang. 2)net-tool-1.60-r11, which I haven't found a method around and have the previously compiled version still. There were clear complaints about header files.
Created attachment 75247 [details] net-tools error log, using 2.6.14.4 for headers.
a) Please try 2.6.15_rc6 headers which will be in portage sometime soon (probably today/tomorrow) b) Perform the asm-powerpc kludge but with 2.6.15_rc6 sources c) See if things work; looking at the code they probably should (for that __be16 error anyway). Thanks!
net-tools builds cleanly with 2.6.15_rc6 and kludge, but it breaks ncurses build with complaints about spinlock.h and other headers.
> net-tools builds cleanly with 2.6.15_rc6 and kludge, but it breaks ncurses > build with complaints about spinlock.h and other headers. Want to report the breakages in further detail in bug #100703 please? Thanks.