-
-
Notifications
You must be signed in to change notification settings - Fork 29.3k
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. |
Unfortunately you left out the logs. I wouldn't build w/
It does, but it looks like your build got in a weird place. Also note you are using an unsupported version of WASI SDK; only SDK 21 has been verified to work (see the instructions you linked to which says how to check what the latest version has been verified to work).
That's an issue of the compiler pulling in C++ code from macOS and that isn't WASI-specific.
FYI I developed the script initially on macOS, so it at least used to work w/o issue. |
Bug report
Bug description:
Hi,
![image](https://private-user-images.githubusercontent.com/54014218/331347469-d1f7122f-1658-45d1-b654-6e6558e45b67.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3MTkwNDk2ODYsIm5iZiI6MTcxOTA0OTM4NiwicGF0aCI6Ii81NDAxNDIxOC8zMzEzNDc0NjktZDFmNzEyMmYtMTY1OC00NWQxLWI2NTQtNmU2NTU4ZTQ1YjY3LnBuZz9YLUFtei1BbGdvcml0aG09QVdTNC1ITUFDLVNIQTI1NiZYLUFtei1DcmVkZW50aWFsPUFLSUFWQ09EWUxTQTUzUFFLNFpBJTJGMjAyNDA2MjIlMkZ1cy1lYXN0LTElMkZzMyUyRmF3czRfcmVxdWVzdCZYLUFtei1EYXRlPTIwMjQwNjIyVDA5NDMwNlomWC1BbXotRXhwaXJlcz0zMDAmWC1BbXotU2lnbmF0dXJlPThmNGRjNjY4MWQ1YTJhMGUwZWIwMTllMzc5YjI1ZDJiZDgzNzA3NmQ0ZmRlMTIxYmRiYjk2MDBkNTk3ZjVjZTAmWC1BbXotU2lnbmVkSGVhZGVycz1ob3N0JmFjdG9yX2lkPTAma2V5X2lkPTAmcmVwb19pZD0wIn0.J6_gRcq_p6_dRRRadGUhmL9EJm3n3lUkR3M58stgOzk)
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: