This is the mail archive of the
libc-alpha@sourceware.org
mailing list for the glibc project.
Re: Testing build failure with latest GCC
- From: Steve Ellcey <sellcey at cavium dot com>
- To: Florian Weimer <fweimer at gapps dot redhat dot com>
- Cc: libc-alpha <libc-alpha at sourceware dot org>
- Date: Thu, 25 May 2017 10:14:37 -0700
- Subject: Re: Testing build failure with latest GCC
- Authentication-results: sourceware.org; auth=none
- Authentication-results: gapps.redhat.com; dkim=none (message not signed) header.d=none;gapps.redhat.com; dmarc=none action=none header.from=cavium.com;
- References: <1495731053.18342.13.camel@cavium.com> <CAO3sB51iTc+MQNEHdLtrcxVXsr+0hYq1VWJzg8xVYesaoaoJRw@mail.gmail.com>
- Reply-to: sellcey at cavium dot com
- Spamdiagnosticmetadata: NSPM
- Spamdiagnosticoutput: 1:99
On Thu, 2017-05-25 at 18:56 +0200, Florian Weimer wrote:
>
> The f* stream functions are special. You can check for errors using
> the return value, or using ferror. Therefore, the attribute might not
> be correct.
>
> Considering how difficult is to bypass warn-used attribute (a cast to
> void is not enough), I wonder if we should drop the attribute.
>
> Thanks,
> Florian
I think this is a bug in my scripts. I thought I was compiling with
the top-of-tree GCC but it looks like I was actually compiling with GCC
5.4 when building the tests (bad path). The actual library however was
compiled with ToT GCC and I think that mixing of building the library
with ToT GCC and the tests with GCC 5.4 is causing the problem.
I think we can just call this a user error.
Steve Ellcey
sellcey@cavium.com