Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Compiling for WASM #305

Closed
lielfr opened this issue Mar 13, 2021 · 4 comments
Closed

Compiling for WASM #305

lielfr opened this issue Mar 13, 2021 · 4 comments

Comments

@lielfr
Copy link

lielfr commented Mar 13, 2021

Hi,
I have a little C++ project which uses SEAL internally, and I'm trying to make JS/WASM bindings for it.
It seems like the library cannot build for WASM using Emscripten, since running emcmake cmake -S . -B build -DCMAKE_INSTALL_PREFIX=~/js-libs and then cd build; emmake make -j fails:

make: make -j
[ 18%] Built target zlibstatic
[ 55%] Built target libzstd_static
[ 62%] Building CXX object CMakeFiles/seal.dir/native/src/seal/batchencoder.cpp.o
[ 62%] Building CXX object CMakeFiles/seal.dir/native/src/seal/ciphertext.cpp.o
[ 62%] Building CXX object CMakeFiles/seal.dir/native/src/seal/ckks.cpp.o
[ 63%] Building CXX object CMakeFiles/seal.dir/native/src/seal/context.cpp.o
[ 63%] Building CXX object CMakeFiles/seal.dir/native/src/seal/decryptor.cpp.o
[ 63%] Building CXX object CMakeFiles/seal.dir/native/src/seal/encryptionparams.cpp.o
[ 63%] Building CXX object CMakeFiles/seal.dir/native/src/seal/encryptor.cpp.o
[ 64%] Building CXX object CMakeFiles/seal.dir/native/src/seal/evaluator.cpp.o
[ 65%] Building CXX object CMakeFiles/seal.dir/native/src/seal/kswitchkeys.cpp.o
[ 67%] Building CXX object CMakeFiles/seal.dir/native/src/seal/memorymanager.cpp.o
[ 68%] Building CXX object CMakeFiles/seal.dir/native/src/seal/keygenerator.cpp.o
[ 70%] Building CXX object CMakeFiles/seal.dir/native/src/seal/modulus.cpp.o
[ 70%] Building CXX object CMakeFiles/seal.dir/native/src/seal/plaintext.cpp.o
[ 72%] Building CXX object CMakeFiles/seal.dir/native/src/seal/randomgen.cpp.o
[ 74%] Building CXX object CMakeFiles/seal.dir/native/src/seal/serialization.cpp.o
[ 74%] Building CXX object CMakeFiles/seal.dir/native/src/seal/util/common.cpp.o
[ 75%] Building CXX object CMakeFiles/seal.dir/native/src/seal/util/clipnormal.cpp.o
[ 75%] Building CXX object CMakeFiles/seal.dir/native/src/seal/valcheck.cpp.o
[ 77%] Building CXX object CMakeFiles/seal.dir/native/src/seal/util/croots.cpp.o
[ 78%] Building CXX object CMakeFiles/seal.dir/native/src/seal/util/globals.cpp.o
[ 79%] Building CXX object CMakeFiles/seal.dir/native/src/seal/util/iterator.cpp.o
[ 82%] Building CXX object CMakeFiles/seal.dir/native/src/seal/util/numth.cpp.o
[ 82%] Building CXX object CMakeFiles/seal.dir/native/src/seal/util/hash.cpp.o
[ 84%] Building CXX object CMakeFiles/seal.dir/native/src/seal/util/mempool.cpp.o
[ 84%] Building CXX object CMakeFiles/seal.dir/native/src/seal/util/polyarithsmallmod.cpp.o
[ 86%] Building CXX object CMakeFiles/seal.dir/native/src/seal/util/rlwe.cpp.o
[ 87%] Building CXX object CMakeFiles/seal.dir/native/src/seal/util/rns.cpp.o
[ 87%] Building CXX object CMakeFiles/seal.dir/native/src/seal/util/galois.cpp.o
[ 87%] Building CXX object CMakeFiles/seal.dir/native/src/seal/util/scalingvariant.cpp.o
[ 88%] Building CXX object CMakeFiles/seal.dir/native/src/seal/util/ntt.cpp.o
[ 92%] Building CXX object CMakeFiles/seal.dir/native/src/seal/util/streambuf.cpp.o
[ 93%] Building CXX object CMakeFiles/seal.dir/native/src/seal/util/uintcore.cpp.o
[ 93%] Building CXX object CMakeFiles/seal.dir/native/src/seal/util/uintarithmod.cpp.o
[ 93%] Building CXX object CMakeFiles/seal.dir/native/src/seal/util/uintarith.cpp.o
[ 94%] Building CXX object CMakeFiles/seal.dir/native/src/seal/util/uintarithsmallmod.cpp.o
[ 96%] Building CXX object CMakeFiles/seal.dir/native/src/seal/util/ztools.cpp.o
In file included from /Users/lielfridman/Projects/C++/SEAL/native/src/seal/util/uintarithsmallmod.cpp:4:
In file included from /Users/lielfridman/Projects/C++/SEAL/native/src/seal/util/uintarith.h:6:
In file included from /Users/lielfridman/Projects/C++/SEAL/native/src/seal/util/common.h:6:
/Users/lielfridman/Projects/C++/SEAL/native/src/seal/util/defines.h:81:2: error: "Unsupported system"
#error "Unsupported system"
 ^
In file included from /Users/lielfridman/Projects/C++/SEAL/native/src/seal/util/mempool.cpp:4:
In file included from /Users/lielfridman/Projects/C++/SEAL/native/src/seal/util/common.h:6:
/Users/lielfridman/Projects/C++/SEAL/native/src/seal/util/defines.h:81:2: error: "Unsupported system"
#error "Unsupported system"
 ^
In file included from /Users/lielfridman/Projects/C++/SEAL/native/src/seal/ckks.cpp:4:
In file included from /Users/lielfridman/Projects/C++/SEAL/native/src/seal/ckks.h:6:
In file included from /Users/lielfridman/Projects/C++/SEAL/native/src/seal/context.h:6:
In file included from /Users/lielfridman/Projects/C++/SEAL/native/src/seal/encryptionparams.h:6:
In file included from /Users/lielfridman/Projects/C++/SEAL/native/src/seal/memorymanager.h:6:
/Users/lielfridman/Projects/C++/SEAL/native/src/seal/util/defines.h:81:2: error: "Unsupported system"
#error "Unsupported system"
 ^
In file included from /Users/lielfridman/Projects/C++/SEAL/native/src/seal/util/common.cpp:8:
In file included from /Users/lielfridman/Projects/C++/SEAL/native/src/seal/util/common.h:6:
/Users/lielfridman/Projects/C++/SEAL/native/src/seal/util/defines.h:81:2: error: In file included from /Users/lielfridman/Projects/C++/SEAL/native/src/seal/util/uintarithmod.cpp:4:
In file included from "Unsupported system"/Users/lielfridman/Projects/C++/SEAL/native/src/seal/util/common.h:
6:
/Users/lielfridman/Projects/C++/SEAL/native/src/seal/util/defines.h:81:2: error: "Unsupported system"
#error "Unsupported system"
 ^
#error "Unsupported system"
 ^
In file included from /Users/lielfridman/Projects/C++/SEAL/native/src/seal/encryptionparams.cpp:4:
In file included from /Users/lielfridman/Projects/C++/SEAL/native/src/seal/encryptionparams.h:6:
In file included from In file included from /Users/lielfridman/Projects/C++/SEAL/native/src/seal/memorymanager.h/Users/lielfridman/Projects/C++/SEAL/native/src/seal/util/galois.cpp::6:
4/Users/lielfridman/Projects/C++/SEAL/native/src/seal/util/defines.h:
:In file included from 81/Users/lielfridman/Projects/C++/SEAL/native/src/seal/util/galois.h::26::
 In file included from /Users/lielfridman/Projects/C++/SEAL/native/src/seal/memorymanager.h:error: 6:
/Users/lielfridman/Projects/C++/SEAL/native/src/seal/util/defines.h:81:2:"Unsupported system" 
error: "Unsupported system"
#error "Unsupported system"
 ^
#error "Unsupported system"
 ^
In file included from /Users/lielfridman/Projects/C++/SEAL/native/src/seal/util/streambuf.cpp:4:
In file included from /Users/lielfridman/Projects/C++/SEAL/native/src/seal/util/streambuf.h:6:
In file included from /Users/lielfridman/Projects/C++/SEAL/native/src/seal/dynarray.h:6:
In file included from /Users/lielfridman/Projects/C++/SEAL/native/src/seal/memorymanager.h:6:
/Users/lielfridman/Projects/C++/SEAL/native/src/seal/util/defines.h:81:2: error: "Unsupported system"
#error "Unsupported system"
 ^
In file included from /Users/lielfridman/Projects/C++/SEAL/native/src/seal/util/uintarith.cpp:4:
In file included from /Users/lielfridman/Projects/C++/SEAL/native/src/seal/util/common.h:6:
/Users/lielfridman/Projects/C++/SEAL/native/src/seal/util/defines.h:81:2: error: "Unsupported system"
#error "Unsupported system"
 ^
In file included from /Users/lielfridman/Projects/C++/SEAL/native/src/seal/util/clipnormal.cpp:4:
In file included from /Users/lielfridman/Projects/C++/SEAL/native/src/seal/util/clipnormal.h:6:
/Users/lielfridman/Projects/C++/SEAL/native/src/seal/util/defines.h:81:2: error: "Unsupported system"
#error "Unsupported system"
 ^
In file included from /Users/lielfridman/Projects/C++/SEAL/native/src/seal/util/ntt.cpp:4:
In file included from /Users/lielfridman/Projects/C++/SEAL/native/src/seal/util/ntt.h:6:
In file included from /Users/lielfridman/Projects/C++/SEAL/native/src/seal/memorymanager.h:6:
/Users/lielfridman/Projects/C++/SEAL/native/src/seal/util/defines.h:81:2: error: "Unsupported system"
#error "Unsupported system"
 ^
In file included from /Users/lielfridman/Projects/C++/SEAL/native/src/seal/ciphertext.cpp:4:
In file included from /Users/lielfridman/Projects/C++/SEAL/native/src/seal/ciphertext.h:6:
In file included from /Users/lielfridman/Projects/C++/SEAL/native/src/seal/context.h:6:
In file included from /Users/lielfridman/Projects/C++/SEAL/native/src/seal/encryptionparams.h:6:
In file included from /Users/lielfridman/Projects/C++/SEAL/native/src/seal/memorymanager.h:6:
/Users/lielfridman/Projects/C++/SEAL/native/src/seal/util/defines.h:81:2: error: "Unsupported system"
#error "Unsupported system"
 ^
In file included from /Users/lielfridman/Projects/C++/SEAL/native/src/seal/util/rlwe.cpp:4:
In file included from /Users/lielfridman/Projects/C++/SEAL/native/src/seal/ciphertext.h:6:
In file included from /Users/lielfridman/Projects/C++/SEAL/native/src/seal/context.h:6:
In file included from /Users/lielfridman/Projects/C++/SEAL/native/src/seal/encryptionparams.h:6:
In file included from /Users/lielfridman/Projects/C++/SEAL/native/src/seal/memorymanager.h:6:
/Users/lielfridman/Projects/C++/SEAL/native/src/seal/util/defines.h:81:2: error: "Unsupported system"
#error "Unsupported system"
 ^
In file included from /Users/lielfridman/Projects/C++/SEAL/native/src/seal/decryptor.cpp:4:
In file included from /Users/lielfridman/Projects/C++/SEAL/native/src/seal/decryptor.h:6:
In file included from /Users/lielfridman/Projects/C++/SEAL/native/src/seal/ciphertext.h:6:
In file included from /Users/lielfridman/Projects/C++/SEAL/native/src/seal/context.h:6:
In file included from /Users/lielfridman/Projects/C++/SEAL/native/src/seal/encryptionparams.h:6:
In file included from /Users/lielfridman/Projects/C++/SEAL/native/src/seal/memorymanager.h:6:
/Users/lielfridman/Projects/C++/SEAL/native/src/seal/util/defines.h:81:2: error: "Unsupported system"
#error "Unsupported system"
 ^
In file included from /Users/lielfridman/Projects/C++/SEAL/native/src/seal/kswitchkeys.cpp:4:
In file included from /Users/lielfridman/Projects/C++/SEAL/native/src/seal/kswitchkeys.h:6:
In file included from /Users/lielfridman/Projects/C++/SEAL/native/src/seal/encryptionparams.h:6:
In file included from /Users/lielfridman/Projects/C++/SEAL/native/src/seal/memorymanager.h:6:
/Users/lielfridman/Projects/C++/SEAL/native/src/seal/util/defines.h:81:2: error: "Unsupported system"
#error "Unsupported system"
 ^
In file included from /Users/lielfridman/Projects/C++/SEAL/native/src/seal/plaintext.cpp:4:
In file included from /Users/lielfridman/Projects/C++/SEAL/native/src/seal/plaintext.h:6:
In file included from /Users/lielfridman/Projects/C++/SEAL/native/src/seal/context.h:6:
In file included from /Users/lielfridman/Projects/C++/SEAL/native/src/seal/encryptionparams.h:6:
In file included from /Users/lielfridman/Projects/C++/SEAL/native/src/seal/memorymanager.h:6:
/Users/lielfridman/Projects/C++/SEAL/native/src/seal/util/defines.h:81:2: error: "Unsupported system"
#error "Unsupported system"
 ^
In file included from /Users/lielfridman/Projects/C++/SEAL/native/src/seal/util/polyarithsmallmod.cpp:4:
In file included from /Users/lielfridman/Projects/C++/SEAL/native/src/seal/util/polyarithsmallmod.h:6:
In file included from /Users/lielfridman/Projects/C++/SEAL/native/src/seal/modulus.h:6:
In file included from /Users/lielfridman/Projects/C++/SEAL/native/src/seal/serialization.h:6:
In file included from /Users/lielfridman/Projects/C++/SEAL/native/src/seal/version.h:6:
/Users/lielfridman/Projects/C++/SEAL/native/src/seal/util/defines.h:81:2: error: "Unsupported system"
#error "Unsupported system"
 ^
In file included from /Users/lielfridman/Projects/C++/SEAL/native/src/seal/memorymanager.cpp:4:
In file included from /Users/lielfridman/Projects/C++/SEAL/native/src/seal/memorymanager.h:6:
/Users/lielfridman/Projects/C++/SEAL/native/src/seal/util/defines.h:81:2: error: "Unsupported system"
#error "Unsupported system"
 ^
In file included from /Users/lielfridman/Projects/C++/SEAL/native/src/seal/util/hash.cpp:4:
In file included from /Users/lielfridman/Projects/C++/SEAL/native/src/seal/util/hash.h:7:
In file included from /Users/lielfridman/Projects/C++/SEAL/native/src/seal/util/common.h:6:
/Users/lielfridman/Projects/C++/SEAL/native/src/seal/util/defines.h:81:2: error: "Unsupported system"
#error "Unsupported system"
 ^
In file included from /Users/lielfridman/Projects/C++/SEAL/native/src/seal/valcheck.cpp:4:
In file included from /Users/lielfridman/Projects/C++/SEAL/native/src/seal/ciphertext.h:6:
In file included from /Users/lielfridman/Projects/C++/SEAL/native/src/seal/context.h:6:
In file included from /Users/lielfridman/Projects/C++/SEAL/native/src/seal/encryptionparams.h:6:
In file included from /Users/lielfridman/Projects/C++/SEAL/native/src/seal/memorymanager.h:6:
/Users/lielfridman/Projects/C++/SEAL/native/src/seal/util/defines.h:81:2: error: "Unsupported system"
#error "Unsupported system"
 ^
In file included from /Users/lielfridman/Projects/C++/SEAL/native/src/seal/randomgen.cpp:4:
In file included from /Users/lielfridman/Projects/C++/SEAL/native/src/seal/randomgen.h:6:
In file included from /Users/lielfridman/Projects/C++/SEAL/native/src/seal/dynarray.h:6:
In file included from /Users/lielfridman/Projects/C++/SEAL/native/src/seal/memorymanager.h:6:
/Users/lielfridman/Projects/C++/SEAL/native/src/seal/util/defines.h:81:2: error: "Unsupported system"
#error "Unsupported system"
 ^
In file included from /Users/lielfridman/Projects/C++/SEAL/native/src/seal/util/uintcore.cpp:4:
In file included from /Users/lielfridman/Projects/C++/SEAL/native/src/seal/util/common.h:6:
/Users/lielfridman/Projects/C++/SEAL/native/src/seal/util/defines.h:81:2: error: "Unsupported system"
#error "Unsupported system"
 ^
In file included from /Users/lielfridman/Projects/C++/SEAL/native/src/seal/context.cpp:4:
In file included from /Users/lielfridman/Projects/C++/SEAL/native/src/seal/context.h:6:
In file included from /Users/lielfridman/Projects/C++/SEAL/native/src/seal/encryptionparams.h:6:
In file included from /Users/lielfridman/Projects/C++/SEAL/native/src/seal/memorymanager.h:6:
/Users/lielfridman/Projects/C++/SEAL/native/src/seal/util/defines.h:81:2: error: "Unsupported system"
#error "Unsupported system"
 ^
In file included from /Users/lielfridman/Projects/C++/SEAL/native/src/seal/util/ztools.cpp:4:
/Users/lielfridman/Projects/C++/SEAL/native/src/seal/util/defines.h:81:2: error: "Unsupported system"
#error "Unsupported system"
 ^
In file included from /Users/lielfridman/Projects/C++/SEAL/native/src/seal/serialization.cpp:4:
In file included from /Users/lielfridman/Projects/C++/SEAL/native/src/seal/dynarray.h:6:
In file included from /Users/lielfridman/Projects/C++/SEAL/native/src/seal/memorymanager.h:6:
/Users/lielfridman/Projects/C++/SEAL/native/src/seal/util/defines.h:81:2: error: "Unsupported system"
#error "Unsupported system"
 ^
In file included from /Users/lielfridman/Projects/C++/SEAL/native/src/seal/evaluator.cpp:4:
In file included from /Users/lielfridman/Projects/C++/SEAL/native/src/seal/evaluator.h:6:
In file included from /Users/lielfridman/Projects/C++/SEAL/native/src/seal/ciphertext.h:6:
In file included from /Users/lielfridman/Projects/C++/SEAL/native/src/seal/context.h:6:
In file included from /Users/lielfridman/Projects/C++/SEAL/native/src/seal/encryptionparams.h:6:
In file included from /Users/lielfridman/Projects/C++/SEAL/native/src/seal/memorymanager.h:6:
/Users/lielfridman/Projects/C++/SEAL/native/src/seal/util/defines.h:81:2: error: "Unsupported system"
#error "Unsupported system"
 ^
In file included from /Users/lielfridman/Projects/C++/SEAL/native/src/seal/util/numth.cpp:4:
In file included from /Users/lielfridman/Projects/C++/SEAL/native/src/seal/util/numth.h:6:
In file included from /Users/lielfridman/Projects/C++/SEAL/native/src/seal/memorymanager.h:6:
/Users/lielfridman/Projects/C++/SEAL/native/src/seal/util/defines.h:81:2: error: "Unsupported system"
#error "Unsupported system"
 ^
In file included from /Users/lielfridman/Projects/C++/SEAL/native/src/seal/util/iterator.cpp:4:
In file included from /Users/lielfridman/Projects/C++/SEAL/native/src/seal/ciphertext.h:6:
In file included from /Users/lielfridman/Projects/C++/SEAL/native/src/seal/context.h:6:
In file included from /Users/lielfridman/Projects/C++/SEAL/native/src/seal/encryptionparams.h:6:
In file included from /Users/lielfridman/Projects/C++/SEAL/native/src/seal/memorymanager.h:6:
/Users/lielfridman/Projects/C++/SEAL/native/src/seal/util/defines.h:81:2: error: "Unsupported system"
#error "Unsupported system"
 ^
In file included from /Users/lielfridman/Projects/C++/SEAL/native/src/seal/modulus.cpp:4:
In file included from /Users/lielfridman/Projects/C++/SEAL/native/src/seal/modulus.h:6:
In file included from /Users/lielfridman/Projects/C++/SEAL/native/src/seal/serialization.h:6:
In file included from /Users/lielfridman/Projects/C++/SEAL/native/src/seal/version.h:6:
/Users/lielfridman/Projects/C++/SEAL/native/src/seal/util/defines.h:81:2: error: "Unsupported system"
#error "Unsupported system"
 ^
In file included from /Users/lielfridman/Projects/C++/SEAL/native/src/seal/keygenerator.cpp:4:
In file included from /Users/lielfridman/Projects/C++/SEAL/native/src/seal/keygenerator.h:6:
In file included from /Users/lielfridman/Projects/C++/SEAL/native/src/seal/context.h:6:
In file included from /Users/lielfridman/Projects/C++/SEAL/native/src/seal/encryptionparams.h:6:
In file included from /Users/lielfridman/Projects/C++/SEAL/native/src/seal/memorymanager.h:6:
/Users/lielfridman/Projects/C++/SEAL/native/src/seal/util/defines.h:81:2: error: "Unsupported system"
#error "Unsupported system"
 ^
In file included from /Users/lielfridman/Projects/C++/SEAL/native/src/seal/encryptor.cpp:4:
In file included from /Users/lielfridman/Projects/C++/SEAL/native/src/seal/encryptor.h:6:
In file included from /Users/lielfridman/Projects/C++/SEAL/native/src/seal/ciphertext.h:6:
In file included from /Users/lielfridman/Projects/C++/SEAL/native/src/seal/context.h:6:
In file included from /Users/lielfridman/Projects/C++/SEAL/native/src/seal/encryptionparams.h:6:
In file included from /Users/lielfridman/Projects/C++/SEAL/native/src/seal/memorymanager.h:6:
/Users/lielfridman/Projects/C++/SEAL/native/src/seal/util/defines.h:81:2: error: "Unsupported system"
#error "Unsupported system"
 ^
In file included from /Users/lielfridman/Projects/C++/SEAL/native/src/seal/batchencoder.cpp:4:
In file included from /Users/lielfridman/Projects/C++/SEAL/native/src/seal/batchencoder.h:6:
In file included from /Users/lielfridman/Projects/C++/SEAL/native/src/seal/context.h:6:
In file included from /Users/lielfridman/Projects/C++/SEAL/native/src/seal/encryptionparams.h:6:
In file included from /Users/lielfridman/Projects/C++/SEAL/native/src/seal/memorymanager.h:6:
/Users/lielfridman/Projects/C++/SEAL/native/src/seal/util/defines.h:81:2: error: "Unsupported system"
#error "Unsupported system"
 ^
In file included from /Users/lielfridman/Projects/C++/SEAL/native/src/seal/util/rns.cpp:4:
In file included from /Users/lielfridman/Projects/C++/SEAL/native/src/seal/util/common.h:6:
/Users/lielfridman/Projects/C++/SEAL/native/src/seal/util/defines.h:81:2: error: "Unsupported system"
#error "Unsupported system"
 ^
In file included from /Users/lielfridman/Projects/C++/SEAL/native/src/seal/util/globals.cpp:4:
In file included from /Users/lielfridman/Projects/C++/SEAL/native/src/seal/modulus.h:6:
In file included from /Users/lielfridman/Projects/C++/SEAL/native/src/seal/serialization.h:6:
In file included from /Users/lielfridman/Projects/C++/SEAL/native/src/seal/version.h:6:
/Users/lielfridman/Projects/C++/SEAL/native/src/seal/util/defines.h:81:2: error: "Unsupported system"
#error "Unsupported system"
 ^
In file included from /Users/lielfridman/Projects/C++/SEAL/native/src/seal/util/scalingvariant.cpp:4:
In file included from /Users/lielfridman/Projects/C++/SEAL/native/src/seal/encryptor.h:6:
In file included from /Users/lielfridman/Projects/C++/SEAL/native/src/seal/ciphertext.h:6:
In file included from /Users/lielfridman/Projects/C++/SEAL/native/src/seal/context.h:6:
In file included from /Users/lielfridman/Projects/C++/SEAL/native/src/seal/encryptionparams.h:6:
In file included from /Users/lielfridman/Projects/C++/SEAL/native/src/seal/memorymanager.h:6:
/Users/lielfridman/Projects/C++/SEAL/native/src/seal/util/defines.h:81:2: error: "Unsupported system"
#error "Unsupported system"
 ^
In file included from /Users/lielfridman/Projects/C++/SEAL/native/src/seal/util/croots.cpp:4:
In file included from /Users/lielfridman/Projects/C++/SEAL/native/src/seal/util/croots.h:6:
In file included from /Users/lielfridman/Projects/C++/SEAL/native/src/seal/memorymanager.h:6:
/Users/lielfridman/Projects/C++/SEAL/native/src/seal/util/defines.h:81:2: error: "Unsupported system"
#error "Unsupported system"
 ^
1 error generated.
em++: error: '/usr/local/opt/emscripten/libexec/llvm/bin/clang++ -DEMSCRIPTEN -fignore-exceptions -mllvm -combiner-global-alias-analysis=false -mllvm -enable-emscripten-sjlj -mllvm -disable-lsr -Xclang -iwithsysroot/include/SDL -target wasm32-unknown-emscripten -D__EMSCRIPTEN_major__=2 -D__EMSCRIPTEN_minor__=0 -D__EMSCRIPTEN_tiny__=15 -D_LIBCPP_ABI_VERSION=2 -Dunix -D__unix -D__unix__ -flegacy-pass-manager -Werror=implicit-function-declaration --sysroot=/usr/local/Cellar/emscripten/2.0.15/libexec/cache/sysroot -Xclang -iwithsysroot/include/compat -I/Users/lielfridman/Projects/C++/SEAL/native/src -I/Users/lielfridman/Projects/C++/SEAL/build/native/src -I/Users/lielfridman/Projects/C++/SEAL/thirdparty/msgsl-src/include -I/Users/lielfridman/Projects/C++/SEAL/thirdparty/zlib-src -I/Users/lielfridman/Projects/C++/SEAL/build/thirdparty/zlib-src -I/Users/lielfridman/Projects/C++/SEAL/thirdparty/zstd-src/lib -I/Users/lielfridman/Projects/C++/SEAL/thirdparty/zstd-src/lib/common -O3 -DNDEBUG -fPIC -std=gnu++17 -c /Users/lielfridman/Projects/C++/SEAL/native/src/seal/util/common.cpp -o CMakeFiles/seal.dir/native/src/seal/util/common.cpp.o' failed (1)
make[2]: *** [CMakeFiles/seal.dir/native/src/seal/util/common.cpp.o] Error 1
make[2]: *** Waiting for unfinished jobs....
1 error generated.
em++: error: '/usr/local/opt/emscripten/libexec/llvm/bin/clang++ -DEMSCRIPTEN -fignore-exceptions -mllvm -combiner-global-alias-analysis=false -mllvm -enable-emscripten-sjlj -mllvm -disable-lsr -Xclang -iwithsysroot/include/SDL -target wasm32-unknown-emscripten -D__EMSCRIPTEN_major__=2 -D__EMSCRIPTEN_minor__=0 -D__EMSCRIPTEN_tiny__=15 -D_LIBCPP_ABI_VERSION=2 -Dunix -D__unix -D__unix__ -flegacy-pass-manager -Werror=implicit-function-declaration --sysroot=/usr/local/Cellar/emscripten/2.0.15/libexec/cache/sysroot -Xclang -iwithsysroot/include/compat -I/Users/lielfridman/Projects/C++/SEAL/native/src -I/Users/lielfridman/Projects/C++/SEAL/build/native/src -I/Users/lielfridman/Projects/C++/SEAL/thirdparty/msgsl-src/include -I/Users/lielfridman/Projects/C++/SEAL/thirdparty/zlib-src -I/Users/lielfridman/Projects/C++/SEAL/build/thirdparty/zlib-src -I/Users/lielfridman/Projects/C++/SEAL/thirdparty/zstd-src/lib -I/Users/lielfridman/Projects/C++/SEAL/thirdparty/zstd-src/lib/common -O3 -DNDEBUG -fPIC -std=gnu++17 -c /Users/lielfridman/Projects/C++/SEAL/native/src/seal/util/hash.cpp -o CMakeFiles/seal.dir/native/src/seal/util/hash.cpp.o' failed (1)
make[2]: *** [CMakeFiles/seal.dir/native/src/seal/util/hash.cpp.o] Error 1
1 error generated.
em++: error: '/usr/local/opt/emscripten/libexec/llvm/bin/clang++ -DEMSCRIPTEN -fignore-exceptions -mllvm -combiner-global-alias-analysis=false -mllvm -enable-emscripten-sjlj -mllvm -disable-lsr -Xclang -iwithsysroot/include/SDL -target wasm32-unknown-emscripten -D__EMSCRIPTEN_major__=2 -D__EMSCRIPTEN_minor__=0 -D__EMSCRIPTEN_tiny__=15 -D_LIBCPP_ABI_VERSION=2 -Dunix -D__unix -D__unix__ -flegacy-pass-manager -Werror=implicit-function-declaration --sysroot=/usr/local/Cellar/emscripten/2.0.15/libexec/cache/sysroot -Xclang -iwithsysroot/include/compat -I/Users/lielfridman/Projects/C++/SEAL/native/src -I/Users/lielfridman/Projects/C++/SEAL/build/native/src -I/Users/lielfridman/Projects/C++/SEAL/thirdparty/msgsl-src/include -I/Users/lielfridman/Projects/C++/SEAL/thirdparty/zlib-src -I/Users/lielfridman/Projects/C++/SEAL/build/thirdparty/zlib-src -I/Users/lielfridman/Projects/C++/SEAL/thirdparty/zstd-src/lib -I/Users/lielfridman/Projects/C++/SEAL/thirdparty/zstd-src/lib/common -O3 -DNDEBUG -fPIC -std=gnu++17 -c /Users/lielfridman/Projects/C++/SEAL/native/src/seal/util/mempool.cpp -o CMakeFiles/seal.dir/native/src/seal/util/mempool.cpp.o' failed (1)
make[2]: *** [CMakeFiles/seal.dir/native/src/seal/util/mempool.cpp.o] Error 1
1 error generated.
em++: error: '/usr/local/opt/emscripten/libexec/llvm/bin/clang++ -DEMSCRIPTEN -fignore-exceptions -mllvm -combiner-global-alias-analysis=false -mllvm -enable-emscripten-sjlj -mllvm -disable-lsr -Xclang -iwithsysroot/include/SDL -target wasm32-unknown-emscripten -D__EMSCRIPTEN_major__=2 -D__EMSCRIPTEN_minor__=0 -D__EMSCRIPTEN_tiny__=15 -D_LIBCPP_ABI_VERSION=2 -Dunix -D__unix -D__unix__ -flegacy-pass-manager -Werror=implicit-function-declaration --sysroot=/usr/local/Cellar/emscripten/2.0.15/libexec/cache/sysroot -Xclang -iwithsysroot/include/compat -I/Users/lielfridman/Projects/C++/SEAL/native/src -I/Users/lielfridman/Projects/C++/SEAL/build/native/src -I/Users/lielfridman/Projects/C++/SEAL/thirdparty/msgsl-src/include -I/Users/lielfridman/Projects/C++/SEAL/thirdparty/zlib-src -I/Users/lielfridman/Projects/C++/SEAL/build/thirdparty/zlib-src -I/Users/lielfridman/Projects/C++/SEAL/thirdparty/zstd-src/lib -I/Users/lielfridman/Projects/C++/SEAL/thirdparty/zstd-src/lib/common -O3 -DNDEBUG -fPIC -std=gnu++17 -c /Users/lielfridman/Projects/C++/SEAL/native/src/seal/util/uintarithmod.cpp -o CMakeFiles/seal.dir/native/src/seal/util/uintarithmod.cpp.o' failed (1)
make[2]: *** [CMakeFiles/seal.dir/native/src/seal/util/uintarithmod.cpp.o] Error 1
1 error generated.
em++: error: '/usr/local/opt/emscripten/libexec/llvm/bin/clang++ -DEMSCRIPTEN -fignore-exceptions -mllvm -combiner-global-alias-analysis=false -mllvm -enable-emscripten-sjlj -mllvm -disable-lsr -Xclang -iwithsysroot/include/SDL -target wasm32-unknown-emscripten -D__EMSCRIPTEN_major__=2 -D__EMSCRIPTEN_minor__=0 -D__EMSCRIPTEN_tiny__=15 -D_LIBCPP_ABI_VERSION=2 -Dunix -D__unix -D__unix__ -flegacy-pass-manager -Werror=implicit-function-declaration --sysroot=/usr/local/Cellar/emscripten/2.0.15/libexec/cache/sysroot -Xclang -iwithsysroot/include/compat -I/Users/lielfridman/Projects/C++/SEAL/native/src -I/Users/lielfridman/Projects/C++/SEAL/build/native/src -I/Users/lielfridman/Projects/C++/SEAL/thirdparty/msgsl-src/include -I/Users/lielfridman/Projects/C++/SEAL/thirdparty/zlib-src -I/Users/lielfridman/Projects/C++/SEAL/build/thirdparty/zlib-src -I/Users/lielfridman/Projects/C++/SEAL/thirdparty/zstd-src/lib -I/Users/lielfridman/Projects/C++/SEAL/thirdparty/zstd-src/lib/common -O3 -DNDEBUG -fPIC -std=gnu++17 -c /Users/lielfridman/Projects/C++/SEAL/native/src/seal/util/uintarith.cpp -o CMakeFiles/seal.dir/native/src/seal/util/uintarith.cpp.o' failed (1)
make[2]: *** [CMakeFiles/seal.dir/native/src/seal/util/uintarith.cpp.o] Error 1
1 error generated.
em++: error: '/usr/local/opt/emscripten/libexec/llvm/bin/clang++ -DEMSCRIPTEN -fignore-exceptions -mllvm -combiner-global-alias-analysis=false -mllvm -enable-emscripten-sjlj -mllvm -disable-lsr -Xclang -iwithsysroot/include/SDL -target wasm32-unknown-emscripten -D__EMSCRIPTEN_major__=2 -D__EMSCRIPTEN_minor__=0 -D__EMSCRIPTEN_tiny__=15 -D_LIBCPP_ABI_VERSION=2 -Dunix -D__unix -D__unix__ -flegacy-pass-manager -Werror=implicit-function-declaration --sysroot=/usr/local/Cellar/emscripten/2.0.15/libexec/cache/sysroot -Xclang -iwithsysroot/include/compat -I/Users/lielfridman/Projects/C++/SEAL/native/src -I/Users/lielfridman/Projects/C++/SEAL/build/native/src -I/Users/lielfridman/Projects/C++/SEAL/thirdparty/msgsl-src/include -I/Users/lielfridman/Projects/C++/SEAL/thirdparty/zlib-src -I/Users/lielfridman/Projects/C++/SEAL/build/thirdparty/zlib-src -I/Users/lielfridman/Projects/C++/SEAL/thirdparty/zstd-src/lib -I/Users/lielfridman/Projects/C++/SEAL/thirdparty/zstd-src/lib/common -O3 -DNDEBUG -fPIC -std=gnu++17 -c /Users/lielfridman/Projects/C++/SEAL/native/src/seal/util/clipnormal.cpp -o CMakeFiles/seal.dir/native/src/seal/util/clipnormal.cpp.o' failed (1)
make[2]: *** [CMakeFiles/seal.dir/native/src/seal/util/clipnormal.cpp.o] Error 1
1 error generated.
em++: error: '/usr/local/opt/emscripten/libexec/llvm/bin/clang++ -DEMSCRIPTEN -fignore-exceptions -mllvm -combiner-global-alias-analysis=false -mllvm -enable-emscripten-sjlj -mllvm -disable-lsr -Xclang -iwithsysroot/include/SDL -target wasm32-unknown-emscripten -D__EMSCRIPTEN_major__=2 -D__EMSCRIPTEN_minor__=0 -D__EMSCRIPTEN_tiny__=15 -D_LIBCPP_ABI_VERSION=2 -Dunix -D__unix -D__unix__ -flegacy-pass-manager -Werror=implicit-function-declaration --sysroot=/usr/local/Cellar/emscripten/2.0.15/libexec/cache/sysroot -Xclang -iwithsysroot/include/compat -I/Users/lielfridman/Projects/C++/SEAL/native/src -I/Users/lielfridman/Projects/C++/SEAL/build/native/src -I/Users/lielfridman/Projects/C++/SEAL/thirdparty/msgsl-src/include -I/Users/lielfridman/Projects/C++/SEAL/thirdparty/zlib-src -I/Users/lielfridman/Projects/C++/SEAL/build/thirdparty/zlib-src -I/Users/lielfridman/Projects/C++/SEAL/thirdparty/zstd-src/lib -I/Users/lielfridman/Projects/C++/SEAL/thirdparty/zstd-src/lib/common -O3 -DNDEBUG -fPIC -std=gnu++17 -c /Users/lielfridman/Projects/C++/SEAL/native/src/seal/memorymanager.cpp -o CMakeFiles/seal.dir/native/src/seal/memorymanager.cpp.o' failed (1)
make[2]: *** [CMakeFiles/seal.dir/native/src/seal/memorymanager.cpp.o] Error 1
1 error generated.
em++: error: '/usr/local/opt/emscripten/libexec/llvm/bin/clang++ -DEMSCRIPTEN -fignore-exceptions -mllvm -combiner-global-alias-analysis=false -mllvm -enable-emscripten-sjlj -mllvm -disable-lsr -Xclang -iwithsysroot/include/SDL -target wasm32-unknown-emscripten -D__EMSCRIPTEN_major__=2 -D__EMSCRIPTEN_minor__=0 -D__EMSCRIPTEN_tiny__=15 -D_LIBCPP_ABI_VERSION=2 -Dunix -D__unix -D__unix__ -flegacy-pass-manager -Werror=implicit-function-declaration --sysroot=/usr/local/Cellar/emscripten/2.0.15/libexec/cache/sysroot -Xclang -iwithsysroot/include/compat -I/Users/lielfridman/Projects/C++/SEAL/native/src -I/Users/lielfridman/Projects/C++/SEAL/build/native/src -I/Users/lielfridman/Projects/C++/SEAL/thirdparty/msgsl-src/include -I/Users/lielfridman/Projects/C++/SEAL/thirdparty/zlib-src -I/Users/lielfridman/Projects/C++/SEAL/build/thirdparty/zlib-src -I/Users/lielfridman/Projects/C++/SEAL/thirdparty/zstd-src/lib -I/Users/lielfridman/Projects/C++/SEAL/thirdparty/zstd-src/lib/common -O3 -DNDEBUG -fPIC -std=gnu++17 -c /Users/lielfridman/Projects/C++/SEAL/native/src/seal/util/uintcore.cpp -o CMakeFiles/seal.dir/native/src/seal/util/uintcore.cpp.o' failed (1)
make[2]: *** [CMakeFiles/seal.dir/native/src/seal/util/uintcore.cpp.o] Error 1
1 error generated.
em++: error: '/usr/local/opt/emscripten/libexec/llvm/bin/clang++ -DEMSCRIPTEN -fignore-exceptions -mllvm -combiner-global-alias-analysis=false -mllvm -enable-emscripten-sjlj -mllvm -disable-lsr -Xclang -iwithsysroot/include/SDL -target wasm32-unknown-emscripten -D__EMSCRIPTEN_major__=2 -D__EMSCRIPTEN_minor__=0 -D__EMSCRIPTEN_tiny__=15 -D_LIBCPP_ABI_VERSION=2 -Dunix -D__unix -D__unix__ -flegacy-pass-manager -Werror=implicit-function-declaration --sysroot=/usr/local/Cellar/emscripten/2.0.15/libexec/cache/sysroot -Xclang -iwithsysroot/include/compat -I/Users/lielfridman/Projects/C++/SEAL/native/src -I/Users/lielfridman/Projects/C++/SEAL/build/native/src -I/Users/lielfridman/Projects/C++/SEAL/thirdparty/msgsl-src/include -I/Users/lielfridman/Projects/C++/SEAL/thirdparty/zlib-src -I/Users/lielfridman/Projects/C++/SEAL/build/thirdparty/zlib-src -I/Users/lielfridman/Projects/C++/SEAL/thirdparty/zstd-src/lib -I/Users/lielfridman/Projects/C++/SEAL/thirdparty/zstd-src/lib/common -O3 -DNDEBUG -fPIC -std=gnu++17 -c /Users/lielfridman/Projects/C++/SEAL/native/src/seal/util/streambuf.cpp -o CMakeFiles/seal.dir/native/src/seal/util/streambuf.cpp.o' failed (1)
make[2]: *** [CMakeFiles/seal.dir/native/src/seal/util/streambuf.cpp.o] Error 1
/Users/lielfridman/Projects/C++/SEAL/native/src/seal/randomgen.cpp:73:2: warning: "SECURITY WARNING: System detection failed; falling back to a potentially insecure randomness source!" [-W#warnings]
#warning "SECURITY WARNING: System detection failed; falling back to a potentially insecure randomness source!"
 ^
1 error generated.
em++: error: '/usr/local/opt/emscripten/libexec/llvm/bin/clang++ -DEMSCRIPTEN -fignore-exceptions -mllvm -combiner-global-alias-analysis=false -mllvm -enable-emscripten-sjlj -mllvm -disable-lsr -Xclang -iwithsysroot/include/SDL -target wasm32-unknown-emscripten -D__EMSCRIPTEN_major__=2 -D__EMSCRIPTEN_minor__=0 -D__EMSCRIPTEN_tiny__=15 -D_LIBCPP_ABI_VERSION=2 -Dunix -D__unix -D__unix__ -flegacy-pass-manager -Werror=implicit-function-declaration --sysroot=/usr/local/Cellar/emscripten/2.0.15/libexec/cache/sysroot -Xclang -iwithsysroot/include/compat -I/Users/lielfridman/Projects/C++/SEAL/native/src -I/Users/lielfridman/Projects/C++/SEAL/build/native/src -I/Users/lielfridman/Projects/C++/SEAL/thirdparty/msgsl-src/include -I/Users/lielfridman/Projects/C++/SEAL/thirdparty/zlib-src -I/Users/lielfridman/Projects/C++/SEAL/build/thirdparty/zlib-src -I/Users/lielfridman/Projects/C++/SEAL/thirdparty/zstd-src/lib -I/Users/lielfridman/Projects/C++/SEAL/thirdparty/zstd-src/lib/common -O3 -DNDEBUG -fPIC -std=gnu++17 -c /Users/lielfridman/Projects/C++/SEAL/native/src/seal/serialization.cpp -o CMakeFiles/seal.dir/native/src/seal/serialization.cpp.o' failed (1)
make[2]: *** [CMakeFiles/seal.dir/native/src/seal/serialization.cpp.o] Error 1
1 error generated.
em++: error: '/usr/local/opt/emscripten/libexec/llvm/bin/clang++ -DEMSCRIPTEN -fignore-exceptions -mllvm -combiner-global-alias-analysis=false -mllvm -enable-emscripten-sjlj -mllvm -disable-lsr -Xclang -iwithsysroot/include/SDL -target wasm32-unknown-emscripten -D__EMSCRIPTEN_major__=2 -D__EMSCRIPTEN_minor__=0 -D__EMSCRIPTEN_tiny__=15 -D_LIBCPP_ABI_VERSION=2 -Dunix -D__unix -D__unix__ -flegacy-pass-manager -Werror=implicit-function-declaration --sysroot=/usr/local/Cellar/emscripten/2.0.15/libexec/cache/sysroot -Xclang -iwithsysroot/include/compat -I/Users/lielfridman/Projects/C++/SEAL/native/src -I/Users/lielfridman/Projects/C++/SEAL/build/native/src -I/Users/lielfridman/Projects/C++/SEAL/thirdparty/msgsl-src/include -I/Users/lielfridman/Projects/C++/SEAL/thirdparty/zlib-src -I/Users/lielfridman/Projects/C++/SEAL/build/thirdparty/zlib-src -I/Users/lielfridman/Projects/C++/SEAL/thirdparty/zstd-src/lib -I/Users/lielfridman/Projects/C++/SEAL/thirdparty/zstd-src/lib/common -O3 -DNDEBUG -fPIC -std=gnu++17 -c /Users/lielfridman/Projects/C++/SEAL/native/src/seal/util/croots.cpp -o CMakeFiles/seal.dir/native/src/seal/util/croots.cpp.o' failed (1)
make[2]: *** [CMakeFiles/seal.dir/native/src/seal/util/croots.cpp.o] Error 1
1 error generated.
em++: error: '/usr/local/opt/emscripten/libexec/llvm/bin/clang++ -DEMSCRIPTEN -fignore-exceptions -mllvm -combiner-global-alias-analysis=false -mllvm -enable-emscripten-sjlj -mllvm -disable-lsr -Xclang -iwithsysroot/include/SDL -target wasm32-unknown-emscripten -D__EMSCRIPTEN_major__=2 -D__EMSCRIPTEN_minor__=0 -D__EMSCRIPTEN_tiny__=15 -D_LIBCPP_ABI_VERSION=2 -Dunix -D__unix -D__unix__ -flegacy-pass-manager -Werror=implicit-function-declaration --sysroot=/usr/local/Cellar/emscripten/2.0.15/libexec/cache/sysroot -Xclang -iwithsysroot/include/compat -I/Users/lielfridman/Projects/C++/SEAL/native/src -I/Users/lielfridman/Projects/C++/SEAL/build/native/src -I/Users/lielfridman/Projects/C++/SEAL/thirdparty/msgsl-src/include -I/Users/lielfridman/Projects/C++/SEAL/thirdparty/zlib-src -I/Users/lielfridman/Projects/C++/SEAL/build/thirdparty/zlib-src -I/Users/lielfridman/Projects/C++/SEAL/thirdparty/zstd-src/lib -I/Users/lielfridman/Projects/C++/SEAL/thirdparty/zstd-src/lib/common -O3 -DNDEBUG -fPIC -std=gnu++17 -c /Users/lielfridman/Projects/C++/SEAL/native/src/seal/util/galois.cpp -o CMakeFiles/seal.dir/native/src/seal/util/galois.cpp.o' failed (1)
make[2]: *** [CMakeFiles/seal.dir/native/src/seal/util/galois.cpp.o] Error 1
1 error generated.
em++: error: '/usr/local/opt/emscripten/libexec/llvm/bin/clang++ -DEMSCRIPTEN -fignore-exceptions -mllvm -combiner-global-alias-analysis=false -mllvm -enable-emscripten-sjlj -mllvm -disable-lsr -Xclang -iwithsysroot/include/SDL -target wasm32-unknown-emscripten -D__EMSCRIPTEN_major__=2 -D__EMSCRIPTEN_minor__=0 -D__EMSCRIPTEN_tiny__=15 -D_LIBCPP_ABI_VERSION=2 -Dunix -D__unix -D__unix__ -flegacy-pass-manager -Werror=implicit-function-declaration --sysroot=/usr/local/Cellar/emscripten/2.0.15/libexec/cache/sysroot -Xclang -iwithsysroot/include/compat -I/Users/lielfridman/Projects/C++/SEAL/native/src -I/Users/lielfridman/Projects/C++/SEAL/build/native/src -I/Users/lielfridman/Projects/C++/SEAL/thirdparty/msgsl-src/include -I/Users/lielfridman/Projects/C++/SEAL/thirdparty/zlib-src -I/Users/lielfridman/Projects/C++/SEAL/build/thirdparty/zlib-src -I/Users/lielfridman/Projects/C++/SEAL/thirdparty/zstd-src/lib -I/Users/lielfridman/Projects/C++/SEAL/thirdparty/zstd-src/lib/common -O3 -DNDEBUG -fPIC -std=gnu++17 -c /Users/lielfridman/Projects/C++/SEAL/native/src/seal/util/ztools.cpp -o CMakeFiles/seal.dir/native/src/seal/util/ztools.cpp.o' failed (1)
make[2]: *** [CMakeFiles/seal.dir/native/src/seal/util/ztools.cpp.o] Error 1
1 error generated.
em++: error: '/usr/local/opt/emscripten/libexec/llvm/bin/clang++ -DEMSCRIPTEN -fignore-exceptions -mllvm -combiner-global-alias-analysis=false -mllvm -enable-emscripten-sjlj -mllvm -disable-lsr -Xclang -iwithsysroot/include/SDL -target wasm32-unknown-emscripten -D__EMSCRIPTEN_major__=2 -D__EMSCRIPTEN_minor__=0 -D__EMSCRIPTEN_tiny__=15 -D_LIBCPP_ABI_VERSION=2 -Dunix -D__unix -D__unix__ -flegacy-pass-manager -Werror=implicit-function-declaration --sysroot=/usr/local/Cellar/emscripten/2.0.15/libexec/cache/sysroot -Xclang -iwithsysroot/include/compat -I/Users/lielfridman/Projects/C++/SEAL/native/src -I/Users/lielfridman/Projects/C++/SEAL/build/native/src -I/Users/lielfridman/Projects/C++/SEAL/thirdparty/msgsl-src/include -I/Users/lielfridman/Projects/C++/SEAL/thirdparty/zlib-src -I/Users/lielfridman/Projects/C++/SEAL/build/thirdparty/zlib-src -I/Users/lielfridman/Projects/C++/SEAL/thirdparty/zstd-src/lib -I/Users/lielfridman/Projects/C++/SEAL/thirdparty/zstd-src/lib/common -O3 -DNDEBUG -fPIC -std=gnu++17 -c /Users/lielfridman/Projects/C++/SEAL/native/src/seal/util/uintarithsmallmod.cpp -o CMakeFiles/seal.dir/native/src/seal/util/uintarithsmallmod.cpp.o' failed (1)
make[2]: *** [CMakeFiles/seal.dir/native/src/seal/util/uintarithsmallmod.cpp.o] Error 1
1 error generated.
em++: error: '/usr/local/opt/emscripten/libexec/llvm/bin/clang++ -DEMSCRIPTEN -fignore-exceptions -mllvm -combiner-global-alias-analysis=false -mllvm -enable-emscripten-sjlj -mllvm -disable-lsr -Xclang -iwithsysroot/include/SDL -target wasm32-unknown-emscripten -D__EMSCRIPTEN_major__=2 -D__EMSCRIPTEN_minor__=0 -D__EMSCRIPTEN_tiny__=15 -D_LIBCPP_ABI_VERSION=2 -Dunix -D__unix -D__unix__ -flegacy-pass-manager -Werror=implicit-function-declaration --sysroot=/usr/local/Cellar/emscripten/2.0.15/libexec/cache/sysroot -Xclang -iwithsysroot/include/compat -I/Users/lielfridman/Projects/C++/SEAL/native/src -I/Users/lielfridman/Projects/C++/SEAL/build/native/src -I/Users/lielfridman/Projects/C++/SEAL/thirdparty/msgsl-src/include -I/Users/lielfridman/Projects/C++/SEAL/thirdparty/zlib-src -I/Users/lielfridman/Projects/C++/SEAL/build/thirdparty/zlib-src -I/Users/lielfridman/Projects/C++/SEAL/thirdparty/zstd-src/lib -I/Users/lielfridman/Projects/C++/SEAL/thirdparty/zstd-src/lib/common -O3 -DNDEBUG -fPIC -std=gnu++17 -c /Users/lielfridman/Projects/C++/SEAL/native/src/seal/util/ntt.cpp -o CMakeFiles/seal.dir/native/src/seal/util/ntt.cpp.o' failed (1)
make[2]: *** [CMakeFiles/seal.dir/native/src/seal/util/ntt.cpp.o] Error 1
1 warning and 1 error generated.
em++: error: '/usr/local/opt/emscripten/libexec/llvm/bin/clang++ -DEMSCRIPTEN -fignore-exceptions -mllvm -combiner-global-alias-analysis=false -mllvm -enable-emscripten-sjlj -mllvm -disable-lsr -Xclang -iwithsysroot/include/SDL -target wasm32-unknown-emscripten -D__EMSCRIPTEN_major__=2 -D__EMSCRIPTEN_minor__=0 -D__EMSCRIPTEN_tiny__=15 -D_LIBCPP_ABI_VERSION=2 -Dunix -D__unix -D__unix__ -flegacy-pass-manager -Werror=implicit-function-declaration --sysroot=/usr/local/Cellar/emscripten/2.0.15/libexec/cache/sysroot -Xclang -iwithsysroot/include/compat -I/Users/lielfridman/Projects/C++/SEAL/native/src -I/Users/lielfridman/Projects/C++/SEAL/build/native/src -I/Users/lielfridman/Projects/C++/SEAL/thirdparty/msgsl-src/include -I/Users/lielfridman/Projects/C++/SEAL/thirdparty/zlib-src -I/Users/lielfridman/Projects/C++/SEAL/build/thirdparty/zlib-src -I/Users/lielfridman/Projects/C++/SEAL/thirdparty/zstd-src/lib -I/Users/lielfridman/Projects/C++/SEAL/thirdparty/zstd-src/lib/common -O3 -DNDEBUG -fPIC -std=gnu++17 -c /Users/lielfridman/Projects/C++/SEAL/native/src/seal/randomgen.cpp -o CMakeFiles/seal.dir/native/src/seal/randomgen.cpp.o' failed (1)
make[2]: *** [CMakeFiles/seal.dir/native/src/seal/randomgen.cpp.o] Error 1
1 error generated.
1 error generated.
em++: error: '/usr/local/opt/emscripten/libexec/llvm/bin/clang++ -DEMSCRIPTEN -fignore-exceptions -mllvm -combiner-global-alias-analysis=false -mllvm -enable-emscripten-sjlj -mllvm -disable-lsr -Xclang -iwithsysroot/include/SDL -target wasm32-unknown-emscripten -D__EMSCRIPTEN_major__=2 -D__EMSCRIPTEN_minor__=0 -D__EMSCRIPTEN_tiny__=15 -D_LIBCPP_ABI_VERSION=2 -Dunix -D__unix -D__unix__ -flegacy-pass-manager -Werror=implicit-function-declaration --sysroot=/usr/local/Cellar/emscripten/2.0.15/libexec/cache/sysroot -Xclang -iwithsysroot/include/compat -I/Users/lielfridman/Projects/C++/SEAL/native/src -I/Users/lielfridman/Projects/C++/SEAL/build/native/src -I/Users/lielfridman/Projects/C++/SEAL/thirdparty/msgsl-src/include -I/Users/lielfridman/Projects/C++/SEAL/thirdparty/zlib-src -I/Users/lielfridman/Projects/C++/SEAL/build/thirdparty/zlib-src -I/Users/lielfridman/Projects/C++/SEAL/thirdparty/zstd-src/lib -I/Users/lielfridman/Projects/C++/SEAL/thirdparty/zstd-src/lib/common -O3 -DNDEBUG -fPIC -std=gnu++17 -c /Users/lielfridman/Projects/C++/SEAL/native/src/seal/util/numth.cpp -o CMakeFiles/seal.dir/native/src/seal/util/numth.cpp.o' failed (1)
1 error generated.
em++: error: '/usr/local/opt/emscripten/libexec/llvm/bin/clang++ -DEMSCRIPTEN -fignore-exceptions -mllvm -combiner-global-alias-analysis=false -mllvm -enable-emscripten-sjlj -mllvm -disable-lsr -Xclang -iwithsysroot/include/SDL -target wasm32-unknown-emscripten -D__EMSCRIPTEN_major__=2 -D__EMSCRIPTEN_minor__=0 -D__EMSCRIPTEN_tiny__=15 -D_LIBCPP_ABI_VERSION=2 -Dunix -D__unix -D__unix__ -flegacy-pass-manager -Werror=implicit-function-declaration --sysroot=/usr/local/Cellar/emscripten/2.0.15/libexec/cache/sysroot -Xclang -iwithsysroot/include/compat -I/Users/lielfridman/Projects/C++/SEAL/native/src -I/Users/lielfridman/Projects/C++/SEAL/build/native/src -I/Users/lielfridman/Projects/C++/SEAL/thirdparty/msgsl-src/include -I/Users/lielfridman/Projects/C++/SEAL/thirdparty/zlib-src -I/Users/lielfridman/Projects/C++/SEAL/build/thirdparty/zlib-src -I/Users/lielfridman/Projects/C++/SEAL/thirdparty/zstd-src/lib -I/Users/lielfridman/Projects/C++/SEAL/thirdparty/zstd-src/lib/common -O3 -DNDEBUG -fPIC -std=gnu++17 -c /Users/lielfridman/Projects/C++/SEAL/native/src/seal/util/globals.cpp -o CMakeFiles/seal.dir/native/src/seal/util/globals.cpp.o' failed (1)
em++: error: '/usr/local/opt/emscripten/libexec/llvm/bin/clang++ -DEMSCRIPTEN -fignore-exceptions -mllvm -combiner-global-alias-analysis=false -mllvm -enable-emscripten-sjlj -mllvm -disable-lsr -Xclang -iwithsysroot/include/SDL -target wasm32-unknown-emscripten -D__EMSCRIPTEN_major__=2 -D__EMSCRIPTEN_minor__=0 -D__EMSCRIPTEN_tiny__=15 -D_LIBCPP_ABI_VERSION=2 -Dunix -D__unix -D__unix__ -flegacy-pass-manager -Werror=implicit-function-declaration --sysroot=/usr/local/Cellar/emscripten/2.0.15/libexec/cache/sysroot -Xclang -iwithsysroot/include/compat -I/Users/lielfridman/Projects/C++/SEAL/native/src -I/Users/lielfridman/Projects/C++/SEAL/build/native/src -I/Users/lielfridman/Projects/C++/SEAL/thirdparty/msgsl-src/include -I/Users/lielfridman/Projects/C++/SEAL/thirdparty/zlib-src -I/Users/lielfridman/Projects/C++/SEAL/build/thirdparty/zlib-src -I/Users/lielfridman/Projects/C++/SEAL/thirdparty/zstd-src/lib -I/Users/lielfridman/Projects/C++/SEAL/thirdparty/zstd-src/lib/common -O3 -DNDEBUG -fPIC -std=gnu++17 -c /Users/lielfridman/Projects/C++/SEAL/native/src/seal/encryptionparams.cpp -o CMakeFiles/seal.dir/native/src/seal/encryptionparams.cpp.o' failed (1)
make[2]: *** [CMakeFiles/seal.dir/native/src/seal/util/numth.cpp.o] Error 1
make[2]: *** [CMakeFiles/seal.dir/native/src/seal/util/globals.cpp.o] Error 1
make[2]: *** [CMakeFiles/seal.dir/native/src/seal/encryptionparams.cpp.o] Error 1
1 error generated.
em++: error: '/usr/local/opt/emscripten/libexec/llvm/bin/clang++ -DEMSCRIPTEN -fignore-exceptions -mllvm -combiner-global-alias-analysis=false -mllvm -enable-emscripten-sjlj -mllvm -disable-lsr -Xclang -iwithsysroot/include/SDL -target wasm32-unknown-emscripten -D__EMSCRIPTEN_major__=2 -D__EMSCRIPTEN_minor__=0 -D__EMSCRIPTEN_tiny__=15 -D_LIBCPP_ABI_VERSION=2 -Dunix -D__unix -D__unix__ -flegacy-pass-manager -Werror=implicit-function-declaration --sysroot=/usr/local/Cellar/emscripten/2.0.15/libexec/cache/sysroot -Xclang -iwithsysroot/include/compat -I/Users/lielfridman/Projects/C++/SEAL/native/src -I/Users/lielfridman/Projects/C++/SEAL/build/native/src -I/Users/lielfridman/Projects/C++/SEAL/thirdparty/msgsl-src/include -I/Users/lielfridman/Projects/C++/SEAL/thirdparty/zlib-src -I/Users/lielfridman/Projects/C++/SEAL/build/thirdparty/zlib-src -I/Users/lielfridman/Projects/C++/SEAL/thirdparty/zstd-src/lib -I/Users/lielfridman/Projects/C++/SEAL/thirdparty/zstd-src/lib/common -O3 -DNDEBUG -fPIC -std=gnu++17 -c /Users/lielfridman/Projects/C++/SEAL/native/src/seal/util/polyarithsmallmod.cpp -o CMakeFiles/seal.dir/native/src/seal/util/polyarithsmallmod.cpp.o' failed (1)
make[2]: *** [CMakeFiles/seal.dir/native/src/seal/util/polyarithsmallmod.cpp.o] Error 1
1 error generated.
em++: error: '/usr/local/opt/emscripten/libexec/llvm/bin/clang++ -DEMSCRIPTEN -fignore-exceptions -mllvm -combiner-global-alias-analysis=false -mllvm -enable-emscripten-sjlj -mllvm -disable-lsr -Xclang -iwithsysroot/include/SDL -target wasm32-unknown-emscripten -D__EMSCRIPTEN_major__=2 -D__EMSCRIPTEN_minor__=0 -D__EMSCRIPTEN_tiny__=15 -D_LIBCPP_ABI_VERSION=2 -Dunix -D__unix -D__unix__ -flegacy-pass-manager -Werror=implicit-function-declaration --sysroot=/usr/local/Cellar/emscripten/2.0.15/libexec/cache/sysroot -Xclang -iwithsysroot/include/compat -I/Users/lielfridman/Projects/C++/SEAL/native/src -I/Users/lielfridman/Projects/C++/SEAL/build/native/src -I/Users/lielfridman/Projects/C++/SEAL/thirdparty/msgsl-src/include -I/Users/lielfridman/Projects/C++/SEAL/thirdparty/zlib-src -I/Users/lielfridman/Projects/C++/SEAL/build/thirdparty/zlib-src -I/Users/lielfridman/Projects/C++/SEAL/thirdparty/zstd-src/lib -I/Users/lielfridman/Projects/C++/SEAL/thirdparty/zstd-src/lib/common -O3 -DNDEBUG -fPIC -std=gnu++17 -c /Users/lielfridman/Projects/C++/SEAL/native/src/seal/modulus.cpp -o CMakeFiles/seal.dir/native/src/seal/modulus.cpp.o' failed (1)
make[2]: *** [CMakeFiles/seal.dir/native/src/seal/modulus.cpp.o] Error 1
1 error generated.
em++: error: '/usr/local/opt/emscripten/libexec/llvm/bin/clang++ -DEMSCRIPTEN -fignore-exceptions -mllvm -combiner-global-alias-analysis=false -mllvm -enable-emscripten-sjlj -mllvm -disable-lsr -Xclang -iwithsysroot/include/SDL -target wasm32-unknown-emscripten -D__EMSCRIPTEN_major__=2 -D__EMSCRIPTEN_minor__=0 -D__EMSCRIPTEN_tiny__=15 -D_LIBCPP_ABI_VERSION=2 -Dunix -D__unix -D__unix__ -flegacy-pass-manager -Werror=implicit-function-declaration --sysroot=/usr/local/Cellar/emscripten/2.0.15/libexec/cache/sysroot -Xclang -iwithsysroot/include/compat -I/Users/lielfridman/Projects/C++/SEAL/native/src -I/Users/lielfridman/Projects/C++/SEAL/build/native/src -I/Users/lielfridman/Projects/C++/SEAL/thirdparty/msgsl-src/include -I/Users/lielfridman/Projects/C++/SEAL/thirdparty/zlib-src -I/Users/lielfridman/Projects/C++/SEAL/build/thirdparty/zlib-src -I/Users/lielfridman/Projects/C++/SEAL/thirdparty/zstd-src/lib -I/Users/lielfridman/Projects/C++/SEAL/thirdparty/zstd-src/lib/common -O3 -DNDEBUG -fPIC -std=gnu++17 -c /Users/lielfridman/Projects/C++/SEAL/native/src/seal/context.cpp -o CMakeFiles/seal.dir/native/src/seal/context.cpp.o' failed (1)
make[2]: *** [CMakeFiles/seal.dir/native/src/seal/context.cpp.o] Error 1
1 error generated.
em++: error: '/usr/local/opt/emscripten/libexec/llvm/bin/clang++ -DEMSCRIPTEN -fignore-exceptions -mllvm -combiner-global-alias-analysis=false -mllvm -enable-emscripten-sjlj -mllvm -disable-lsr -Xclang -iwithsysroot/include/SDL -target wasm32-unknown-emscripten -D__EMSCRIPTEN_major__=2 -D__EMSCRIPTEN_minor__=0 -D__EMSCRIPTEN_tiny__=15 -D_LIBCPP_ABI_VERSION=2 -Dunix -D__unix -D__unix__ -flegacy-pass-manager -Werror=implicit-function-declaration --sysroot=/usr/local/Cellar/emscripten/2.0.15/libexec/cache/sysroot -Xclang -iwithsysroot/include/compat -I/Users/lielfridman/Projects/C++/SEAL/native/src -I/Users/lielfridman/Projects/C++/SEAL/build/native/src -I/Users/lielfridman/Projects/C++/SEAL/thirdparty/msgsl-src/include -I/Users/lielfridman/Projects/C++/SEAL/thirdparty/zlib-src -I/Users/lielfridman/Projects/C++/SEAL/build/thirdparty/zlib-src -I/Users/lielfridman/Projects/C++/SEAL/thirdparty/zstd-src/lib -I/Users/lielfridman/Projects/C++/SEAL/thirdparty/zstd-src/lib/common -O3 -DNDEBUG -fPIC -std=gnu++17 -c /Users/lielfridman/Projects/C++/SEAL/native/src/seal/ckks.cpp -o CMakeFiles/seal.dir/native/src/seal/ckks.cpp.o' failed (1)
make[2]: *** [CMakeFiles/seal.dir/native/src/seal/ckks.cpp.o] Error 1
1 error generated.
em++: error: '/usr/local/opt/emscripten/libexec/llvm/bin/clang++ -DEMSCRIPTEN -fignore-exceptions -mllvm -combiner-global-alias-analysis=false -mllvm -enable-emscripten-sjlj -mllvm -disable-lsr -Xclang -iwithsysroot/include/SDL -target wasm32-unknown-emscripten -D__EMSCRIPTEN_major__=2 -D__EMSCRIPTEN_minor__=0 -D__EMSCRIPTEN_tiny__=15 -D_LIBCPP_ABI_VERSION=2 -Dunix -D__unix -D__unix__ -flegacy-pass-manager -Werror=implicit-function-declaration --sysroot=/usr/local/Cellar/emscripten/2.0.15/libexec/cache/sysroot -Xclang -iwithsysroot/include/compat -I/Users/lielfridman/Projects/C++/SEAL/native/src -I/Users/lielfridman/Projects/C++/SEAL/build/native/src -I/Users/lielfridman/Projects/C++/SEAL/thirdparty/msgsl-src/include -I/Users/lielfridman/Projects/C++/SEAL/thirdparty/zlib-src -I/Users/lielfridman/Projects/C++/SEAL/build/thirdparty/zlib-src -I/Users/lielfridman/Projects/C++/SEAL/thirdparty/zstd-src/lib -I/Users/lielfridman/Projects/C++/SEAL/thirdparty/zstd-src/lib/common -O3 -DNDEBUG -fPIC -std=gnu++17 -c /Users/lielfridman/Projects/C++/SEAL/native/src/seal/util/iterator.cpp -o CMakeFiles/seal.dir/native/src/seal/util/iterator.cpp.o' failed (1)
make[2]: *** [CMakeFiles/seal.dir/native/src/seal/util/iterator.cpp.o] Error 1
1 error generated.
em++: error: '/usr/local/opt/emscripten/libexec/llvm/bin/clang++ -DEMSCRIPTEN -fignore-exceptions -mllvm -combiner-global-alias-analysis=false -mllvm -enable-emscripten-sjlj -mllvm -disable-lsr -Xclang -iwithsysroot/include/SDL -target wasm32-unknown-emscripten -D__EMSCRIPTEN_major__=2 -D__EMSCRIPTEN_minor__=0 -D__EMSCRIPTEN_tiny__=15 -D_LIBCPP_ABI_VERSION=2 -Dunix -D__unix -D__unix__ -flegacy-pass-manager -Werror=implicit-function-declaration --sysroot=/usr/local/Cellar/emscripten/2.0.15/libexec/cache/sysroot -Xclang -iwithsysroot/include/compat -I/Users/lielfridman/Projects/C++/SEAL/native/src -I/Users/lielfridman/Projects/C++/SEAL/build/native/src -I/Users/lielfridman/Projects/C++/SEAL/thirdparty/msgsl-src/include -I/Users/lielfridman/Projects/C++/SEAL/thirdparty/zlib-src -I/Users/lielfridman/Projects/C++/SEAL/build/thirdparty/zlib-src -I/Users/lielfridman/Projects/C++/SEAL/thirdparty/zstd-src/lib -I/Users/lielfridman/Projects/C++/SEAL/thirdparty/zstd-src/lib/common -O3 -DNDEBUG -fPIC -std=gnu++17 -c /Users/lielfridman/Projects/C++/SEAL/native/src/seal/util/rns.cpp -o CMakeFiles/seal.dir/native/src/seal/util/rns.cpp.o' failed (1)
1 error generated.
make[2]: *** [CMakeFiles/seal.dir/native/src/seal/util/rns.cpp.o] Error 1
em++: error: '/usr/local/opt/emscripten/libexec/llvm/bin/clang++ -DEMSCRIPTEN -fignore-exceptions -mllvm -combiner-global-alias-analysis=false -mllvm -enable-emscripten-sjlj -mllvm -disable-lsr -Xclang -iwithsysroot/include/SDL -target wasm32-unknown-emscripten -D__EMSCRIPTEN_major__=2 -D__EMSCRIPTEN_minor__=0 -D__EMSCRIPTEN_tiny__=15 -D_LIBCPP_ABI_VERSION=2 -Dunix -D__unix -D__unix__ -flegacy-pass-manager -Werror=implicit-function-declaration --sysroot=/usr/local/Cellar/emscripten/2.0.15/libexec/cache/sysroot -Xclang -iwithsysroot/include/compat -I/Users/lielfridman/Projects/C++/SEAL/native/src -I/Users/lielfridman/Projects/C++/SEAL/build/native/src -I/Users/lielfridman/Projects/C++/SEAL/thirdparty/msgsl-src/include -I/Users/lielfridman/Projects/C++/SEAL/thirdparty/zlib-src -I/Users/lielfridman/Projects/C++/SEAL/build/thirdparty/zlib-src -I/Users/lielfridman/Projects/C++/SEAL/thirdparty/zstd-src/lib -I/Users/lielfridman/Projects/C++/SEAL/thirdparty/zstd-src/lib/common -O3 -DNDEBUG -fPIC -std=gnu++17 -c /Users/lielfridman/Projects/C++/SEAL/native/src/seal/kswitchkeys.cpp -o CMakeFiles/seal.dir/native/src/seal/kswitchkeys.cpp.o' failed (1)
1 error generated.
make[2]: *** [CMakeFiles/seal.dir/native/src/seal/kswitchkeys.cpp.o] Error 1
em++: error: '/usr/local/opt/emscripten/libexec/llvm/bin/clang++ -DEMSCRIPTEN -fignore-exceptions -mllvm -combiner-global-alias-analysis=false -mllvm -enable-emscripten-sjlj -mllvm -disable-lsr -Xclang -iwithsysroot/include/SDL -target wasm32-unknown-emscripten -D__EMSCRIPTEN_major__=2 -D__EMSCRIPTEN_minor__=0 -D__EMSCRIPTEN_tiny__=15 -D_LIBCPP_ABI_VERSION=2 -Dunix -D__unix -D__unix__ -flegacy-pass-manager -Werror=implicit-function-declaration --sysroot=/usr/local/Cellar/emscripten/2.0.15/libexec/cache/sysroot -Xclang -iwithsysroot/include/compat -I/Users/lielfridman/Projects/C++/SEAL/native/src -I/Users/lielfridman/Projects/C++/SEAL/build/native/src -I/Users/lielfridman/Projects/C++/SEAL/thirdparty/msgsl-src/include -I/Users/lielfridman/Projects/C++/SEAL/thirdparty/zlib-src -I/Users/lielfridman/Projects/C++/SEAL/build/thirdparty/zlib-src -I/Users/lielfridman/Projects/C++/SEAL/thirdparty/zstd-src/lib -I/Users/lielfridman/Projects/C++/SEAL/thirdparty/zstd-src/lib/common -O3 -DNDEBUG -fPIC -std=gnu++17 -c /Users/lielfridman/Projects/C++/SEAL/native/src/seal/plaintext.cpp -o CMakeFiles/seal.dir/native/src/seal/plaintext.cpp.o' failed (1)
make[2]: *** [CMakeFiles/seal.dir/native/src/seal/plaintext.cpp.o] Error 1
1 error generated.
em++: error: '/usr/local/opt/emscripten/libexec/llvm/bin/clang++ -DEMSCRIPTEN -fignore-exceptions -mllvm -combiner-global-alias-analysis=false -mllvm -enable-emscripten-sjlj -mllvm -disable-lsr -Xclang -iwithsysroot/include/SDL -target wasm32-unknown-emscripten -D__EMSCRIPTEN_major__=2 -D__EMSCRIPTEN_minor__=0 -D__EMSCRIPTEN_tiny__=15 -D_LIBCPP_ABI_VERSION=2 -Dunix -D__unix -D__unix__ -flegacy-pass-manager -Werror=implicit-function-declaration --sysroot=/usr/local/Cellar/emscripten/2.0.15/libexec/cache/sysroot -Xclang -iwithsysroot/include/compat -I/Users/lielfridman/Projects/C++/SEAL/native/src -I/Users/lielfridman/Projects/C++/SEAL/build/native/src -I/Users/lielfridman/Projects/C++/SEAL/thirdparty/msgsl-src/include -I/Users/lielfridman/Projects/C++/SEAL/thirdparty/zlib-src -I/Users/lielfridman/Projects/C++/SEAL/build/thirdparty/zlib-src -I/Users/lielfridman/Projects/C++/SEAL/thirdparty/zstd-src/lib -I/Users/lielfridman/Projects/C++/SEAL/thirdparty/zstd-src/lib/common -O3 -DNDEBUG -fPIC -std=gnu++17 -c /Users/lielfridman/Projects/C++/SEAL/native/src/seal/batchencoder.cpp -o CMakeFiles/seal.dir/native/src/seal/batchencoder.cpp.o' failed (1)
make[2]: *** [CMakeFiles/seal.dir/native/src/seal/batchencoder.cpp.o] Error 1
1 error generated.
em++: error: '/usr/local/opt/emscripten/libexec/llvm/bin/clang++ -DEMSCRIPTEN -fignore-exceptions -mllvm -combiner-global-alias-analysis=false -mllvm -enable-emscripten-sjlj -mllvm -disable-lsr -Xclang -iwithsysroot/include/SDL -target wasm32-unknown-emscripten -D__EMSCRIPTEN_major__=2 -D__EMSCRIPTEN_minor__=0 -D__EMSCRIPTEN_tiny__=15 -D_LIBCPP_ABI_VERSION=2 -Dunix -D__unix -D__unix__ -flegacy-pass-manager -Werror=implicit-function-declaration --sysroot=/usr/local/Cellar/emscripten/2.0.15/libexec/cache/sysroot -Xclang -iwithsysroot/include/compat -I/Users/lielfridman/Projects/C++/SEAL/native/src -I/Users/lielfridman/Projects/C++/SEAL/build/native/src -I/Users/lielfridman/Projects/C++/SEAL/thirdparty/msgsl-src/include -I/Users/lielfridman/Projects/C++/SEAL/thirdparty/zlib-src -I/Users/lielfridman/Projects/C++/SEAL/build/thirdparty/zlib-src -I/Users/lielfridman/Projects/C++/SEAL/thirdparty/zstd-src/lib -I/Users/lielfridman/Projects/C++/SEAL/thirdparty/zstd-src/lib/common -O3 -DNDEBUG -fPIC -std=gnu++17 -c /Users/lielfridman/Projects/C++/SEAL/native/src/seal/util/rlwe.cpp -o CMakeFiles/seal.dir/native/src/seal/util/rlwe.cpp.o' failed (1)
make[2]: *** [CMakeFiles/seal.dir/native/src/seal/util/rlwe.cpp.o] Error 1
1 error generated.
em++: error: '/usr/local/opt/emscripten/libexec/llvm/bin/clang++ -DEMSCRIPTEN -fignore-exceptions -mllvm -combiner-global-alias-analysis=false -mllvm -enable-emscripten-sjlj -mllvm -disable-lsr -Xclang -iwithsysroot/include/SDL -target wasm32-unknown-emscripten -D__EMSCRIPTEN_major__=2 -D__EMSCRIPTEN_minor__=0 -D__EMSCRIPTEN_tiny__=15 -D_LIBCPP_ABI_VERSION=2 -Dunix -D__unix -D__unix__ -flegacy-pass-manager -Werror=implicit-function-declaration --sysroot=/usr/local/Cellar/emscripten/2.0.15/libexec/cache/sysroot -Xclang -iwithsysroot/include/compat -I/Users/lielfridman/Projects/C++/SEAL/native/src -I/Users/lielfridman/Projects/C++/SEAL/build/native/src -I/Users/lielfridman/Projects/C++/SEAL/thirdparty/msgsl-src/include -I/Users/lielfridman/Projects/C++/SEAL/thirdparty/zlib-src -I/Users/lielfridman/Projects/C++/SEAL/build/thirdparty/zlib-src -I/Users/lielfridman/Projects/C++/SEAL/thirdparty/zstd-src/lib -I/Users/lielfridman/Projects/C++/SEAL/thirdparty/zstd-src/lib/common -O3 -DNDEBUG -fPIC -std=gnu++17 -c /Users/lielfridman/Projects/C++/SEAL/native/src/seal/decryptor.cpp -o CMakeFiles/seal.dir/native/src/seal/decryptor.cpp.o' failed (1)
make[2]: *** [CMakeFiles/seal.dir/native/src/seal/decryptor.cpp.o] Error 1
1 error generated.
em++: error: '/usr/local/opt/emscripten/libexec/llvm/bin/clang++ -DEMSCRIPTEN -fignore-exceptions -mllvm -combiner-global-alias-analysis=false -mllvm -enable-emscripten-sjlj -mllvm -disable-lsr -Xclang -iwithsysroot/include/SDL -target wasm32-unknown-emscripten -D__EMSCRIPTEN_major__=2 -D__EMSCRIPTEN_minor__=0 -D__EMSCRIPTEN_tiny__=15 -D_LIBCPP_ABI_VERSION=2 -Dunix -D__unix -D__unix__ -flegacy-pass-manager -Werror=implicit-function-declaration --sysroot=/usr/local/Cellar/emscripten/2.0.15/libexec/cache/sysroot -Xclang -iwithsysroot/include/compat -I/Users/lielfridman/Projects/C++/SEAL/native/src -I/Users/lielfridman/Projects/C++/SEAL/build/native/src -I/Users/lielfridman/Projects/C++/SEAL/thirdparty/msgsl-src/include -I/Users/lielfridman/Projects/C++/SEAL/thirdparty/zlib-src -I/Users/lielfridman/Projects/C++/SEAL/build/thirdparty/zlib-src -I/Users/lielfridman/Projects/C++/SEAL/thirdparty/zstd-src/lib -I/Users/lielfridman/Projects/C++/SEAL/thirdparty/zstd-src/lib/common -O3 -DNDEBUG -fPIC -std=gnu++17 -c /Users/lielfridman/Projects/C++/SEAL/native/src/seal/valcheck.cpp -o CMakeFiles/seal.dir/native/src/seal/valcheck.cpp.o' failed (1)
make[2]: *** [CMakeFiles/seal.dir/native/src/seal/valcheck.cpp.o] Error 1
1 error generated.
em++: error: '/usr/local/opt/emscripten/libexec/llvm/bin/clang++ -DEMSCRIPTEN -fignore-exceptions -mllvm -combiner-global-alias-analysis=false -mllvm -enable-emscripten-sjlj -mllvm -disable-lsr -Xclang -iwithsysroot/include/SDL -target wasm32-unknown-emscripten -D__EMSCRIPTEN_major__=2 -D__EMSCRIPTEN_minor__=0 -D__EMSCRIPTEN_tiny__=15 -D_LIBCPP_ABI_VERSION=2 -Dunix -D__unix -D__unix__ -flegacy-pass-manager -Werror=implicit-function-declaration --sysroot=/usr/local/Cellar/emscripten/2.0.15/libexec/cache/sysroot -Xclang -iwithsysroot/include/compat -I/Users/lielfridman/Projects/C++/SEAL/native/src -I/Users/lielfridman/Projects/C++/SEAL/build/native/src -I/Users/lielfridman/Projects/C++/SEAL/thirdparty/msgsl-src/include -I/Users/lielfridman/Projects/C++/SEAL/thirdparty/zlib-src -I/Users/lielfridman/Projects/C++/SEAL/build/thirdparty/zlib-src -I/Users/lielfridman/Projects/C++/SEAL/thirdparty/zstd-src/lib -I/Users/lielfridman/Projects/C++/SEAL/thirdparty/zstd-src/lib/common -O3 -DNDEBUG -fPIC -std=gnu++17 -c /Users/lielfridman/Projects/C++/SEAL/native/src/seal/ciphertext.cpp -o CMakeFiles/seal.dir/native/src/seal/ciphertext.cpp.o' failed (1)
make[2]: *** [CMakeFiles/seal.dir/native/src/seal/ciphertext.cpp.o] Error 1
1 error generated.
em++: error: '/usr/local/opt/emscripten/libexec/llvm/bin/clang++ -DEMSCRIPTEN -fignore-exceptions -mllvm -combiner-global-alias-analysis=false -mllvm -enable-emscripten-sjlj -mllvm -disable-lsr -Xclang -iwithsysroot/include/SDL -target wasm32-unknown-emscripten -D__EMSCRIPTEN_major__=2 -D__EMSCRIPTEN_minor__=0 -D__EMSCRIPTEN_tiny__=15 -D_LIBCPP_ABI_VERSION=2 -Dunix -D__unix -D__unix__ -flegacy-pass-manager -Werror=implicit-function-declaration --sysroot=/usr/local/Cellar/emscripten/2.0.15/libexec/cache/sysroot -Xclang -iwithsysroot/include/compat -I/Users/lielfridman/Projects/C++/SEAL/native/src -I/Users/lielfridman/Projects/C++/SEAL/build/native/src -I/Users/lielfridman/Projects/C++/SEAL/thirdparty/msgsl-src/include -I/Users/lielfridman/Projects/C++/SEAL/thirdparty/zlib-src -I/Users/lielfridman/Projects/C++/SEAL/build/thirdparty/zlib-src -I/Users/lielfridman/Projects/C++/SEAL/thirdparty/zstd-src/lib -I/Users/lielfridman/Projects/C++/SEAL/thirdparty/zstd-src/lib/common -O3 -DNDEBUG -fPIC -std=gnu++17 -c /Users/lielfridman/Projects/C++/SEAL/native/src/seal/encryptor.cpp -o CMakeFiles/seal.dir/native/src/seal/encryptor.cpp.o' failed (1)
make[2]: *** [CMakeFiles/seal.dir/native/src/seal/encryptor.cpp.o] Error 1
1 error generated.
em++: error: '/usr/local/opt/emscripten/libexec/llvm/bin/clang++ -DEMSCRIPTEN -fignore-exceptions -mllvm -combiner-global-alias-analysis=false -mllvm -enable-emscripten-sjlj -mllvm -disable-lsr -Xclang -iwithsysroot/include/SDL -target wasm32-unknown-emscripten -D__EMSCRIPTEN_major__=2 -D__EMSCRIPTEN_minor__=0 -D__EMSCRIPTEN_tiny__=15 -D_LIBCPP_ABI_VERSION=2 -Dunix -D__unix -D__unix__ -flegacy-pass-manager -Werror=implicit-function-declaration --sysroot=/usr/local/Cellar/emscripten/2.0.15/libexec/cache/sysroot -Xclang -iwithsysroot/include/compat -I/Users/lielfridman/Projects/C++/SEAL/native/src -I/Users/lielfridman/Projects/C++/SEAL/build/native/src -I/Users/lielfridman/Projects/C++/SEAL/thirdparty/msgsl-src/include -I/Users/lielfridman/Projects/C++/SEAL/thirdparty/zlib-src -I/Users/lielfridman/Projects/C++/SEAL/build/thirdparty/zlib-src -I/Users/lielfridman/Projects/C++/SEAL/thirdparty/zstd-src/lib -I/Users/lielfridman/Projects/C++/SEAL/thirdparty/zstd-src/lib/common -O3 -DNDEBUG -fPIC -std=gnu++17 -c /Users/lielfridman/Projects/C++/SEAL/native/src/seal/util/scalingvariant.cpp -o CMakeFiles/seal.dir/native/src/seal/util/scalingvariant.cpp.o' failed (1)
make[2]: *** [CMakeFiles/seal.dir/native/src/seal/util/scalingvariant.cpp.o] Error 1
1 error generated.
em++: error: '/usr/local/opt/emscripten/libexec/llvm/bin/clang++ -DEMSCRIPTEN -fignore-exceptions -mllvm -combiner-global-alias-analysis=false -mllvm -enable-emscripten-sjlj -mllvm -disable-lsr -Xclang -iwithsysroot/include/SDL -target wasm32-unknown-emscripten -D__EMSCRIPTEN_major__=2 -D__EMSCRIPTEN_minor__=0 -D__EMSCRIPTEN_tiny__=15 -D_LIBCPP_ABI_VERSION=2 -Dunix -D__unix -D__unix__ -flegacy-pass-manager -Werror=implicit-function-declaration --sysroot=/usr/local/Cellar/emscripten/2.0.15/libexec/cache/sysroot -Xclang -iwithsysroot/include/compat -I/Users/lielfridman/Projects/C++/SEAL/native/src -I/Users/lielfridman/Projects/C++/SEAL/build/native/src -I/Users/lielfridman/Projects/C++/SEAL/thirdparty/msgsl-src/include -I/Users/lielfridman/Projects/C++/SEAL/thirdparty/zlib-src -I/Users/lielfridman/Projects/C++/SEAL/build/thirdparty/zlib-src -I/Users/lielfridman/Projects/C++/SEAL/thirdparty/zstd-src/lib -I/Users/lielfridman/Projects/C++/SEAL/thirdparty/zstd-src/lib/common -O3 -DNDEBUG -fPIC -std=gnu++17 -c /Users/lielfridman/Projects/C++/SEAL/native/src/seal/keygenerator.cpp -o CMakeFiles/seal.dir/native/src/seal/keygenerator.cpp.o' failed (1)
make[2]: *** [CMakeFiles/seal.dir/native/src/seal/keygenerator.cpp.o] Error 1
1 error generated.
em++: error: '/usr/local/opt/emscripten/libexec/llvm/bin/clang++ -DEMSCRIPTEN -fignore-exceptions -mllvm -combiner-global-alias-analysis=false -mllvm -enable-emscripten-sjlj -mllvm -disable-lsr -Xclang -iwithsysroot/include/SDL -target wasm32-unknown-emscripten -D__EMSCRIPTEN_major__=2 -D__EMSCRIPTEN_minor__=0 -D__EMSCRIPTEN_tiny__=15 -D_LIBCPP_ABI_VERSION=2 -Dunix -D__unix -D__unix__ -flegacy-pass-manager -Werror=implicit-function-declaration --sysroot=/usr/local/Cellar/emscripten/2.0.15/libexec/cache/sysroot -Xclang -iwithsysroot/include/compat -I/Users/lielfridman/Projects/C++/SEAL/native/src -I/Users/lielfridman/Projects/C++/SEAL/build/native/src -I/Users/lielfridman/Projects/C++/SEAL/thirdparty/msgsl-src/include -I/Users/lielfridman/Projects/C++/SEAL/thirdparty/zlib-src -I/Users/lielfridman/Projects/C++/SEAL/build/thirdparty/zlib-src -I/Users/lielfridman/Projects/C++/SEAL/thirdparty/zstd-src/lib -I/Users/lielfridman/Projects/C++/SEAL/thirdparty/zstd-src/lib/common -O3 -DNDEBUG -fPIC -std=gnu++17 -c /Users/lielfridman/Projects/C++/SEAL/native/src/seal/evaluator.cpp -o CMakeFiles/seal.dir/native/src/seal/evaluator.cpp.o' failed (1)
make[2]: *** [CMakeFiles/seal.dir/native/src/seal/evaluator.cpp.o] Error 1
make[1]: *** [CMakeFiles/seal.dir/all] Error 2
make: *** [all] Error 2

The main issue seems to be that the system isn't a UNIX-Like or Windows system. Is there any way to build SEAL (and the code that uses it) for WebAssembly?

Thanks.

@s0l0ist
Copy link
Contributor

s0l0ist commented Mar 14, 2021

@lielfr there a few things that prevent compiling to WASM out of the box with emscripten.

There are a few changes needed in CMake and intrinsics. After getting a successful build, you then need to work around marshaling 32-bit numbers as the default 64-bits will not work, thus limiting your precision with BFV. In addition, CKKS is limited to 53 bits of precision due to how data is marshaled to JS numbers which have a max precision of 2^53.

If you want inspiration, you can look at the code of node-seal which is a TS wrapper around the WASM generated by emscripten. Full disclosure - I'm the author of node-seal. It works with both 32-bit numbers, but also 64-bit numbers (represented by BigInts) at the cost of an encoding penalty for BFV.

@WeiDaiWD
Copy link
Contributor

@s0l0ist You are the expert on this topic. Much appreciated!

@s0l0ist
Copy link
Contributor

s0l0ist commented Mar 18, 2021

@lielfr , I've added a #306 which will allow you to build for WASM. You'll need to create your own bindings or take some from node-seal for inspiration.

@lielfr
Copy link
Author

lielfr commented Mar 18, 2021

@s0l0ist Thanks a lot

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants