http://gcc.gnu.org/bugzilla/show_bug.cgi?id=46113
Summary: collect2.exe not passing through @FILE response argument to linker Product: gcc Version: 4.5.0 Status: UNCONFIRMED Severity: normal Priority: P3 Component: driver AssignedTo: unassig...@gcc.gnu.org ReportedBy: ben.combr...@gmail.com Created attachment 22104 --> http://gcc.gnu.org/bugzilla/attachment.cgi?id=22104 execution of g++ and collect2.exe during spring.exe linking I'm building the Spring engine project (version 0.82.6.1) and using GCC 4.5.0-2 with CMake 2.8.2. Spring has so many objects that it exceeds the 32k limit on windows argument passing so the @FILE option is required. The g++ front-end is properly passing the response file to collect2.exe. See "g++_exec.txt" in the zip attachment. However collect2.exe terminates with message: "collect2: CreateProcess: No such file or directory" I executed the collect2 commandline with -debug to see what's going on. See "collect2_exec.txt" in the attached zip. One can clearly see the response file "CMakeFiles\engine-default.dir\objects1.rsp" being passed to collect2.exe but then it expands it into a full commandline when it executes ld.exe...this causes the command execution to fail. The variable HAVE_GNU_LD had been defined.