Trying to update Gnome to 2.12 and liboil fails. Reproducible: Always Steps to Reproduce: 1.emerge -u liboil 2. 3. Actual Results: Built for a bit then failed with.. powerpc-unknown-linux-gnu-gcc -DHAVE_CONFIG_H -I. -I. -I../.. -Wall -Wa,-m regnames -Wa,-maltivec -D_BSD_SOURCE -D_GNU_SOURCE -I../.. -O2 -maltivec -m abi=altivec -fasm-blocks -O2 -pipe -mcpu=7450 -maltivec -mabi=altivec -mpow erpc-gfxopt -fsigned-char -mstring -mmultiple -MT libpowerpc_la-recon8x8_al tivec.lo -MD -MP -MF .deps/libpowerpc_la-recon8x8_altivec.Tpo -c recon8x8_a ltivec.c -fPIC -DPIC -o .libs/libpowerpc_la-recon8x8_altivec.o recon8x8_altivec.c: In function `recon8x8_intra_altivec': recon8x8_altivec.c:49: error: parse error before '{' token recon8x8_altivec.c: In function `recon8x8_inter_altivec': recon8x8_altivec.c:182: error: parse error before '{' token recon8x8_altivec.c: In function `recon8x8_inter2_altivec': recon8x8_altivec.c:400: error: parse error before '{' token make[3]: *** [libpowerpc_la-recon8x8_altivec.lo] Error 1 make[3]: Leaving directory `/var/tmp/portage/liboil-0.3.3/work/liboil-0.3.3 /liboil/powerpc' make[2]: *** [all-recursive] Error 1 make[2]: Leaving directory `/var/tmp/portage/liboil-0.3.3/work/liboil-0.3.3 /liboil' make[1]: *** [all-recursive] Error 1 make[1]: Leaving directory `/var/tmp/portage/liboil-0.3.3/work/liboil-0.3.3 ' make: *** [all] Error 2 Expected Results: should have built. Portage 2.0.53_rc5 (default-linux/ppc/2005.1/ppc/G4, gcc-3.4.4, glibc-2.3.5-r2, 2.6.13-gentoo-r2 ppc) ================================================================= System uname: 2.6.13-gentoo-r2 ppc 7447/7457, altivec supported Gentoo Base System version 1.12.0_pre9 ccache version 2.4 [enabled] dev-lang/python: 2.3.5, 2.4.2 sys-apps/sandbox: 1.2.13 sys-devel/autoconf: 2.13, 2.59-r7 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-r2 ACCEPT_KEYWORDS="ppc ~ppc" AUTOCLEAN="yes" CBUILD="powerpc-unknown-linux-gnu" CFLAGS="-O2 -pipe -mcpu=7450 -maltivec -mabi=altivec -mpowerpc-gfxopt -fsigned-char -mstring -mmultiple" CHOST="powerpc-unknown-linux-gnu" CONFIG_PROTECT="/etc /usr/kde/2/share/config /usr/kde/3/share/config /usr/lib/X11/xkb /usr/lib/mozilla/defaults/pref /usr/share/config /var/qmail/control" CONFIG_PROTECT_MASK="/etc/gconf /etc/terminfo /etc/env.d" CXXFLAGS="-O2 -pipe -mcpu=7450 -maltivec -mabi=altivec -mpowerpc-gfxopt -fsigned-char -mstring -mmultiple" DISTDIR="/usr/portage/distfiles" FEATURES="autoconfig candy ccache digest distlocks fixpackages notitles sandbox sfperms strict" GENTOO_MIRRORS="http://distfiles.gentoo.org http://distro.ibiblio.org/pub/linux/distributions/gentoo" MAKEOPTS="-j2" PKGDIR="/usr/portage/packages" PORTAGE_TMPDIR="/var/tmp" PORTDIR="/usr/portage" PORTDIR_OVERLAY="/usr/local/portage" SYNC="rsync://rsync.gentoo.org/gentoo-portage" USE="X alsa altivec bash-completion berkdb bitmap-fonts cdr crypt dvd dvdr esd gnome gpm gstreamer gtk gtk2 hal howl jpeg ncurses nptl nptlonly opengl pam perl png ppc python readline spell ssl svg tcpd tiff truetype truetype-fonts type1-fonts unicode xml2 zlib userland_GNU kernel_linux elibc_glibc" Unset: ASFLAGS, CTARGET, LANG, LC_ALL, LDFLAGS, LINGUAS
Exactly the same thing happens here. I tried to edit recon8x8_altivec.c and seek syntax errors but I found none (as far as my experience enables me to) emerge info: Portage 2.0.53_rc5 (default-linux/ppc/2005.1/ppc/G4, gcc-3.4.4, glibc-2.3.5-r2, 2.6.13-gentoo-r3 ppc) ================================================================= System uname: 2.6.13-gentoo-r3 ppc 7447A, altivec supported Gentoo Base System version 1.12.0_pre9 dev-lang/python: 2.3.5, 2.4.2 sys-apps/sandbox: 1.2.13 sys-devel/autoconf: 2.13, 2.59-r7 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-r2 ACCEPT_KEYWORDS="ppc ~ppc" AUTOCLEAN="yes" CBUILD="powerpc-unknown-linux-gnu" CFLAGS="-O2 -pipe -mcpu=7450 -mtune=7450 -maltivec -mabi=altivec -mpowerpc-gfxopt -fomit-frame-pointer" 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/share/config /var/qmail/control" CONFIG_PROTECT_MASK="/etc/gconf /etc/terminfo /etc/env.d" CXXFLAGS="-O2 -pipe -mcpu=7450 -mtune=7450 -maltivec -mabi=altivec -mpowerpc-gfxopt -fomit-frame-pointer" DISTDIR="/usr/portage/distfiles" FEATURES="autoconfig distlocks sandbox sfperms strict" GENTOO_MIRRORS="http://pandemonium.tiscali.de/pub/gentoo/ http://ftp-stud.fht-esslingen.de/pub/Mirrors/gentoo/ http://ftp.uni-erlangen.de/pub/mirrors/gentoo http://mirror.switch.ch/ftp/mirror/gentoo/" LINGUAS="en it" MAKEOPTS="-j2" 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 a52 aac aalib alsa altivec arts berkdb bitmap-fonts bluetooth browserplugin bzip2 cdr cjk crypt cups directfb dts dvb dvd dvdr dvdread eds emboss esd fam fame fbcon ffmpeg fortran freetype ftp gd ggi gif gpm gstreamer gtk gtk2 ieee1394 ipv6 java jikes jpeg kde kdeenablefinal kdexdeltas ldap libwww live logitech-mouse mad mime mjpeg mp3 mpeg mysql ncurses nls nptl nptlonly nsplugin opengl pam pdflib perl png ppc python qt readline sdk sdl spell ssl svg tcpd truetype truetype-fonts type1-fonts unicode userlocales v4l v4l2 wmf xine xml2 xosd xv xvid zeroconf zlib video_cards_radeon linguas_en linguas_it userland_GNU kernel_linux elibc_glibc" Unset: ASFLAGS, CTARGET, LANG, LC_ALL, LDFLAGS
Same here Portage 2.0.53_rc5 (default-linux/ppc/2005.1/ppc/G4, gcc-3.4.4, glibc-2.3.5-r2, 2.6.13-gentoo-r4 ppc) ================================================================= System uname: 2.6.13-gentoo-r4 ppc 7447A, altivec supported Gentoo Base System version 1.12.0_pre9 ccache version 2.4 [enabled] dev-lang/python: 2.4.2 sys-apps/sandbox: 1.2.13 sys-devel/autoconf: 2.13, 2.59-r7 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-r2 ACCEPT_KEYWORDS="ppc ~ppc" AUTOCLEAN="yes" CBUILD="powerpc-unknown-linux-gnu" CFLAGS="-O2 -mcpu=G4 -fno-strict-aliasing -fomit-frame-pointer -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.5/env /usr/kde/3.5/share/config /usr/kde/3.5/shutdown /usr/kde/3/share/config /usr/lib/X11/xkb /usr/share/config /var/qmail/control" CONFIG_PROTECT_MASK="/etc/gconf /etc/init.d /etc/terminfo /etc/texmf/web2c /etc/env.d" CXXFLAGS="-O2 -mcpu=G4 -fno-strict-aliasing -fomit-frame-pointer -pipe" DISTDIR="/mnt/portage/distfiles" FEATURES="autoconfig buildpkg ccache distlocks sandbox sfperms strict" GENTOO_MIRRORS="ftp://gentoo.digimed.co.uk/ http://pandemonium.tiscali.de/pub/gentoo/ http://mir.zyrianes.net/gentoo/ ftp://mir.zyrianes.net/gentoo/ ftp://mirror.nutsmaas.nl/gentoo" LINGUAS="en_GB" PKGDIR="/mnt/portage/packages/krikkit" PORTAGE_TMPDIR="/mnt/scratch" PORTDIR="/usr/portage" PORTDIR_OVERLAY="/mnt/portage/local" SYNC="rsync://desiato/gentoo" USE="ppc X alsa altivec arts berkdb bitmap-fonts bonobo cddb cdr crypt cups curl dv dvd emboss encode exif fam flac foomaticdb gdbm gif gimpprint gphoto2 gpm gstreamer gtk gtk2 gtkhtml guile hal ieee1394 imagemagick imlib java jpeg kde kdeenablefinal libwww mad motif mp3 mpeg mysql ncurses offensive ogg oggvorbis opengl pdflib perl png ppds python qt readline sdl slang speex spell ssl tcltk tcpd tetex tiff truetype truetype-fonts type1-fonts unicode usb vhosts vorbis wifi xml xml2 xmms xv zlib linguas_en_GB userland_GNU kernel_linux elibc_glibc" Unset: ASFLAGS, CTARGET, LANG, LC_ALL, LDFLAGS, MAKEOPTS
Same Here on Mac Mini ------------------------------------ renegade2 ~ # emerge info Portage 2.0.51.22-r3 (default-linux/ppc/2005.1/ppc, gcc-3.4.4, glibc-2.3.5-r2, 2.6.13-gentoo-r3 ppc) ================================================================= System uname: 2.6.13-gentoo-r3 ppc 7447A, altivec supported Gentoo Base System version 1.6.13 dev-lang/python: 2.3.5, 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.15.90.0.3-r5 sys-devel/libtool: 1.5.18-r1 virtual/os-headers: 2.6.11-r2 ACCEPT_KEYWORDS="ppc" AUTOCLEAN="yes" CBUILD="powerpc-unknown-linux-gnu" CFLAGS="-O2 -mtune=powerpc -pipe -fomit-frame-pointer" 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/share/config /var/qmail/control" CONFIG_PROTECT_MASK="/etc/gconf /etc/terminfo /etc/env.d" CXXFLAGS="-O2 -mtune=powerpc -pipe -fomit-frame-pointer" DISTDIR="/usr/portage/distfiles" FEATURES="autoconfig distlocks sandbox sfperms strict" GENTOO_MIRRORS="http://gentoo.mirrors.pair.com/ http://mirror.datapipe.net/gentoo" MAKEOPTS="-j2" PKGDIR="/usr/portage/packages" PORTAGE_TMPDIR="/var/tmp" PORTDIR="/usr/portage" SYNC="rsync://rsync.namerica.gentoo.org/gentoo-portage" USE="ppc S3TC X Xaw3d aac aalib aim alsa altivec amarok amd amr aotuv apache2 applet aqua_theme arts artswrappersuid artworkextra asm audiofile automount bash-completion berkdb bigger-fonts bitmap-fonts blender-game bluetooth bonobo boo bootsplash browserplugin bzip2 cacheemu carbone_theme ccache cdda cddb cdio cdparanoia cdr clearcase config_wizard corba cpudetection crypt css csv ctype cups curl curlwrappers db2 dba dbase dbus dbx dga dio dri dv dvb dvd dvdr dvdread edl eds effects emboss encode epiphany escreen esd ethereal extensions fam fame fbcon ffmpeg fftw filepro firefox flac flash flatfile fluidsynth font-server foomaticdb fortran freetype ftp gb gd gdbm gif gimp gimpprint glep glx gmail gmailtimestamps gnokii gnome gnome-print gnomecanvas gnomedb gnuplot gphoto2 gpm gstreamer gtk gtk2 gtkhtml hal hfs id3 ieee1394 image imagemagick imap imlib imlib2 inifile innodb insecure-savers iproute2 ipv6 jack java javascript jikes jpeg kde kdeenablefinal kig-scripting ladcca ladspa lame lcd lcms ldap libcaca libwww live mad mailwrapper mdb ming mixer mjpeg mmap mng mod motif moznocompose moznoirc moznomail mozsvg mp3 mpeg mpeg2 mpeg4 mplayer mssql musicbrainz mysql mysqli mythtv ncurses network nls nptl nsplugin odbc offensive ogg oggvorbis ogre openal opengl pam pascal pdflib pear perl plugin png portaudio posix ppds python qt quicktime rdesktop readline ruby scanner screen sdl sheep shout sndfile soap sockets softmmu sox speex spell sql ssl stencil-buffer stream subp subtitles svg sysfs tcpd theora tidy tiff toolbar transcode truetype truetype-fonts type1-fonts unicode userlocales vcd vcdimager videos visualization vnc vorbis winbind wma123 wmf wxwindows xanim xbase xine xml2 xmlrpc xmms xpm xscreensaver xsl xslt xv xvid zlib userland_GNU kernel_linux elibc_glibc" Unset: ASFLAGS, CTARGET, LANG, LC_ALL, LDFLAGS, LINGUAS, PORTDIR_OVERLAY
Created attachment 71054 [details, diff] patch for liboil on ppc The problem is liboil is using metrowerks/ms style asm blocks. I've converted the altivec file to use gcc-style ones (or gcc 3.4.4 style at least). Its now compiling cleanly for me... whether it actually works is another question yet to be answered :)
Created attachment 71085 [details] Ebuild to use the new patch I was able to compile as well with this patch using the edited ebuild in my portage overlay. I did not test it though to see if it works with gnome 2.12 since I haven't had a chance to finish installing it. Eric
For some reason I have a problem with my 3.4.4 compiler. Using 4.0.2 gives me another error: cc1: error: unrecognized command line option "-fasm-blocks" I suppose the options changed in gcc4 but I couldn't find out more about this. Anyone knows what could it be ?
I can confirm that the patch included here works with gcc-3.4.4. It looks like a straight forward patch, so it should probably be included in portage. It would be nice to have the gcc4 problem fixed too, but I haven't yet found out about -fasm-blocks option.
Works for me too. Portage 2.0.53_rc6 (default-linux/ppc/2004.3, gcc-3.4.4, glibc-2.3.5-r2, 2.6.13-gentoo-r2 ppc) ================================================================= System uname: 2.6.13-gentoo-r2 ppc 7447A, altivec supported Gentoo Base System version 1.12.0_pre9 dev-lang/python: 2.3.5, 2.4.2 sys-apps/sandbox: 1.2.13 sys-devel/autoconf: 2.13, 2.59-r7 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-r2 ACCEPT_KEYWORDS="ppc ~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.3/env /usr/kde/3.3/share/config /usr/kde/3.3/shutdown /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 /var/qmail/control" CONFIG_PROTECT_MASK="/etc/gconf /etc/terminfo /etc/texmf/web2c /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://distfiles.gentoo.org http://distro.ibiblio.org/pub/linux/distributions/gentoo" 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 alsa altivec apache2 berkdb bitmap-fonts bonobo cdr cups curl dvd eds emboss esd fbcon font-server foomaticdb fortran gdbm gif gnome gpm gstreamer gtk gtk2 gtkhtml guile imap imlib java jpeg junit libwww mad motif mozilla mp3 mpeg ncurses nls opengl oss pam pdflib perl png postgres ppds python readline sdl spell ssl tcpd tetex tiff truetype truetype-fonts type1-fonts udev unicode usb userlocales xine xml xml2 xv zlib video_cards_radeon userland_GNU kernel_linux elibc_glibc" Unset: ASFLAGS, CTARGET, LANG, LC_ALL, LDFLAGS, LINGUAS, MAKEOPTS
Still broken as of today. Oct 31st 2005. Also, I'm not sure what is the deal, but make checks reveals severe test brokenness on linuxppc (sysseg in 12 out of 13 tests).
The ebuild expects the patch file to be named including the version number.
Now that liboil-0.3.6 is in portage it works OK. This bug can be closed. Maybe 0.3.3 should be keyworded -ppc while 0.3.6 ~ppc
"Maybe 0.3.3 should be keyworded -ppc while 0.3.6 ~ppc" I agree. I was bitten by this last night.
ok 0.3.3 maked -ppc