public inbox for gas2@sourceware.org
 help / color / mirror / Atom feed
From: Joel Sherrill <joel@OARcorp.com>
To: Ian Lance Taylor <ian@cygnus.com>
Cc: gas2@cygnus.com
Subject: Re: more on powerpc-rtems ar failure
Date: Thu, 16 Apr 1998 15:36:00 -0000	[thread overview]
Message-ID: <Pine.BSF.3.96.980416160955.26940a-100000@vespucci.advicom.net> (raw)
In-Reply-To: <199804162103.RAA01380@subrogation.cygnus.com>

On Thu, 16 Apr 1998, Ian Lance Taylor wrote:

> Was this ar build with --enable-targets=all?  

Yes, I did build with --enable-targets=all.  I build the tools with a
script and that option has been in there a long time.

I have tried it again without the --enable-targets=all option and it is
already up to newlib.  So this must be the culprit.

> It's hard to recommend using such tools for general use.  There are too
> many ambiguities among different object file formats.  You should
> instead spell out the precise set of targets you want to support. 

I can see that it would be hard to figure it out.  There are a LOT of BFD
entries.  THis will probably speed up the build as well as reduce the size
of the executables.

We release have instructions and a script to build the tools for RTEMS
users, so please understand where the following questions are coming from.
When I delete --enable-targets=all, I am doing it for every RTEMS user. :)

Will taking the default result in getting all the formats for a particular
CPU?  I have tried to encourage the use of CPU-rtems for all users of CPU
and then have them use objcopy to produce the exact format required by a
board.   For example, does m68k-coff (aka m68k-rtems) also include
at least m68k-aout, srecords, binary -- with m68k-elf a plus.   On CPUs
with both big and little endian, does it get all the "same endian"
formats? 

For the powerpc-rtems at least, the list of default supported targets is
more than good enough.

I lean toward not specifying any targets since I have 10 RTEMS targets
already and couldn't figure out the exact list.  Not to mention I will
need to add two new ones soon -- there are ARM and H8 ports about ready to
be submitted.

> Still, ar ought to report a better error message, so there may be
> something different going on here.

Even if it had printed out something like "can't figure out the object
format of the library", it still would not tell me that it was
there was ambiguity because of "--enable-targets=all".

FWIW I can duplicate the problem using the same procedure on the
mips64orion-rtems target with the "-EL" option to gcc/as and the GNU
target of elf32-littlemips. 

> However, I can't recreate the problem using an ar configured for
> powerpc-eabi.

Probably without --enable-targets=all?

Thanks.  I have learned a lot this time.  I have wanted to treat the BFD
as black magic (which it is) but this has been enlightening.  

--joel


  reply	other threads:[~1998-04-16 15:36 UTC|newest]

Thread overview: 12+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
1998-04-16 13:26 Joel Sherrill
1998-04-16 14:03 ` Ian Lance Taylor
1998-04-16 15:36   ` Joel Sherrill [this message]
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

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=Pine.BSF.3.96.980416160955.26940a-100000@vespucci.advicom.net \
    --to=joel@oarcorp.com \
    --cc=gas2@cygnus.com \
    --cc=ian@cygnus.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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).