ToT build problem with nextafterl/nexttowardl (when using ToT GCC)
Steve Ellcey
sellcey@cavium.com
Fri Dec 8 19:22:00 GMT 2017
I have tracked the glibc build problem down to this GCC patch:
+2017-12-07  Martin Sebor  <msebor@redhat.com>
+
+ PR c/81544
+ * attribs.c (empty_attribute_table): Initialize new member of
(many more lines)
But I am not sure if this is a bug with the patch or an issue with the
glibc sources where there is an inconsistency in how these two
functions are declared.
Steve Ellcey
sellcey@cavium.com
On Fri, 2017-12-08 at 08:51 -0800, Steve Ellcey wrote:
> Is anyone else seeing this problem when building glibc.  I am using
> the
> ToT GCC to build ToT glibc.
>
> Steve Ellcey
> sellcey@cavium.com
>
>
>
> In file included from ../include/bits/mathcalls.h:1,
> Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â from ../math/math.h:350,
> Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â from ../include/math.h:7,
> Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â from ../sysdeps/aarch64/fpu/s_llround.c:19:
> ../math/bits/mathcalls.h:259:1: error: ignoring attribute âconstâ in
> declaration of a built-in function ânextafterlâ because it conflicts
> with attribute âpureâ [-Werror=attributes]
> Â __MATHCALLX (nextafter,, (_Mdouble_ __x, _Mdouble_ __y),
> (__const__));
> Â ^~~~~~~~~~~
> <built-in>: note: previous declaration here
> ../math/bits/mathcalls.h:261:1: error: ignoring attribute âconstâ in
> declaration of a built-in function ânexttowardlâ because it conflicts
> with attribute âpureâ [-Werror=attributes]
> Â __MATHCALLX (nexttoward,, (_Mdouble_ __x, long double __y),
> (__const__));
> Â ^~~~~~~~~~~
> <built-in>: note: previous declaration here
More information about the Libc-alpha
mailing list