https://gcc.gnu.org/bugzilla/show_bug.cgi?id=113278
Andrew Pinski <pinskia at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|UNCONFIRMED |NEW
Ever confirmed|0 |1
Last reconfirmed| |2024-01-09
--- Comment #2 from Andrew Pinski <pinskia at gcc dot gnu.org> ---
So for C++, -std=c++98 (and others) are passed which causes __STRICT_ANSI__ to
be defined which in turn newlib decides not to enable POSIX functions (via
defining _DEFAULT_SOURCE which defines _POSIX_SOURCE).
So confirmed, this is just a testsuite issue and the simple way of fixing this
is to add -D_GNU_SOURCE to the command line options which causes the POSIX
functions in stdio.h to be declared.