havent gotten around to poking at the source ...
root@G5[ppc] 0 nonportable # make 2>&1 | head
if /bin/sh ../../libtool --tag=CC --mode=compile powerpc-unknown-linux-gnu-gcc
-DHAVE_CONFIG_H -I. -I. -I../.. -I../../kernel -I../../simd -maltivec
-mabi=altivec -DFAKE__VEC__ -O2 -mtune=powerpc -pipe -pthread -MT sse.lo -MD
-MP -MF ".deps/sse.Tpo" -c -o sse.lo sse.c; \
then mv -f ".deps/sse.Tpo" ".deps/sse.Plo"; else rm -f ".deps/sse.Tpo"; exit 1;
fi
powerpc-unknown-linux-gnu-gcc -DHAVE_CONFIG_H -I. -I. -I../.. -I../../kernel
-I../../simd -maltivec -mabi=altivec -DFAKE__VEC__ -O2 -mtune=powerpc -pipe
-pthread -MT sse.lo -MD -MP -MF .deps/sse.Tpo -c sse.c -fPIC -DPIC -o
.libs/sse.o
In file included from ../../simd/simd.h:30,
from sse.c:24:
../../simd/simd-altivec.h:42: error: expected '=', ',', ';', 'asm' or
'__attribute__' before 'float'
../../simd/simd-altivec.h:47: error: expected '=', ',', ';', 'asm' or
'__attribute__' before 'VADD'
../../simd/simd-altivec.h:48: error: expected '=', ',', ';', 'asm' or
'__attribute__' before 'VSUB'
../../simd/simd-altivec.h:49: error: expected '=', ',', ';', 'asm' or
'__attribute__' before 'VFMA'
../../simd/simd-altivec.h:50: error: expected '=', ',', ';', 'asm' or
'__attribute__' before 'VFNMS'
Portage 2.1_pre7-r4 (default-linux/ppc/2005.1/ppc, gcc-4.1.0, glibc-2.4-r2,
2.6.16-gentoo ppc)
=================================================================
System uname: 2.6.16-gentoo ppc PPC970MP, altivec supported
Gentoo Base System version 1.12.0_pre17
distcc 2.18.3 powerpc-unknown-linux-gnu (protocols 1 and 2) (default port 3632)
[disabled]
ccache version 2.4 [enabled]
dev-lang/python: 2.4.2-r1
sys-apps/sandbox: 1.2.17
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-r2
sys-devel/binutils: 2.15.90.0.3-r5, 2.16.1-r2, 2.16.91.0.3, 2.16.91.0.4,
2.16.91.0.5, 2.16.91.0.6, 2.16.91.0.7
sys-devel/libtool: 1.5.22
virtual/os-headers: 2.6.11-r4
ACCEPT_KEYWORDS="ppc ~ppc"
AUTOCLEAN="yes"
CBUILD="powerpc-unknown-linux-gnu"
CFLAGS="-O2 -mtune=powerpc -pipe"
CHOST="powerpc-unknown-linux-gnu"
CONFIG_PROTECT="/etc /usr/kde/2/share/config /usr/kde/3.5/env
/usr/kde/3.5/share/config /usr/kde/3.5/shutdown /usr/kde/3/share/config
/usr/share/X11/xkb /usr/share/config /var/qmail/control"
CONFIG_PROTECT_MASK="/etc/eselect/compiler /etc/gconf /etc/revdep-rebuild
/etc/terminfo /etc/env.d"
CXXFLAGS="-O2 -mtune=powerpc -pipe"
DISTDIR="/usr/portage/distfiles"
FEATURES="autoconfig buildpkg ccache distlocks metadata-transfer noauto noinfo
parallel-fetch sandbox sfperms splitdebug"
GENTOO_MIRRORS="http://distfiles.gentoo.org
http://distro.ibiblio.org/pub/linux/distributions/gentoo"
LDFLAGS="-Wl,-O1 -Wl,-z,relro"
MAKEOPTS="-j6"
PKGDIR="/usr/portage/packages/powerpc-unknown-linux-gnu"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/usr/local/portage"
SYNC="rsync://rsync.gentoo.org/gentoo-portage"
USE="ppc X a52 aac aalib acl alsa altivec asf audiofile berkdb bitmap-fonts
boundschecking bzip2 cairo cddb cdparanoia cdr crypt css cups curl directfb dri
dts dvd dvdr dvdread emboss encode fame ffmpeg flac fontconfig gd gif glitz gpm
gstreamer gtk gtk2 imagemagick ipv6 isdnlog jbig jpeg jpeg2k kde libcaca libwww
lzo mad matroska mikmod mjpeg mng modplug motif mp3 mpeg multislot musepack
ncurses nls nptl nptlonly ogg oggvorbis openal opengl pdf pdflib perl php png
pppd python qt quicktime readline rle samba sdl sndfile spell ssl subversion
tcltk tcpd tga theora tiff truetype truetype-fonts type1-fonts unicode vcd
vidix vorbis xanim xinetd xml xml2 xmms xpm xprint xrandr xv xvid yv12 zlib
elibc_glibc kernel_linux userland_GNU"
Unset: ASFLAGS, CTARGET, EMERGE_DEFAULT_OPTS, INSTALL_MASK, LANG, LC_ALL,
LINGUAS
Mark pointed out the bug here:
configure:21661: checking altivec.h usability
configure:21673: powerpc-unknown-linux-gnu-gcc -c -O2 -mtune=powerpc -pipe
conftest.c >&5
In file included from conftest.c:75:
/usr/lib/gcc/powerpc-unknown-linux-gnu/4.1.0/include/altivec.h:37:2: error:
#error Use the "-maltivec" flag to enable PowerPC AltiVec support
configure:21679: $? = 1
and indeed, if i change config.h to define HAVE_ALTIVEC_H, the compile works
so not a gcc bug ;)