https://gcc.gnu.org/bugzilla/show_bug.cgi?id=110209
Andrew Pinski <pinskia at gcc dot gnu.org> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|UNCONFIRMED |RESOLVED Resolution|--- |MOVED --- Comment #1 from Andrew Pinski <pinskia at gcc dot gnu.org> --- Gcc does not provide these functions. They are provided by the libc that gcc links to. In the case of Linux, it is most likely glibc but it could be musl or uclibc . If you are using a -elf target, then libc is most likely provided by newlib. Also GCC 4.8.x is no longer supported upstream, you should try a much newer GCC, like GCC 9.x or even better GCC 13.