You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I'm using wasi-sockets-alpha-5 tag (f3a1f89915357e0b00fb269a34f92b6d0bafd4c1) for wasi-sdk, as specified in CONTRIBUTING.md. It seem to omit netdb.h for target wasm32-wasip1 , which is synonymous with wasm32-wasi:
cd share/wasi-sysroot
for x in include lib share; do rm -r $x/wasm32-wasi && mv $x/wasm32-wasip2 $x/wasm32-wasi; done
That tricks CPython into using the WASIp2 build of wasi-libc, which has much more complete socket support (including netdb.h). Eventually, I hope CPython will adopt WASIp2 natively, but that hasn't happened yet.
Since you're building the fork from source rather than using one of the pre-built artifacts, you'll need to run the above for loop yourself before building CPython.
I'm trying to build componentize-py with Nix and encountered the following problem. Am I missing something or maybe doing something obviously wrong?
Build error:
I've dug a bit, and configure fails because
netdb.h
header is missing:I'm using
wasi-sockets-alpha-5
tag (f3a1f89915357e0b00fb269a34f92b6d0bafd4c1
) for wasi-sdk, as specified inCONTRIBUTING.md
. It seem to omitnetdb.h
for targetwasm32-wasip1
, which is synonymous withwasm32-wasi
:componentize-py
revision: c50822cwasi-sdk
revision: dicej/wasi-sdk@f3a1f89The text was updated successfully, but these errors were encountered: