Skip to content
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

Fortran Modules defined and used in one file : dependency cycle #1888

Open
bdbaddog opened this issue Jan 2, 2018 · 0 comments
Open

Fortran Modules defined and used in one file : dependency cycle #1888

bdbaddog opened this issue Jan 2, 2018 · 0 comments
Labels
bug Fortran Fortran support issues
Milestone

Comments

@bdbaddog
Copy link
Contributor

bdbaddog commented Jan 2, 2018

This issue was originally created at: 2008-01-17 04:35:46.
This issue was reported by: mhavel.
mhavel said at 2008-01-17 04:35:46

Scons do not succeed to compile a file which do this :

  • define a module
  • define another module which include a file (which contain a subroutine using the previous module). The fact that this module include a file using previous module is crucial !
  • use both module inside the main program It raises a "dependency cycle" of kind "mod_name.mod -> mod_name.mod".

Of course the compiler launched directly from a terminal compile without any problem.

I attached a test program to reproduce error.
I don't see how to fix the problem, except putting module definition in separate file and compile them along with the main program.

mhavel said at 2008-01-17 04:37:01

Created an attachment (id=292)
main program + module definition

mhavel said at 2008-01-17 04:37:43

Created an attachment (id=293)
file included in the module definition and using the other module

gregnoel said at 2008-04-15 00:20:47

Circular dependencies will need the batch framework from issue 1086. Revisit
when that issue is resolved.

gregnoel said at 2008-12-26 13:20:16

Adjust triage of issues.

stevenknight said at 2009-01-09 09:39:02

Issue 1086 (batch build action support) has been added. Changing the target milestone to -unspecified- so the bug party can discuss this again to see if we want to move it up from 3.x.

gregnoel said at 2009-01-23 01:23:24

Bug party triage. Don't try to do everything at once; Greg to create dependent issues to fix problem by stepwise refinement.

David, your name came up as a potential contributor to this issue as it's sorta related to FORTRAN. See the IRC log[1] for the discussion of this issue; it has some more information on the actual problem to be solved. I'm hoping you can do the Tool integration while I do the mathematical heavy lifting.

[1] http://scons.org/wiki/BugParty/IrcLog2009-01-21

The bug party put this in 3.x, but it's more of an on-going project that shouldn't extend beyond 3.x, so I unilaterally marked it as 'anytime'.

garyo said at 2012-09-01 10:04:01

de-assigning all tickets assigned to Greg Noel (no longer working on SCons)

dirkbaechle said at 2014-05-18 02:40:35

reassigning issue

mhavel attached test.f at 2008-01-17 04:37:01.

main program + module definition

mhavel attached test_inc.f at 2008-01-17 04:37:43.

file included in the module definition and using the other module

gregnoel said this issue depends on #1086 at 2008-04-15 00:20:47.

@bdbaddog bdbaddog added this to the anytime milestone Jan 2, 2018
@bdbaddog bdbaddog added Fortran Fortran support issues and removed P4 Version: 0.97 labels May 23, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Fortran Fortran support issues
Projects
None yet
Development

No branches or pull requests

1 participant