public inbox for gcc-bugs@sourceware.org help / color / mirror / Atom feed
* [Bug driver/45749] Response file unwrapped between collect2.exe and ld.exe [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 ` (4 subsequent siblings) 5 siblings, 0 replies; 15+ messages in thread From: pinskia at gcc dot gnu.org @ 2010-10-21 18:40 UTC (permalink / raw) To: gcc-bugs http://gcc.gnu.org/bugzilla/show_bug.cgi?id=45749 Andrew Pinski <pinskia at gcc dot gnu.org> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |ben.combrink at gmail dot | |com --- Comment #10 from Andrew Pinski <pinskia at gcc dot gnu.org> 2010-10-21 18:39:49 UTC --- *** Bug 46113 has been marked as a duplicate of this bug. *** ^ permalink raw reply [flat|nested] 15+ messages in thread
* [Bug driver/45749] Response file unwrapped between collect2.exe and ld.exe [not found] <bug-45749-4@http.gcc.gnu.org/bugzilla/> 2010-10-21 18:40 ` [Bug driver/45749] Response file unwrapped between collect2.exe and ld.exe 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 ` (3 subsequent siblings) 5 siblings, 0 replies; 15+ messages in thread From: earnie at users dot sourceforge.net @ 2013-02-08 17:58 UTC (permalink / raw) To: gcc-bugs http://gcc.gnu.org/bugzilla/show_bug.cgi?id=45749 Earnie <earnie at users dot sourceforge.net> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |earnie at users dot | |sourceforge.net --- Comment #11 from Earnie <earnie at users dot sourceforge.net> 2013-02-08 17:58:03 UTC --- So why is this doing the correct thing when supplying the --with-gnu-ld option versus the fact that we have GNU ld and the configure script discovers it? It seems to me the bug would be in the configure process. ^ permalink raw reply [flat|nested] 15+ messages in thread
* [Bug driver/45749] Response file unwrapped between collect2.exe and ld.exe [not found] <bug-45749-4@http.gcc.gnu.org/bugzilla/> 2010-10-21 18:40 ` [Bug driver/45749] Response file unwrapped between collect2.exe and ld.exe 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 ` (2 subsequent siblings) 5 siblings, 0 replies; 15+ messages in thread From: pinskia at gcc dot gnu.org @ 2022-01-01 7:31 UTC (permalink / raw) To: gcc-bugs https://gcc.gnu.org/bugzilla/show_bug.cgi?id=45749 Andrew Pinski <pinskia at gcc dot gnu.org> changed: What |Removed |Added ---------------------------------------------------------------------------- Ever confirmed|0 |1 Assignee|unassigned at gcc dot gnu.org |pinskia at gcc dot gnu.org Status|UNCONFIRMED |ASSIGNED Last reconfirmed| |2022-01-01 --- Comment #13 from Andrew Pinski <pinskia at gcc dot gnu.org> --- Let me try to fix this. ^ permalink raw reply [flat|nested] 15+ messages in thread
* [Bug driver/45749] Response file unwrapped between collect2.exe and ld.exe [not found] <bug-45749-4@http.gcc.gnu.org/bugzilla/> ` (2 preceding siblings ...) 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 5 siblings, 0 replies; 15+ messages in thread From: redi at gcc dot gnu.org @ 2022-09-22 10:00 UTC (permalink / raw) To: gcc-bugs https://gcc.gnu.org/bugzilla/show_bug.cgi?id=45749 Jonathan Wakely <redi at gcc dot gnu.org> changed: What |Removed |Added ---------------------------------------------------------------------------- See Also| |https://gcc.gnu.org/bugzill | |a/show_bug.cgi?id=107007 --- Comment #14 from Jonathan Wakely <redi at gcc dot gnu.org> --- (In reply to Ted from comment #0) > 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. GCC is to blame here, not Windows. See PR 107007 for a suggestion how to improve it. ^ permalink raw reply [flat|nested] 15+ messages in thread
* [Bug driver/45749] Response file unwrapped between collect2.exe and ld.exe [not found] <bug-45749-4@http.gcc.gnu.org/bugzilla/> ` (3 preceding siblings ...) 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 5 siblings, 0 replies; 15+ messages in thread From: pinskia at gcc dot gnu.org @ 2022-11-18 3:55 UTC (permalink / raw) To: gcc-bugs https://gcc.gnu.org/bugzilla/show_bug.cgi?id=45749 Andrew Pinski <pinskia at gcc dot gnu.org> changed: What |Removed |Added ---------------------------------------------------------------------------- Assignee|pinskia at gcc dot gnu.org |unassigned at gcc dot gnu.org Status|ASSIGNED |NEW --- Comment #15 from Andrew Pinski <pinskia at gcc dot gnu.org> --- I am no longer working on this. ^ permalink raw reply [flat|nested] 15+ messages in thread
* [Bug driver/45749] Response file unwrapped between collect2.exe and ld.exe [not found] <bug-45749-4@http.gcc.gnu.org/bugzilla/> ` (4 preceding siblings ...) 2022-11-18 3:55 ` pinskia at gcc dot gnu.org @ 2023-06-14 18:25 ` costas.argyris at gmail dot com 5 siblings, 0 replies; 15+ messages in thread From: costas.argyris at gmail dot com @ 2023-06-14 18:25 UTC (permalink / raw) To: gcc-bugs https://gcc.gnu.org/bugzilla/show_bug.cgi?id=45749 Costas Argyris <costas.argyris at gmail dot com> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |costas.argyris at gmail dot com --- Comment #16 from Costas Argyris <costas.argyris at gmail dot com> --- Very likely fixed by https://gcc.gnu.org/git/?p=gcc.git;a=commitdiff;h=180ebb8a24d24fc5b105f2257d6216f6dfde62df ^ permalink raw reply [flat|nested] 15+ messages in thread
* [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; 15+ 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] 15+ messages in thread
* [Bug driver/45749] Response file unwrapped between collect2.exe and ld.exe 2010-09-22 16:28 [Bug c++/45749] New: " bogus2 at arc dot net dot au @ 2010-09-22 16:42 ` pinskia at gcc dot gnu dot org 2010-09-22 16:42 ` pinskia at gcc dot gnu dot org ` (7 subsequent siblings) 8 siblings, 0 replies; 15+ messages in thread From: pinskia at gcc dot gnu dot org @ 2010-09-22 16:42 UTC (permalink / raw) To: gcc-bugs ------- Comment #1 from pinskia at gcc dot gnu dot org 2010-09-22 16:41 ------- I totally thought this was fixed in 4.5.0 when support was added because of LTO. -- pinskia at gcc dot gnu dot org changed: What |Removed |Added ---------------------------------------------------------------------------- Component|c++ |driver http://gcc.gnu.org/bugzilla/show_bug.cgi?id=45749 ^ permalink raw reply [flat|nested] 15+ messages in thread
* [Bug driver/45749] Response file unwrapped between collect2.exe and ld.exe 2010-09-22 16:28 [Bug c++/45749] New: " 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 ` (6 subsequent siblings) 8 siblings, 0 replies; 15+ messages in thread From: pinskia at gcc dot gnu dot org @ 2010-09-22 16:42 UTC (permalink / raw) To: gcc-bugs ------- Comment #2 from pinskia at gcc dot gnu dot org 2010-09-22 16:42 ------- Can you provide the output of the -v command when you get that error? Also what version of ld are you using? -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=45749 ^ permalink raw reply [flat|nested] 15+ messages in thread
* [Bug driver/45749] Response file unwrapped between collect2.exe and ld.exe 2010-09-22 16:28 [Bug c++/45749] New: " 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 ` (5 subsequent siblings) 8 siblings, 0 replies; 15+ messages in thread From: bogus2 at arc dot net dot au @ 2010-09-22 16:58 UTC (permalink / raw) To: gcc-bugs ------- Comment #3 from bogus2 at arc dot net dot au 2010-09-22 16:57 ------- Created an attachment (id=21862) --> (http://gcc.gnu.org/bugzilla/attachment.cgi?id=21862&action=view) output of collect2.exe @file --verbose -debug Attached --verbose -debug output of collect2 Also: D:\SpringTest\debug\rts\builds\default>collect2 -v collect2 version 4.5.0 (x86 MinGW) C:\MinGW32\bin/ld.exe -v GNU ld (GNU Binutils) 2.20.51.20100613 I believe this bug affects 4.5.1 as well because I've been fighting this bug for days and I've been through numerous official and TDM builds which all seemed affected by this or related issues. -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=45749 ^ permalink raw reply [flat|nested] 15+ messages in thread
* [Bug driver/45749] Response file unwrapped between collect2.exe and ld.exe 2010-09-22 16:28 [Bug c++/45749] New: " bogus2 at arc dot net dot au ` (2 preceding siblings ...) 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 ` (4 subsequent siblings) 8 siblings, 0 replies; 15+ messages in thread From: bogus2 at arc dot net dot au @ 2010-09-22 17:17 UTC (permalink / raw) To: gcc-bugs ------- Comment #4 from bogus2 at arc dot net dot au 2010-09-22 17:16 ------- btw, I can confirm the arguments passed to ld are 33491 characters long so this is definitely over the 32k mark -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=45749 ^ permalink raw reply [flat|nested] 15+ messages in thread
* [Bug driver/45749] Response file unwrapped between collect2.exe and ld.exe 2010-09-22 16:28 [Bug c++/45749] New: " bogus2 at arc dot net dot au ` (3 preceding siblings ...) 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 ` (3 subsequent siblings) 8 siblings, 0 replies; 15+ messages in thread From: pinskia at gcc dot gnu dot org @ 2010-09-22 17:42 UTC (permalink / raw) To: gcc-bugs ------- Comment #5 from pinskia at gcc dot gnu dot org 2010-09-22 17:42 ------- See the code in collect_execute: if (HAVE_GNU_LD && at_file_supplied && argv[0] != NULL) { /* If using @file arguments, create a temporary file and put the contents of argv into it. Then change argv to an array corresponding to a single argument @FILE, where FILE is the temporary filename. */ So maybe HAVE_GNU_LD is not true when it should be. -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=45749 ^ permalink raw reply [flat|nested] 15+ messages in thread
* [Bug driver/45749] Response file unwrapped between collect2.exe and ld.exe 2010-09-22 16:28 [Bug c++/45749] New: " bogus2 at arc dot net dot au ` (4 preceding siblings ...) 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 ` (2 subsequent siblings) 8 siblings, 0 replies; 15+ messages in thread From: rguenth at gcc dot gnu dot org @ 2010-09-22 19:57 UTC (permalink / raw) To: gcc-bugs ------- Comment #6 from rguenth at gcc dot gnu dot org 2010-09-22 19:57 ------- (In reply to comment #5) > See the code in collect_execute: > if (HAVE_GNU_LD && at_file_supplied && argv[0] != NULL) > { > /* If using @file arguments, create a temporary file and put the > contents of argv into it. Then change argv to an array corresponding > to a single argument @FILE, where FILE is the temporary filename. */ > > > So maybe HAVE_GNU_LD is not true when it should be. Or collect2 is not invoked with a response file. -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=45749 ^ permalink raw reply [flat|nested] 15+ messages in thread
* [Bug driver/45749] Response file unwrapped between collect2.exe and ld.exe 2010-09-22 16:28 [Bug c++/45749] New: " bogus2 at arc dot net dot au ` (5 preceding siblings ...) 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 8 siblings, 0 replies; 15+ messages in thread From: rguenth at gcc dot gnu dot org @ 2010-09-22 19:59 UTC (permalink / raw) To: gcc-bugs ------- Comment #7 from rguenth at gcc dot gnu dot org 2010-09-22 19:59 ------- Btw, on i?86-linux I see /* Define if using GNU as. */ #ifndef USED_FOR_TARGET #define HAVE_GNU_AS 0 #endif /* Define if using GNU ld. */ #ifndef USED_FOR_TARGET #define HAVE_GNU_LD 0 #endif in auto-host.h ... -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=45749 ^ permalink raw reply [flat|nested] 15+ messages in thread
* [Bug driver/45749] Response file unwrapped between collect2.exe and ld.exe 2010-09-22 16:28 [Bug c++/45749] New: " bogus2 at arc dot net dot au ` (6 preceding siblings ...) 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 8 siblings, 0 replies; 15+ messages in thread From: bogus2 at arc dot net dot au @ 2010-09-22 20:10 UTC (permalink / raw) To: gcc-bugs ------- Comment #8 from bogus2 at arc dot net dot au 2010-09-22 20:10 ------- > Or collect2 is not invoked with a response file. That's not the case. g++.exe is correctly passing the response file to collect2.exe which I've verified through debugging output and running collect2.exe by hand. -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=45749 ^ permalink raw reply [flat|nested] 15+ messages in thread
* [Bug driver/45749] Response file unwrapped between collect2.exe and ld.exe 2010-09-22 16:28 [Bug c++/45749] New: " bogus2 at arc dot net dot au ` (7 preceding siblings ...) 2010-09-22 20:10 ` bogus2 at arc dot net dot au @ 2010-09-22 20:16 ` bogus2 at arc dot net dot au 8 siblings, 0 replies; 15+ messages in thread From: bogus2 at arc dot net dot au @ 2010-09-22 20:16 UTC (permalink / raw) To: gcc-bugs ------- Comment #9 from bogus2 at arc dot net dot au 2010-09-22 20:16 ------- There's sections in configure and configure.ac that set HAVE_GNU_LD in confdefs.h. My hunch is neither the official builds or the TDM builds are enabling it (there's a --with-gnu-ld flag but it looks like it also sniffs the output ld -v). I've added a report to the TDM bug tracker to determine if this is the issue. https://sourceforge.net/tracker/?func=detail&aid=3073600&group_id=200665&atid=974439 -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=45749 ^ permalink raw reply [flat|nested] 15+ messages in thread
end of thread, other threads:[~2023-06-14 18:25 UTC | newest] Thread overview: 15+ messages (download: mbox.gz / follow: Atom feed) -- links below jump to the message on this page -- [not found] <bug-45749-4@http.gcc.gnu.org/bugzilla/> 2010-10-21 18:40 ` [Bug driver/45749] Response file unwrapped between collect2.exe and ld.exe 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 2010-09-22 16:28 [Bug c++/45749] New: " 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
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).