<html><head><style type="text/css"><!-- DIV {margin:0px;} --></style></head><body><div style="font-family:times new roman, new york, times, serif;font-size:12pt"><div style="font-family: times new roman,new york,times,serif; font-size: 12pt;">More debug info...<br><br>The malfunction seems to be in oil_cpu_fault_check_try when it calls func(priv) for rgb2bgr_ppc:<br><br>liboil-0.3.12/liboil/powerpc/rgb2bgr.c:<br> rgb2bgr_ppc (uint8_t *dest, uint8_t* src, int n)<br><br>Unfortunately, I don't know enough PPC64 assembly to deduce what's wrong , but the PPC970 doesn't like that code.<br><br>I installed gcc 3.4 (from Debian Etch for ppc64), but it failed the same way as the gcc 4.1.2 build. Ditto for an earlier 0.3.10 tarball of liboil I pulled from the deb-src site...<br><br>Matt<br><br><div style="font-family: times new roman,new york,times,serif; font-size: 12pt;">------------------------------<br><br>Message: 2<br>Date: Wed, 31 Oct
2007 16:00:39 -0700 (PDT)<br>From: Matthew Clark <<a ymailto="mailto:tranzmatt@yahoo.com" href="mailto:tranzmatt@yahoo.com">tranzmatt@yahoo.com</a>><br>Subject: Re: [Liboil] PPC 970 (64 bit support)?<br>To: David Schleef <<a ymailto="mailto:ds@schleef.org" href="mailto:ds@schleef.org">ds@schleef.org</a>><br>Cc: <a ymailto="mailto:liboil@lists.freedesktop.org" href="mailto:liboil@lists.freedesktop.org">liboil@lists.freedesktop.org</a><br>Message-ID: <<a ymailto="mailto:767617.40822.qm@web38215.mail.mud.yahoo.com" href="mailto:767617.40822.qm@web38215.mail.mud.yahoo.com">767617.40822.qm@web38215.mail.mud.yahoo.com</a>><br>Content-Type: text/plain; charset="iso-8859-1"<br><br>I managed to get it to compile by making the following change in
.configure:<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>David Schleef <<a ymailto="mailto:ds@schleef.org" href="mailto:ds@schleef.org">ds@schleef.org</a>> wrote: 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>dave...<br><br><br></div><br></div></div><br>__________________________________________________<br>Do You Yahoo!?<br>Tired of spam? Yahoo! Mail has the best spam protection around <br>http://mail.yahoo.com </body></html>