singlestore-labs / python-wasi

Utilities for building CPython for the WASI platform
Apache License 2.0
97 stars 14 forks source link

Building error #5

Closed dzobbe closed 2 years ago

dzobbe commented 2 years ago

When running the ./run.sh script I am getting this error.

implicit declaration of function 'accept' is invalid in C99 [-Werror,-Wimplicit-function-declaration] ctx->result = accept(s->sock_fd, addr, paddrlen); ^ ./Modules/socketmodule.c:2819:19: note: did you mean 'access'? /opt/wasi-sdk/share/wasi-sysroot/include/unistd.h:118:5: note: 'access' declared here int access(const char *, int); ^

kesmit13 commented 2 years ago

WASI SDK v15 is needed for this change. I updated the Dockerfile to use the latest WASI SDK.