https://gcc.gnu.org/bugzilla/show_bug.cgi?id=115743
--- Comment #3 from Andrew Pinski <pinskia at gcc dot gnu.org> --- So for a cross to aarch64-linux-gnu we get: pythondir = '/home/apinski/src/upstream-full-cross/install/share/gcc-15.0.0/python' libdir = '/home/apinski/src/upstream-full-cross/install/aarch64-linux-gnu/lib/../lib64' basically it is trying to normalize pythondir to the libdir where the libraries are installed (from where the ./aarch64-linux-gnu/lib64/libstdc++.so.6.0.33-gdb.py or in your case libstdc++.dll.py).