-
Notifications
You must be signed in to change notification settings - Fork 35
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
pymake stalling on windows #29
Comments
You could debug using the |
Is this with ifort or gfortran? (That except is from |
ifort on Windows |
I have ifort/windows, and I can't fully see this exact issue. Running
I'm not sure what's going on above, and this is the same behavior before any recent changes (I checked). A simple "undo" of some of the change from #28 is (aka ff56ddb): --- a/pymake/pymake.py
+++ b/pymake/pymake.py
@@ -21,7 +21,7 @@ import os
import sys
import traceback
import shutil
-from subprocess import Popen, PIPE
+from subprocess import Popen, PIPE, STDOUT
import argparse
import datetime
@@ -803,7 +803,7 @@ def compile_with_ifort(srcfiles, target, fc, cc, objdir_temp, moddir_temp,
makebatch(batchfile, fc, cc, fflags, cflags, srcfiles, target,
arch, objdir_temp, moddir_temp)
#subprocess.check_call([batchfile, ])
- proc = Popen([batchfile, ], stdout=PIPE, stderr=PIPE)
+ proc = Popen([batchfile, ], stdout=PIPE, stderr=STDOUT)
while True:
line = proc.stdout.readline()
c = line.decode('utf-8') this doesn't work for me (due the above older issue), but does it help anyone else? |
This is what happens to me when I run buildall.bat on a windows 10 machine. It starts running just fine, and then just stops and hangs with no error messages when it gets to pes1bas6.f. I'll start trouble shooting and see if I can locate the problem.
|
And if I then kill the buildall.bat script which is hanging and run the compile.bat script that was created, it continues building the mf2000.exe script just fine. |
It works now by replacing the Popen call to use STDOUT as suggested by @mwtoews. Thanks, Mike. I'll commit the fix.
|
Think this one is taken care of for now. |
@mwtoews, I think some of the recent changes you made for capturing the compile messages is causing a problem on windows. Our builds are stalling with SEAWAT and MF2000, for example. I can run compile.bat just fine from a windows terminal, but python seems to get hung up. We've verified that it happens on a couple of different windows machines. I'm guessing the issue is somewhere in here:
Could you take a look?
The text was updated successfully, but these errors were encountered: