Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

WASI build fails on both SDK 20 and 21 (Mac OS) #114736

Closed
thesuhas opened this issue Jan 29, 2024 · 6 comments
Closed

WASI build fails on both SDK 20 and 21 (Mac OS) #114736

thesuhas opened this issue Jan 29, 2024 · 6 comments
Labels
build The build process and cross-build OS-wasi pending The issue will be closed if no feedback is provided type-bug An unexpected behavior, bug, or error

Comments

@thesuhas
Copy link

thesuhas commented Jan 29, 2024

Bug report

Bug description:

# Add a code block here, if required

On trying to build CPython for wasmtime with both SDK 20 and 21, I get an error on running: python Tools/wasm/wasi.py configure-host
Error:

image
I've tried modifying the env vars to clang and tried to replace it with gcc as well. Still fails. Any pointers?

CPython versions tested on:

3.11

Operating systems tested on:

macOS

Linked PRs

@thesuhas thesuhas added the type-bug An unexpected behavior, bug, or error label Jan 29, 2024
@sunmy2019 sunmy2019 added the build The build process and cross-build label Jan 30, 2024
@brettcannon
Copy link
Member

Are you trying to build Python 3.11 using Tools/wasm/wasi.py (based on the "versions tested")? If so, that script has not been tested on anything but main, so you would need to use https://github.com/python/cpython/blob/3.11/Tools/wasm/wasm_build.py instead.

I've also only made sure a WASI build works under WASI-SDK 20 w/ wasmtime under preview 1 so far, so 21 isn't confirmed to work yet.

@brettcannon
Copy link
Member

You can also look at config.log to see it it says anything interesting.

@brettcannon
Copy link
Member

And did you try using wasi.py build first? I.e. did the build Python steps succeed and is there a specific reason you're doing it in discrete steps?

@brettcannon brettcannon added the pending The issue will be closed if no feedback is provided label Feb 14, 2024
@thesuhas
Copy link
Author

Hey sorry for the late reply. I did try wasi.py build first and it failed so I ran the steps individually. I'll re-run it and check the config.log and get back to you!

brettcannon added a commit to brettcannon/cpython that referenced this issue Mar 13, 2024
@hugovk
Copy link
Member

hugovk commented Mar 14, 2024

Can this be closed now #116771 has been merged?

@brettcannon
Copy link
Member

Can this be closed now #116771 has been merged?

Yep! I was waiting for the PR to merge (the macOS runners were taking so long I had to log off before CI finished).

vstinner pushed a commit to vstinner/cpython that referenced this issue Mar 20, 2024
adorilson pushed a commit to adorilson/cpython that referenced this issue Mar 25, 2024
diegorusso pushed a commit to diegorusso/cpython that referenced this issue Apr 17, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
build The build process and cross-build OS-wasi pending The issue will be closed if no feedback is provided type-bug An unexpected behavior, bug, or error
Projects
None yet
Development

No branches or pull requests

4 participants