public inbox for binutils@sourceware.org
 help / color / mirror / Atom feed
* ld testsuite breaks with latest GCC-4.0
@ 2005-01-02  4:45 Greg Schafer
  2005-01-02  5:11 ` Daniel Jacobowitz
  0 siblings, 1 reply; 9+ messages in thread
From: Greg Schafer @ 2005-01-02  4:45 UTC (permalink / raw)
  To: binutils

Hi

In case you haven't already heard, GCC-4.0 no longer installs a "specs"
file. See these threads:

  http://gcc.gnu.org/ml/gcc-patches/2004-12/msg01459.html
  http://gcc.gnu.org/ml/gcc-patches/2004-12/msg01574.html
  
The ld testsuite currently attempts some grovelling around in the gcc specs
file to find out various bits of information. This from ld/configure.host
(excuse the wrap):


  *-*-linux*)
  HOSTING_CRT0='-dynamic-linker `egrep "ld[^ ]*\.so" \`${CC} --print-file-name=specs\` | sed 
-e "s,.*-dynamic-linker[   ][ ]*\(.*/ld[^ ]*\.so..\).*,\1,"` `${CC} --print-file-name=crt1.o` 
`${CC} --print-file-name=crti.o` `if [ -f ../gcc/crtbegin.o ]; then echo ../gcc/crtbegin.o; else 
${CC} --print-file-name=crtbegin.o; fi`'

  
With latest GCC-4.0, `gcc --print-file-name=specs' spits out nothing which
breaks the whole ld testsuite:


Using /temptools/src/binutils-2.15.94.0.2/ld/testsuite/config/default.exp as tool-and-target-specific interface file.
ERROR: tcl error sourcing tool-and-target-specific interface file /temptools/src/binutils-2.15.94.0.2/ld/testsuite/config/default.exp.
Error getting native link files: -dynamic-linker /usr/lib/crt1.o /usr/lib/crti.o /temptools/lib/gcc/i686-pc-linux-gnu/4.0.0/crtbegin.o
grep: specs: No such file or directory
Error getting native link files: -dynamic-linker /usr/lib/crt1.o /usr/lib/crti.o /temptools/lib/gcc/i686-pc-linux-gnu/4.0.0/crtbegin.o
grep: specs: No such file or directory
    while executing


Clearly, changes will be needed. I'm not sure what the best solution is but
I have a feeling that it will probably involve:

  `gcc -dumpspecs'

but that might have the potential to break older GCC's. Dunno.

Thoughts?

Thanks
Greg

PS - I'm using the latest HJ release but the code in question from CVS trunk
looks the same.

^ permalink raw reply	[flat|nested] 9+ messages in thread

end of thread, other threads:[~2005-01-10 14:58 UTC | newest]

Thread overview: 9+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2005-01-02  4:45 ld testsuite breaks with latest GCC-4.0 Greg Schafer
2005-01-02  5:11 ` Daniel Jacobowitz
2005-01-02  6:24   ` [PATCH] " Greg Schafer
2005-01-03 20:51     ` James E Wilson
2005-01-04 10:30     ` Nick Clifton
2005-01-04 10:43     ` Jakub Jelinek
2005-01-04 22:47       ` Greg Schafer
2005-01-06 12:25         ` Greg Schafer
2005-01-10 14:58           ` Nick Clifton

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).