Skip to content

WasmVM: WASI sysroot missing libc functions (ffsll, inet_ntop) #40

@NathanFlurry

Description

@NathanFlurry

Summary

Some POSIX libc functions compile but do not work correctly at runtime in the WASI sysroot:

  • ffsll() (find first set bit in long long) — may be missing or stubbed in musl-wasi
  • inet_ntop() (network address to presentation string) — compiled but fails at runtime, likely due to incomplete network address handling in WASI libc

Affected os-test cases

  • basic/strings/ffsll
  • basic/arpa_inet/inet_ntop

Expected behavior

Both functions should produce correct POSIX-compliant results.

Context

Discovered via os-test POSIX conformance suite. Tracked in posix-exclusions.json as fail / patched-sysroot.

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions