You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
with build --emit-c fails on hello world with the installed compiler: import module not found 'std.re.defs' #2118
Found while verifying README claims (installed compiler from main dad25d8, v0.15.3.0), outside the repository:
echo 'print("hi")' > h.w
with build h.w --emit-c -o h.c
error: import module not found: 'std.re.defs' (build-generated modules live under out/gen; run `with build` once in a fresh checkout)
with run h.w works in the same directory. The C backend asks for the regex bundle's source modules, which an installed compiler does not carry (it has the .wo bundle). Either the C backend links bundles as the LLVM backend does, or --emit-c says plainly that it needs a source checkout.
Both halves: --emit-c/--emit-obj accept a file with top-level statements, and outside a checkout the error now names the bundle ('module std.re.defs is in this compiler as the pcre2 bundle, an object without source … run it from a With source checkout'). It prints once per bundled module, which is noisy; hello world still compiles all of pcre2 into its C inside a checkout (19 MB).
Activity
README: rewritten from scratch around what With does that nobody else…
driver: --emit-c and --emit-obj compile the file as an entry source (#…
sema, codegen: a D93 decision survives the second check; const array …
ehartford commentedon Oct 5, 2026
Fixed on main 0ade380 (stack #2175, battery green; the stack top also builds and passes its new tests on linux-x86_64 and windows-x86_64).
ehartford commentedon Oct 5, 2026
Both halves:
--emit-c/--emit-objaccept a file with top-level statements, and outside a checkout the error now names the bundle ('module std.re.defs is in this compiler as the pcre2 bundle, an object without source … run it from a With source checkout'). It prints once per bundled module, which is noisy; hello world still compiles all of pcre2 into its C inside a checkout (19 MB).