public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug c++/45749]  New: Response file unwrapped between collect2.exe and ld.exe
@ 2010-09-22 16:28 bogus2 at arc dot net dot au
  2010-09-22 16:42 ` [Bug driver/45749] " pinskia at gcc dot gnu dot org
                   ` (8 more replies)
  0 siblings, 9 replies; 16+ messages in thread
From: bogus2 at arc dot net dot au @ 2010-09-22 16:28 UTC (permalink / raw)
  To: gcc-bugs

When compiling on MinGW under cmd.exe it's necessary to use @FILE to work
around the 32k limit on arguments when linking a large number of objects.

Unfortunately for some reason collect2.exe does not forward the file to ld.exe
but instead appears to send its contents as arguments to CreateProcess()
leading to the error:

collect2: CreateProcess: No such file or directory

Which is the typically unhelpful way for Windows to report this problem and
something that led me on a 4 day goose-chase looking for the "missing" file or
directory.

Really if I tell collect2 to use a response file it's absolutely essential it
uses it internally or else finds some other way around the 32k barrier (like
piping to stdin).


-- 
           Summary: Response file unwrapped between collect2.exe and ld.exe
           Product: gcc
           Version: 4.5.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: c++
        AssignedTo: unassigned at gcc dot gnu dot org
        ReportedBy: bogus2 at arc dot net dot au


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=45749


^ permalink raw reply	[flat|nested] 16+ messages in thread
[parent not found: <bug-45749-4@http.gcc.gnu.org/bugzilla/>]

end of thread, other threads:[~2023-06-14 18:25 UTC | newest]

Thread overview: 16+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2010-09-22 16:28 [Bug c++/45749] New: Response file unwrapped between collect2.exe and ld.exe bogus2 at arc dot net dot au
2010-09-22 16:42 ` [Bug driver/45749] " pinskia at gcc dot gnu dot org
2010-09-22 16:42 ` pinskia at gcc dot gnu dot org
2010-09-22 16:58 ` bogus2 at arc dot net dot au
2010-09-22 17:17 ` bogus2 at arc dot net dot au
2010-09-22 17:42 ` pinskia at gcc dot gnu dot org
2010-09-22 19:57 ` rguenth at gcc dot gnu dot org
2010-09-22 19:59 ` rguenth at gcc dot gnu dot org
2010-09-22 20:10 ` bogus2 at arc dot net dot au
2010-09-22 20:16 ` bogus2 at arc dot net dot au
     [not found] <bug-45749-4@http.gcc.gnu.org/bugzilla/>
2010-10-21 18:40 ` pinskia at gcc dot gnu.org
2013-02-08 17:58 ` earnie at users dot sourceforge.net
2022-01-01  7:31 ` pinskia at gcc dot gnu.org
2022-09-22 10:00 ` redi at gcc dot gnu.org
2022-11-18  3:55 ` pinskia at gcc dot gnu.org
2023-06-14 18:25 ` costas.argyris at gmail dot com

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).