# Wam Build Error

**URL:** <https://iplug2.discourse.group/t/wam-build-error/529>\
**Category:** Web Audio Modules\
**Created:** [25 December 2021 23:27 UTC](https://iplug2.discourse.group/t/wam-build-error/529 "2021-12-25T23:27:41Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![Yomy](https://avatars.discourse-cdn.com/v4/letter/y/ea5d25/32.png) [@Yomy](https://iplug2.discourse.group/u/Yomy)\
**Post date:** [25 December 2021 23:27 UTC](https://iplug2.discourse.group/t/wam-build-error/529/1 "2021-12-25T23:27:41Z")

</div>

Hi everybody,

I’m trying to build a wam version of my plugin.  
When running the ./makedist-web.sh on my mac I get the following error:

shared:INFO: (Emscripten: Running sanity checks)  
emcc: error: EXPORT\_NAME is not a valid JS identifier: `AudioWorkletGlobalScope.WAM.MyNewPlugin`  
make: \*\*\* […/build-web/scripts/MyNewPlugin-wam.js] Error 1  
emmake: error: ‘make --makefile MyNewPlugin-wam-processor.mk’ failed (returned 2)  
IPlugWAM WASM compilation failed

I get the same error when trying to build the example plugins.  
However it builds just fine when I build it on the docker.

One more thing - is it possible to load a .fxp preset file on the wam build? reading / writing any files on the server?

Thanks.

---

<div class="post-metadata">

**Author:** ![olilarkin](https://yyz2.discourse-cdn.com/free1/user_avatar/iplug2.discourse.group/olilarkin/32/2_2.png) [@olilarkin](https://iplug2.discourse.group/u/olilarkin)\
**Post date:** [26 December 2021 01:40 UTC](https://iplug2.discourse.group/t/wam-build-error/529/2 "2021-12-26T01:40:28Z")

</div>

Hello,

Great to see people trying this 😉

This is an issue with the latest versions of emscripten. You can hack emscripten to work around it by modifying the following line to return true

> <https://github.com/emscripten-core/emscripten/blob/89c98c744f555dfe53220944b087367b76890bb7/tools/shared.py#L668>

---

<div class="post-metadata">

**Author:** ![Yomy](https://avatars.discourse-cdn.com/v4/letter/y/ea5d25/32.png) [@Yomy](https://iplug2.discourse.group/u/Yomy)\
**Post date:** [26 December 2021 13:58 UTC](https://iplug2.discourse.group/t/wam-build-error/529/3 "2021-12-26T13:58:54Z")

</div>

Thanks a lot for the quick answer.  
It works now.

The line is now in tools/js\_manipulation.py line 97 in the latest version, if anybody run to this issue.

Any idea about loading presets files / audio files?

---

<div class="post-metadata">

**Author:** ![olilarkin](https://yyz2.discourse-cdn.com/free1/user_avatar/iplug2.discourse.group/olilarkin/32/2_2.png) [@olilarkin](https://iplug2.discourse.group/u/olilarkin)\
**Post date:** [26 December 2021 14:07 UTC](https://iplug2.discourse.group/t/wam-build-error/529/4 "2021-12-26T14:07:29Z")

</div>

I talk about this a bit in this ADC presentation

[![](https://global.discourse-cdn.com/free1/uploads/iplug2/original/1X/47e0d5a299e84b2d2579b286355cbd158d9d530e.jpeg "Oli Larkin - Bringing VirtualCZ to the Web") ](https://www.youtube.com/watch?v=IRLxMhksUZ0)

For [https://virtualcz.io](https://virtualcz.io), I just use MakePresetFromBlob() and bake in presets.

If you want to load presets and audio files at runtime, you’ll have to investigate the emscripten APIs for that kind of thing
