Looking at the source code of phase "remove-extra-references" and assuming that the "out" output exists, probably the "libc" input doesn't exist.
set-cross-path/mingw guards against this case, so apparently it is normal that "libc" input can be missing and perl should be guarding against it, but doesn't. Otherwise I don't know mingw, so can't help much further.
pgp7L7_kX2xtC.pgp
Description: OpenPGP digital signature