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.&nbsp;&nbsp; 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>&nbsp;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&nbsp; -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>The offending code seems to be:<br><br>asm volatile ("vor v0, v0, v0\n");<br><br>So I checked asm/ppc_asm.h and didn't see v0, but saw vr0 for the altivec.&nbsp; I hacked the code to
 add/change "v" register references to "vr".&nbsp; But now it's balking on:<br><br>gcc -DHAVE_CONFIG_H -I. -I. -I../.. -Wall -D_BSD_SOURCE <br>-D_GNU_SOURCE -I../.. -g -O2 -MT libdeprecated_la-vectoradd_f64.lo <br>-MD -MP -MF .deps/libdeprecated_la-vectoradd_f64.Tpo -c vectoradd_f64.c&nbsp; <br>-fPIC -DPIC -o .libs/libdeprecated_la-vectoradd_f64.o<br><br>vectoradd_f64.c:76: error: expected ';', ',' or ')' before numeric constant<br>vectoradd_f64.c:76: error: 'vectoradd_s8_ref' undeclared here (not in a function)<br>vectoradd_f64.c:97: error: expected ';', ',' or ')' before numeric constant<br>vectoradd_f64.c:97: error: 'vectoradd_u8_ref' undeclared here (not in a function)<br>vectoradd_f64.c:118: error: expected ';', ',' or ')' before numeric constant<br>vectoradd_f64.c:118: error: 'vectoradd_s16_ref' undeclared here (not in a function)<br>vectoradd_f64.c:139: error: expected ';', ',' or ')' before numeric constant<br>vectoradd_f64.c:139: error: 'vectoradd_u16_ref'
 undeclared here (not in a function)<br>vectoradd_f64.c:160: error: expected ';', ',' or ')' before numeric constant<br>vectoradd_f64.c:160: error: 'vectoradd_s32_ref' undeclared here (not in a function)<br>vectoradd_f64.c:181: error: expected ';', ',' or ')' before numeric constant<br>vectoradd_f64.c:181: error: 'vectoradd_u32_ref' undeclared here (not in a function)<br>vectoradd_f64.c:202: error: expected ';', ',' or ')' before numeric constant<br>vectoradd_f64.c:202: error: 'vectoradd_f32_ref' undeclared here (not in a function)<br>vectoradd_f64.c:223: error: expected ';', ',' or ')' before numeric constant<br>vectoradd_f64.c:223: error: 'vectoradd_f64_ref' undeclared here (not in a function)<br><br>Can anyone help me get this working, or is this a futile effort?<br><br>Thanks,<br><br>Matt<br><p>&#32;__________________________________________________<br>Do You Yahoo!?<br>Tired of spam?  Yahoo! Mail has the best spam protection around <br>http://mail.yahoo.com