https://gcc.gnu.org/bugzilla/show_bug.cgi?id=104157
Andrew Pinski <pinskia at gcc dot gnu.org> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|WAITING |UNCONFIRMED Summary|libc++ does not work |-std=libc++ does not with |properly with |cross compilers and moving |x86_64-w64-mingw32 host, |the install around (places |but works fine with |the include path last) |x86_64-linux-gnu host | Ever confirmed|1 |0 --- Comment #10 from Andrew Pinski <pinskia at gcc dot gnu.org> --- (In reply to cqwrteur from comment #8) > Created attachment 52254 [details] > result from linux > > Yes on linux include/v1/c++ goes first. The main difference is the addition of: -iprefix d:\x86_64-windows-gnu\aarch64-linux-android\bin\../lib/gcc/aarch64-linux-android/12.0.1/ The problem is somewhere in add_standard_paths My guess is if you move the install directory for the linux case, the problem on Linux will show up too.