- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Visual Fortran Composer XE 2011 seems to have a Visual Studio 2010 integration problem when compiling multiple Fortran static library projects.
I have attached a zip package with one VS2010 solution with two VFortran projects which I hope can reproduce this problem.
To summarize, the solution fails to compile at times, with the IDE reporting only the message "Error: The operation could not be completed".
The error does not occur all the time. To recreate, one must keep compiling multiple times until the error shows up. Press Ctrl-Shift-B repeatedly until the problem occurs.
Some observations:
1. The problem does not occur with only a single Fortran project in the solution...multiple projects (minimum two) must be present to see the issue.
2. This error does not always occur after the same number of (repeated) builds.
3. When it does occur, the Fortran project must be unloaded and then reloaded from VStudio, or VStudio itself restarted.
4. When the problem occurs, users cannot even clean the project files.
5. Only one of the Fortran projects fails, not both. In the attachment two projects are present but only one will fail.
6. This problem did not occur with the use of VStudio 2005. I had been using VS2005 for a number of months until recently moving to VS2010, and the error never occured.
7. This problem does not occur with multiple C++ projects alone, only multiple Fortran projects.
8. My OS is WinXP Pro x64, for what it's worth.
Is there any solution or workaround available for this problem?
Link Copied
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
I had already set the number of parallel builds in VS2010 to 1.
I also should mention that the repeated builds was the only way I could succesfully reproduce the problem. In reality, the project I am involved with includes multiple C++ projects and multiple Fortran projects, and the error message seems to occur randomly (although only when multiple Fortran projects are present, which suggests a glitch in the VS2010 inetgration, especially because this did not occur prior, when we usedVS2005 for the same project).
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
My usual recommendation is to keep the directories distinct. If you want, add a post-build step to copy the output file(s) to where you want. You can also specify the Output File to be a common location.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
The problem occurs with the following steps. Opening the .sln file with dbl-click. Press Shift-Ctrl-B in rapid succession until it shows. The last time I did this it took approx 10 repeated builds to reproduce. In that case it was Proj 2 which failed. I know this because if I try to clean each project individually, only proj 1 cleans OK. Proj 2 gives the same (uninformative) message. The build log for proj 2 is (although the time stamp shows me that the build log didn't update, so I think it is from the last successful build):
Compiling with Intel Visual Fortran Compiler XE 12.0.1.127 [IA-32]...
ifort /nologo /debug:full /arch:IA32 /Qdiag-disable:8290,8291,8293 /debug-parameters:all /warn:unused /Qsave /fpconstant /iface:cvf /module:"Win32\Debug/" /object:"Win32\Debug/" /Fd"Win32\Debug\vc100.pdb" /traceback /check:bounds /libs:dll /threads /dbglibs /c /extfor:f /Qvc10 /Qlocation,link,"C:\Program Files (x86)\Microsoft Visual Studio 10.0\VC\\bin" "D:\Documents and Settings\e002427\My Documents\TestProj\TestProj2\testproj2.f"
Creating library...
Lib /OUT:"Win32\Debug/TestProj2.lib" /NOLOGO "Win32\Debug/testproj2.obj"
xilib: executing 'lib'
TestProj2 - 0 error(s), 0 warning(s)
One additional item: I had upgraded from VS2005 to VS2010 by using the "Modify" function from the IVF installer and then adding the VS2010 integration in addition to the VS2005 integration. Would totally uninstalling the IVF Composer XE package and then reinstalling it make any difference? It seemed like the "Modify" worked fine (although I was prompted to "modify" from the original media)?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Yes, the attached log reflects the last successful build. The error message occurs AFTER a successful build, but before another build.
So, say I modify only one project and press build. The project I modified will build (successfully), but the "Error: The operation could not be completed" message will appear, referring to one of the OTHER projects (which I have not touched and should be up-to-date). I know that it is referring to an up-to-date project because when choosing the "Project Only - Clean" option on each library project in succession, eventually the message occurs on an up-to-date project (and that project cannot clean). After isolating which project causes the message to appear, I have looked at the time-stamps of the .obj files in the project and they are the time stamps of the last successful build, as is the build log. So there is no build log of the project which is going to have anything in it other than the successful build information.
The error message(s) will multiply on each successive press of the build button. The next time there may two messages, then maybe three or four, until eventually all Fortran projects (except one) are reported as failed. So, in the solution I am building now, I have 23 projects. Eight are C++ projects (some of which have dependencies on any of 14 Fortran static libraries). The other is a C# test project, which is somewhat independent from the others (no dependencies). After a while 13 of the 14 Fortran projects will be reported as "failed".
Each time I run the main program ("Start Debugging"), the pop-up window appears showing me that these 13 projects are out-of-date. I end up having to ignore this pop-up, and the program runs OK. This problem is more than a nuisance. When you have multiple projects in a solution, it becomes difficult to know whether there is a real problem or not when several of the projects are reported as failed or not up-to-date because of this "Error: The operation could not be completed" message.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Installed Version: Professional
Microsoft Office Developer Tools 01018-532-2002181-70728Microsoft Office Developer Tools
Microsoft Visual Basic 2010 01018-532-2002181-70728Microsoft Visual Basic 2010
Microsoft Visual C# 2010 01018-532-2002181-70728Microsoft Visual C# 2010
Microsoft Visual C++ 2010 01018-532-2002181-70728Microsoft Visual C++ 2010
Microsoft Visual F# 2010 01018-532-2002181-70728Microsoft Visual F# 2010
Microsoft Visual Studio 2010 Team Explorer 01018-532-2002181-70728Microsoft Visual Studio 2010 Team Explorer
Microsoft Visual Web Developer 2010 01018-532-2002181-70728Microsoft Visual Web Developer 2010
Crystal Reports Templates for Microsoft Visual Studio 2010 Crystal Reports Templates for Microsoft Visual Studio 2010
Intel Visual Fortran Package ID: w_fcompxe_2011.3.175Intel Visual Fortran Composer XE 2011 Integration for Microsoft Visual Studio* 2010, 12.0.3470.2010, Copyright (C) 2002-2011 Intel Corporation* Other names and brands may be claimed as the property of others.
Microsoft Visual Studio 2010 Professional - ENU Service Pack 1 (KB983509) KB983509This service pack is for Microsoft Visual Studio 2010 Professional - ENU.If you later install a more recent service pack, this service pack will be uninstalled automatically.For more information, visit http://support.microsoft.com/kb/983509.
Microsoft Visual Studio 2010 SharePoint Developer Tools 10.0.40219Microsoft Visual Studio 2010 SharePoint Developer Tools
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page