I managed to get it to compile by making the following change in .configure:<br><br><br><br><br>I took a look at ./configure and made the following change<br><br>10320c10320<br>< xpowerpc|xppc)<br>---<br>> xpowerpc|xppc|xpowerpc64|xppc64)<br><br>That seemed to do the trick as "regnames" was included in the Makefiles and the code compiled. Unfortunately, none of the examples or testsuite will work, the all crash with Segmentation Faults. <br><br>I saw oil-bugreport in the examples folder and it spits out:<br><br>mace:~/Code/Altivec/liboil-0.3.12/examples# ./oil-bugreport<br>OIL: INFO liboildebug.c 67: _oil_debug_init(): liboil-0.3.12 debug init<br>OIL: INFO liboilcpu.c 181: oil_cpu_fault_check_enable(): enabling SIGILL handler. Make sure to continue past any SIGILL signals caught by gdb.<br>OIL: INFO liboilcpu.c 232: oil_cpu_fault_check_disable(): disabling SIGILL handler<br>OIL: INFO liboilcpu.c 107:
_oil_cpu_init(): cpu flags 01000000<br>OIL: INFO liboilcpu.c 181: oil_cpu_fault_check_enable(): enabling SIGILL handler. Make sure to continue past any SIGILL signals caught by gdb.<br>Segmentation fault<br><br>I added a few of these OIL_INFO calls (before having to call it a night) and the last one on the PPC970 was:<br><br>OIL: INFO liboilfunction.c 180: oil_optimize_all(): oil_class_optimize(809184) index 271 finished<br><br>While the 7447A ran cleanly through:<br><br>OIL: INFO liboilfunction.c 182: oil_optimize_all(): oil_class_optimize(268118736) index 379 finished<br><br>I could keep drilling down one by one, but I see there's an OIL_DEUG option. How do I set that?<br><br>Matt<br><br><b><i>David Schleef <ds@schleef.org></i></b> wrote:<blockquote class="replbq" style="border-left: 2px solid rgb(16, 16, 255); margin-left: 5px; padding-left: 5px;"> On Tue, Oct 30, 2007 at 02:05:28PM -0700, Matthew Clark wrote:<br>> 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)<br>> <br>> gcc -DHAVE_CONFIG_H -I. -I. -I.. -Wall -D_BSD_SOURCE <br>> -D_GNU_SOURCE -I.. -g -O2 -MT liboil_0.3_la-liboilcpu.lo -MD -MP <br>> -MF .deps/liboil_0.3_la-liboilcpu.Tpo -c liboilcpu.c -fPIC -DPIC -o .libs/liboil_0.3_la-liboilcpu.o<br>> /tmp/cch1g9kK.s: Assembler messages:<br>> /tmp/cch1g9kK.s:94: Error: unsupported relocation against v0<br>> /tmp/cch1g9kK.s:94: Error: unsupported relocation against v0<br>> /tmp/cch1g9kK.s:94: Error: unsupported relocation against v0<br><br>This is the sound of me grumbling: Argh, argh!<br><br>> Can anyone help me get this working, or is this a futile effort?<br><br>Something is going wrong in ./configure, and it's not detecting
that<br>it's supposed to use '-Wa,-mregnames', as well as some other flags.<br>My guess is that m4/as-host-defines.m4 is not defining HAVE_POWERPC<br>because the ${host_cpu} is not recognized.<br><br>This may not be the only problem, however.<br><br><br><br>dave...<br><br></blockquote><br><p> __________________________________________________<br>Do You Yahoo!?<br>Tired of spam? Yahoo! Mail has the best spam protection around <br>http://mail.yahoo.com