Skip to content

Cannot compile Pyxel with the latest Pyodide 0.28.3 #654

@kitao

Description

@kitao

I would like to upgrade Pyodide to version 0.28.3 in order to fix some issues with Pyxel.
By doing so, Emscripten will also be upgraded to 4.0.9 (the version used by Pyodide 0.28.3), which in turn makes SDL 2.32.0 (bundled with Emscripten 4.0.9) available.

However, the name mangling rules in Emscripten 4.0.9 differ from those in Rust, and since the error checks in 4.0.9 are stricter, the compilation fails.
To work around this, I tried restricting the exported functions using EXPORTED_FUNCTIONS, but functions are still automatically exposed by pyo3 0.26.0, which again causes a naming convention violation and stops the build.

If anyone knows a good way to work around this situation, I would greatly appreciate your advice.

Metadata

Metadata

Assignees

No one assigned

    Labels

    help wantedExtra attention is needed

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions