Testing build failure with latest GCC

Steve Ellcey sellcey@cavium.com
Thu May 25 17:14:00 GMT 2017


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



More information about the Libc-alpha mailing list