Csound Csound-dev Csound-tekno Search About

[Csnd] wasm csound

Date2017-11-12 09:09
FromFrancesco Porta
Subject[Csnd] wasm csound
Hi All,
trying wasm csound i have this printed in console:

Csound Started !
Assertion failed: Cannot call unknown function FileList_getFileCount (perhaps LLVM optimizations or closure removed it?)
Assertion failed: Cannot call unknown function FileList_getFileCount (perhaps LLVM optimizations or closure removed it?)

so there are no files listed on the page.
Is it something wrong with my wasm build?

I'm on Ubuntu 16.04 Csound latest develop, emsdk 1.37.13 also tested with emsdk 1.37.22

Thanks,
ciao,
francesco

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

Date2017-11-13 22:02
FromSteven Yi
SubjectRe: [Csnd] wasm csound
Hi Francesco,

I see this change in build-wasm.sh:

-emcc -s LINKABLE=1 ../src/CsoundObj.c -I../../include -Iinclude -o CsoundObj.bc
-emcc -s LINKABLE=1 ../src/FileList.c -Iinclude -o FileList.bc
+emcc -O2 -g4 ../src/FileList.c -s LINKABLE=1  -s ASSERTIONS=1
-Iinclude -o FileList.bc
+emcc -O2 -g4 ../src/CsoundObj.c -s LINKABLE=1 -s ASSERTIONS=1
-I../../include -Iinclude -o CsoundObj.bc

That adds -O2 -g4 to the build settings for FileList.c and
CsoundObj.c.  I suspect this is causing an issue.

1. Could you try locally to take out -O2 -g4 from those two lines in
build-wasm.sh then building?
2. Michael Gogins: This was introduced in your commits; I don't know
if this was intentional?




On Sun, Nov 12, 2017 at 4:09 AM, Francesco Porta
 wrote:
> Hi All,
> trying wasm csound i have this printed in console:
>
> Csound Started !
> Assertion failed: Cannot call unknown function FileList_getFileCount (perhaps LLVM optimizations or closure removed it?)
> Assertion failed: Cannot call unknown function FileList_getFileCount (perhaps LLVM optimizations or closure removed it?)
>
> so there are no files listed on the page.
> Is it something wrong with my wasm build?
>
> I'm on Ubuntu 16.04 Csound latest develop, emsdk 1.37.13 also tested with emsdk 1.37.22
>
> Thanks,
> ciao,
> francesco
>
> 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