-
Notifications
You must be signed in to change notification settings - Fork 1
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Nightly builds started failing yesterday - manual build also fails #51
Comments
No. But |
Hmm. Though it's only the nightly that has started failing. I ran a release build using Also, we use a pinned version of the EMSDK - I'll see if we can build against the last working nightly which was |
Last commit on libzim is openzim/libzim@55f098e and is two days ago. There is nothing special in it. |
May be related to emscripten-core/emscripten#15768 (but I haven't read all the thread yet) |
OK, so when I build a nightly build with And then when I run the same set of commands using What could be the difference? Might some upstream library used to build the libzim wasm binary have changed? |
Can you remove the |
Ah, yes, building the WASM version is still possible with latest nightly, whereas building the ASM version is no longer possible (see screenshot below). It is indeed the ASM versions that started failing two days ago. This doesn't explain what changed a couple of days ago that disrupts the building of ASM (and it is definitely a change upstream, something in the binary). Building an ASM version would be important if we are ever to support older browsers. This would require two things: a) build a non-p-threaded version #43, and b) build this ASM version. I could disable ASM for now, but it would be better if we could understand what the upstream cause of this is! |
You should probably open a issue on emscripten upstream (or update emscripten-core/emscripten#15768) |
I can't really open an issue if I don't know what is causing the error upstream. Code in this Repo compiles the ASM just fine if I use the Released version or nightly of two nights ago. It's the latest nightlies that don't compile to ASM only... But there has been no significant change upstream. Nevertheless, completely reproducible with latest nightlies only. Very strange! I can try using a later version of Emscripten, but #9 could still be a blocker there in any case. Needs testing. |
@mgautierfr @Jaifroid Do we use a moving version of emscripten?! Our dependences should be fixed on a very specific version. |
@kelson42, no we use a pinned version 3.1.12: https://github.com/openzim/javascript-libzim/blob/main/docker/Dockerfile#L2 |
So, the trigger is by us. |
Some good news: updating the Emscripten SDK used in this Repo to latest (3.1.41) allows us to build both release and nightly versions! Today's nightly 22-06-23 is building OK with this: https://github.com/openzim/javascript-libzim/actions/runs/5348242381/jobs/9697864250 . I just need to test the built artefacts that have been published by this run in https://download.openzim.org/nightly/2023-06-22/ just now and will report back shortly. |
Confirmed that both the release versions (built from latest libzim release) and the nightly versions (build from libzim nightly 22-06-23) work fine (tested with the prototype provided in this Repo). So I can speculate that the version of Emscripten used to build the libzim.a binary in kiwix build is out of sync with the pinned version we were using here. @kelson42 The PR #52, when complete, will close both this issue and #9 when merged. There is still some work to be done: I am getting some errors when trying to build DEV versions (unminified) of javascript-libzim due to flags that are no longer supported on the latest Emscripten. But I know these are not blockers because we can build production (minified) versions of both release and nightly without error (though with several warnings, some of which may need attention). |
Awaiting nightly to be sure it's fixed. The fix breaks building from source currently (#9), but that is the lesser of two evils. |
Nightly build worked. |
For last two nights, the nightly run has been failing at the same spot as per screenshot below.
Running the build nightly makefile script manually gives a bit more info about a specific (and somewhat cryptic for me) assertion that fails:
@mgautierfr Are you aware of anything having changed upstream with the build of libzim_wasm_emscripten on or after 18th June that could help pinpoint the issue here?
The text was updated successfully, but these errors were encountered: