That reminds me of a similar problem in cygwin - a native libstdc++ build builds a program called "abi-check" but in a cygwin native build, it's built *before* the cygwin runtime is, so the link always fails (at least, if the just-built gcc is a different version than host-gcc).