[chuck-users] faust chugin compile errors

Ge Wang ge at ccrma.Stanford.EDU
Sun Aug 27 18:21:19 EDT 2023


Thanks for the report! Inline responses below:

> I compiled the latest (chuck-1.5.1.2) and chugins
> on linux , but the faust chugin thows an error
> when compiling.
> 
> I changed SAFE_DELETE to CK_SAFE_DELETE
> and it compiled without error.
> -----------------------------------
> 
> g++   -c -o Faust.o Faust.cpp -pthread -D__LINUX_ALSA__
> -D__PLATFORM_LINUX__ -I../chuck/include -fPIC -O3
> Faust.cpp: In member function ‘void Faust::clear()’:
> Faust.cpp:252:9: error: ‘SAFE_DELETE’ was not declared in this scope;
> did you mean ‘CK_SAFE_DELETE’?
>    252 |         SAFE_DELETE(m_dsp);
>        |         ^~~~~~~~~~~
>        |         CK_SAFE_DELETE
> -----------------------------

Good catch. We have pushed the CK_DELETE_* macro update to chugins repo 
main branch.

> But chuck does not seem to find it

> $  ls /usr/local/lib/chuck/Faust.chug
> /usr/local/lib/chuck/Faust.chug
> -------------------------------
> $ chuck clarinet.ck
> [chuck]: RtApiAlsa::getDeviceInfo: snd_pcm_open error for device
> (hw:0,0), Device or resource busy. [chuck]: RtApiAlsa::probeDeviceOpen:
> unable to synchronize input and output devices. clarinet.ck:5:1: error:
> undefined type 'Faust'... [5] Faust clarinet => dac;
>      ^
> clarinet.ck:5:1: error: ...in declaration
> [5] Faust clarinet => dac;
>      ^

There are few tools for diagnosing chugins at runtime:

1) run `chuck --chugin-probe` to see what chugins would be loaded (and 
from where)
2) run `chuck clarinet.ck` with the -v3 (verbose level 3) to see what 
chugins are actually loaded (with more error reporting here)

What do you see? Any errors?

> [chuck]: RtApiAlsa::probeDeviceOpen: unable to synchronize input and
> output devices. [chuck]: RtApiAlsa::probeDeviceOpen: unable to
> synchronize input and output devices.
> 
> -------------------------
> also.. I am using pipewire , it  works fine,
> but I get these annoying messages
> -------------------------------
> $ chuck  krstlchr-algo7.ck
> [chuck]: RtApiAlsa::getDeviceInfo: snd_pcm_open error for device
> (hw:0,0), Device or resource busy.
> [chuck]: RtApiAlsa::probeDeviceOpen: unable to synchronize input and
> output devices.
> [chuck]: RtApiAlsa::probeDeviceOpen: unable to synchronize input and
> output devices.

We have updated the error reporting where warnings will now only be 
printed on verbose level 4 ("WARN") or higher. Also fixed a bug that 
resulted in false positive error reporting on linux ALSA. These will be 
part of the next release, 1.5.1.3.

> thanks for chuck!

thanks for chucking!

Ge!

~~~
Ge Wang
Associate Professor
Center for Computer Research in Music and Acoustics (CCRMA)
Department of Music (also Computer Science, by Courtesy)
Stanford University
https://ccrma.stanford.edu/~ge/
~
Artful Design: Technology in Search of the Sublime!
-- what we make, makes us --
https://artful.design/
~~~


More information about the chuck-users mailing list