Linker invocation failed
plc could not spawn the linker subprocess, or the OS rejected the assembled
command line before the linker had a chance to run.
The diagnostic body includes the linker that was selected, the number of arguments, the assembled command-line length in bytes, and the longest single argument (and its value). These numbers usually point at the cause.
Common causes:
- Windows
CreateProcesscommand-line limit (32,767 bytes; 8,191 if the spawn went throughcmd.exe). Visible asos error 206.plcalready routes long command lines through a@response_fileto avoid this, but the response file can itself fail if the temp directory is unwritable — consult any precedingwarnlog lines. - Windows
MAX_PATH(260 chars) on a single path argument without the\\?\prefix. Also surfaces asos error 206. Shorten paths or relocate the build closer to the drive root. - Linker binary not on
PATH/ not executable.os error 2oros error 13. Checkwhich <linker>or pass--linker=<path>. - Insufficient permissions on the temp directory used for the response
file. Set
TMPDIR(Linux/macOS) orTEMP(Windows) to a writable path.
If none of the above apply the error string returned by the OS is reproduced verbatim and is the primary clue.