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

could not compile the crate "ring" using cargo wasi #1322

Closed
Hanifff opened this issue Jun 28, 2021 · 1 comment
Closed

could not compile the crate "ring" using cargo wasi #1322

Hanifff opened this issue Jun 28, 2021 · 1 comment

Comments

@Hanifff
Copy link

Hanifff commented Jun 28, 2021

Hi, I try to build a project using cargo wasi with the cargo wasi build command to generate wasm files.
But it returnes with the following error:

   Compiling version_check v0.9.3
   Compiling rand_core v0.6.3
   Compiling cc v1.0.68
   Compiling subtle v2.4.0
   Compiling protobuf v2.24.1
   Compiling untrusted v0.7.1
   Compiling generic-array v0.14.4
   Compiling ring v0.16.20
error[E0432]: unresolved import `super::sysrand_chunk`
   --> /home/hanif/.cargo/registry/src/github.com-1ecc6299db9ec823/ring-0.16.20/src/rand.rs:306:16
    |
306 |     use super::sysrand_chunk::chunk;
    |                ^^^^^^^^^^^^^ could not find `sysrand_chunk` in `super`

error: aborting due to previous error

For more information about this error, try `rustc --explain E0432`.
error: could not compile `ring`

To learn more, run the command again with --verbose.
warning: build failed, waiting for other jobs to finish...
error: build failed```


The content of cargo.toml file is as follows:

[package]
name = "echo_server"
version = "0.1.0"
authors = ["hanifff [email protected]"]
edition = "2018"

[lib]
crate-type = ['cdylib']

[dependencies]
protobuf = "2.24.1"
ecdsa = "0.12.2"
ring = "0.16.20"


Rust verison: 

```rustc 1.55.0-nightly (2021-06-24)````

Cargo version:

```
cargo 1.55.0-nightly (2021-06-22)
```

Cargo-wasi version:

```
cargo-wasi 0.1.22 (2020-04-23)

The project can be build by cargo build command. Does ring support cargo wasi?

@briansmith
Copy link
Owner

This is a duplicate of issue #1043. Let's continue the discussion there.

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

2 participants