https://gcc.gnu.org/bugzilla/show_bug.cgi?id=81797
Chris Johns <chrisj at rtems dot org> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |chrisj at rtems dot org --- Comment #17 from Chris Johns <chrisj at rtems dot org> --- I see the same issue when building tools for RTEMS using the RSB. I have collected the posted parts in a patch and attached it to a ticket in RTEMS's trac: https://devel.rtems.org/ticket/3171 An RTEMS tools build now fails with: ../../../../gcc-7.2.0/libstdc++-v3/libsupc++/atexit_thread.cc:27:10: fatal error: bits/gthr.h: No such file or directory #include "bits/gthr.h" ^~~~~~~~~~~~~ so there seems to be more issues.