Intel® Fortran Compiler
Build applications that can scale for the future with optimized code designed for Intel® Xeon® and compatible processors.

unnecessary builds

tsimm3
New Contributor I
1,692 Views
I'm using VS2010 with Fortran Compiler XE 12. When I press F5 to begin a debug session the system completely rebuilds my project, even if there has not been any change to the source files. This just started yesterday. Previously it would only rebuild when necessary. I've looked for incorrect time stamps but can't find anything wrong.
0 Kudos
15 Replies
Steven_L_Intel1
Employee
1,692 Views
Close the solution. Try deleting the .u2d files from the project folder (they are hidden files so you may need to enable viewing hidden files in your Explorer view.)
0 Kudos
tsimm3
New Contributor I
1,692 Views
There was one .u2d file. I closed the solution, deleted the .u2d file, reopened the project and the problem remains. In addition to the problem I described, when I select Build the system always does a complete rebuild of all files even when nothing has changed. If I clean the project and then build, it can't find my .mod files, but if I build a second time it finds them. I recently changed time zones on my laptop while on a trip, but changed back a week ago.All of these problems started occurring yesterday.
0 Kudos
jsmt
Beginner
1,692 Views
I think the compiler misses something in dependencies between your modules.
0 Kudos
tsimm3
New Contributor I
1,692 Views
Yes, but I don't know how that would have changed. I used to know how to update dependencies, but I can't find that feature now.
0 Kudos
Steven_L_Intel1
Employee
1,692 Views
Ah, the time zone change probably did it. Does a Build > Clean help? As a last resort, remove all the source files from the project and then re-add them. There is no tool for updating the dependencies.
0 Kudos
jsmt
Beginner
1,692 Views
Ah, the time zone change probably did it. Does a Build > Clean help? As a last resort, remove all the source files from the project and then re-add them. There is no tool for updating the dependencies.

Maybe Intel should supply such tool in the next release?
0 Kudos
Steven_L_Intel1
Employee
1,692 Views
Unfortunately, we can't - this information is maintained by Microsoft code. I have seen it myself and it is frustrating to deal with.
0 Kudos
tsimm3
New Contributor I
1,692 Views
Clean doesn't help. Neither does removing the source files and adding them again. After doing that it took three builds to get all the files compiled. Then it was back to the point where it requires a complete rebuild for every debug session. I wonder if I should uninstall VS2010 and/or the Fortran compiler and reinstall.
0 Kudos
Steven_L_Intel1
Employee
1,692 Views
Reinstalling won't help. What happens if you create a new project and add the sources to it?
0 Kudos
tsimm3
New Contributor I
1,692 Views
I tried to duplicate the problem with a different but similar project and I couldn't, so I think it's something in my project files or settings.
0 Kudos
tsimm3
New Contributor I
1,692 Views
I created a new project and added my source files to it. The same problems occur.
0 Kudos
Steven_L_Intel1
Employee
1,692 Views
Are your sources or project on a network share? We've seen sometimes that this can trigger such problems.
0 Kudos
tsimm3
New Contributor I
1,692 Views
No, they are not.
0 Kudos
IanH
Honored Contributor III
1,692 Views
Quoting tsimm
Clean doesn't help. Neither does removing the source files and adding them again. After doing that it took three builds to get all the files compiled....

Go looking for circular module dependencies - module A depends on B depends on A; and circular file dependencies - module in file A depends on module in file B depends on module in file A.

0 Kudos
tsimm3
New Contributor I
1,692 Views
That seems to be the problem. Thanks to everyone who responded.
0 Kudos
Reply