-
-
Notifications
You must be signed in to change notification settings - Fork 29.2k
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
Unable to build to WASI #119103
Comments
Thanks! I just used the steps mentioned in the
Fails in the first command mentioned here: |
Oh I see, you're not supposed to use the wasi-sdk for the build Python. Did you perhaps run something else before running the below?
If not, then its probably a bug in the script. Regardless, you should be able to build things correctly if you remove |
What do you mean by not supposed to use wasi-sdk? I thought that was mentioned in the documentation. I did not run anything before that. |
To be clear, the build requires two stages. First, we build a Python for your machine, which is required to set up a second Python build for WASM. Your issue was you were using the WASI-SDK for the first build, when it should only be used for the second. Can you upload the log mentioned in your screenshot? |
I understand that, and I believe
|
Yep, but it was incorrectly using the incorrect CC variable, probably because your configure cache was incorrect AIUI. I'm sorry but I'm not familiar with building on macOS, I think the script may be making some error but it's not clear to me what is going wrong now. |
Bug report
Bug description:
Hi,
I've been trying to follow the build instructions from here to build to wasi.
I get the following error when running
python3 Tools/wasm/wasi.py build --quiet -- --config-cache --with-pydebug
:I see that the
clang
fromwasi-sdk
was correctly picked up but it's unable to use it?This is the relevant data from
config.log
:CPython versions tested on:
3.11
Operating systems tested on:
macOS
The text was updated successfully, but these errors were encountered: