USE_ASM flag and help compiling 3 year-old project

14 views
Skip to first unread message

juef

unread,
Jul 4, 2019, 9:57:30 PM7/4/19
to emscripten-discuss
Greetings,

I am trying to compile an old project from GitHub which uses emscripten, and the makefile calls emcc with a -s USE_ASM=1 flag. I am then presented with the following when trying the workers part of the makefile:

WARNING  root: Assigning a non-existent settings attribute "USE_ASM"
WARNING  root:  - did you mean one of USE_BSS, USE_FHEAP?
WARNING  root:  - perhaps a typo in emcc's  -s X=Y  notation?
WARNING  root:  - (see src/settings.js for valid values)


I have looked for such a setting in emscripten's current and old versions, including in src/settings.js of course, but with no success. Additionally, make fails with this:

Traceback (most recent call last):
  File "/usr/bin/emcc", line 1274, in <module>
    exec('shared.Settings.' + key + ' = ' + value)
  File "<string>", line 1, in <module>
NameError: name '_malloc' is not defined
Makefile:10: recipe for target 'workers' failed
make: *** [workers] Error 1


I would be forever grateful to anyone helping me compile this project. I only wish to compile it again so I can use a -O3 optimization...

Thank you very much for reading!

Александр Гурьянов

unread,
Jul 4, 2019, 10:40:50 PM7/4/19
to emscripte...@googlegroups.com
Hi. You can replace it with -s WASM=0. That means to produce asm.js as
output, if you set -s WASM=1 then output will be wasm.

пт, 5 июл. 2019 г. в 08:57, juef <jue...@hotmail.com>:
> --
> You received this message because you are subscribed to the Google Groups "emscripten-discuss" group.
> To unsubscribe from this group and stop receiving emails from it, send an email to emscripten-disc...@googlegroups.com.
> To view this discussion on the web visit https://groups.google.com/d/msgid/emscripten-discuss/f63a4fe2-155e-497f-8508-0c43a2fc2c42%40googlegroups.com.
> For more options, visit https://groups.google.com/d/optout.
Reply all
Reply to author
Forward
0 new messages