You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I am looking into using this in a webassembly context, currently the build fails due to gmp-mpfr-sys:
error: failed to run custom build command for `gmp-mpfr-sys v1.6.1`
Caused by:
process didn't exit successfully: `/Users/muji/git/forks/cggmp21/target/debug/build/gmp-mpfr-sys-18f237700e2fce47/build-script-build` (exit status: 101)
--- stderr
thread 'main' panicked at /Users/muji/.cargo/registry/src/index.crates.io-6f17d22bba15001f/gmp-mpfr-sys-1.6.1/build.rs:105:9:
Cross compilation from aarch64-apple-darwin to wasm32-unknown-unknown not supported! Use the `force-cross` feature to cross compile anyway.
note: run with `RUST_BACKTRACE=1` environment variable to display a backtrace
warning: build failed, waiting for other jobs to finish...
Has anyone tried with the force-cross feature for wasm32-unknown-unknown? Is it known to work?
Or would it be better to use a different GMP implementation for WASM behind a feature flag? Are you interested in supporting the wasm32-unknown-unknown target?
The text was updated successfully, but these errors were encountered:
We are interested in adding wasm32-unknown-unknown support, but rug library to my knowledge does not support it. I think it's the only blocker, so whenever rug becomes wasm-friendly, we'll do too. See gmp-mpfr-sys#18
It does look nice, but rug and this one expose different interfaces, so it'll be difficult to unify them (especially, unify them in the way so we can still benefit from optimizations in each backend).
Hi @survived,
I am looking into using this in a webassembly context, currently the build fails due to
gmp-mpfr-sys
:Has anyone tried with the
force-cross
feature forwasm32-unknown-unknown
? Is it known to work?Or would it be better to use a different GMP implementation for WASM behind a feature flag? Are you interested in supporting the
wasm32-unknown-unknown
target?The text was updated successfully, but these errors were encountered: