https://gcc.gnu.org/bugzilla/show_bug.cgi?id=81797
--- Comment #69 from Chris Johns <chrisj at rtems dot org> --- (In reply to Jonathan Wakely from comment #68) > (In reply to Chris Johns from comment #67) > > (In reply to Jonathan Wakely from comment #66) > > > Yes, I was afraid the RTEMS failures might be a different problem. > > > > > > Are the symptoms the same? i.e. missing C++ standard library headers? > > > > > > > Yes it seems to be the same issue I was seeing when we first looked into the > > problem. > > So not failing on "bits/gthr.h" then? I'm still not clear exactly what part > fails for you now. > > > > Comment 17 suggests you're seeing missing libgcc headers, which is created > > > by a different makefile. Maybe a similar kluge is needed in > > > libgcc/Makefile > > > for build=*darwin* > > > > Is it? I think that file is being installed in the same way. Could it be the > > RTEMS target config has a different list? > > Ah yes, my mistake, libstdc++ creates > $target/include/x86_64-pc-linux-gnu/bits/gthr.h > > I thought we found that in $target/libgcc/ instead, but in fact we process > the libgcc/gthr.h header using sed and create our own version. > > That means it's definitely *not* the same way as the other headers, because > the others are symlinks into the source tree. > > Please clarify exactly what your current failure is. This is the current failure, it varies on the file that it fails on: In file included from /Users/chris/development/rtems/rsb/rtems-source-builder.git/rtems/build/sparc-rtems5-gcc-7.3.0-newlib-d13c84eb07e35984bf7a974cd786a6cdac29e6b9-x86_64-apple-darwin18.0.0-1/gcc-7.3.0/libstdc++-v3/libsupc++/exception:143:0, from ../../../../gcc-7.3.0/libstdc++-v3/libsupc++/new:40, from ../../../../gcc-7.3.0/libstdc++-v3/libsupc++/bad_alloc.cc:26: /Users/chris/development/rtems/rsb/rtems-source-builder.git/rtems/build/sparc-rtems5-gcc-7.3.0-newlib-d13c84eb07e35984bf7a974cd786a6cdac29e6b9-x86_64-apple-darwin18.0.0-1/build/sparc-rtems5/libstdc++-v3/include/bits/nested_exception.h:40:10: fatal error: bits/move.h: No such file or directory #include <bits/move.h> ^~~~~~~~~~~~~