public inbox for newlib@sourceware.org
 help / color / mirror / Atom feed
* Build error with GCC13 + newlib 4.1.0 - error: 'float_t' undeclared
@ 2023-05-28  0:01 Chris Packham
  2023-05-28  0:28 ` Joel Sherrill
  0 siblings, 1 reply; 6+ messages in thread
From: Chris Packham @ 2023-05-28  0:01 UTC (permalink / raw)
  To: newlib

Hello from CT-NG,

I user reported the following build error with newlib after GCC13.1
was added recently

src/newlib/newlib/libm/math/wf_log2.c:34:22: error: 'float_t'
undeclared (first use in this function); did you mean 'float'?
       34 |   return (logf(x) / (float_t) M_LN2);
          |                      ^~~~~~~
          |                      float

From what I've been able to follow so far this may have something to
do with how FLT_EVAL_METHOD is defined. It's not really mentioned in
the GCC docs as something that has changed but I wonder if it is
perhaps implied by a C standard the default of which probably has
changed.

Does this ring any bells for anyone?

^ permalink raw reply	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2023-05-28  6:11 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2023-05-28  0:01 Build error with GCC13 + newlib 4.1.0 - error: 'float_t' undeclared Chris Packham
2023-05-28  0:28 ` Joel Sherrill
2023-05-28  2:00   ` Chris Packham
2023-05-28  2:23     ` Chris Packham
2023-05-28  5:07       ` Brian Inglis
2023-05-28  6:11         ` Brian Inglis

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).