You are viewing a plain text version of this content. The canonical link for it is here.
Posted to github@arrow.apache.org by "agriyakhetarpal (via GitHub)" <gi...@apache.org> on 2025/08/13 20:52:29 UTC

[PR] GH-47329: [Packaging][Python] Build and test PyArrow against the `pyodide_2025_0` ABI [arrow]

agriyakhetarpal opened a new pull request, #47330:
URL: https://github.com/apache/arrow/pull/47330

   ### Rationale for this change
   
   This PR allows PyArrow to be built and tested against the new `pyodide_2025_0` ABI introduced with [the Pyodide 0.28 release](https://blog.pyodide.org/posts/0.28-release/).
   
   Towards #47329
   
   ### What changes are included in this PR?
   
   This PR updates the Pyodide version in the build scripts to 0.28.1, and the Emscripten version to 4.0.9.
   
   ### Are these changes tested?
   
   ### Are there any user-facing changes?
   
   Yes, downstream packagers trying to build a WASM wheel for Pyodide are now requested to use newer Pyodide and Emscripten versions, and the latest stable version of pyodide-build available.
   
   GitHub Issue: https://github.com/apache/arrow/issues/47329
   


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: github-unsubscribe@arrow.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


Re: [PR] GH-47329: [Packaging][Python][C++] Build and test PyArrow against the `pyodide_2025_0` ABI [arrow]

Posted by "agriyakhetarpal (via GitHub)" <gi...@apache.org>.
agriyakhetarpal commented on PR #47330:
URL: https://github.com/apache/arrow/pull/47330#issuecomment-3187262373

   Hmm, now the C++ build and Python compilation are succeeding, but we have a failure at link time. We have:
   
   `wasm-ld: error: attempted static link of dynamic object release/libarrow_python.so`
   
   `em++: error: '/root/emsdk/upstream/bin/wasm-ld -o release/lib.cpython-313-wasm32-emscripten.so CMakeFiles/lib.dir/lib.cpp.o release/libarrow_python.so -L/root/emsdk/upstream/emscripten/cache/sysroot/lib/wasm32-emscripten -L/root/emsdk/upstream/emscripten/src/lib --relocatable -mllvm -combiner-global-alias-analysis=false -mllvm -enable-emscripten-cxx-exceptions -mllvm -enable-emscripten-sjlj -mllvm -disable-lsr' failed (returned 1)`
   
   This indicates that we either intended to build `libarrow_python.a` instead of `libarrow_python.so`, or that we are incorrectly passing `-static` somewhere at link time and one of the `SHARED`/`STATIC` build flags was incorrectly turned `ON`/`OFF`. I suspect it is the former.
   


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: github-unsubscribe@arrow.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


Re: [PR] GH-47329: [Packaging][Python][C++] Build and test PyArrow against the `pyodide_2025_0` ABI [arrow]

Posted by "agriyakhetarpal (via GitHub)" <gi...@apache.org>.
agriyakhetarpal commented on PR #47330:
URL: https://github.com/apache/arrow/pull/47330#issuecomment-3189735600

   I'm unsure if 781b54a5a7c65fd7dd5cf6c919c561c312c762dc is the right approach, but it doesn't hurt to try – I suppose that if it works, it would work with `_csv`, `_compute`, and all other Cython modules. Could someone please submit another build for me? Thank you!


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: github-unsubscribe@arrow.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


Re: [PR] GH-47329: [Packaging][Python][C++] Build and test PyArrow against Pyodide 314 (`2026_0` ABI) [arrow]

Posted by "agriyakhetarpal (via GitHub)" <gi...@apache.org>.
agriyakhetarpal commented on code in PR #47330:
URL: https://github.com/apache/arrow/pull/47330#discussion_r4353205636


##########
docs/source/developers/cpp/emscripten.rst:
##########
@@ -34,9 +34,9 @@ activate it using the commands below (see https://emscripten.org/docs/getting_st
    git clone https://github.com/emscripten-core/emsdk.git
    cd emsdk
    # replace <version> with the desired EMSDK version.
-   # e.g. for Pyodide 0.26, you need EMSDK version 3.1.58
+   # e.g. for Pyodide 314.0.x, you need EMSDK version 5.0.3
    # the versions can be found in the Makefile.envs file in the Pyodide repo:
-   # https://github.com/pyodide/pyodide/blob/10b484cfe427e076c929a55dc35cfff01ea8d3bc/Makefile.envs
+   # https://github.com/pyodide/pyodide/blob/314.0.4/Makefile.envs

Review Comment:
   ```suggestion
      # https://github.com/pyodide/pyodide/blob/314.07/Makefile.envs
   ```



-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: github-unsubscribe@arrow.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


Re: [PR] GH-47329: [Packaging][Python][C++] Build and test PyArrow against the `pyodide_2025_0` ABI [arrow]

Posted by "agriyakhetarpal (via GitHub)" <gi...@apache.org>.
agriyakhetarpal commented on PR #47330:
URL: https://github.com/apache/arrow/pull/47330#issuecomment-3187317602

   Could you please submit another build? Thanks!


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: github-unsubscribe@arrow.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


Re: [PR] GH-47329: [Packaging][Python] Build and test PyArrow against the `pyodide_2025_0` ABI [arrow]

Posted by "agriyakhetarpal (via GitHub)" <gi...@apache.org>.
agriyakhetarpal commented on PR #47330:
URL: https://github.com/apache/arrow/pull/47330#issuecomment-3185953593

   It looks like the actual error is something else, though, which gets masked by the error message: https://github.com/apache/arrow/actions/runs/16950058312/job/48040535515?pr=47330#step:5:16
   
   ```
   fatal: not a git repository (or any of the parent directories): .git
   ```


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: github-unsubscribe@arrow.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


Re: [PR] GH-47329: [Packaging][Python][C++] Build and test PyArrow against the `pyodide_2025_0` ABI [arrow]

Posted by "jasonbates692-spec (via GitHub)" <gi...@apache.org>.
jasonbates692-spec commented on PR #47330:
URL: https://github.com/apache/arrow/pull/47330#issuecomment-3187345094

   I'm standing up in the next to the or store
   
   On Thu, Aug 14, 2025, 2:43 AM Agriya Khetarpal ***@***.***>
   wrote:
   
   > *agriyakhetarpal* left a comment (apache/arrow#47330)
   > <https://github.com/apache/arrow/pull/47330#issuecomment-3187317602>
   >
   > Could you please submit another build? Thanks!
   >
   > —
   > Reply to this email directly, view it on GitHub
   > <https://github.com/apache/arrow/pull/47330#issuecomment-3187317602>, or
   > unsubscribe
   > <https://github.com/notifications/unsubscribe-auth/BV4LWFJGWLSKPOLBSSLWVPD3NQ42LAVCNFSM6AAAAACD2ZNQJCVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZTCOBXGMYTONRQGI>
   > .
   > You are receiving this because you are subscribed to this thread.Message
   > ID: ***@***.***>
   >
   


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: github-unsubscribe@arrow.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


Re: [PR] GH-47329: [Packaging][Python][C++] Build and test PyArrow against Pyodide 314 (`2026_0` ABI) [arrow]

Posted by "agriyakhetarpal (via GitHub)" <gi...@apache.org>.
agriyakhetarpal commented on code in PR #47330:
URL: https://github.com/apache/arrow/pull/47330#discussion_r4353210089


##########
docs/source/developers/cpp/emscripten.rst:
##########
@@ -34,9 +34,9 @@ activate it using the commands below (see https://emscripten.org/docs/getting_st
    git clone https://github.com/emscripten-core/emsdk.git
    cd emsdk
    # replace <version> with the desired EMSDK version.
-   # e.g. for Pyodide 0.26, you need EMSDK version 3.1.58
+   # e.g. for Pyodide 314.0.x, you need EMSDK version 5.0.3
    # the versions can be found in the Makefile.envs file in the Pyodide repo:
-   # https://github.com/pyodide/pyodide/blob/10b484cfe427e076c929a55dc35cfff01ea8d3bc/Makefile.envs
+   # https://github.com/pyodide/pyodide/blob/314.07/Makefile.envs

Review Comment:
   ```suggestion
      # https://github.com/pyodide/pyodide/blob/314.0.7/Makefile.envs
   ```



-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: github-unsubscribe@arrow.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


Re: [PR] GH-47329: [Packaging][Python][C++] Build and test PyArrow against the `pyodide_2025_0` ABI [arrow]

Posted by "agriyakhetarpal (via GitHub)" <gi...@apache.org>.
agriyakhetarpal commented on PR #47330:
URL: https://github.com/apache/arrow/pull/47330#issuecomment-3190309183

   I've isolated the problem to the Cython extension modules indeed; all of them fail to load (just that Node.js stops at the first one in the Crossbow runs):
   
   ```js
   Failed to load lib  /Users/agriyakhetarpal/Desktop/arrow/python/.venv-pyodide/lib/python3.13/site-packages/pyarrow/_acero.cpython-313-wasm32-emscripten.so
   Error: Failed to load dynamic library /Users/agriyakhetarpal/Desktop/arrow/python/.venv-pyodide/lib/python3.13/site-packages/pyarrow/_acero.cpython-313-wasm32-emscripten.so: 0
       at X.loadDynlib (/Users/agriyakhetarpal/Library/Caches/.pyodide-xbuildenv-0.30.5/0.28.1/xbuildenv/pyodide-root/dist/pyodide.asm.js:8:659221)
       at async main (file:///Users/agriyakhetarpal/Library/Caches/.pyodide-xbuildenv-0.30.5/0.28.1/xbuildenv/pyodide-root/dist/python_cli_entry.mjs:91:7)
   Failed to load lib  /Users/agriyakhetarpal/Desktop/arrow/python/.venv-pyodide/lib/python3.13/site-packages/pyarrow/_compute.cpython-313-wasm32-emscripten.so
   Error: Failed to load dynamic library /Users/agriyakhetarpal/Desktop/arrow/python/.venv-pyodide/lib/python3.13/site-packages/pyarrow/_compute.cpython-313-wasm32-emscripten.so: 0
       at X.loadDynlib (/Users/agriyakhetarpal/Library/Caches/.pyodide-xbuildenv-0.30.5/0.28.1/xbuildenv/pyodide-root/dist/pyodide.asm.js:8:659221)
       at async main (file:///Users/agriyakhetarpal/Library/Caches/.pyodide-xbuildenv-0.30.5/0.28.1/xbuildenv/pyodide-root/dist/python_cli_entry.mjs:91:7)
   Failed to load lib  /Users/agriyakhetarpal/Desktop/arrow/python/.venv-pyodide/lib/python3.13/site-packages/pyarrow/_csv.cpython-313-wasm32-emscripten.so
   Error: Failed to load dynamic library /Users/agriyakhetarpal/Desktop/arrow/python/.venv-pyodide/lib/python3.13/site-packages/pyarrow/_csv.cpython-313-wasm32-emscripten.so: 0
       at X.loadDynlib (/Users/agriyakhetarpal/Library/Caches/.pyodide-xbuildenv-0.30.5/0.28.1/xbuildenv/pyodide-root/dist/pyodide.asm.js:8:659221)
       at async main (file:///Users/agriyakhetarpal/Library/Caches/.pyodide-xbuildenv-0.30.5/0.28.1/xbuildenv/pyodide-root/dist/python_cli_entry.mjs:91:7)
   Failed to load lib  /Users/agriyakhetarpal/Desktop/arrow/python/.venv-pyodide/lib/python3.13/site-packages/pyarrow/_dataset.cpython-313-wasm32-emscripten.so
   Error: Failed to load dynamic library /Users/agriyakhetarpal/Desktop/arrow/python/.venv-pyodide/lib/python3.13/site-packages/pyarrow/_dataset.cpython-313-wasm32-emscripten.so: 0
       at X.loadDynlib (/Users/agriyakhetarpal/Library/Caches/.pyodide-xbuildenv-0.30.5/0.28.1/xbuildenv/pyodide-root/dist/pyodide.asm.js:8:659221)
       at async main (file:///Users/agriyakhetarpal/Library/Caches/.pyodide-xbuildenv-0.30.5/0.28.1/xbuildenv/pyodide-root/dist/python_cli_entry.mjs:91:7)
   Failed to load lib  /Users/agriyakhetarpal/Desktop/arrow/python/.venv-pyodide/lib/python3.13/site-packages/pyarrow/_dataset_orc.cpython-313-wasm32-emscripten.so
   Error: Failed to load dynamic library /Users/agriyakhetarpal/Desktop/arrow/python/.venv-pyodide/lib/python3.13/site-packages/pyarrow/_dataset_orc.cpython-313-wasm32-emscripten.so: 0
       at X.loadDynlib (/Users/agriyakhetarpal/Library/Caches/.pyodide-xbuildenv-0.30.5/0.28.1/xbuildenv/pyodide-root/dist/pyodide.asm.js:8:659221)
       at async main (file:///Users/agriyakhetarpal/Library/Caches/.pyodide-xbuildenv-0.30.5/0.28.1/xbuildenv/pyodide-root/dist/python_cli_entry.mjs:91:7)
   Failed to load lib  /Users/agriyakhetarpal/Desktop/arrow/python/.venv-pyodide/lib/python3.13/site-packages/pyarrow/_dataset_parquet.cpython-313-wasm32-emscripten.so
   Error: Failed to load dynamic library /Users/agriyakhetarpal/Desktop/arrow/python/.venv-pyodide/lib/python3.13/site-packages/pyarrow/_dataset_parquet.cpython-313-wasm32-emscripten.so: 0
       at X.loadDynlib (/Users/agriyakhetarpal/Library/Caches/.pyodide-xbuildenv-0.30.5/0.28.1/xbuildenv/pyodide-root/dist/pyodide.asm.js:8:659221)
       at async main (file:///Users/agriyakhetarpal/Library/Caches/.pyodide-xbuildenv-0.30.5/0.28.1/xbuildenv/pyodide-root/dist/python_cli_entry.mjs:91:7)
   Failed to load lib  /Users/agriyakhetarpal/Desktop/arrow/python/.venv-pyodide/lib/python3.13/site-packages/pyarrow/_feather.cpython-313-wasm32-emscripten.so
   Error: Failed to load dynamic library /Users/agriyakhetarpal/Desktop/arrow/python/.venv-pyodide/lib/python3.13/site-packages/pyarrow/_feather.cpython-313-wasm32-emscripten.so: 0
       at X.loadDynlib (/Users/agriyakhetarpal/Library/Caches/.pyodide-xbuildenv-0.30.5/0.28.1/xbuildenv/pyodide-root/dist/pyodide.asm.js:8:659221)
       at async main (file:///Users/agriyakhetarpal/Library/Caches/.pyodide-xbuildenv-0.30.5/0.28.1/xbuildenv/pyodide-root/dist/python_cli_entry.mjs:91:7)
   Failed to load lib  /Users/agriyakhetarpal/Desktop/arrow/python/.venv-pyodide/lib/python3.13/site-packages/pyarrow/_fs.cpython-313-wasm32-emscripten.so
   Error: Failed to load dynamic library /Users/agriyakhetarpal/Desktop/arrow/python/.venv-pyodide/lib/python3.13/site-packages/pyarrow/_fs.cpython-313-wasm32-emscripten.so: 0
       at X.loadDynlib (/Users/agriyakhetarpal/Library/Caches/.pyodide-xbuildenv-0.30.5/0.28.1/xbuildenv/pyodide-root/dist/pyodide.asm.js:8:659221)
       at async main (file:///Users/agriyakhetarpal/Library/Caches/.pyodide-xbuildenv-0.30.5/0.28.1/xbuildenv/pyodide-root/dist/python_cli_entry.mjs:91:7)
   Failed to load lib  /Users/agriyakhetarpal/Desktop/arrow/python/.venv-pyodide/lib/python3.13/site-packages/pyarrow/_json.cpython-313-wasm32-emscripten.so
   Error: Failed to load dynamic library /Users/agriyakhetarpal/Desktop/arrow/python/.venv-pyodide/lib/python3.13/site-packages/pyarrow/_json.cpython-313-wasm32-emscripten.so: 0
       at X.loadDynlib (/Users/agriyakhetarpal/Library/Caches/.pyodide-xbuildenv-0.30.5/0.28.1/xbuildenv/pyodide-root/dist/pyodide.asm.js:8:659221)
       at async main (file:///Users/agriyakhetarpal/Library/Caches/.pyodide-xbuildenv-0.30.5/0.28.1/xbuildenv/pyodide-root/dist/python_cli_entry.mjs:91:7)
   Failed to load lib  /Users/agriyakhetarpal/Desktop/arrow/python/.venv-pyodide/lib/python3.13/site-packages/pyarrow/_orc.cpython-313-wasm32-emscripten.so
   Error: Failed to load dynamic library /Users/agriyakhetarpal/Desktop/arrow/python/.venv-pyodide/lib/python3.13/site-packages/pyarrow/_orc.cpython-313-wasm32-emscripten.so: 0
       at X.loadDynlib (/Users/agriyakhetarpal/Library/Caches/.pyodide-xbuildenv-0.30.5/0.28.1/xbuildenv/pyodide-root/dist/pyodide.asm.js:8:659221)
       at async main (file:///Users/agriyakhetarpal/Library/Caches/.pyodide-xbuildenv-0.30.5/0.28.1/xbuildenv/pyodide-root/dist/python_cli_entry.mjs:91:7)
   Failed to load lib  /Users/agriyakhetarpal/Desktop/arrow/python/.venv-pyodide/lib/python3.13/site-packages/pyarrow/_parquet.cpython-313-wasm32-emscripten.so
   Error: Failed to load dynamic library /Users/agriyakhetarpal/Desktop/arrow/python/.venv-pyodide/lib/python3.13/site-packages/pyarrow/_parquet.cpython-313-wasm32-emscripten.so: 0
       at X.loadDynlib (/Users/agriyakhetarpal/Library/Caches/.pyodide-xbuildenv-0.30.5/0.28.1/xbuildenv/pyodide-root/dist/pyodide.asm.js:8:659221)
       at async main (file:///Users/agriyakhetarpal/Library/Caches/.pyodide-xbuildenv-0.30.5/0.28.1/xbuildenv/pyodide-root/dist/python_cli_entry.mjs:91:7)
   Failed to load lib  /Users/agriyakhetarpal/Desktop/arrow/python/.venv-pyodide/lib/python3.13/site-packages/pyarrow/_pyarrow_cpp_tests.cpython-313-wasm32-emscripten.so
   Error: Failed to load dynamic library /Users/agriyakhetarpal/Desktop/arrow/python/.venv-pyodide/lib/python3.13/site-packages/pyarrow/_pyarrow_cpp_tests.cpython-313-wasm32-emscripten.so: 0
       at X.loadDynlib (/Users/agriyakhetarpal/Library/Caches/.pyodide-xbuildenv-0.30.5/0.28.1/xbuildenv/pyodide-root/dist/pyodide.asm.js:8:659221)
       at async main (file:///Users/agriyakhetarpal/Library/Caches/.pyodide-xbuildenv-0.30.5/0.28.1/xbuildenv/pyodide-root/dist/python_cli_entry.mjs:91:7)
   Failed to load lib  /Users/agriyakhetarpal/Desktop/arrow/python/.venv-pyodide/lib/python3.13/site-packages/pyarrow/_substrait.cpython-313-wasm32-emscripten.so
   Error: Failed to load dynamic library /Users/agriyakhetarpal/Desktop/arrow/python/.venv-pyodide/lib/python3.13/site-packages/pyarrow/_substrait.cpython-313-wasm32-emscripten.so: 0
       at X.loadDynlib (/Users/agriyakhetarpal/Library/Caches/.pyodide-xbuildenv-0.30.5/0.28.1/xbuildenv/pyodide-root/dist/pyodide.asm.js:8:659221)
       at async main (file:///Users/agriyakhetarpal/Library/Caches/.pyodide-xbuildenv-0.30.5/0.28.1/xbuildenv/pyodide-root/dist/python_cli_entry.mjs:91:7)
   Failed to load lib  /Users/agriyakhetarpal/Desktop/arrow/python/.venv-pyodide/lib/python3.13/site-packages/pyarrow/lib.cpython-313-wasm32-emscripten.so
   Error: Failed to load dynamic library /Users/agriyakhetarpal/Desktop/arrow/python/.venv-pyodide/lib/python3.13/site-packages/pyarrow/lib.cpython-313-wasm32-emscripten.so: 0
       at X.loadDynlib (/Users/agriyakhetarpal/Library/Caches/.pyodide-xbuildenv-0.30.5/0.28.1/xbuildenv/pyodide-root/dist/pyodide.asm.js:8:659221)
       at async main (file:///Users/agriyakhetarpal/Library/Caches/.pyodide-xbuildenv-0.30.5/0.28.1/xbuildenv/pyodide-root/dist/python_cli_entry.mjs:91:7)
   ```
   
   and comparing with older built, working wheels: all of these shared objects should depend on `libarrow_python.so`, but they no longer do.


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: github-unsubscribe@arrow.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


Re: [PR] GH-47329: [Packaging][Python][C++] Build and test PyArrow against the `pyodide_2025_0` ABI [arrow]

Posted by "agriyakhetarpal (via GitHub)" <gi...@apache.org>.
agriyakhetarpal commented on PR #47330:
URL: https://github.com/apache/arrow/pull/47330#issuecomment-3186942070

   > I am trying to find out the correct place to install `libatomic1`; it's required by the Brotli and Protocol Buffers Emscripten builds.
   
   I added this in 6f53f9abd06c07181fe2a972d67986accde25646, but I'm not sure if this is the right approach. Could you please verify this commit, and also submit another build? Thanks!


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: github-unsubscribe@arrow.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


Re: [PR] GH-47329: [Packaging][Python][C++] Build and test PyArrow against the `pyodide_2025_0` ABI [arrow]

Posted by "kou (via GitHub)" <gi...@apache.org>.
kou commented on PR #47330:
URL: https://github.com/apache/arrow/pull/47330#issuecomment-3187157949

   @github-actions crossbow submit test-conda-python-emscripten


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: github-unsubscribe@arrow.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


Re: [PR] GH-47329: [Packaging][Python][C++] Build and test PyArrow against Pyodide 314 (`2026_0` ABI) [arrow]

Posted by "agriyakhetarpal (via GitHub)" <gi...@apache.org>.
agriyakhetarpal commented on code in PR #47330:
URL: https://github.com/apache/arrow/pull/47330#discussion_r3789762179


##########
ci/docker/conda-python-emscripten.dockerfile:
##########
@@ -18,32 +18,37 @@
 ARG repo
 ARG arch
 ARG arch_short
-ARG python="3.12"
+ARG python="3.14"
 FROM --platform=linux/${arch} ${repo}:${arch_short}-conda-python-${python}
 
 ARG selenium_version="4.41.0"
-ARG pyodide_version="0.26.0"
+ARG pyodide_version="314.0.4"
 ARG chrome_version="latest"
-ARG required_python_min="(3,12)"
-# fail if python version < 3.12
+ARG required_python_min="(3,14)"
+# fail if python version < 3.14
 RUN echo "check PYTHON>=${required_python_min}" && python -c "import sys;sys.exit(0 if sys.version_info>=${required_python_min} else 1)"
 
-# install selenium and recent pyodide-build and recent python
+RUN apt-get update -y -q && \
+    apt-get install -y -q --no-install-recommends \
+        libatomic1 && \
+    apt-get clean && \
+    rm -rf /var/lib/apt/lists/*
 
 # needs to be a login shell so ~/.profile is read
 SHELL ["/bin/bash", "--login", "-c", "-o", "pipefail"]
 
+# install selenium and recent pyodide-build and recent python
 RUN python -m pip install --no-cache-dir selenium==${selenium_version} && \
     python -m pip install --no-cache-dir --upgrade pyodide-build>=${pyodide_version}
 
 # install pyodide dist directory to /pyodide
 RUN pyodide_dist_url="https://github.com/pyodide/pyodide/releases/download/${pyodide_version}/pyodide-${pyodide_version}.tar.bz2" && \
     wget -q "${pyodide_dist_url}" -O- | tar -xj -C /
 
-# install node 20 (needed for async call support)
+# install node 22 (needed for async call support and JSPI)

Review Comment:
   ```suggestion
   # install node 24 (needed for async call support and JSPI)
   ```



##########
cpp/cmake_modules/ThirdpartyToolchain.cmake:
##########
@@ -2183,6 +2183,10 @@ function(build_protobuf)
     set(PROTOBUF_HOST_CMAKE_ARGS
         "-DCMAKE_CXX_FLAGS="
         "-DCMAKE_C_FLAGS="
+        # Explicitly set the C++ standard for the host build. Without this,
+        # Abseil may be compiled with the host compiler's default standard,
+        # which can be older than C++17.
+        "-DCMAKE_CXX_STANDARD=${CMAKE_CXX_STANDARD}"

Review Comment:
   I hope this change is fine to keep here; this happened to me because I am using AppleClang 21 on my macOS machine to cross-compile for Emscripten. 
   
   The reason is that in the host `protoc` build, where `CMAKE_CXX_FLAGS` is blanked and no standard is set, `absl` compiles as C++14 and uses `absl::string_view`. That results in an ABI mismatch because Protobuf's targets reference the `std::string_view` signatures (since Protobuf compiles to C++17 or newer).
   
   (I guess no one has hit this before, since the CI job exercises going from Linux to Emscripten, where `gcc` defaults to C++17)
   



##########
ci/docker/conda-python-emscripten.dockerfile:
##########
@@ -18,32 +18,37 @@
 ARG repo
 ARG arch
 ARG arch_short
-ARG python="3.12"
+ARG python="3.14"
 FROM --platform=linux/${arch} ${repo}:${arch_short}-conda-python-${python}
 
 ARG selenium_version="4.41.0"
-ARG pyodide_version="0.26.0"
+ARG pyodide_version="314.0.4"
 ARG chrome_version="latest"
-ARG required_python_min="(3,12)"
-# fail if python version < 3.12
+ARG required_python_min="(3,14)"
+# fail if python version < 3.14
 RUN echo "check PYTHON>=${required_python_min}" && python -c "import sys;sys.exit(0 if sys.version_info>=${required_python_min} else 1)"
 
-# install selenium and recent pyodide-build and recent python
+RUN apt-get update -y -q && \
+    apt-get install -y -q --no-install-recommends \
+        libatomic1 && \
+    apt-get clean && \
+    rm -rf /var/lib/apt/lists/*
 
 # needs to be a login shell so ~/.profile is read
 SHELL ["/bin/bash", "--login", "-c", "-o", "pipefail"]
 
+# install selenium and recent pyodide-build and recent python
 RUN python -m pip install --no-cache-dir selenium==${selenium_version} && \
     python -m pip install --no-cache-dir --upgrade pyodide-build>=${pyodide_version}
 
 # install pyodide dist directory to /pyodide
 RUN pyodide_dist_url="https://github.com/pyodide/pyodide/releases/download/${pyodide_version}/pyodide-${pyodide_version}.tar.bz2" && \
     wget -q "${pyodide_dist_url}" -O- | tar -xj -C /
 
-# install node 20 (needed for async call support)
+# install node 22 (needed for async call support and JSPI)
 # and pthread-stubs for build, and unzip needed for chrome build to work
 # xz is needed by emsdk to extract node tarballs
-RUN conda install nodejs=20 unzip pthread-stubs make xz -c conda-forge
+RUN conda install nodejs=22 unzip pthread-stubs make xz -c conda-forge

Review Comment:
   ```suggestion
   RUN conda install nodejs=24 unzip pthread-stubs make xz -c conda-forge
   ```



-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: github-unsubscribe@arrow.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


Re: [PR] GH-47329: [Packaging][Python][C++] Build and test PyArrow against Pyodide 314 (`2026_0` ABI) [arrow]

Posted by "tadeja (via GitHub) via github" <gi...@arrow.apache.org>.
tadeja commented on PR #47330:
URL: https://github.com/apache/arrow/pull/47330#issuecomment-6823874260

   The previous two runs of `test-conda-python-emscripten` failed just because of a time limit:  _The job has exceeded the maximum execution time of 1h0m0s_
   The last run of `test-conda-python-emscripten` is now passing! https://github.com/ursacomputing/crossbow/actions/runs/43195482865/job/131105226434


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: github-unsubscribe@arrow.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


Re: [PR] GH-47329: [Packaging][Python] Build and test PyArrow against the `pyodide_2025_0` ABI [arrow]

Posted by "agriyakhetarpal (via GitHub)" <gi...@apache.org>.
agriyakhetarpal commented on PR #47330:
URL: https://github.com/apache/arrow/pull/47330#issuecomment-3185928471

   @github-actions crossbow submit test-conda-python-emscripten


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: github-unsubscribe@arrow.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


Re: [PR] GH-47329: [Packaging][Python][C++] Build and test PyArrow against the `pyodide_2025_0` ABI [arrow]

Posted by "agriyakhetarpal (via GitHub)" <gi...@apache.org>.
agriyakhetarpal commented on PR #47330:
URL: https://github.com/apache/arrow/pull/47330#issuecomment-3187114999

   Unfortunately, Archery was not helpful for me, as I am on an M-series macOS machine, and that means Docker runtimes under `linux/arm64` emulation are irritably slow. :(
   
   I'll try to get access to a Linux-amd64 machine for this. In the meantime, could you please submit another build? I'd like to try out the `libatomic1` addition. The `-fwasm-exceptions` flag was apparently not needed, so I've reverted it.


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: github-unsubscribe@arrow.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


Re: [PR] GH-47329: [Packaging][Python][C++] Build and test PyArrow against the `pyodide_2025_0` ABI [arrow]

Posted by "kou (via GitHub)" <gi...@apache.org>.
kou commented on PR #47330:
URL: https://github.com/apache/arrow/pull/47330#issuecomment-3186947506

   @github-actions crossbow submit test-conda-python-emscripten
   


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: github-unsubscribe@arrow.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


Re: [PR] GH-47329: [Packaging][Python][C++] Build and test PyArrow against Pyodide 314 (`2026_0` ABI) [arrow]

Posted by "agriyakhetarpal (via GitHub)" <gi...@apache.org>.
agriyakhetarpal commented on code in PR #47330:
URL: https://github.com/apache/arrow/pull/47330#discussion_r3789823486


##########
cpp/cmake_modules/SetupCxxFlags.cmake:
##########
@@ -719,26 +719,35 @@ if(MSVC)
 endif()
 
 if(CMAKE_SYSTEM_NAME STREQUAL "Emscripten")
-  # flags are:
+  # For the Pyodide 2026_0 ABI, the flags are:
   # 1) We force *everything* to build as position independent
-  # 2) And with support for C++ exceptions
-  set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -fPIC -fexceptions")
+  # 2) We support C++ WASM exceptions, using the native WebAssembly
+  #    exception handling proposal and WebAssembly-based setjmp/longjmp
+  set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -fPIC -fwasm-exceptions -sSUPPORT_LONGJMP=wasm")
   # deprecated-literal-operator error is thrown in datetime (vendored lib in arrow)
   set(CMAKE_CXX_FLAGS
-      "${CMAKE_CXX_FLAGS} -fPIC -fexceptions -Wno-error=deprecated-literal-operator")
+      "${CMAKE_CXX_FLAGS} -fPIC -fwasm-exceptions -sSUPPORT_LONGJMP=wasm -Wno-error=deprecated-literal-operator"
+  )
 
   # flags for creating shared libraries (only used in pyarrow, because
   # Emscripten builds libarrow as static)
   # flags are:
   # 1) Tell it to use JavaScript / WebAssembly 64 bit number support.
-  # 2) Tell it to build with support for C++ exceptions
+  # 2) Tell it to build with support for C++ exceptions (see above)
   # 3) Skip linker flags error which happens with -soname parameter
-  set(ARROW_EMSCRIPTEN_LINKER_FLAGS "-sWASM_BIGINT=1 -fexceptions -Wno-error=linkflags")
-  set(CMAKE_SHARED_LIBRARY_CREATE_C_FLAGS
-      "-sSIDE_MODULE=1 ${ARROW_EMSCRIPTEN_LINKER_FLAGS}")
-  set(CMAKE_SHARED_LIBRARY_CREATE_CXX_FLAGS
-      "-sSIDE_MODULE=1 ${ARROW_EMSCRIPTEN_LINKER_FLAGS}")
-  set(CMAKE_SHARED_LINKER_FLAGS "-sSIDE_MODULE=1 ${ARROW_EMSCRIPTEN_LINKER_FLAGS}")
+  # 4) Record $ORIGIN as an RPATH, so that Pyodide can locate
+  #    libarrow_python.so next to the extension modules needing it
+  # Note: the CMAKE_SHARED_LIBRARY_CREATE_<LANG>_FLAGS and
+  # CMAKE_SHARED_MODULE_CREATE_<LANG>_FLAGS variables are not used by the
+  # Ninja generator, so the flags must go through the linker-flags
+  # variables, which apply to SHARED (libarrow_python) and MODULE (Cython
+  # extension) targets respectively.
+  set(ARROW_EMSCRIPTEN_LINKER_FLAGS
+      "-sWASM_BIGINT=1 -fwasm-exceptions -sSUPPORT_LONGJMP=wasm -Wno-error=linkflags")
+  set(ARROW_EMSCRIPTEN_DYLIB_CREATE_FLAGS
+      "-sSIDE_MODULE=1 ${ARROW_EMSCRIPTEN_LINKER_FLAGS} '-Wl,-rpath,$ORIGIN'")

Review Comment:
   This one should be incorrect, because these linker-flags variables are pasted verbatim into the link command, which Ninja runs through `/bin/sh`, so the single quotes are consumed by the shell and keep `$ORIGIN` from being expanded as a shell variable.



-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: github-unsubscribe@arrow.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


Re: [PR] GH-47329: [Packaging][Python][C++] Build and test PyArrow against Pyodide 314 (`2026_0` ABI) [arrow]

Posted by "agriyakhetarpal (via GitHub)" <gi...@apache.org>.
agriyakhetarpal commented on code in PR #47330:
URL: https://github.com/apache/arrow/pull/47330#discussion_r3789820267


##########
ci/docker/conda-python-emscripten.dockerfile:
##########
@@ -18,32 +18,37 @@
 ARG repo
 ARG arch
 ARG arch_short
-ARG python="3.12"
+ARG python="3.14"
 FROM --platform=linux/${arch} ${repo}:${arch_short}-conda-python-${python}
 
 ARG selenium_version="4.41.0"
-ARG pyodide_version="0.26.0"
+ARG pyodide_version="314.0.4"
 ARG chrome_version="latest"
-ARG required_python_min="(3,12)"
-# fail if python version < 3.12
+ARG required_python_min="(3,14)"
+# fail if python version < 3.14
 RUN echo "check PYTHON>=${required_python_min}" && python -c "import sys;sys.exit(0 if sys.version_info>=${required_python_min} else 1)"
 
-# install selenium and recent pyodide-build and recent python
+RUN apt-get update -y -q && \
+    apt-get install -y -q --no-install-recommends \
+        libatomic1 && \
+    apt-get clean && \
+    rm -rf /var/lib/apt/lists/*
 
 # needs to be a login shell so ~/.profile is read
 SHELL ["/bin/bash", "--login", "-c", "-o", "pipefail"]
 
+# install selenium and recent pyodide-build and recent python
 RUN python -m pip install --no-cache-dir selenium==${selenium_version} && \
     python -m pip install --no-cache-dir --upgrade pyodide-build>=${pyodide_version}

Review Comment:
   Resolved via ff64e0d372f543422d98d469b9ac8a398417714f



-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: github-unsubscribe@arrow.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


Re: [PR] GH-47329: [Packaging][Python][C++] Build and test PyArrow against the `pyodide_2025_0` ABI [arrow]

Posted by "kou (via GitHub)" <gi...@apache.org>.
kou commented on PR #47330:
URL: https://github.com/apache/arrow/pull/47330#issuecomment-3186951723

   FYI: You can use `UBUNTU=22.04 archery docker run ubuntu-cpp-emscripten` on local.
   
   See https://arrow.apache.org/docs/developers/continuous_integration/archery.html how to setup Archery.


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: github-unsubscribe@arrow.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


Re: [PR] GH-47329: [Packaging][Python] Build and test PyArrow against the `pyodide_2025_0` ABI [arrow]

Posted by "agriyakhetarpal (via GitHub)" <gi...@apache.org>.
agriyakhetarpal commented on PR #47330:
URL: https://github.com/apache/arrow/pull/47330#issuecomment-3185947852

   Hello, could the maintainers with the necessary permissions please trigger an Emscripten build on this PR? Thank you!
   
   I thought I could do this, as I previously submitted a PR that was accepted and merged: #45072, so I'm not sure if I understand the bot's message above. Is it that the word "contributors" here actually means those with a commit bit? 🤔


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: github-unsubscribe@arrow.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


Re: [PR] GH-47329: [Packaging][Python] Build and test PyArrow against the `pyodide_2025_0` ABI [arrow]

Posted by "kou (via GitHub)" <gi...@apache.org>.
kou commented on PR #47330:
URL: https://github.com/apache/arrow/pull/47330#issuecomment-3186670923

   @github-actions crossbow submit test-conda-python-emscripten


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: github-unsubscribe@arrow.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


Re: [PR] GH-47329: [Packaging][Python][C++] Build and test PyArrow against the `pyodide_2025_0` ABI [arrow]

Posted by "agriyakhetarpal (via GitHub)" <gi...@apache.org>.
agriyakhetarpal commented on PR #47330:
URL: https://github.com/apache/arrow/pull/47330#issuecomment-3190317090

   > all of these shared objects should depend on `libarrow_python.so`, but they no longer do.
   
   ...which is because I changed to building `libarrow_python.a` in 20de7ad163a606840765c229ae95e9c40422ca72 to fix the linkage, but that means this is not the right approach, and https://github.com/apache/arrow/pull/47330#issuecomment-3187262373 has to be solved differently. The Cython modules must link to `libarrow_python.so`.


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: github-unsubscribe@arrow.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


Re: [PR] GH-47329: [Packaging][Python][C++] Build and test PyArrow against the `pyodide_2025_0` ABI [arrow]

Posted by "AlenkaF (via GitHub)" <gi...@apache.org>.
AlenkaF commented on PR #47330:
URL: https://github.com/apache/arrow/pull/47330#issuecomment-3187363771

   @github-actions crossbow submit test-conda-python-emscripten


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: github-unsubscribe@arrow.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


Re: [PR] GH-47329: [Packaging][Python][C++] Build and test PyArrow against the `pyodide_2025_0` ABI [arrow]

Posted by "agriyakhetarpal (via GitHub)" <gi...@apache.org>.
agriyakhetarpal commented on PR #47330:
URL: https://github.com/apache/arrow/pull/47330#issuecomment-3189718712

   Thanks!
   
   It's a bit strange that Node.js just became unresponsive in the CI run despite receiving an error. Nevertheless, the failure shows up as:
   
   `Failed to load dynamic library /lib/python3.13/site-packages/pyarrow/_acero.cpython-313-wasm32-emscripten.so: 0`
   
   which subsequently seeps into the `import pyarrow.lib as _lib` statement.
   


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: github-unsubscribe@arrow.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


Re: [PR] GH-47329: [Packaging][Python][C++] Build and test PyArrow against the `pyodide_2025_0` ABI [arrow]

Posted by "agriyakhetarpal (via GitHub)" <gi...@apache.org>.
agriyakhetarpal commented on PR #47330:
URL: https://github.com/apache/arrow/pull/47330#issuecomment-3190382926

   There is also the fact that the warning as follows:
   
   ```
   em++: warning: linking a library with `-shared` will emit a static object file.  This is a form of emulation to support existing build systems.  If you want to build a runtime shared library use the SIDE_MODULE setting. [-Wemcc]
   ```
   
   appears with Pyodide 0.28, but not with Pyodide 0.26.


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: github-unsubscribe@arrow.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


Re: [PR] GH-47329: [Packaging][Python] Build and test PyArrow against the `pyodide_2025_0` ABI [arrow]

Posted by "github-actions[bot] (via GitHub)" <gi...@apache.org>.
github-actions[bot] commented on PR #47330:
URL: https://github.com/apache/arrow/pull/47330#issuecomment-3186638575

   Revision: 9d4bf5aeb8a54ed49e2807f835016202781717c9
   
   Submitted crossbow builds: [ursacomputing/crossbow @ actions-e6f3074ad3](https://github.com/ursacomputing/crossbow/branches/all?query=actions-e6f3074ad3)
   
   |Task|Status|
   |----|------|
   |test-conda-python-emscripten|[![GitHub Actions](https://github.com/ursacomputing/crossbow/actions/workflows/crossbow.yml/badge.svg?branch=actions-e6f3074ad3-github-test-conda-python-emscripten)](https://github.com/ursacomputing/crossbow/actions/runs/16954976044/job/48055079243)|


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: github-unsubscribe@arrow.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


Re: [PR] GH-47329: [Packaging][Python][C++] Build and test PyArrow against Pyodide 314 (`2026_0` ABI) [arrow]

Posted by "Copilot (via GitHub)" <gi...@apache.org>.
Copilot commented on code in PR #47330:
URL: https://github.com/apache/arrow/pull/47330#discussion_r3789804175


##########
cpp/cmake_modules/SetupCxxFlags.cmake:
##########
@@ -719,26 +719,35 @@ if(MSVC)
 endif()
 
 if(CMAKE_SYSTEM_NAME STREQUAL "Emscripten")
-  # flags are:
+  # For the Pyodide 2026_0 ABI, the flags are:
   # 1) We force *everything* to build as position independent
-  # 2) And with support for C++ exceptions
-  set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -fPIC -fexceptions")
+  # 2) We support C++ WASM exceptions, using the native WebAssembly
+  #    exception handling proposal and WebAssembly-based setjmp/longjmp
+  set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -fPIC -fwasm-exceptions -sSUPPORT_LONGJMP=wasm")
   # deprecated-literal-operator error is thrown in datetime (vendored lib in arrow)
   set(CMAKE_CXX_FLAGS
-      "${CMAKE_CXX_FLAGS} -fPIC -fexceptions -Wno-error=deprecated-literal-operator")
+      "${CMAKE_CXX_FLAGS} -fPIC -fwasm-exceptions -sSUPPORT_LONGJMP=wasm -Wno-error=deprecated-literal-operator"
+  )
 
   # flags for creating shared libraries (only used in pyarrow, because
   # Emscripten builds libarrow as static)
   # flags are:
   # 1) Tell it to use JavaScript / WebAssembly 64 bit number support.
-  # 2) Tell it to build with support for C++ exceptions
+  # 2) Tell it to build with support for C++ exceptions (see above)
   # 3) Skip linker flags error which happens with -soname parameter
-  set(ARROW_EMSCRIPTEN_LINKER_FLAGS "-sWASM_BIGINT=1 -fexceptions -Wno-error=linkflags")
-  set(CMAKE_SHARED_LIBRARY_CREATE_C_FLAGS
-      "-sSIDE_MODULE=1 ${ARROW_EMSCRIPTEN_LINKER_FLAGS}")
-  set(CMAKE_SHARED_LIBRARY_CREATE_CXX_FLAGS
-      "-sSIDE_MODULE=1 ${ARROW_EMSCRIPTEN_LINKER_FLAGS}")
-  set(CMAKE_SHARED_LINKER_FLAGS "-sSIDE_MODULE=1 ${ARROW_EMSCRIPTEN_LINKER_FLAGS}")
+  # 4) Record $ORIGIN as an RPATH, so that Pyodide can locate
+  #    libarrow_python.so next to the extension modules needing it
+  # Note: the CMAKE_SHARED_LIBRARY_CREATE_<LANG>_FLAGS and
+  # CMAKE_SHARED_MODULE_CREATE_<LANG>_FLAGS variables are not used by the
+  # Ninja generator, so the flags must go through the linker-flags
+  # variables, which apply to SHARED (libarrow_python) and MODULE (Cython
+  # extension) targets respectively.
+  set(ARROW_EMSCRIPTEN_LINKER_FLAGS
+      "-sWASM_BIGINT=1 -fwasm-exceptions -sSUPPORT_LONGJMP=wasm -Wno-error=linkflags")
+  set(ARROW_EMSCRIPTEN_DYLIB_CREATE_FLAGS
+      "-sSIDE_MODULE=1 ${ARROW_EMSCRIPTEN_LINKER_FLAGS} '-Wl,-rpath,$ORIGIN'")

Review Comment:
   The linker flag string includes single quotes around -Wl,-rpath,$ORIGIN. With the Ninja generator, single quotes are not treated as quoting characters and are passed through literally, which can break linking / produce an invalid rpath argument. Drop the single quotes and pass the flag as a normal argument; CMake will escape the $ for Ninja as needed.



##########
ci/docker/conda-python-emscripten.dockerfile:
##########
@@ -18,32 +18,37 @@
 ARG repo
 ARG arch
 ARG arch_short
-ARG python="3.12"
+ARG python="3.14"
 FROM --platform=linux/${arch} ${repo}:${arch_short}-conda-python-${python}
 
 ARG selenium_version="4.41.0"
-ARG pyodide_version="0.26.0"
+ARG pyodide_version="314.0.4"
 ARG chrome_version="latest"
-ARG required_python_min="(3,12)"
-# fail if python version < 3.12
+ARG required_python_min="(3,14)"
+# fail if python version < 3.14
 RUN echo "check PYTHON>=${required_python_min}" && python -c "import sys;sys.exit(0 if sys.version_info>=${required_python_min} else 1)"
 
-# install selenium and recent pyodide-build and recent python
+RUN apt-get update -y -q && \
+    apt-get install -y -q --no-install-recommends \
+        libatomic1 && \
+    apt-get clean && \
+    rm -rf /var/lib/apt/lists/*
 
 # needs to be a login shell so ~/.profile is read
 SHELL ["/bin/bash", "--login", "-c", "-o", "pipefail"]
 
+# install selenium and recent pyodide-build and recent python
 RUN python -m pip install --no-cache-dir selenium==${selenium_version} && \
     python -m pip install --no-cache-dir --upgrade pyodide-build>=${pyodide_version}

Review Comment:
   pyodide_version is now 314.0.4, but this value is reused as the minimum version for the pyodide-build PyPI package. That makes the requirement effectively `pyodide-build>=314.0.4`, which is likely unsatisfiable because pyodide-build is versioned independently (0.x). Consider adding a separate pyodide_build_version ARG and using it for the pip install constraint.



-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: github-unsubscribe@arrow.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


Re: [PR] GH-47329: [Packaging][Python][C++] Build and test PyArrow against Pyodide 314 (`2026_0` ABI) [arrow]

Posted by "github-actions[bot] (via GitHub) via github" <gi...@arrow.apache.org>.
github-actions[bot] commented on PR #47330:
URL: https://github.com/apache/arrow/pull/47330#issuecomment-6817679358

   Revision: 3c80ba45d6862e77144ff33d379a5df70cb321b3
   
   Submitted crossbow builds: [ursacomputing/crossbow @ actions-457023a373](https://github.com/ursacomputing/crossbow/branches/all?query=actions-457023a373)
   
   |Task|Status|
   |----|------|
   |test-conda-python-emscripten|[![GitHub Actions](https://github.com/ursacomputing/crossbow/actions/workflows/crossbow.yml/badge.svg?branch=actions-457023a373-github-test-conda-python-emscripten)](https://github.com/ursacomputing/crossbow/actions/runs/43176433216/job/131041670416)|
   |test-ubuntu-22.04-cpp-emscripten|[![GitHub Actions](https://github.com/ursacomputing/crossbow/actions/workflows/crossbow.yml/badge.svg?branch=actions-457023a373-github-test-ubuntu-22.04-cpp-emscripten)](https://github.com/ursacomputing/crossbow/actions/runs/43176434358/job/131041673234)|


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: github-unsubscribe@arrow.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


Re: [PR] GH-47329: [Packaging][Python][C++] Build and test PyArrow against Pyodide 314 (`2026_0` ABI) [arrow]

Posted by "github-actions[bot] (via GitHub) via github" <gi...@arrow.apache.org>.
github-actions[bot] commented on PR #47330:
URL: https://github.com/apache/arrow/pull/47330#issuecomment-6817643237

   ```
   Unable to match any tasks for `emscripten`
   The Archery job run can be found at: https://github.com/apache/arrow/actions/runs/43175836475
   ```


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: github-unsubscribe@arrow.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


Re: [PR] GH-47329: [Packaging][Python][C++] Build and test PyArrow against Pyodide 314 (`2026_0` ABI) [arrow]

Posted by "agriyakhetarpal (via GitHub) via github" <gi...@arrow.apache.org>.
agriyakhetarpal commented on PR #47330:
URL: https://github.com/apache/arrow/pull/47330#issuecomment-6815444802

   Could you please submit another crossbow job?


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: github-unsubscribe@arrow.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


Re: [PR] GH-47329: [Packaging][Python] Build and test PyArrow against the `pyodide_2025_0` ABI [arrow]

Posted by "github-actions[bot] (via GitHub)" <gi...@apache.org>.
github-actions[bot] commented on PR #47330:
URL: https://github.com/apache/arrow/pull/47330#issuecomment-3185929619

   ```
   Only contributors can submit requests to this bot. Please ask someone from the community for help with getting the first commit in.
   The Archery job run can be found at: https://github.com/apache/arrow/actions/runs/16950058312
   ```


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: github-unsubscribe@arrow.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


Re: [PR] GH-47329: [Packaging][Python] Build and test PyArrow against the `pyodide_2025_0` ABI [arrow]

Posted by "agriyakhetarpal (via GitHub)" <gi...@apache.org>.
agriyakhetarpal commented on PR #47330:
URL: https://github.com/apache/arrow/pull/47330#issuecomment-3186668303

   Could you please submit another build? Thanks!


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: github-unsubscribe@arrow.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


Re: [PR] GH-47329: [Packaging][Python][C++] Build and test PyArrow against the `pyodide_2025_0` ABI [arrow]

Posted by "github-actions[bot] (via GitHub)" <gi...@apache.org>.
github-actions[bot] commented on PR #47330:
URL: https://github.com/apache/arrow/pull/47330#issuecomment-3186953068

   Revision: af2e18d28cd031d5fe779a4d623cca0cfac66b4c
   
   Submitted crossbow builds: [ursacomputing/crossbow @ actions-5d3d1c591a](https://github.com/ursacomputing/crossbow/branches/all?query=actions-5d3d1c591a)
   
   |Task|Status|
   |----|------|
   |test-conda-python-emscripten|[![GitHub Actions](https://github.com/ursacomputing/crossbow/actions/workflows/crossbow.yml/badge.svg?branch=actions-5d3d1c591a-github-test-conda-python-emscripten)](https://github.com/ursacomputing/crossbow/actions/runs/16956640331/job/48060086633)|


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: github-unsubscribe@arrow.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


Re: [PR] GH-47329: [Packaging][Python][C++] Build and test PyArrow against the `pyodide_2025_0` ABI [arrow]

Posted by "kou (via GitHub)" <gi...@apache.org>.
kou commented on PR #47330:
URL: https://github.com/apache/arrow/pull/47330#issuecomment-3189909668

   @github-actions crossbow submit test-conda-python-emscripten


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: github-unsubscribe@arrow.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


Re: [PR] GH-47329: [Packaging][Python] Build and test PyArrow against the `pyodide_2025_0` ABI [arrow]

Posted by "agriyakhetarpal (via GitHub)" <gi...@apache.org>.
agriyakhetarpal commented on PR #47330:
URL: https://github.com/apache/arrow/pull/47330#issuecomment-3186918157

   I am trying to find out the correct place to install `libatomic1`; it's required by the Brotli and Protocol Buffers Emscripten builds. In the meantime; I changed `-fexceptions` to `-fwasm-exceptions` in eebb7a86201a1c5fa7110ce172ab78c479fdbc02.


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: github-unsubscribe@arrow.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


Re: [PR] GH-47329: [Packaging][Python][C++] Build and test PyArrow against Pyodide 314 (`2026_0` ABI) [arrow]

Posted by "github-actions[bot] (via GitHub)" <gi...@apache.org>.
github-actions[bot] commented on PR #47330:
URL: https://github.com/apache/arrow/pull/47330#issuecomment-6367050839

   Revision: 63e5d17748a41728fe6c9838f055825067b3d9ad
   
   Submitted crossbow builds: [ursacomputing/crossbow @ actions-fb8817cbe7](https://github.com/ursacomputing/crossbow/branches/all?query=actions-fb8817cbe7)
   
   |Task|Status|
   |----|------|
   |test-conda-python-emscripten|[![GitHub Actions](https://github.com/ursacomputing/crossbow/actions/workflows/crossbow.yml/badge.svg?branch=actions-fb8817cbe7-github-test-conda-python-emscripten)](https://github.com/ursacomputing/crossbow/actions/runs/39968488361/job/120464556314)|
   |test-ubuntu-22.04-cpp-emscripten|[![GitHub Actions](https://github.com/ursacomputing/crossbow/actions/workflows/crossbow.yml/badge.svg?branch=actions-fb8817cbe7-github-test-ubuntu-22.04-cpp-emscripten)](https://github.com/ursacomputing/crossbow/actions/runs/39968488971/job/120464557669)|


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: github-unsubscribe@arrow.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


Re: [PR] GH-47329: [Packaging][Python][C++] Build and test PyArrow against Pyodide 314 (`2026_0` ABI) [arrow]

Posted by "raulcd (via GitHub) via github" <gi...@arrow.apache.org>.
raulcd merged PR #47330:
URL: https://github.com/apache/arrow/pull/47330


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: github-unsubscribe@arrow.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


Re: [PR] GH-47329: [Packaging][Python][C++] Build and test PyArrow against the `pyodide_2025_0` ABI [arrow]

Posted by "joewalp (via GitHub)" <gi...@apache.org>.
joewalp commented on PR #47330:
URL: https://github.com/apache/arrow/pull/47330#issuecomment-3634561986

   @agriyakhetarpal Are you still on this PR? If not, perhaps you can propose next steps for whomever may pick up the task?


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: github-unsubscribe@arrow.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


Re: [PR] GH-47329: [Packaging][Python][C++] Build and test PyArrow against the `pyodide_2025_0` ABI [arrow]

Posted by "github-actions[bot] (via GitHub)" <gi...@apache.org>.
github-actions[bot] commented on PR #47330:
URL: https://github.com/apache/arrow/pull/47330#issuecomment-3195893405

   Revision: eae25bec20fda7a7d8f8f50f141e8e5da6aa7f1b
   
   Submitted crossbow builds: [ursacomputing/crossbow @ actions-49d30e1fce](https://github.com/ursacomputing/crossbow/branches/all?query=actions-49d30e1fce)
   
   |Task|Status|
   |----|------|
   |test-conda-python-emscripten|[![GitHub Actions](https://github.com/ursacomputing/crossbow/actions/workflows/crossbow.yml/badge.svg?branch=actions-49d30e1fce-github-test-conda-python-emscripten)](https://github.com/ursacomputing/crossbow/actions/runs/17036688326/job/48290716719)|


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: github-unsubscribe@arrow.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


Re: [PR] GH-47329: [Packaging][Python][C++] Build and test PyArrow against the `pyodide_2025_0` ABI [arrow]

Posted by "github-actions[bot] (via GitHub)" <gi...@apache.org>.
github-actions[bot] commented on PR #47330:
URL: https://github.com/apache/arrow/pull/47330#issuecomment-3187369850

   Revision: 20de7ad163a606840765c229ae95e9c40422ca72
   
   Submitted crossbow builds: [ursacomputing/crossbow @ actions-1b4dc9adab](https://github.com/ursacomputing/crossbow/branches/all?query=actions-1b4dc9adab)
   
   |Task|Status|
   |----|------|
   |test-conda-python-emscripten|[![GitHub Actions](https://github.com/ursacomputing/crossbow/actions/workflows/crossbow.yml/badge.svg?branch=actions-1b4dc9adab-github-test-conda-python-emscripten)](https://github.com/ursacomputing/crossbow/actions/runs/16959392358/job/48068238127)|


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: github-unsubscribe@arrow.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


Re: [PR] GH-47329: [Packaging][Python][C++] Build and test PyArrow against the `pyodide_2025_0` ABI [arrow]

Posted by "agriyakhetarpal (via GitHub)" <gi...@apache.org>.
agriyakhetarpal commented on PR #47330:
URL: https://github.com/apache/arrow/pull/47330#issuecomment-3190198614

   Yup, this isn't right. Sorry! 


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: github-unsubscribe@arrow.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


Re: [PR] GH-47329: [Packaging][Python][C++] Build and test PyArrow against Pyodide 314 (`2026_0` ABI) [arrow]

Posted by "agriyakhetarpal (via GitHub)" <gi...@apache.org>.
agriyakhetarpal commented on PR #47330:
URL: https://github.com/apache/arrow/pull/47330#issuecomment-5303232332

   Could the maintainers with the necessary permissions please submit a `test-conda-python-emscripten` build on this PR? I was able to figure out the problem locally; I think this should be ready. Thank you!


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: github-unsubscribe@arrow.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


Re: [PR] GH-47329: [Packaging][Python][C++] Build and test PyArrow against Pyodide 314 (`2026_0` ABI) [arrow]

Posted by "kou (via GitHub)" <gi...@apache.org>.
kou commented on PR #47330:
URL: https://github.com/apache/arrow/pull/47330#issuecomment-6366976199

   @github-actions crossbow submit *emscripten*


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: github-unsubscribe@arrow.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


Re: [PR] GH-47329: [Packaging][Python][C++] Build and test PyArrow against Pyodide 314 (`2026_0` ABI) [arrow]

Posted by "tadeja (via GitHub) via github" <gi...@arrow.apache.org>.
tadeja commented on PR #47330:
URL: https://github.com/apache/arrow/pull/47330#issuecomment-6657069084

   @agriyakhetarpal thanks for working on this! Could you rebase on main, so we re-run emscripten jobs?
   
   Some unrelated failures have been fixed with #55381,
   and I see that the second job [test-ubuntu-22.04-cpp-emscripten](https://github.com/ursacomputing/crossbow/actions/runs/39968488971/job/120464557669#step:7:10075) [here](https://github.com/apache/arrow/pull/47330#issuecomment-6367050839) failed on `TimestampParser.StrptimeParser` of `arrow-utility-test` which is fixed now.


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: github-unsubscribe@arrow.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


Re: [PR] GH-47329: [Packaging][Python][C++] Build and test PyArrow against Pyodide 314 (`2026_0` ABI) [arrow]

Posted by "tadeja (via GitHub) via github" <gi...@arrow.apache.org>.
tadeja commented on PR #47330:
URL: https://github.com/apache/arrow/pull/47330#issuecomment-6825050346

   Ah!
   > * I found a bug on the Pyodide side that I am working to prepare a non-arrow reproducer on, which came from investigating `test_read_csv_gil_deadlock`, which is that a side module's weak symbols crash when running `time.sleep()`, when switching stacks with stubs generated from them beneath them.
   
   Does it crash only for a ` time.sleep()` call or can other operations trigger it as well ? Once you have an upstream issue, could you link it here?  Perhaps also a short comment for pytest.mark.threading on `def test_read_csv_gil_deadlock()`
   
   > * The testing infrastructure here can rely on `pyodide venv`, which is much simpler.
   
   Sounds like the `pyodide venv` migration can be done separately. Would you like to open a follow-up issue/PR?


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: github-unsubscribe@arrow.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


Re: [PR] GH-47329: [Packaging][Python][C++] Build and test PyArrow against Pyodide 314 (`2026_0` ABI) [arrow]

Posted by "agriyakhetarpal (via GitHub) via github" <gi...@arrow.apache.org>.
agriyakhetarpal commented on PR #47330:
URL: https://github.com/apache/arrow/pull/47330#issuecomment-6825844597

   > Ah!
   > 
   > > * I found a bug on the Pyodide side that I am working to prepare a non-arrow reproducer on, which came from investigating `test_read_csv_gil_deadlock`, which is that a side module's weak symbols crash when running `time.sleep()`, when switching stacks with stubs generated from them beneath them.
   > 
   > Does it crash only for a ` time.sleep()` call or can other operations trigger it as well ? Once you have an upstream issue, could you link it here? Perhaps also a short comment for pytest.mark.threading on `def test_read_csv_gil_deadlock()`
   
   It can be anything that uses [`pyodide.ffi.run_sync()`](https://pyodide.org/en/stable/usage/api/python-api/ffi.html#pyodide.ffi.run_sync), like `time.sleep()` here, or `asyncio.run()` or synchronous HTTP with JSPI (which we have enabled). I think Node sockets too. I think it's a bit orthogonal to the test itself, so maybe not worth an inline comment, but I can link it here :)  I opened https://github.com/pyodide/pyodide/issues/6551.
   
   > > * The testing infrastructure here can rely on `pyodide venv`, which is much simpler.
   > 
   > Sounds like the `pyodide venv` migration can be done separately. Would you like to open a follow-up issue/PR?
   
   Oh, yes, I indeed meant a follow-up PR :) I'm on it and will open one once this one is merged!


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: github-unsubscribe@arrow.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


Re: [PR] GH-47329: [Packaging][Python] Build and test PyArrow against the `pyodide_2025_0` ABI [arrow]

Posted by "github-actions[bot] (via GitHub)" <gi...@apache.org>.
github-actions[bot] commented on PR #47330:
URL: https://github.com/apache/arrow/pull/47330#issuecomment-3185758246

   :warning: GitHub issue #47329 **has been automatically assigned in GitHub** to PR creator.


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: github-unsubscribe@arrow.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


Re: [PR] GH-47329: [Packaging][Python][C++] Build and test PyArrow against the `pyodide_2025_0` ABI [arrow]

Posted by "github-actions[bot] (via GitHub)" <gi...@apache.org>.
github-actions[bot] commented on PR #47330:
URL: https://github.com/apache/arrow/pull/47330#issuecomment-3187163367

   Revision: a89f7ecd51c41003ee582cf26c4fa30d62dbed99
   
   Submitted crossbow builds: [ursacomputing/crossbow @ actions-893b83638a](https://github.com/ursacomputing/crossbow/branches/all?query=actions-893b83638a)
   
   |Task|Status|
   |----|------|
   |test-conda-python-emscripten|[![GitHub Actions](https://github.com/ursacomputing/crossbow/actions/workflows/crossbow.yml/badge.svg?branch=actions-893b83638a-github-test-conda-python-emscripten)](https://github.com/ursacomputing/crossbow/actions/runs/16957957773/job/48063819448)|


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: github-unsubscribe@arrow.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


Re: [PR] GH-47329: [Packaging][Python][C++] Build and test PyArrow against the `pyodide_2025_0` ABI [arrow]

Posted by "agriyakhetarpal (via GitHub)" <gi...@apache.org>.
agriyakhetarpal commented on PR #47330:
URL: https://github.com/apache/arrow/pull/47330#issuecomment-5302925117

   Having been pinged by the bot on the corresponding issue I opened (#47329) (and having lost the ping on this PR in my notifications), yes, I'm looking at this now. I'm trying to update to our 2026_0 ABI, which arrived this year, instead of the 2025_0 ABI. This ABI corresponds to [our Pyodide 314.0 release](https://blog.pyodide.org/posts/314-release/). I haven't been hit by the `-shared` flag issue that I encountered here previously, and I've made some progress on the builds up to the wheel. There are some changes needed for the wheel repair pipeline so that `libarrow_python.so` has the right RPATH, which I am trying to fix. 
   
   A follow-up could be to update the testing infrastructure to use a Pyodide virtual environment via `pyodide venv` instead of Arrow using its current hand-rolled `python/scripts/run_emscripten_tests.py` script.


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: github-unsubscribe@arrow.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


Re: [PR] GH-47329: [Packaging][Python][C++] Build and test PyArrow against Pyodide 314 (`2026_0` ABI) [arrow]

Posted by "agriyakhetarpal (via GitHub)" <gi...@apache.org>.
agriyakhetarpal commented on PR #47330:
URL: https://github.com/apache/arrow/pull/47330#issuecomment-6350612768

   > Could the maintainers with the necessary permissions please submit a `test-conda-python-emscripten` build on this PR? I was able to figure out the problem locally; I think this should be ready. Thank you!
   
   Bumping this up!


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: github-unsubscribe@arrow.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


Re: [PR] GH-47329: [Packaging][Python][C++] Build and test PyArrow against Pyodide 314 (`2026_0` ABI) [arrow]

Posted by "github-actions[bot] (via GitHub) via github" <gi...@arrow.apache.org>.
github-actions[bot] commented on PR #47330:
URL: https://github.com/apache/arrow/pull/47330#issuecomment-6820415357

   Revision: 3c80ba45d6862e77144ff33d379a5df70cb321b3
   
   Submitted crossbow builds: [ursacomputing/crossbow @ actions-f18f77b7a1](https://github.com/ursacomputing/crossbow/branches/all?query=actions-f18f77b7a1)
   
   |Task|Status|
   |----|------|
   |test-conda-python-emscripten|[![GitHub Actions](https://github.com/ursacomputing/crossbow/actions/workflows/crossbow.yml/badge.svg?branch=actions-f18f77b7a1-github-test-conda-python-emscripten)](https://github.com/ursacomputing/crossbow/actions/runs/43195482865/job/131105226434)|


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: github-unsubscribe@arrow.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


Re: [PR] GH-47329: [Packaging][Python][C++] Build and test PyArrow against Pyodide 314 (`2026_0` ABI) [arrow]

Posted by "tadeja (via GitHub) via github" <gi...@arrow.apache.org>.
tadeja commented on PR #47330:
URL: https://github.com/apache/arrow/pull/47330#issuecomment-6817679437

   @github-actions crossbow submit *emscripten*


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: github-unsubscribe@arrow.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


Re: [PR] GH-47329: [Packaging][Python][C++] Build and test PyArrow against Pyodide 314 (`2026_0` ABI) [arrow]

Posted by "agriyakhetarpal (via GitHub) via github" <gi...@arrow.apache.org>.
agriyakhetarpal commented on PR #47330:
URL: https://github.com/apache/arrow/pull/47330#issuecomment-6815435213

   Hi @tadeja! Thanks for the ping; I lost it in my swarm of notifications over the last week/weekend. I've rebased on `main` and updated the documentation in a few more places.
   
   I'm now trying to understand why `test_read_csv_gil_deadlock` fails with a `SuspendError` (I'm able to reproduce it locally):
   
   https://github.com/apache/arrow/blob/7eb865cd80793a23a6551ad136a33956783def0a/python/pyarrow/tests/test_csv.py#L2205-L2223


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: github-unsubscribe@arrow.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


Re: [PR] GH-47329: [Packaging][Python][C++] Build and test PyArrow against Pyodide 314 (`2026_0` ABI) [arrow]

Posted by "tadeja (via GitHub) via github" <gi...@arrow.apache.org>.
tadeja commented on PR #47330:
URL: https://github.com/apache/arrow/pull/47330#issuecomment-6817576159

   @github-actions crossbow submit emscripten


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: github-unsubscribe@arrow.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


Re: [PR] GH-47329: [Packaging][Python][C++] Build and test PyArrow against Pyodide 314 (`2026_0` ABI) [arrow]

Posted by "tadeja (via GitHub) via github" <gi...@arrow.apache.org>.
tadeja commented on PR #47330:
URL: https://github.com/apache/arrow/pull/47330#issuecomment-6820346091

   @github-actions crossbow submit test-conda-python-emscripten


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: github-unsubscribe@arrow.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


Re: [PR] GH-47329: [Packaging][Python][C++] Build and test PyArrow against Pyodide 314 (`2026_0` ABI) [arrow]

Posted by "tadeja (via GitHub) via github" <gi...@arrow.apache.org>.
tadeja commented on PR #47330:
URL: https://github.com/apache/arrow/pull/47330#issuecomment-6772878477

   @agriyakhetarpal do you have the chance to rebase on main? (Or may I do that?)
   Note that `test-ubuntu-22.04-cpp-emscripten` had Emscripten version updated to 5.0.3 in the meantime too - #55417


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: github-unsubscribe@arrow.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


Re: [PR] GH-47329: [Packaging][Python] Build and test PyArrow against the `pyodide_2025_0` ABI [arrow]

Posted by "github-actions[bot] (via GitHub)" <gi...@apache.org>.
github-actions[bot] commented on PR #47330:
URL: https://github.com/apache/arrow/pull/47330#issuecomment-3186675609

   Revision: 16f90d93b72fb78d166d033295b7cd04780cdc83
   
   Submitted crossbow builds: [ursacomputing/crossbow @ actions-c232acf2ff](https://github.com/ursacomputing/crossbow/branches/all?query=actions-c232acf2ff)
   
   |Task|Status|
   |----|------|
   |test-conda-python-emscripten|[![GitHub Actions](https://github.com/ursacomputing/crossbow/actions/workflows/crossbow.yml/badge.svg?branch=actions-c232acf2ff-github-test-conda-python-emscripten)](https://github.com/ursacomputing/crossbow/actions/runs/16955201708/job/48055897497)|


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: github-unsubscribe@arrow.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


Re: [PR] GH-47329: [Packaging][Python] Build and test PyArrow against the `pyodide_2025_0` ABI [arrow]

Posted by "agriyakhetarpal (via GitHub)" <gi...@apache.org>.
agriyakhetarpal commented on PR #47330:
URL: https://github.com/apache/arrow/pull/47330#issuecomment-3186660889

   Thanks. We'll need a `docker.io/apache/arrow-dev:amd64-conda-python-3.13` image for this, as the required Python version is 3.13.


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: github-unsubscribe@arrow.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


Re: [PR] GH-47329: [Packaging][Python] Build and test PyArrow against the `pyodide_2025_0` ABI [arrow]

Posted by "kou (via GitHub)" <gi...@apache.org>.
kou commented on PR #47330:
URL: https://github.com/apache/arrow/pull/47330#issuecomment-3186634723

   @github-actions crossbow submit test-conda-python-emscripten


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: github-unsubscribe@arrow.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


Re: [PR] GH-47329: [Packaging][Python][C++] Build and test PyArrow against the `pyodide_2025_0` ABI [arrow]

Posted by "agriyakhetarpal (via GitHub)" <gi...@apache.org>.
agriyakhetarpal commented on PR #47330:
URL: https://github.com/apache/arrow/pull/47330#issuecomment-3187195623

   > > The -fwasm-exceptions flag was apparently not needed, so I've reverted it.
   > 
   > You sure about this? I think it's definitely wrong to pass -fexceptions....
   
   I am not sure. I, too, think it is needed. Here is the relevant CI run: https://github.com/ursacomputing/crossbow/actions/runs/16956640331/job/48060086633#step:6:2545


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: github-unsubscribe@arrow.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


Re: [PR] GH-47329: [Packaging][Python][C++] Build and test PyArrow against the `pyodide_2025_0` ABI [arrow]

Posted by "hoodmane (via GitHub)" <gi...@apache.org>.
hoodmane commented on PR #47330:
URL: https://github.com/apache/arrow/pull/47330#issuecomment-3187158276

   > The -fwasm-exceptions flag was apparently not needed, so I've reverted it.
   
   You sure about this? I think it's definitely wrong to pass -fexceptions....


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: github-unsubscribe@arrow.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


Re: [PR] GH-47329: [Packaging][Python][C++] Build and test PyArrow against the `pyodide_2025_0` ABI [arrow]

Posted by "github-actions[bot] (via GitHub)" <gi...@apache.org>.
github-actions[bot] commented on PR #47330:
URL: https://github.com/apache/arrow/pull/47330#issuecomment-3189914024

   Revision: f73c495170f88bd529a541252f76a3cb4e300fdf
   
   Submitted crossbow builds: [ursacomputing/crossbow @ actions-f4846c031b](https://github.com/ursacomputing/crossbow/branches/all?query=actions-f4846c031b)
   
   |Task|Status|
   |----|------|
   |test-conda-python-emscripten|[![GitHub Actions](https://github.com/ursacomputing/crossbow/actions/workflows/crossbow.yml/badge.svg?branch=actions-f4846c031b-github-test-conda-python-emscripten)](https://github.com/ursacomputing/crossbow/actions/runs/16977044976/job/48128505267)|


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: github-unsubscribe@arrow.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


Re: [PR] GH-47329: [Packaging][Python][C++] Build and test PyArrow against the `pyodide_2025_0` ABI [arrow]

Posted by "raulcd (via GitHub)" <gi...@apache.org>.
raulcd commented on PR #47330:
URL: https://github.com/apache/arrow/pull/47330#issuecomment-3195886532

   @github-actions crossbow submit test-conda-python-emscripten


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: github-unsubscribe@arrow.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


Re: [PR] GH-47329: [Packaging][Python][C++] Build and test PyArrow against Pyodide 314 (`2026_0` ABI) [arrow]

Posted by "agriyakhetarpal (via GitHub) via github" <gi...@arrow.apache.org>.
agriyakhetarpal commented on PR #47330:
URL: https://github.com/apache/arrow/pull/47330#issuecomment-6824400605

   > I've just updated unneeded testing submodule change on this PR (so it no longer moves backward from Nov 5a26d35 to June 9ff285c). LGTM!
   
   Ah, thanks a lot @tadeja! 🙈
   
   
   ---
   
   
   I have two follow-ups here:
   
   - I found a bug on the Pyodide side that I am working to prepare a non-arrow reproducer on, which came from investigating `test_read_csv_gil_deadlock`, which is that a side module's weak symbols crash when running `time.sleep()`, when switching stacks with stubs generated from them beneath them.
   - The testing infrastructure here can rely on `pyodide venv`, which is much simpler. That makes things more developer-friendly; the `NodeDriver` can be removed entirely, since the interpreter itself uses Node.js. I tested it locally, and we can enable the `ORC` tests that have been skipped, since we can access the timezone database dir through the venv.


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: github-unsubscribe@arrow.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


Re: [PR] GH-47329: [Packaging][Python][C++] Build and test PyArrow against Pyodide 314 (`2026_0` ABI) [arrow]

Posted by "tadeja (via GitHub) via github" <gi...@arrow.apache.org>.
tadeja commented on PR #47330:
URL: https://github.com/apache/arrow/pull/47330#issuecomment-6824300615

   cc @raulcd, @kou for another review


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: github-unsubscribe@arrow.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


Re: [PR] GH-47329: [Packaging][Python][C++] Build and test PyArrow against Pyodide 314 (`2026_0` ABI) [arrow]

Posted by "github-actions[bot] (via GitHub) via github" <gi...@arrow.apache.org>.
github-actions[bot] commented on PR #47330:
URL: https://github.com/apache/arrow/pull/47330#issuecomment-6817714139

   Revision: 3c80ba45d6862e77144ff33d379a5df70cb321b3
   
   Submitted crossbow builds: [ursacomputing/crossbow @ actions-0f15cbd5a3](https://github.com/ursacomputing/crossbow/branches/all?query=actions-0f15cbd5a3)
   
   |Task|Status|
   |----|------|
   |test-conda-python-emscripten|[![GitHub Actions](https://github.com/ursacomputing/crossbow/actions/workflows/crossbow.yml/badge.svg?branch=actions-0f15cbd5a3-github-test-conda-python-emscripten)](https://github.com/ursacomputing/crossbow/actions/runs/43176681134/job/131042499291)|
   |test-ubuntu-22.04-cpp-emscripten|[![GitHub Actions](https://github.com/ursacomputing/crossbow/actions/workflows/crossbow.yml/badge.svg?branch=actions-0f15cbd5a3-github-test-ubuntu-22.04-cpp-emscripten)](https://github.com/ursacomputing/crossbow/actions/runs/43176682027/job/131042502408)|


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: github-unsubscribe@arrow.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org