eix-0.2.6 fails to compile on PPC. It cannot compile file src/cacheTk/cdbCache.cc Reproducible: Always Steps to Reproduce: 1.emerge -v "=app-portage/eix-0.2.6" 2. 3. Actual Results: make[3]: Entering directory `/var/tmp/portage/eix-0.2.6/work/eix-0.2.6/src/cacheTk' source='flatCache.cc' object='flatCache.o' libtool=no \ depfile='.deps/flatCache.Po' tmpdepfile='.deps/flatCache.TPo' \ depmode=gcc3 /bin/sh ../../depcomp \ powerpc-unknown-linux-gnu-g++ -DHAVE_CONFIG_H -I. -I. -I../.. -I../../src -W -Wall -O2 -mtune=970 -mcpu=970 -mno-powerpc64 -mpowerpc-gpopt -mpowerpc-gfxopt -mabi=altivec -maltivec -fno-strict-aliasing -pipe -c -o flatCache.o `test -f 'flatCache.cc' || echo './'`flatCache.cc source='flatCacheUtils.cc' object='flatCacheUtils.o' libtool=no \ depfile='.deps/flatCacheUtils.Po' tmpdepfile='.deps/flatCacheUtils.TPo' \ depmode=gcc3 /bin/sh ../../depcomp \ powerpc-unknown-linux-gnu-g++ -DHAVE_CONFIG_H -I. -I. -I../.. -I../../src -W -Wall -O2 -mtune=970 -mcpu=970 -mno-powerpc64 -mpowerpc-gpopt -mpowerpc-gfxopt -mabi=altivec -maltivec -fno-strict-aliasing -pipe -c -o flatCacheUtils.o `test -f 'flatCacheUtils.cc' || echo './'`flatCacheUtils.cc source='noCache.cc' object='noCache.o' libtool=no \ depfile='.deps/noCache.Po' tmpdepfile='.deps/noCache.TPo' \ depmode=gcc3 /bin/sh ../../depcomp \ powerpc-unknown-linux-gnu-g++ -DHAVE_CONFIG_H -I. -I. -I../.. -I../../src -W -Wall -O2 -mtune=970 -mcpu=970 -mno-powerpc64 -mpowerpc-gpopt -mpowerpc-gfxopt -mabi=altivec -maltivec -fno-strict-aliasing -pipe -c -o noCache.o `test -f 'noCache.cc' || echo './'`noCache.cc source='cdbCache.cc' object='cdbCache.o' libtool=no \ depfile='.deps/cdbCache.Po' tmpdepfile='.deps/cdbCache.TPo' \ depmode=gcc3 /bin/sh ../../depcomp \ powerpc-unknown-linux-gnu-g++ -DHAVE_CONFIG_H -I. -I. -I../.. -I../../src -W -Wall -O2 -mtune=970 -mcpu=970 -mno-powerpc64 -mpowerpc-gpopt -mpowerpc-gfxopt -mabi=altivec -maltivec -fno-strict-aliasing -pipe -c -o cdbCache.o `test -f 'cdbCache.cc' || echo './'`cdbCache.cc cdbCache.cc: In member function `std::string Cdb::get(uint32_t*, void**)': cdbCache.cc:152: error: cannot convert `uint32_t*' to `const char*' for argument `1' to `void uint32_unpack(const char*, uint32_t*)' cdbCache.cc:154: error: cannot convert `uint32_t*' to `const char*' for argument `1' to `void uint32_unpack(const char*, uint32_t*)' make[3]: *** [cdbCache.o] Error 1 make[3]: Leaving directory `/var/tmp/portage/eix-0.2.6/work/eix-0.2.6/src/cacheTk' make[2]: *** [all-recursive] Error 1 make[2]: Leaving directory `/var/tmp/portage/eix-0.2.6/work/eix-0.2.6/src' make[1]: *** [all-recursive] Error 1 make[1]: Leaving directory `/var/tmp/portage/eix-0.2.6/work/eix-0.2.6' make: *** [all] Error 2 !!! ERROR: app-portage/eix-0.2.6 failed. !!! Function src_compile, Line 25, Exitcode 2 !!! emake failed Portage 2.0.51.19 (default-linux/ppc/2005.0, gcc-3.4.4, glibc-2.3.4.20041102-r1, 2.6.10-gentoo-r8 ppc) ================================================================= System uname: 2.6.10-gentoo-r8 ppc PPC970, altivec supported Gentoo Base System version 1.6.12 Python: dev-lang/python-2.3.5 [2.3.5 (#1, May 12 2005, 17:35:06)] distcc 2.16 powerpc-unknown-linux-gnu (protocols 1 and 2) (default port 3632) [disabled] dev-lang/python: 2.3.5 sys-apps/sandbox: [Not Present] 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.5 sys-devel/binutils: 2.15.90.0.3-r5 sys-devel/libtool: 1.5.16 virtual/os-headers: 2.6.8.1-r4 ACCEPT_KEYWORDS="ppc" AUTOCLEAN="yes" CFLAGS="-O2 -mtune=970 -mcpu=970 -mno-powerpc64 -mpowerpc-gpopt -mpowerpc-gfxopt -mabi=altivec -maltivec -fno-strict-aliasing -pipe" CHOST="powerpc-unknown-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/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/bind /var/qmail/control" CONFIG_PROTECT_MASK="/etc/gconf /etc/splash /etc/terminfo /etc/env.d" CXXFLAGS="-O2 -mtune=970 -mcpu=970 -mno-powerpc64 -mpowerpc-gpopt -mpowerpc-gfxopt -mabi=altivec -maltivec -fno-strict-aliasing -pipe" DISTDIR="/usr/portage/distfiles" FEATURES="autoaddcvs autoconfig ccache distlocks fixpackages sandbox sfperms strict" GENTOO_MIRRORS="ftp://trumpetti.atm.tut.fi/gentoo/" MAKEOPTS="-j3" PKGDIR="/usr/portage/packages" PORTAGE_TMPDIR="/var/tmp" PORTDIR="/usr/portage" SYNC="rsync://rsync.europe.gentoo.org/gentoo-portage" USE="ppc X aalib alsa altivec bash-completion berkdb bitmap-fonts cdparanoia cdr crypt cups curl eds emacs emboss encode esd fam fbcon flac font-server gcj gd gdbm gif gnome gpm gstreamer gtk gtk2 guile imagemagick imap imlib java jpeg junit libwww mad mailwrapper mbox mcal motif mozilla mp3 mpeg mysql ncurses nls ogg oggvorbis opengl pam pdflib perl png python readline sdl slang spell sqlite ssl tcltk tcpd tetex tiff truetype truetype-fonts type1-fonts unicode usb vorbis xine xml2 xmms xprint xscreensaver xv zlib userland_GNU kernel_linux elibc_glibc" Unset: ASFLAGS, CBUILD, CTARGET, LANG, LC_ALL, LDFLAGS, LINGUAS, PORTDIR_OVERLAY
Created attachment 62837 [details, diff] patch for src/cacheTk/cdbCache.cc this patch fix the problem. I put a cast on the variable which causes the compilation to abort.
Created attachment 62838 [details] ebuild with patch applied This ebuild can replace safely the one in portage with the last patch placed in files directory of app-portage/eix
with the files i comited previously. eix-0.2.6 emerges fine on PPC, x86. So, i think it's fixed.
Please, don't mark bugs fixed when they are not fixed in the portage tree.
sorry, i didn't know.
Thanks, applied to upstream cvs.
This bugs is only present for PPC architecture. gcc compiles it fine on x86.
Not just on PPC, it happens on SPARC64 as well.
it seems weird to me that gcc on both PPC and SPARC doesn't manage to cast an uint* to a char*.
fixed