Page 1 of 1

Less info in compile log

Posted: Tue Mar 01, 2011 5:18 pm
by James McNaughton
Hi,

I installed v2 and it's working but if there's a compile or link error the log isn't giving any information about this, it says something like:
gfortran -I/home/james/tmp_Saturne/CYLINDER_v2.NEW_1.03011350/src_saturne -I/opt/cs-2.0.1/include -x f95-cpp-input -Wall -Wno-unused  -D_CS_FC_HAVE_FLUSH  -O -c /home/james/tmp_Saturne/CYLINDER_v2.NEW_1.03011350/src_saturne/usclim.f90
for each fortran file but without the info I'm used to. I did the install manually have I missed a comment somewhere that will enable this?

Thanks,

James

Re: Less info in compile log

Posted: Tue Mar 01, 2011 10:31 pm
by Alexandre Douce
Could you try the compilation of your sources with the dedicated command:
code_saturne compile -t
Perhaps, it will be more convenient for the log?

Re: Less info in compile log

Posted: Thu Mar 03, 2011 3:09 pm
by James McNaughton
Hi,

Unfortunately that has not worked either. Others are also getting the same error so for now it's suggested to use the rc2 compiler. Will keep you updated when a solution is found!

Cheers,

James

Re: Less info in compile log

Posted: Thu Mar 03, 2011 6:45 pm
by Yvan Fournier
Hello,

I just tried this on two slightly different builds of 2.0, and was unable to reproduce the issue.

Are all users experiencing the issue using the same build ? Juan recently sent me an e-mail about this issue, but I suspect you may be using the same "centralized" build, and in this case, I would suspect an install or Python issue. in this case, if you could send the cs_config.py file found in the "<install_prefix>/lib/python<version>/site-packages/ncs" directory fo both version 2.0-rc2 and 2.0.1, I could compare the 2 and hopefully have something to suggest based on that info.

Best regards,

  Yvan

Re: Less info in compile log

Posted: Fri Mar 04, 2011 12:39 pm
by James McNaughton
Hi,

Most users at the university use v1.4 so I'm unsure who's experiencing the problem but there's a few who've all installed their own: I installed manually to my own machine and I think Juan used an install script. Here are the files you asked for - I cannot see any immediate difference between the two though.

Thanks,

James

Re: Less info in compile log

Posted: Thu Mar 31, 2011 7:57 pm
by James McNaughton
Just thought I'd follow up that a solution was found by Juan. If anyone experiences this issue they might compare the attached file with their own in

path/lib/python2.4/site-packages/ncs/cs_exec_environment.py

Thanks again!

James

Re: Less info in compile log

Posted: Fri Apr 01, 2011 3:55 am
by Yvan Fournier
Hello,

Juan's modification seems to almost revert the behavior to the one we had before a change in revision 1661 (Oct 26 2010), which allowed us to avoid buffering the standard output.

With his patch, I assume Preprocessor log output is buffered when running "code_saturne check_mesh", though would be less of an inconvenience than not having the compile output.

Still, I did not reproduce this bug, so it may be related to a Python version. Which Python versions/Linux distributions did you encounter this issue on (on our side, I tested on versions of Python 2.4, 2.6, and 2.7.1 at least, though I would have to check the exact release versions).

Best regards,

  Yvan

Re: Less info in compile log

Posted: Fri Apr 01, 2011 11:44 am
by James McNaughton
Hi,

check_mesh's output buffered in two parts although this isn't an issue (nor noticable except for large meshes).

The python is version 2.4 for my desktop (2.4.3 43.el5) (and I think on the cluster), linux distribution is Scientific Linux (Boron), 5.3 on the desktop and 5.2 on the cluster.

Thanks,

James