Skip to content

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

@dynamite-bud

Description

@dynamite-bud

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)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions