Csound Csound-dev Csound-tekno Search About

pffft.c and Raspberry Pi 3

Date2016-05-25 11:25
Fromebmtranceboy
Subjectpffft.c and Raspberry Pi 3
Hi,
trying to build from https://github.com/csound/csound.git this morning and had a lot of errors on pffft.c :


the end of StdErr:
-------------------

(...)

/home/pi/Downloads/csound/csound/OOps/pffft.c: In function ‘pffft_cplx_finalize’:
/home/pi/Downloads/csound/csound/OOps/pffft.c:165:5: error: unknown type name ‘float32x4x2_t’
     float32x4x2_t t0_ = vzipq_f32(x0, x2);                              \
     ^
/home/pi/Downloads/csound/csound/OOps/pffft.c:1347:5: note: in expansion of macro ‘VTRANSPOSE4’
     VTRANSPOSE4(r0,r1,r2,r3);
     ^
(...)

/home/pi/Downloads/csound/csound/OOps/pffft.c:162:118: error: request for member ‘val’ in something not a structure or union
 #  define INTERLEAVE2(in1, in2, out1, out2) { float32x4x2_t tmp__ = vzipq_f32(in1,in2); out1=tmp__.val[0]; out2=tmp__.val[1]; }
                                                                                                                      ^
/home/pi/Downloads/csound/csound/OOps/pffft.c:1659:9: note: in expansion of macro ‘INTERLEAVE2’
         INTERLEAVE2(buff[ib][k*2], buff[ib][k*2+1], buff[ib][k*2], buff[ib][k*2+1]);
         ^
make[2]: *** [CMakeFiles/csound64.dir/OOps/pffft.c.o] Error 1
make[2]: *** Waiting for unfinished jobs....
make[1]: *** [CMakeFiles/csound64.dir/all] Error 2
make[1]: *** Waiting for unfinished jobs....
make: *** [all] Error 2



the end of StdOut:
--------------------

(...)

[ 20%] Building C object CMakeFiles/csound64.dir/OOps/pffft.c.o
[ 20%] Building C object CMakeFiles/csound64.dir/OOps/goto_ops.c.o
CMakeFiles/csound64.dir/build.make:1038: recipe for target 'CMakeFiles/csound64.dir/OOps/pffft.c.o' failed
Scanning dependencies of target system_call
[ 20%] Building C object Opcodes/CMakeFiles/system_call.dir/system_call.c.o
Scanning dependencies of target urandom
[ 21%] Building C object Opcodes/CMakeFiles/urandom.dir/urandom.c.o
CMakeFiles/Makefile2:60: recipe for target 'CMakeFiles/csound64.dir/all' failed
Linking C shared module ../libsystem_call.so
[ 21%] Built target system_call
Linking C shared module ../liburandom.so
[ 21%] Built target urandom
Linking CXX shared module ../libsignalflowgraph.so
[ 21%] Built target signalflowgraph
Makefile:147: recipe for target 'all' failed


This is the first time I build for RPi, I must have missed something ...

Csound mailing list
Csound@listserv.heanet.ie
https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND
Send bugs reports to
        https://github.com/csound/csound/issues
Discussions of bugs and features can be posted here

Date2016-05-25 11:52
FromVictor Lazzarini
SubjectRe: pffft.c and Raspberry Pi 3
Can you give us the full list of errors? PFFFT tries to use NEON vector code on Arm, and it might be that it
just can’t find the suitable headers (or maybe they are not present). 

To disable the vector code, I think you can add -DPFFFT_SIMD_DISABLE to CMAKE_C_FLAGS (eg. in custom.cmake),
and that should get you through the compilation.


========================
Dr Victor Lazzarini
Dean of Arts, Celtic Studies and Philosophy,
Maynooth University,
Maynooth, Co Kildare, Ireland
Tel: 00 353 7086936
Fax: 00 353 1 7086952 

> On 25 May 2016, at 11:25, ebmtranceboy  wrote:
> 
> Hi,
> trying to build from https://github.com/csound/csound.git this morning and had a lot of errors on pffft.c :
> 
> 
> the end of StdErr:
> -------------------
> 
> (...)
> 
> /home/pi/Downloads/csound/csound/OOps/pffft.c: In function ‘pffft_cplx_finalize’:
> /home/pi/Downloads/csound/csound/OOps/pffft.c:165:5: error: unknown type name ‘float32x4x2_t’
>     float32x4x2_t t0_ = vzipq_f32(x0, x2);                              \
>     ^
> /home/pi/Downloads/csound/csound/OOps/pffft.c:1347:5: note: in expansion of macro ‘VTRANSPOSE4’
>     VTRANSPOSE4(r0,r1,r2,r3);
>     ^
> (...)
> 
> /home/pi/Downloads/csound/csound/OOps/pffft.c:162:118: error: request for member ‘val’ in something not a structure or union
> #  define INTERLEAVE2(in1, in2, out1, out2) { float32x4x2_t tmp__ = vzipq_f32(in1,in2); out1=tmp__.val[0]; out2=tmp__.val[1]; }
>                                                                                                                      ^
> /home/pi/Downloads/csound/csound/OOps/pffft.c:1659:9: note: in expansion of macro ‘INTERLEAVE2’
>         INTERLEAVE2(buff[ib][k*2], buff[ib][k*2+1], buff[ib][k*2], buff[ib][k*2+1]);
>         ^
> make[2]: *** [CMakeFiles/csound64.dir/OOps/pffft.c.o] Error 1
> make[2]: *** Waiting for unfinished jobs....
> make[1]: *** [CMakeFiles/csound64.dir/all] Error 2
> make[1]: *** Waiting for unfinished jobs....
> make: *** [all] Error 2
> 
> 
> 
> the end of StdOut:
> --------------------
> 
> (...)
> 
> [ 20%] Building C object CMakeFiles/csound64.dir/OOps/pffft.c.o
> [ 20%] Building C object CMakeFiles/csound64.dir/OOps/goto_ops.c.o
> CMakeFiles/csound64.dir/build.make:1038: recipe for target 'CMakeFiles/csound64.dir/OOps/pffft.c.o' failed
> Scanning dependencies of target system_call
> [ 20%] Building C object Opcodes/CMakeFiles/system_call.dir/system_call.c.o
> Scanning dependencies of target urandom
> [ 21%] Building C object Opcodes/CMakeFiles/urandom.dir/urandom.c.o
> CMakeFiles/Makefile2:60: recipe for target 'CMakeFiles/csound64.dir/all' failed
> Linking C shared module ../libsystem_call.so
> [ 21%] Built target system_call
> Linking C shared module ../liburandom.so
> [ 21%] Built target urandom
> Linking CXX shared module ../libsignalflowgraph.so
> [ 21%] Built target signalflowgraph
> Makefile:147: recipe for target 'all' failed
> 
> 
> This is the first time I build for RPi, I must have missed something ...
> 
> Csound mailing list
> Csound@listserv.heanet.ie
> https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND
> Send bugs reports to
>        https://github.com/csound/csound/issues
> Discussions of bugs and features can be posted here

Csound mailing list
Csound@listserv.heanet.ie
https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND
Send bugs reports to
        https://github.com/csound/csound/issues
Discussions of bugs and features can be posted here