Silverfrost Forums

Welcome to our forums

Additional output from compiler

24 Jan 2017 11:37 #18750

During the compilation of the 300+ files that make up my project, having the name of the file being compiled would be helpful. It's no problem when there is an error as the MAKE will quit, and the file name shows up in that case anyway. But when there are warnings, it can be difficult to track down which file contains the problem. If there are no errors, I really don't care about the name of the file all that much.

Or is there a compiler option that I am missing?

Thanks, Bill

25 Jan 2017 8:03 #18751

There is currently no option that I can think of. I guess that you could get your makefile to echo the file name before compiling each file. Let me know how you get on. It might be a simple matter to add a new command line option.

25 Jan 2017 10:17 #18755

I was hoping to avoid changing the makefile, but, alas, it will be done!

Thanks, Paul.

26 Jan 2017 1:09 #18757

Paul,

An option that echoes the command line would be a help.

This could then be extended to echo all compiler options that have been selected, both in ftn95.cfg and the command line. This would exclude echoing compiler options that have not been selected and remain default.

This output would help when reading redirected compiler output, such as > ftn95.tce and also identify when some compiler options have been taken from ftn95.cfg files in the path. This can identify unexpected problems that I do get from time to time, especially when returning to projects that I am not actively working on.

ftn95 ... /echo could be a good

John

26 Jan 2017 7:14 #18763

John

I will add it to the wish-list.

In the meantime, as you will probably know, /list provides an output file that includes a list of the command line options currently in place.

24 Mar 2017 12:20 #19244

Yes, adding /echo_options will tell you useful info when you compile and redirect warnings to file

FTN95 filename.f95 /blah /bla2 /blah224557 /sdffgjjkjjh /echo_options >warnings

25 Mar 2017 1:08 #19252

When a rebuild involves 100's of files an indication of where you are can help a lot. Having an option to echo the file name and compilation options would help for any redirection log. I typically use .bat files for rebuild and having this information in the log file would be very useful. It would also be good if this, plus the summary report of each routine could be optionally included in the PLATO output window, if it did not conflict with the linkage of error messages to the source file.

11 Apr 2017 8:04 #19382

A new option /ECHO_OPTIONS has been added for the next release of FTN95.

Please login to reply.