Repository navigation
pycvc-gl wasm: link VTK's libxml2 replacement again (vtk 9.5.0+cvc.4); no arigl in the build - #910
Merged
Merged
Conversation
… one copy link-host.sh left libvtklibxml2-*.a out of the host link (#872): VTK's bundled libxml2 kept 65 internals under plain names, which collided with the libxml2 ImageMagick brings and made a module node could not compile. vtk 9.5.0+cvc.4 (cy-pca/cvcpkg#497, #505) builds its wasm variants against cvcpkg's libxml2, libtiff, liblzma and freetype, so the bundle no longer ships libvtk{libxml2,tiff,lzma,freetype} and the exclusion matches nothing. Every deps archive goes into the group again; the comment says why an older vtk would break and that the workflow's node check catches it.
Since arigl took the network flags, every wasm link of it pulls in cvc::net's fetch backend and needs -sFETCH=1, which only the examples' gallery link gives it. pycvc-gl's wasm build has the examples off, so arigl.js fails to link (undefined emscripten_fetch*), and cmake --install then stops on the missing bin/arigl.js before link-host.sh runs. The package never shipped arigl, so turn it off, as publish-cvcgl-wasm.yml already does; build-wasm.ps1 gets the ari and arigl options build-wasm.sh has.
transfix
marked this pull request as ready for review
October 30, 2026 23:02
transfix
enabled auto-merge (squash)
October 30, 2026 23:15
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Two changes to the pycvc-gl wasm build. A dry run of publish-pycvc-gl-wasm on this branch is the check for both; its result goes below when it finishes.
link-host.sh: link every deps archive again
77772ca left
libvtklibxml2-*.aout of the host link. Before vtk 9.5.0+cvc.4, the wasm bundles had VTK's own copy of libxml2, which renames only the public API. Its plain-named internals (__xmlRaiseError,xmlBuf*, ...) collided with the libxml2 that ImageMagick brings, and under--allow-multiple-definitionthe module didn't compile.vtk 9.5.0+cvc.4 (cy-pca/cvcpkg#497 and cy-pca/cvcpkg#505; published for wasm and wasm-mt on 2026-10-30) builds against cvcpkg's libxml2, libtiff, liblzma and freetype instead of VTK's bundled copies. So the exclusion matches nothing now, and the comment says why the group needs cvc.4 or later. The recipe doesn't pin vtk, so
install-depstakes cvc.4.vtk-python 9.5.0+cvc.6's 56
*Python*.awrapper archives reference novtklibxml2_,vtktiff_,vtkfreetype_orvtklzma_symbols (checked with llvm-nm), so they link against cvc.4 as they are.build-wasm.sh/.ps1: no arigl
The first dry run on this branch, 41100253269, never reached link-host.sh. It ran on 27d03f7, after #888, with vtk 9.5.0+cvc.4 installed:
Since #888, arigl takes the network flags, so its wasm link pulls in cvc::net's fetch backend and needs
-sFETCH=1. Only the examples' gallery link (TARGET wasm-demos) gives it that flag, and this build has the examples off. The-k 0build carries on past the failed link, butcmake --installis fatal. v3.7.5's tag run (b0a6953, before #888) still linked arigl.js, so master's next tag publish of pycvc-gl wasm would fail the same way.The package never declared or shipped arigl, so both build scripts now turn it off. publish-cvcgl-wasm.yml already does the same for the same reason. build-wasm.ps1 also gets
-DCVC_BUILD_ARI=OFF, which build-wasm.sh already had.Dry run: passed
Dry run 41116674101 ran on 360e2e1 (this branch, rebased onto 5d0a62f) and every step succeeded; publish was skipped because
dry_run=true.random_*, as in v3.7.5's run.vtk{libxml2,tiff,lzma,freetype}_symbols anywhere in the log.PYCVC_VTK_BRIDGE_OKandPYCVC_WASM_OKin link-host.sh's smoke run and in the workflow's verify gate.pycvc-gl-cp312-3.7.5+cvc.1-wasm-wasm32-release-static.tar.gz, 86,469,952 bytes, sha256fdd5f1b7….Not in this PR
Compared with v3.7.5's run, the host link has five more undefined symbols, all
emscripten_fetch*. Since #888, the pycvc host pulls in cvc::net's fetch backend too. link-host.sh links with-sERROR_ON_UNDEFINED_SYMBOLS=0(as it does for libpython's hashlib gap), so these are imports that fail only if Python makes an HTTP request through cvc::net. Neither node check does. Making that work needs-sFETCH=1plus-sASYNCIFYor-pthreadon the host link, so it's left as a follow-up.