building VTK for webAssembly,ninja: build stopped: subcommand failed

I’d advise against building from the GitHub sources. These are supposed to be used by VTK developers. I recommend downloading the sources from here: Download | VTK, which are packed for end users.