Skip to content

How can I build a test environment with different emscripten settings? #3044

@martenrichter

Description

@martenrichter

I am currently trying to test if squashfs support may reduce xeus-python start time.

However, I need for the current experiment the SHARED_MEMORY feature.
Therefore, I created a fork of the recipes and build the packages by hand with pixi:
https://github.com/martenrichter/recipes/tree/testsharedmemory

(And does not only contain fixes due to shared memory, but also some build fixes due to newer version, they may be also of help in your work).
However, I do not seem to have gotten a build with consistent versions as I get (with and without squashfs support):

    at xpython.wasm.PyDict_New (http://127.0.0.1:8000/xeus/xeus-python-kernel/bin/xpython.wasm:wasm-function[20889]:0x7e8fd8)
    at xpython.wasm._PyUnicode_InitGlobalObjects (http://127.0.0.1:8000/xeus/xeus-python-kernel/bin/xpython.wasm:wasm-function[22208]:0x85b230)
    at xpython.wasm.pycore_interp_init (http://127.0.0.1:8000/xeus/xeus-python-kernel/bin/xpython.wasm:wasm-function[23758]:0x91e352)
    at xpython.wasm.pyinit_config (http://127.0.0.1:8000/xeus/xeus-python-kernel/bin/xpython.wasm:wasm-function[23739]:0x91c045)
    at xpython.wasm.Py_InitializeFromConfig (http://127.0.0.1:8000/xeus/xeus-python-kernel/bin/xpython.wasm:wasm-function[23738]:0x91bbd5)
    at xpython.wasm.pybind11::initialize_interpreter(PyConfig*, int, char const* const*, bool) (http://127.0.0.1:8000/xeus/xeus-python-kernel/bin/xpython.wasm:wasm-function[18887]:0x72a143)
    at invoke_viiii (http://127.0.0.1:8000/xeus/xeus-python-kernel/bin/xpython.js:29061:29)
    at xpython.wasm.pybind11::scoped_interpreter* emscripten::internal::operator_new<pybind11::scoped_interpreter>() (http://127.0.0.1:8000/xeus/xeus-python-kernel/bin/xpython.wasm:wasm-function[18875]:0x72893a)
    at xpython.wasm.emscripten::internal::Invoker<emscripten::internal::rvp::take_ownership, pybind11::scoped_interpreter*>::invoke(pybind11::scoped_interpreter* (*)()) (http://127.0.0.1:8000/xeus/xeus-python-kernel/bin/xpython.wasm:wasm-function[18874]:0x7288c0)
    at constructor _Interpreter (eval at newFunc (http://127.0.0.1:8000/xeus/xeus-python-kernel/bin/xpython.js:4498:23), <anonymous>:4:10)

I assume that it is caused by versions that do not seem to be compatible.
So my question is, how can I get a development environment with a working set of versions?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions