public inbox for gas2@sourceware.org
 help / color / mirror / Atom feed
* more on powerpc-rtems ar failure
@ 1998-04-16 13:26 Joel Sherrill
  1998-04-16 14:03 ` Ian Lance Taylor
  1998-04-16 15:36 ` Ian Lance Taylor
  0 siblings, 2 replies; 12+ messages in thread
From: Joel Sherrill @ 1998-04-16 13:26 UTC (permalink / raw)
  To: gas2

Thanks for the earlier fix.  

This problem is another -mlittle one.  Here is a test case:

------------------ assembly file used to duplicate this -----
        .file   "j.s"

        .section ".text"
        .align 2
        .globl f
f:
        blr
----------------------- end of file

../gas/as-new -mlittle -o j.o j.s
../binutils/ar rc j.a j.o
../binutils/ar rc j.a j.o
../binutils/ar: j.a: Invalid operation

Tracing in gdb, it looks like the format of the file is not automatically
recognized:


Breakpoint 4, main (argc=4, argv=0xbffff9dc) at
../../src/binutils/ar.c:555
555           arch = open_inarch (inarch_filename,
(gdb) s
open_inarch (archive_filename=0xbffffaf8 "j.a", file=0xbffffafc "j.o")
    at ../../src/binutils/ar.c:614
614       bfd_set_error (bfd_error_no_error);
(gdb) n
616       target = NULL;
(gdb) 
618       if (stat (archive_filename, &sbuf) != 0)
(gdb) 
661       arch = bfd_openr (archive_filename, target);
(gdb) 
662       if (arch == NULL)
(gdb) 
668       if (! bfd_check_format_matches (arch, bfd_archive, &matching))
(gdb) 
670           bfd_nonfatal (archive_filename);
(gdb) 
/usr1/rtems/work/tools/build-powerpc-tools/gcc/../binutils/ar: j.a:
Invalid operation
671           if (bfd_get_error () ==
bfd_error_file_ambiguously_recognized)
(gdb) 
676           xexit (1);
(gdb) 

----------------------------------

I confirmed this by:

rm j.a
../gas/as-new -mlittle -o j.o j.s
./binutils/ar rc j.a j.o
GNUTARGET=elf32-powerpcle ../binutils/ar rc j.a j.o

The mips64orion failure is the same message in the same place in the gcc
libgcc2 build.  I suspect it is the same type of failure but need to
confirm it.

I think this is a bit better bug report than I started with on the
targets.c one.  Sorry about that.

--joel


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

end of thread, other threads:[~1998-04-17  9:01 UTC | newest]

Thread overview: 12+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
1998-04-16 13:26 more on powerpc-rtems ar failure Joel Sherrill
1998-04-16 14:03 ` Ian Lance Taylor
1998-04-16 15:36   ` Joel Sherrill
1998-04-16 14:43     ` Ian Lance Taylor
1998-04-16 14:55       ` Joel Sherrill
1998-04-16 14:55         ` Ian Lance Taylor
1998-04-16 15:02           ` Joel Sherrill
1998-04-16 15:36 ` Ian Lance Taylor
1998-04-17  5:55   ` Joel Sherrill
1998-04-17  8:44     ` Ian Lance Taylor
1998-04-17  9:01       ` Joel Sherrill
1998-04-17  9:01         ` Ian Lance Taylor

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