E1881: bundled linker does not match its contract
The compiler checks the bundled linker before it uses it: it must be LLVM LLD 23.1.2, and the toolchain manifest must name the compiler-runtime builtins of the target (ADR-0041,...
The compiler checks the bundled linker before it uses it: it must be LLVM LLD
23.1.2, and the toolchain manifest must name the compiler-runtime builtins of
the target (ADR-0041, ADR-0105). This error means the bundle does not match.
It is an error of the installation and of no file of the project, so it prints
as error[E1881]: message, with no path. The message is one of:
Cause
A project selects a freestanding ARM target, such as target = "thumbv7em-none-eabi", and names no linker, so the compiler uses the
ld.lld of its toolchain directory. Running ld.lld --version fails, or
prints a version other than LLD 23.1.2, or the compiler_rt_builtins table
of share/actus/toolchain.json has no entry for the target. A hosted
*-windows-msvc program on Windows with no linker named uses the same ld.lld
and the same version check (ADR-0138). When the version run fails or prints no version, the message says how it
ended: the exit code (on Windows also the hexadecimal NTSTATUS, for example
exit code -1073741819 (0xC0000005)), what it printed, and its standard error
if any, so the message is never blank.
A program cannot trigger this error on purpose, so it has no example.
Fix
Run scripts/bootstrap_llvm.sh (or scripts/bootstrap_llvm.ps1 on Windows) to
replace the bundle with the verified one, or install the compiler again from a
complete release.
On Windows, a crash at start (0xC0000005) with no output usually means that a
runtime DLL next to ld.lld.exe is missing or the installation is incomplete.
The archive ships VCRUNTIME140.dll, VCRUNTIME140_1.dll and MSVCP140.dll
in lib\actus\bin beside the linker, so it does not depend on the VC runtime
of the system (bug #178); install the compiler again from a complete release.
Run actus explain E1881 in your terminal to read this entry offline. Browse Strict & toolchain or all error codes.