https://gcc.gnu.org/bugzilla/show_bug.cgi?id=103166

Andrew Pinski <pinskia at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
   Last reconfirmed|                            |2021-11-10
             Status|UNCONFIRMED                 |NEW
     Ever confirmed|0                           |1

--- Comment #1 from Andrew Pinski <pinskia at gcc dot gnu.org> ---
Note the revision is r12-5056.

So there are two issues here both dealing with getentropy; one is a newlib
issue and the other is a libstdc++ issue (well maybe still a newlib one).

Newlib issue:
Newlib includes a version of arc4random which requires getentropy.

libstdc++/Newlib issue:
libstdc++ detects getentropy in the header and thinks it can work.  newlib
defines it unconditionally too.

Maybe the better fix is to fix newlib?

Reply via email to