-
Notifications
You must be signed in to change notification settings - Fork 1
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
Not loading on Safari #2
Comments
Looks like this is the same issue people discussed in opencv/opencv#19553 . If you afford to do, could you build npm module following the instruction I described in https://github.com/Chia-Mine/bls-signatures/tree/npm, with ecmscripten 1.39.0 and check it works on safari? |
Following your instructions I encounter this issue:
|
Got past the previous issue copying
|
Hmm. Since I don't have environment I can use to test module in Safari, finding out the cause/fix needs good guesses... What is your cmake version?
|
```
# cmake --version
cmake version 3.16.3
CMake suite maintained and supported by Kitware (kitware.com/cmake).
```
… On 12. Oct 2021, at 12:29, ChiaMineJP ***@***.***> wrote:
Hmm. Since I don't have environment I can use to test module in Safari, finding out the cause/fix needs good guesses...
What is your cmake version?
It seems the error below raised because cmake didn't fetch the files of relic module.
/root/bls-signatures/js-bindings/wrappers/../helpers.h:22:10: fatal error: 'relic.h' file not found
#include "relic.h"
^~~~~~~~~
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub <#2 (comment)>, or unsubscribe <https://github.com/notifications/unsubscribe-auth/AF5KDXTRJFLWK2GLS4IM2Z3UGQEZ7ANCNFSM5FSHJNOQ>.
Triage notifications on the go with GitHub Mobile for iOS <https://apps.apple.com/app/apple-store/id1477376905?ct=notification-email&mt=8&pt=524675> or Android <https://play.google.com/store/apps/details?id=com.github.android&referrer=utm_campaign%3Dnotification-email%26utm_medium%3Demail%26utm_source%3Dgithub>.
|
What environment do you use to compile the library? I can test on my Safari if you are able to compile it with 1.39.0 |
I tried to build module for you to test it in your environment. I leave logs with a hope that anyone who follows this issue can skip what I tried so far. My Build Environment
1. Build with emscripten 1.39.0Failed to build with error messages below.
This seems to be a bug in emscripten 1.39.0, for it misinterprets command options. 2. Build with emscripten 1.40.1Another error stopped building.
Note: emscripten 2.0.0 showed exact the same error. My current conclusionJust wait for new version of emscripten which can produce safari-compatible wasm binary. |
What about adding |
Both Chrome and Firefox work, while Safari fails:
RuntimeError: abort(CompileError: WebAssembly.Module doesn't parse at byte 2702: references are not enabled). Build with -s ASSERTIONS=1 for more info. (evaluating 'new WebAssembly.RuntimeError("abort(" + a + "). Build with -s ASSERTIONS=1 for more info.")')
RuntimeError
x — blsjs.js:20
(anonymous function) — blsjs.js:110
promiseReactionJob
The text was updated successfully, but these errors were encountered: