[chuck-users] Problems compiling and running ChucK on Arch Linux

Cody Loyd codyloyd at gmail.com
Thu Sep 10 14:20:03 EDT 2009


hey.. actually i misread your email.

you already answered the question that was answered me...

I also get the segfault after compiling it myself.  there is a version
in the AUR that works though. (it is a little outof date though)

sorry

On Thu, Sep 10, 2009 at 1:18 PM, Cody Loyd <codyloyd at gmail.com> wrote:
> search on the arch forums  i started a thread about this and was
> pointed to the answer promptly.   I am at work or i'd look it up for
> you..... (i am mrcold on the forums)
>
> On Thu, Sep 10, 2009 at 12:01 PM, Sean Sawyer <sean at seansawyer.org> wrote:
>> Hi,
>>
>> I'm a ChucK newbie running on Arch Linux (gcc 4.4.1, libsndfile 1.0.20, ALSA 1.0.20, flex 2.5.35, bison 2.4.1, make 3.81). When compiling ChucK, g++ complains that the function sprintf is undeclared in util_string.cpp. Sure enough, stdio.h is not included in util_string.h (or in chuck_def.h). After adding the following line to either util_string.h or chuck_def.h, ChucK compiles successfully - but I then get seg faults when running simple example code (e.g., examples/moe.ck). Any ideas? Verbose output from ChucK leading up to the seg fault is below.
>>
>> Thanks in advance,
>> Sean
>>
>> [sean at zaphod src]$ ./chuck --verbose ../examples/basic/moe.ck
>> [chuck]:(2:SYSTEM): setting log level to: 5 (INFORM)...
>> [chuck]:(2:SYSTEM): initializing virtual machine...
>> [chuck]:(2:SYSTEM):  | behavior: HALT
>> [chuck]:(2:SYSTEM):  | locking down special objects...
>> [chuck]:(2:SYSTEM):  | allocating shreduler...
>> [chuck]:(2:SYSTEM):  | allocating messaging buffers...
>> [chuck]:(2:SYSTEM):  | real-time audio: YES
>> [chuck]:(2:SYSTEM):  | mode: CALLBACK
>> [chuck]:(2:SYSTEM):  | sample rate: 48000
>> [chuck]:(2:SYSTEM):  | buffer size: 512
>> [chuck]:(2:SYSTEM):  | num buffers: 8
>> [chuck]:(2:SYSTEM):  | devices adc: 0 dac: 0 (default 0)
>> [chuck]:(2:SYSTEM):  | channels in: 2 out: 2
>> [chuck]:(2:SYSTEM): initializing compiler...
>> [chuck]:(3:SEVERE):  | initializing type checker...
>> [chuck]:(3:SEVERE):  |  | adding base classes...
>> [chuck]:(3:SEVERE):  |  |  | class 'object'
>> [chuck]:(3:SEVERE):  |  |  | class 'array'
>> [chuck]:(3:SEVERE):  |  |  | class 'string'
>> [chuck]:(3:SEVERE):  |  |  | class 'ugen'
>> [chuck]:(3:SEVERE):  |  |  | class 'uanablob'
>> [chuck]:(3:SEVERE):  |  |  | class 'uana'
>> [chuck]:(3:SEVERE):  |  |  | class 'shred'
>> [chuck]:(3:SEVERE):  |  |  | class 'event'
>> [chuck]:(3:SEVERE):  |  |  | class 'io'
>> [chuck]:(3:SEVERE):  |  |  | class 'class'
>> [chuck]:(3:SEVERE):  | initializing emitter...
>> [chuck]:(3:SEVERE):  | loading built-in modules...
>> [chuck]:(3:SEVERE):  |  | module osc...
>> [chuck]:(3:SEVERE):  |  | module xxx...
>> [chuck]:(3:SEVERE):  |  | module filter...
>> [chuck]:(3:SEVERE):  |  | module STK...
>> [chuck]:(3:SEVERE):  |  | module xform...
>> [chuck]:(3:SEVERE):  |  | module extract...
>> [chuck]:(3:SEVERE):  |  | class 'machine'...
>> [chuck]:(3:SEVERE):  |  | class 'std'...
>> [chuck]:(5:INFORM):  |  | initializing KBHitManager...
>> [chuck]:(5:INFORM):  |  | starting kb loop...
>> [chuck]:(3:SEVERE):  |  | class 'math'...
>> [chuck]:(3:SEVERE):  |  | class 'opsc'...
>> [chuck]:(2:SYSTEM): type dependency resolution: MANUAL
>> [chuck]:(2:SYSTEM): initializing synthesis engine...
>> [chuck]:(3:SEVERE):  | initializing 'dac'...
>> [chuck]:(3:SEVERE):  | initializing 'adc'...
>> [chuck]:(3:SEVERE):  | initializing 'blackhole'...
>> [chuck]:(2:SYSTEM):  | initializing 'real-time' audio...
>> [chuck]:(5:INFORM):  |  | initializing callback...
>> [chuck]:(3:SEVERE):  | allocating buffers for 512 x 2 samples...
>> [chuck]:(3:SEVERE): starting compilation...
>> [chuck]:(2:SYSTEM): starting listener on port: 8888...
>> [chuck]:(2:SYSTEM): running virtual machine...
>> [chuck]:(3:SEVERE):  | initializing audio buffers...
>> [chuck]:(3:SEVERE):  | virtual machine running...
>> Segmentation fault
>> _______________________________________________
>> chuck-users mailing list
>> chuck-users at lists.cs.princeton.edu
>> https://lists.cs.princeton.edu/mailman/listinfo/chuck-users
>>
>


More information about the chuck-users mailing list