Skip to content

Build Loom single-threaded (-j1) to avoid failed to create thread in CI#13

Draft
astefano wants to merge 1 commit into
verse-lab:masterfrom
astefano:fix/ci-thread-stack
Draft

Build Loom single-threaded (-j1) to avoid failed to create thread in CI#13
astefano wants to merge 1 commit into
verse-lab:masterfrom
astefano:fix/ci-thread-stack

Conversation

@astefano

@astefano astefano commented Jun 4, 2026

Copy link
Copy Markdown

Closes #12.

The Loom lib passed --tstack=100000000 (100 MB per worker thread). On a CI runner the default worker pool requests that stack and thread creation fails:

✖ [2/22] Building Loom.LatticeExt
failed to create thread
error: Lean exited with code 1

This swaps it for -j1 (single-threaded), avoiding the oversized per-thread stacks. The quangvdao/loom2 fork made the same change (ci: avoid oversized Lean thread stacks / ci: compile Loom modules single-threaded).

Verified on my fork together with #9 (workflow location) and #11 (toolchain pin): full green build, 22/22 jobs incl. Loom, Main, and the loom2 exe. This is the last of the three CI blockers — #9 + #11 + this together get CI green.

The `Loom` lib passed `--tstack=100000000` (100 MB per worker thread).
On a CI runner the default worker pool requests that stack and thread
creation fails (`failed to create thread`, building Loom.LatticeExt).
Use `-j1` instead, which avoids the oversized per-thread stacks.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

--tstack=100000000 in lakefile.toml causes failed to create thread in CI

1 participant