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
Manifest "stdlib": false: match without a matching arm fails to link (undefined __mc_dtoa_core) #506
A match without a matching arm (the UnhandledMatchError path) in an application built with "stdlib": false fails to assemble: the emitted IR calls @manticore___mc_dtoa_core, which is never defined because the stdlib object is not linked and no prelude body is injected.
Reproduction (tests/aot/repro cannot express it: it needs a manifest build):
build: application 'm' (s -> m.bin)
build: undefined-function traps (3): __mc_json_err, addcslashes, strcmp
/tmp/manticore_buildobj_NNN.ll:11832:20: error: use of undefined value '@manticore___mc_dtoa_core'
11832 | %r111 = call i64 @manticore___mc_dtoa_core(i64 %r110, i64 1, i64 1)
1 error generated.
assemble: clang -c staged IR failed (rc=256)
build: assemble failed for m.bin
With an arm that always matches (default => ...) the same program builds and runs. php prints UnhandledMatchError for the original; with a default arm the output is three/other as expected.
Expected: a self-contained (stdlib: false) app links or defines every helper the codegen emits for match, or the build reports a clear error. Related: the preflight also lists traps for __mc_json_err, addcslashes, strcmp in this tiny app.
Activity