* [Bug driver/45749] Response file unwrapped between collect2.exe and ld.exe
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 ` 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; 16+ 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] 16+ messages in thread
* [Bug driver/45749] Response file unwrapped between collect2.exe and ld.exe
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
` (6 subsequent siblings)
8 siblings, 0 replies; 16+ 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] 16+ messages in thread
* [Bug driver/45749] Response file unwrapped between collect2.exe and ld.exe
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
` (5 subsequent siblings)
8 siblings, 0 replies; 16+ 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] 16+ messages in thread
* [Bug driver/45749] Response file unwrapped between collect2.exe and ld.exe
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
` (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; 16+ 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] 16+ messages in thread
* [Bug driver/45749] Response file unwrapped between collect2.exe and ld.exe
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
` (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; 16+ 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] 16+ messages in thread
* [Bug driver/45749] Response file unwrapped between collect2.exe and ld.exe
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
` (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; 16+ 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] 16+ messages in thread
* [Bug driver/45749] Response file unwrapped between collect2.exe and ld.exe
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
` (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; 16+ 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] 16+ messages in thread
* [Bug driver/45749] Response file unwrapped between collect2.exe and ld.exe
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
` (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; 16+ 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] 16+ messages in thread
* [Bug driver/45749] Response file unwrapped between collect2.exe and ld.exe
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
` (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; 16+ 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] 16+ messages in thread