Benchmarks not working
faustovanin opened this issue · comments
When running on MacOS Big Sur the command npm run seal:build:bench
it generates the following error:
> node-seal@4.5.7 seal:build:bench
> export BUILD_BENCH=ON && export THROW_ON_TRANSPARENT=ON && npm run seal:cmake && npm run seal:make
> node-seal@4.5.7 seal:cmake
> bash scripts/seal-cmake.sh
scripts/seal-cmake.sh: line 4: ./emsdk_env.sh: No such file or directory
scripts/seal-cmake.sh: line 18: emcmake: command not found
It seems like the script file emsdk_env.sh
is missing from the repository.
Hey @faustovanin, to build anything you need the emsdk
installed on your system. node-seal contains the emsdk
repo as a submodule, but if you didn't clone recursively, you'd need to update the submodules to pull in their respective code dependencies.
Try running:
- First,
npm run submodule:update
- Then,
npm run em:update
- Finally,
npm run seal:build:bench
If that doesn't work, please post back with the errors you get.
Thanks for the reply, @s0l0ist
I think that something is still missing. After running npm run em:update
it gave me the following error message:
error: pathspec 'main' did not match any file(s) known to git
fatal: 'upstream' does not appear to be a git repository
fatal: Could not read from remote repository.
Please make sure you have the correct access rights
and the repository exists.
merge: upstream/main - not something we can merge
scripts/em-update.sh: line 8: ./emsdk: No such file or directory
scripts/em-update.sh: line 9: ./emsdk: No such file or directory
If you have any additional hint, it would be great!
Seems to be an issue with submodules. Try deleting your clone and cloning with git clone --recursive ...