https://gcc.gnu.org/bugzilla/show_bug.cgi?id=82427
Jonathan Wakely <redi at gcc dot gnu.org> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|UNCONFIRMED |WAITING Last reconfirmed| |2017-10-04 Component|libgcc |libstdc++ Ever confirmed|0 |1 --- Comment #1 from Jonathan Wakely <redi at gcc dot gnu.org> --- This has nothing to do with libgcc. The answer is probably that you've got some heaer file called time.h in your include paths, and that is being found instead of /usr/include/time.h WHen creating this bug you were asked to read https://gcc.gnu.org/bugs/ so please provide the information it asks for. The preprocessed source will show which time.h is being used (or you could check the preprocessed source yourself, and see if it's including /usr/include/time.h or some other file).