This discussion has been locked.
You can no longer post new replies to this discussion. If you have a question you can start a new discussion

gcc-arm-11.2-2022.02 link error - collect2.exe: fatal error: CreateProcess: No such file or directory

I am unable to link the application using arm-none-eabi-gcc.exe supplied with Arm GNU Toolchain 11.2-2022.02 prebuilt Windows package (available at

In case the application contains lot of object files (with total length of all object filenames > 32767 characters), the response file is used for arm-none-eabi-gcc.exe invocation - to avoid Windows CreateProcess limitation.

Internally, arm-none-eabi-gcc.exe runs collect2.exe, also using response file. However, collect2.exe then runs ld.exe with all object filepaths passed as-is, this leads to fatal error:

collect2.exe: fatal error: CreateProcess: No such file or directory
compilation terminated.

A simple project to reproduce the issue is available at

The build error is reproducible on multiple Windows 10 machines, also on GitHub Actions CI at

The root cause of collect2.exe not using the response file for final ld.exe invocation is likely related to HAVE_GNU_LD evaluating as "false" in "fork_execute "ld" invocations:;f=gcc/collect2.c;hb=refs/tags/releases/gcc-11.2.0 

Probably, "--with-gnu-ld" configure options was missed in the toolchain build manifest.