Skip to content

Release 5.0.7#1705

Merged
sbc100 merged 2 commits into
mainfrom
release_5.0.7
Apr 30, 2026
Merged

Release 5.0.7#1705
sbc100 merged 2 commits into
mainfrom
release_5.0.7

Conversation

@emscripten-bot
Copy link
Copy Markdown
Collaborator

@emscripten-bot emscripten-bot added the release Used to tag release PRs label Apr 29, 2026
@emscripten-bot emscripten-bot requested a review from a team April 29, 2026 16:55
@emscripten-bot emscripten-bot enabled auto-merge (squash) April 29, 2026 16:56
@sbc100
Copy link
Copy Markdown
Collaborator

sbc100 commented Apr 29, 2026

@DoDoENT any idea why the the bazel builds seem to be failing here? Something about embuilder failing?

@kleisauke
Copy link
Copy Markdown
Collaborator

It looks like these lines:

"crtbegin",


should be changed to crtbegin-mt instead (untested). See commit emscripten-core/emscripten@244759d.

@DoDoENT
Copy link
Copy Markdown
Collaborator

DoDoENT commented Apr 29, 2026

It looks like these lines:

"crtbegin",

should be changed to crtbegin-mt instead (untested). See commit emscripten-core/emscripten@244759d.

A good point, but I wouldn't say that it needs to be replaced with crtbegin-mt, but instead completely removed. -mt versions are needed only when doing a build with threads enabled, and that does not seem to be tested at all - only basic and SIMD builds are tested.

However, removing it will probably cause problems downstream for users trying to use wasm-threads with Bazel (but may not if the original cache provided by emscripten is used). Ideally, CI should also be extended with a test that uses WASM threads and fixed so that it works.

@sbc100
Copy link
Copy Markdown
Collaborator

sbc100 commented Apr 29, 2026

Thanks!

Kind of annoying that the failing phase (embuilder) doesn't seem to show any stdout or stderr when if fails. Is that fixable?

@DoDoENT
Copy link
Copy Markdown
Collaborator

DoDoENT commented Apr 29, 2026

Thanks!

Kind of annoying that the failing phase (embuilder) doesn't seem to show any stdout or stderr when if fails. Is that fixable?

I'm not sure, as I'm not a huge Bazel expert (maybe @fmeum or anyone else on the core Bazel team would know better). The problem here is that the error happens during "repository resolution time", i.e., emscripten invokes embuilder to prepare the bazel repository containing emscripten cache, and bazel generally expects that the only error that can happen here is a network error, so it doesn't have any rich error reporting mechanism (that I know of).

Btw., my PR that addresses this issue in a different way is now 6 months old and not yet merged, and it allows you to prepare the emscripten cache up front and simply download it at repository resolution phase, so bazel is not confused, the cache is fully hermetic, unlike the current approach which builds the cache locally on user's machine which doesn't play nicely with remote build and cache support Bazel is famous for.

@sbc100 sbc100 disabled auto-merge April 29, 2026 20:45
@sbc100 sbc100 merged commit 41190c2 into main Apr 30, 2026
8 of 9 checks passed
@sbc100 sbc100 deleted the release_5.0.7 branch April 30, 2026 02:57
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

release Used to tag release PRs

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants