Re: [chuck-users] FaucK compilation/installation problem?

Hi Marc,
I installed the package you can find under 'Linux'.
Cheers,
Mario
Sent from my WIKO U PULSE LITEOn 27 Jan 2019 13:35, Marc Lavallée

Le 2019-01-27 à 9:07 a.m., Mario Buoninfante a écrit :
It doesn't work with the versions of ChucK and/or Faust I installed (I compiled them both from sources). I prefer not to use (and commit myself to) software I can't compile. So I'll ask on chuck-dev. Thanks Marc

Hey Marc,
Can you try running with logging verbosity turned up? Log level at -v5
should do the trick:
chuck -v5 examples/flute.ck
And then post the results here? This will help indicate what the problem
could be.
Spencer
On Sun, Jan 27, 2019 at 6:22 AM Marc Lavallée

Le 2019-01-27 à 4:08 p.m., Spencer Salazar a écrit :
Hi Spencer. Thanks for the tip. I guess we should have this conversation on the dev list, but let's assume that I'm a user that prefer to compile software before using them... So the problem is an undefined symbol... I used clang/llvm 8 to compile Faust, but I used gcc to compile ChucK; could it be the cause? Faust> chuck -v5 examples/flute.ck [chuck]:(2:SYSTEM): setting log level to: 5 (INFORM)... [chuck]:(2:SYSTEM): setting log level to: 5 (INFORM)... [chuck]:(2:SYSTEM): initializing virtual machine... [chuck]:(2:SYSTEM): | locking down special objects... [chuck]:(2:SYSTEM): | allocating shreduler... [chuck]:(2:SYSTEM): | allocating messaging buffers... [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 'fileio' [chuck]:(3:SEVERE): | | | class 'chout' [chuck]:(3:SEVERE): | | | class 'cherr' [chuck]:(3:SEVERE): | | | class 'vec3' (primitive) [chuck]:(3:SEVERE): | | | class 'vec4' (primitive) [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]:(3:SEVERE): | | class 'RegEx'... [chuck]:(3:SEVERE): | | class 'SerialIO' [chuck]:(3:SEVERE): | loading chugins [chuck]:(5:INFORM): | | examining directory '/usr/local/lib/chuck' for chugins [chuck]:(3:SEVERE): | | loading chugin 'Faust.chug' [chuck]:(3:SEVERE): | | error loading chugin 'Faust.chug', skipping [chuck]:(3:SEVERE): | | error from chuck_dl: '/usr/local/lib/chuck/Faust.chug: undefined symbol: _Z16deleteDSPFactoryP16llvm_dsp_factory' [chuck]:(3:SEVERE): | | loading chugin 'PowerADSR.chug' [chuck]:(3:SEVERE): | | loading chugin 'FoldbackSaturator.chug' [chuck]:(3:SEVERE): | | loading chugin 'WPKorg35.chug' [chuck]:(3:SEVERE): | | loading chugin 'Overdrive.chug' [chuck]:(3:SEVERE): | | loading chugin 'Sigmund.chug' [chuck]:(3:SEVERE): | | loading chugin 'Binaural.chug' [chuck]:(3:SEVERE): | | loading chugin 'WinFuncEnv.chug' [chuck]:(3:SEVERE): | | loading chugin 'ABSaturator.chug' [chuck]:(3:SEVERE): | | loading chugin 'ExpEnv.chug' [chuck]:(3:SEVERE): | | loading chugin 'PanN.chug' [chuck]:(3:SEVERE): | | loading chugin 'MagicSine.chug' [chuck]:(3:SEVERE): | | loading chugin 'KasFilter.chug' [chuck]:(3:SEVERE): | | loading chugin 'PitchTrack.chug' [chuck]:(3:SEVERE): | | loading chugin 'Elliptic.chug' [chuck]:(3:SEVERE): | | loading chugin 'Mesh2D.chug' [chuck]:(3:SEVERE): | | loading chugin 'Spectacle.chug' [chuck]:(3:SEVERE): | | loading chugin 'Bitcrusher.chug' [chuck]:(3:SEVERE): | | loading chugin 'Wavetable.chug' [chuck]:(3:SEVERE): | | loading chugin 'GVerb.chug' [chuck]:(3:SEVERE): | | loading chugin 'NHHall.chug' [chuck]:(3:SEVERE): | | loading chugin 'AmbPan.chug' [chuck]:(3:SEVERE): | | loading chugin 'ExpDelay.chug' [chuck]:(3:SEVERE): | | loading chugin 'FluidSynth.chug' [chuck]:(3:SEVERE): | | loading chugin 'Random.chug' [chuck]:(3:SEVERE): | | loading chugin 'WPDiodeLadder.chug' [chuck]:(3:SEVERE): | | loading chugin 'Ladspa.chug' [chuck]:(3:SEVERE): | | loading chugin 'FIR.chug' [chuck]:(3:SEVERE): | | loading chugin 'Perlin.chug' [chuck]:(3:SEVERE): | | loading chugin 'Multicomb.chug' [chuck]:(5:INFORM): | | examining directory '/usr/local/lib/chuck' for chugins [chuck]:(3:SEVERE): | | loading chugin 'Faust.chug' [chuck]:(3:SEVERE): | | error loading chugin 'Faust.chug', skipping [chuck]:(3:SEVERE): | | error from chuck_dl: '/usr/local/lib/chuck/Faust.chug: undefined symbol: _Z16deleteDSPFactoryP16llvm_dsp_factory' [chuck]:(3:SEVERE): | | loading chugin 'PowerADSR.chug' [chuck]:(3:SEVERE): | | loading chugin 'FoldbackSaturator.chug' [chuck]:(3:SEVERE): | | loading chugin 'WPKorg35.chug' [chuck]:(3:SEVERE): | | loading chugin 'Overdrive.chug' [chuck]:(3:SEVERE): | | loading chugin 'Sigmund.chug' [chuck]:(3:SEVERE): | | loading chugin 'Binaural.chug' [chuck]:(3:SEVERE): | | loading chugin 'WinFuncEnv.chug' [chuck]:(3:SEVERE): | | loading chugin 'ABSaturator.chug' [chuck]:(3:SEVERE): | | loading chugin 'ExpEnv.chug' [chuck]:(3:SEVERE): | | loading chugin 'PanN.chug' [chuck]:(3:SEVERE): | | loading chugin 'MagicSine.chug' [chuck]:(3:SEVERE): | | loading chugin 'KasFilter.chug' [chuck]:(3:SEVERE): | | loading chugin 'PitchTrack.chug' [chuck]:(3:SEVERE): | | loading chugin 'Elliptic.chug' [chuck]:(3:SEVERE): | | loading chugin 'Mesh2D.chug' [chuck]:(3:SEVERE): | | loading chugin 'Spectacle.chug' [chuck]:(3:SEVERE): | | loading chugin 'Bitcrusher.chug' [chuck]:(3:SEVERE): | | loading chugin 'Wavetable.chug' [chuck]:(3:SEVERE): | | loading chugin 'GVerb.chug' [chuck]:(3:SEVERE): | | loading chugin 'NHHall.chug' [chuck]:(3:SEVERE): | | loading chugin 'AmbPan.chug' [chuck]:(3:SEVERE): | | loading chugin 'ExpDelay.chug' [chuck]:(3:SEVERE): | | loading chugin 'FluidSynth.chug' [chuck]:(3:SEVERE): | | loading chugin 'Random.chug' [chuck]:(3:SEVERE): | | loading chugin 'WPDiodeLadder.chug' [chuck]:(3:SEVERE): | | loading chugin 'Ladspa.chug' [chuck]:(3:SEVERE): | | loading chugin 'FIR.chug' [chuck]:(3:SEVERE): | | loading chugin 'Perlin.chug' [chuck]:(3:SEVERE): | | loading chugin 'Multicomb.chug' [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]:(3:SEVERE): pre-loading ChucK libs... [chuck]:(2:SYSTEM): starting listener on port: 8888... [chuck]:(2:SYSTEM): initializing audio I/O... [chuck]:(2:SYSTEM): | probing 'real-time' audio subsystem... [chuck]:(3:SEVERE): | allocating buffers for 256 x 2 samples... [chuck]:(2:SYSTEM): | real-time audio: YES [chuck]:(2:SYSTEM): | mode: CALLBACK [chuck]:(2:SYSTEM): | sample rate: 48000 [chuck]:(2:SYSTEM): | buffer size: 256 [chuck]:(2:SYSTEM): | num buffers: 8 [chuck]:(2:SYSTEM): | adc: 0 dac: 0 [chuck]:(2:SYSTEM): | adaptive block processing: 0 [chuck]:(2:SYSTEM): | channels in: 2 out: 2 [chuck]:(3:SEVERE): starting compilation... [flute.ck]:line(5): undefined type 'Faust'... [flute.ck]:line(5): ... in declaration ... [chuck]:(2:SYSTEM): | running main loop... [chuck]:(3:SEVERE): | | virtual machine running... [chuck]:(2:SYSTEM): | virtual machine stopped... [chuck]:(2:SYSTEM): | virtual machine stopped... [chuck]:(5:INFORM): | detaching all resources... [chuck]:(5:INFORM): | | shutting down HID... [chuck]:(5:INFORM): | | shutting down serial devices [chuck]:(5:INFORM): | (via STK): detaching file handles... [chuck]:(2:SYSTEM): | unprotecting special objects... [chuck]:(2:SYSTEM): | locking down special objects... [chuck]:(2:SYSTEM): | shutting down virtual machine... [chuck]:(2:SYSTEM): | | unprotecting special objects... [chuck]:(2:SYSTEM): | | freeing shreduler... [chuck]:(2:SYSTEM): | | unregistering VM from HID manager... [chuck]:(2:SYSTEM): | | freeing msg/reply/event buffers... [chuck]:(3:SEVERE): | | clearing shreds... [chuck]:(3:SEVERE): | | | freeing dumped shreds... [chuck]:(2:SYSTEM): | | freeing special ugens... [chuck]:(2:SYSTEM): | | locking down special objects... [chuck]:(2:SYSTEM): | | virtual machine shutdown complete. [chuck]:(2:SYSTEM): | shutting down compiler... [chuck]:(3:SEVERE): | | shutting down type checker... [chuck]:(3:SEVERE): | | type checker shutdown complete. Marc

Sweet! I would try using the same compiler for both, and also ensuring your
Faust library, chugin, and ChucK are all using the same architecture
(assuming x86_64).
Maybe Romain has seen this error before?
Spencer
On Sun, Jan 27, 2019 at 2:57 PM Marc Lavallée
participants (3)
-
Marc Lavallée
-
Mario Buoninfante
-
Spencer Salazar