Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
Bug 349382 - Photran managed compilation does not generate .mod files
Summary: Photran managed compilation does not generate .mod files
Status: CLOSED DUPLICATE of bug 365652
Alias: None
Product: PTP
Classification: Tools
Component: Photran.Managed Make (show other bugs)
Version: unspecified   Edit
Hardware: PC Windows XP
: P3 major (vote)
Target Milestone: ---   Edit
Assignee: Photran Inbox CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-06-14 18:27 EDT by mastermemorex CLA
Modified: 2012-03-01 11:12 EST (History)
4 users (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description mastermemorex CLA 2011-06-14 18:27:42 EDT
Build Identifier: I20110603-0909

I have just dowloaded Eclipse, Photran configured with Cygwin, everything should be ok. Start a new project and create two files
3DDriver_newc.f90
      PROGRAM Main
      USE size
      END PROGRAM Driver_3D

size.f90
      MODULE size
         SAVE
         INTEGER, PARAMETER :: neq = 5            ! number of equations 
!...
      END MODULE size

I receive this error:
../3DDriver_newc.f90:20.14: Fatal Error: Can't open module file 'size.mod' for reading at (1): No such file or directory	3DDriver_newc.f90

It seems that the .mod files are not generated

Reproducible: Always

Steps to Reproduce:
1. Create a new Photran project under Windows XP, cygwin g95, etc...
2. Create a file with a program
3. Create another file with a module
4. Compile
Comment 1 mastermemorex CLA 2011-06-24 19:56:20 EDT
I have just playing around and figure out what could possible go wrong. An by changing the name 3DDriver_newc.f90 to z3DDriver_newc.f90 it compiles. It seems that it tries to compile the files by alphabetical order.
Comment 2 Missing name CLA 2011-10-09 13:10:44 EDT
This bug translates into "photran's managed make is broken". Would be helpful to clarify docs until it is fixed - I wasted a lot of time trying to figure out what I was doing wrong getting a multi-file multi-module project to build since the home page and docs both mention managed make support.

This link may be helpful for making a working implementation: http://code.google.com/p/foraytool/

[AFAIK this is the only major remaining flaw in photran than makes it less good than Visual Fortran (apart from set up ease-of-use issues)]
Comment 3 Jeffrey Overbey CLA 2012-03-01 11:12:23 EST
Hi,

Thanks for the bug report.  The underlying cause of this was covered in Bug 365652, which was fixed in the recent 7.0.5 release.  Please try that version and see if it works for you...

*** This bug has been marked as a duplicate of bug 365652 ***