MaskRay added a comment. From an upstream multiarch build of gcc, the libstdc++ search paths are
/tmp/opt/gcc-debug/lib/gcc/x86_64-pc-linux-gnu/11.0.1/../../../../include/c++/11.0.1 /tmp/opt/gcc-debug/lib/gcc/x86_64-pc-linux-gnu/11.0.1/../../../../include/c++/11.0.1/x86_64-pc-linux-gnu /tmp/opt/gcc-debug/lib/gcc/x86_64-pc-linux-gnu/11.0.1/../../../../include/c++/11.0.1/backward (this is similar to cross gcc on Debian) If you specify `--target=x86_64-linux-gnu` and install it to `/usr`, the paths will become. /usr/include/c++/11.0.1 /usr/include/c++/11.0.1/x86_64-linux-gnu /usr/include/c++/11.0.1/backward If Debian can drop the incdir patch for native gcc, clang driver can still detect the libstdc++ search paths. Repository: rG LLVM Github Monorepo CHANGES SINCE LAST ACTION https://reviews.llvm.org/D99852/new/ https://reviews.llvm.org/D99852 _______________________________________________ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits