Skip to content

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

Closed

Description

@thesuhas

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

Activity

  1. brettcannon commented on Jan 30, 2024

    @brettcannon
    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.

  2. brettcannon commented on Jan 30, 2024

    @brettcannon
    Member

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

  3. brettcannon commented on Jan 30, 2024

    @brettcannon
    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?

  4. added
    pendingThe issue will be closed if no feedback is provided
    on Feb 14, 2024
  5. thesuhas commented on Feb 19, 2024

    @thesuhas
    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!

  6. added 2 commits that reference this issue on Mar 13, 2024
  7. hugovk commented on Mar 14, 2024

    @hugovk
    Member

    Can this be closed now #116771 has been merged?

  8. brettcannon commented on Mar 14, 2024

    @brettcannon
    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).

  9. added a commit that references this issue on Mar 20, 2024
  10. added a commit that references this issue on Mar 25, 2024
  11. added a commit that references this issue on Apr 17, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    OS-wasibuildThe build process and cross-buildpendingThe issue will be closed if no feedback is providedtype-bugAn unexpected behavior, bug, or error

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions