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

importing "env"."ring_core_dev_x25519_sc_reduce": unknown import #1

Open
dynamite-bud opened this issue Jun 16, 2023 · 0 comments
Open

Comments

@dynamite-bud
Copy link

dynamite-bud commented Jun 16, 2023

I compiled rustls with the ring-wasi but I guess there's some problem in the build

$ wasmer run --net
2023-06-16T17:34:36.388423Z ERROR ThreadId(01) wasmer_wasix::state::env: wasi[1]::wasm instantiate error (Error while importing "env"."ring_core_dev_x25519_sc_reduce": unknown import. Expected Function(FunctionType { params: [I32], results: [] }))
error: Instantiation failed
╰─▶ 1: Error while importing "env"."ring_core_dev_x25519_sc_reduce": unknown import. Expected Function(FunctionType { params: [I32], results: [] })

When I deleted the wasm-libs directory and compile using Zig:

LLVM ERROR: malformed uleb128, extends past end
warning: `ring` (lib) generated 1 warning
The following warnings were emitted during compilation:

warning: warning: /Library/Developer/CommandLineTools/usr/bin/ranlib: archive library: /Volumes/Work/Projects/Wasmer/ring-wasi/target/wasm32-wasmer-wasi/debug/build/ring-5105b7f4635f2f29/out/libring_core_dev_.a the table of contents is empty (no object file members in the library define global symbols)
warning: warning: /Library/Developer/CommandLineTools/usr/bin/ranlib: archive library: /Volumes/Work/Projects/Wasmer/ring-wasi/target/wasm32-wasmer-wasi/debug/build/ring-5105b7f4635f2f29/out/libring_core_dev_test.a the table of contents is empty (no object file members in the library define global symbols)
@dynamite-bud dynamite-bud changed the title env func importing "env"."ring_core_dev_x25519_sc_reduce": unknown import Jun 16, 2023
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