Index: Lib/distutils/msvc9compiler.py =================================================================== --- Lib/distutils/msvc9compiler.py (revision 84945) +++ Lib/distutils/msvc9compiler.py (working copy) @@ -265,7 +265,7 @@ stderr=subprocess.PIPE) stdout, stderr = popen.communicate() - if popen.wait() != 0: + if popen.wait() != 0 or stderr: raise DistutilsPlatformError(stderr.decode("mbcs")) stdout = stdout.decode("mbcs")