Coder Social home page Coder Social logo

Comments (9)

L-jasmine avatar L-jasmine commented on June 17, 2024 2

This should be fixed at this pre-release: https://github.com/WasmEdge/WasmEdge/releases/tag/0.8.2-rc.4
Please use the new binary and try again. Thanks for your report.

it can run in 0.8.2-rc.4

from wasmedge.

hydai avatar hydai commented on June 17, 2024

@q82419 Could you check this?

path_readlink is a valid wasi function:
https://github.com/WebAssembly/WASI/blob/main/phases/snapshot/witx/wasi_snapshot_preview1.witx#L372

from wasmedge.

hydai avatar hydai commented on June 17, 2024

Seems like our path_readlink function has 6 args whereas WASI spec only has 5 args.

Updated: Our implementation is the same as WASI spec which has 5 args. So it will need to check the wasm file itself to figure out the details.

from wasmedge.

L-jasmine avatar L-jasmine commented on June 17, 2024

Seems like our path_readlink function has 6 args whereas WASI spec only has 5 args.

in my wasm path_readlink is (func (param i32 i32 i32 i32 i32 i32) (result i32))

from wasmedge.

hydai avatar hydai commented on June 17, 2024

@L-jasmine Could you provide the steps of creating the wasi-quickjs?

After checking the WASI-SDK, the path_readlink should have only 5 args:

https://github.com/WebAssembly/wasi-libc/blob/659ff414560721b1660a19685110e484a081c3d4/libc-bottom-half/sources/__wasilibc_real.c#L473-L488

from wasmedge.

q82419 avatar q82419 commented on June 17, 2024

@L-jasmine
This function was not changed in the past 2 years. Can you provide your WASM file and the source? Thanks.

from wasmedge.

L-jasmine avatar L-jasmine commented on June 17, 2024

wasmer: https://github.com/wasmerio/wasmer/blob/master/lib/wasi/src/syscalls/mod.rs#L1907-L1922
wasilibc: https://github.com/WebAssembly/wasi-libc/blob/659ff414560721b1660a19685110e484a081c3d4/libc-bottom-half/sources/__wasilibc_real.c#L473-L476

from wasmedge.

q82419 avatar q82419 commented on June 17, 2024

It seems like the arg5 is defined in the result column.
https://github.com/WebAssembly/WASI/blob/main/phases/snapshot/witx/wasi_snapshot_preview1.witx#L380
We'll fix it and check for other functions. Thanks.

from wasmedge.

hydai avatar hydai commented on June 17, 2024

This should be fixed at this pre-release: https://github.com/WasmEdge/WasmEdge/releases/tag/0.8.2-rc.4
Please use the new binary and try again. Thanks for your report.

from wasmedge.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.