hashlib icon indicating copy to clipboard operation
hashlib copied to clipboard

Does not build with emscripten

Open pcarrier opened this issue 2 years ago • 0 comments

--- 8< --- 8< --- nim.cfg --- 8< --- 8< ---
d:release
os:linux
cpu:wasm32
cc:clang
clang.exe:"/usr/lib/emscripten/emcc"
clang.linkerexe:"/usr/lib/emscripten/emcc"
clang.cpp.exe:"/usr/lib/emscripten/emcc"
clang.cpp.linkerexe:"/usr/lib/emscripten/emcc"
--- 8< --- 8< --- src/form.nim --- 8< --- 8< ---
import hashlib/misc/blake3

echo count[BLAKE3]("hello world")
--- >8 --- >8 --- >8 --- >8 --- >8 ---
> nimble build
  Verifying dependencies for [email protected]
     Info:  Dependency on hashlib@>= 1.0.1 already satisfied
  Verifying dependencies for [email protected]
     Info:  Dependency on nimcrypto@>= 0.4.11 already satisfied
  Verifying dependencies for [email protected]
   Building form/form using c backend
emcc: error: Passing any of -msse, -msse2, -msse3, -mssse3, -msse4.1, -msse4.2, -msse4, -mavx, -mfpu=neon flags also requires passing -msimd128 (or -mrelaxed-simd)!
emcc: error: Passing any of -msse, -msse2, -msse3, -mssse3, -msse4.1, -msse4.2, -msse4, -mavx, -mfpu=neon flags also requires passing -msimd128 (or -mrelaxed-simd)!
Error: execution of an external compiler program '/usr/lib/emscripten/emcc -c -w -ferror-limit=3 -pthread -msse4.1 -mavx2 -DBLAKE3_NO_AVX512 -O3   -I/usr/lib/nim/lib -I/data/pcarrier/form/src -o /data/pcarrier/.cache/nim/form_r/@m..@[email protected]@[email protected]@shashlib@smisc@ssrc@sblake3_dispatch.c.o /data/pcarrier/.nimble/pkgs2/hashlib-1.0.1-22498f3ef7495a1962207bf7a66cd7970225d7a0/hashlib/misc/src/blake3_dispatch.c' failed with exit code: 1


       Tip: 6 messages have been suppressed, use --verbose to show them.
nimble.nim(229)          buildFromDir

    Error:  Build failed for the package: form

nim 2.0.0 and emscripten 3.1.46-git

pcarrier avatar Oct 17 '23 03:10 pcarrier