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

Does not build with emscripten #3

Open
pcarrier opened this issue Oct 17, 2023 · 0 comments
Open

Does not build with emscripten #3

pcarrier opened this issue Oct 17, 2023 · 0 comments

Comments

@pcarrier
Copy link

pcarrier commented Oct 17, 2023

--- 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 form@0.1.0
     Info:  Dependency on hashlib@>= 1.0.1 already satisfied
  Verifying dependencies for hashlib@1.0.1
     Info:  Dependency on nimcrypto@>= 0.4.11 already satisfied
  Verifying dependencies for nimcrypto@0.6.0
   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..@s..@s.nimble@spkgs2@shashlib-1.0.1-22498f3ef7495a1962207bf7a66cd7970225d7a0@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

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

1 participant