https://gcc.gnu.org/bugzilla/show_bug.cgi?id=80196
--- Comment #12 from Isuru Fernando <isuruf at gmail dot com> --- I patched libstdc++-v3/acinclude.m4 to add -nostdinc++ in GLIBCXX_INCLUDES and it worked for me. (My previous analysis was wrong. This issue is in canadian cross compilers where GXX_FOR_TARGET includes its own C++ headers, but with native compilers GXX_FOR_TARGET is xgcc which doesn't include C++ headers by default)