[Liboil] PPC 970 (64 bit support)?

David Schleef ds at schleef.org
Wed Oct 31 10:21:39 PDT 2007


On Tue, Oct 30, 2007 at 02:05:28PM -0700, Matthew Clark wrote:
> I'm trying to compile the liboil package so I can compare the performace of a 32-bit PPC 7447A vs a 64-bit PPC 970, including the Altivec.   The code compiled fine on the 7447A machine (running gcc 3.4.4 on a linux 2.6.14, libc 2.3.6), but I got compile errors on my 970 (2.6.21, gcc 4.1.2, libc 2.3.6)
> 
>  gcc -DHAVE_CONFIG_H -I. -I. -I.. -Wall -D_BSD_SOURCE 
> -D_GNU_SOURCE -I.. -g -O2 -MT liboil_0.3_la-liboilcpu.lo -MD -MP 
> -MF .deps/liboil_0.3_la-liboilcpu.Tpo -c liboilcpu.c  -fPIC -DPIC -o .libs/liboil_0.3_la-liboilcpu.o
> /tmp/cch1g9kK.s: Assembler messages:
> /tmp/cch1g9kK.s:94: Error: unsupported relocation against v0
> /tmp/cch1g9kK.s:94: Error: unsupported relocation against v0
> /tmp/cch1g9kK.s:94: Error: unsupported relocation against v0

This is the sound of me grumbling:  Argh, argh!

> Can anyone help me get this working, or is this a futile effort?

Something is going wrong in ./configure, and it's not detecting that
it's supposed to use '-Wa,-mregnames', as well as some other flags.
My guess is that m4/as-host-defines.m4 is not defining HAVE_POWERPC
because the ${host_cpu} is not recognized.

This may not be the only problem, however.



dave...



More information about the Liboil mailing list