This is the mail archive of the binutils@sourceware.org mailing list for the binutils project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: ar breaking with "No error"


Arnd-Hendrik Mathias <arnd-hendrik.mathias@nefkom.net> writes:

> could anyone explain me what the code section below, cited from
> binutils-2.19.1/binutils/ar.c line 713 (in function open_inarch) is
> about?

Don't get confused by the test on __GO32__ and the comment.  What the
code is really doing is this:

  if (stat (archive_filename, &sbuf) != 0)
    {
      if (errno != ENOENT)
        bfd_fatal (archive_filename);
    }

That looks reasonable and correct to me.


> I encounter the problem, that using my newly built binutils ar
> like this
>
> .../x86_64-temp-linux-gnu-ar rc my.a my.o
>
> generates this output.
> .../x86_64-temp-linux-gnu-ar: my.a: No error
>
> while aborting.

Why is stat returning a non-zero value with errno set to zero?

Ian


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]