Skip to content

Commit 8a36032

Browse files
committed
wip 0.4.0: doc — host prebuild complete on Linux; cross stage started
After 8 CI iterations + ~12h of CI time on ubuntu-latest, the host prebuild now fully finishes. We've crossed into the actual emscripten cross-compile stage. First wall there: libpng's find_package(ZLIB) fails because cross-stage zlib target isn't visible. Realistic remaining: 5-15 more iterations to clear the 22-dep cross-compile surface, then async streaming + browser harness work. Pausing the auto-mode grind here. The 11 patches authored across this spike are durable and reproduce the current state on a fresh checkout.
1 parent bbcc75b commit 8a36032

1 file changed

Lines changed: 24 additions & 0 deletions

File tree

wasm-patches/litert-lm-v0.10.2/README.md

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -95,6 +95,30 @@ Beyond that, expected (untested):
9595
single-threaded WASM v1, or wrap behind `#ifdef __EMSCRIPTEN__`
9696
fallbacks.
9797

98+
## Linux CI status (May 2026)
99+
100+
After 8 iterations on `ubuntu-latest` with the patches collected here,
101+
the **host prebuild stage now fully completes**. We've crossed into the
102+
**cross-compile (emcc) stage**, which is the actual emscripten build of
103+
libLiteRtLmC.a + transitive deps for `wasm32-unknown-emscripten`.
104+
105+
First wall in the cross stage: libpng v1.6.40's `find_package(ZLIB)`
106+
fails under emcmake because the cross-compile zlib target isn't visible
107+
to libpng's CMake (host build worked because zlib_lib FetchContent
108+
target was in scope; cross stage runs in a separate ExternalProject so
109+
the target isn't there). Fix direction: pass
110+
`-DZLIB_LIBRARY=z -DZLIB_INCLUDE_DIR=$EMSCRIPTEN_SYSROOT/include` via
111+
the litert_lm cross-stage CMAKE_ARGS, or `-sUSE_ZLIB=1` link flag, or
112+
strip libpng dependency on emcc (we only need it for image inputs,
113+
not text Conversation).
114+
115+
Current `wasm-patches/litert-lm-v0.10.2/01-cmake-emscripten-support.patch`
116+
+ helper scripts (lines below) get the build to this point. Each
117+
iteration is ~1.5h CI; expect 5-15 more iterations to clear the cross
118+
stage based on the 22-dep surface.
119+
120+
### Pre-Linux-CI snapshot (kept for context)
121+
98122
## Verified (status: ~93% through host prebuild, 0.4.0 spike)
99123

100124
After 9 distinct fixes consolidated into `01-cmake-emscripten-support.patch`

0 commit comments

Comments
 (0)