We have recently come across an issue for which we need help with . We use intel C compiler and we have automated all our builds. automated scripts use the approach described here: http://software.intel.com/sites/products/documentation/doclib/stdxe/2013/composerxe/compiler/cpp-win...
This has worked fine for last 4 years without any issue.
Very recently we have started facing a problem which looks like a bug. The main issue is that when we follow this article and make a command line build the build completes but devenv.exe never exits. It appears that this bug is caused by a recent microsoft update. The same works fine if we set the project to use ms compiler in place of intel compiler. So it is difficult to prove if it is an intel or ms issue.
We have reproduced the issue on two different machines (win7 x64, win8 x64) with a one line "hello world" project in VS2008.
This used to work fine untill couple of weeks ago. Has any one else faced this issue ?
Any tips on how to debug the issue will help
Not sure what to report to MS... it works as expected with ms compiler (vcproj). Only if I switch to use Intel C Compiler it has the issue.
I'll attach the sample project.. which just a new project created using wizard. Will it help to have a remote console to a machine where the issue is reproducable
Attached is a project which shows the issue: Following waits forever even though the build is completed
C:\Users\Developer\Documents\Visual Studio 2008\Projects\helloW>devenv helloW.sln /rebuild release
Microsoft (R) Visual Studio Version 9.0.30729.1.
Copyright (C) Microsoft Corp. All rights reserved.
1>------ Rebuild All started: Project: helloW, Configuration: Release Win32 ----
1>Deleting intermediate files and output files for project 'helloW', configurati
1>Compiling with Intel(R) C++ 11.1.065 [IA-32]... (Intel C++ Environment)
1>Linking... (Intel C++ Environment)
1>xilink: executing 'link'
1>Embedding manifest... (Microsoft VC++ Environment)
1>Build log was saved at "file://C:\Users\Developer\Documents\Visual Studio 2008
1>helloW - 0 error(s), 0 warning(s)
========== Rebuild All: 1 succeeded, 0 failed, 0 skipped ==========
Now open the project and change it to use Visual C++ compiler and the same command line works fine... it exits as expected
BTW, this issue can not be reproduced on another win7 x64 which has not taken any windows updates since december (last 6 months). It seems like even a vanilla windows 8 machine shows this issue.
I am now trying to install intel c++ studio 2013 update 3 to see if that works any better on windows 8. will report back once I have the result
This seems to work fine with intel c++ studio 2013 update3 . devenv.exe exits right after the build is complete...
It will be a fairly costly work arround for us to migrate all projects to studio 2013. I wonder if there is a way to get a patch on ICL 11.0.65 ?
How did you launch the command window that you use to run your script?
The reason I ask is in windows a command shell has a property to enable/disable close on exit. Perhaps this is causing the issue.
command prompt is the regular "Visual Studio 2008 Command Prompt"and as I noted above thats not an issue:
it works in compiler 13.. does not work in compiler 11. it works on machines with latest windows updates not yet applied.
I'll have to upgrade almost 10 different projects. In most cases testing is automated so I am hoping we wont have late surprizes.
As a hack work around, in your script files where you have:
devenv helloW.sln /rebuild release
start devenv helloW.sln /rebuild release
If you need to wait until the compilation is complete, then to your solution add an after build step that creates a file (DONE.TXT)
start devenv helloW.sln /rebuild release
if not exist done.txt goto wait_release
Some hack like that.
I'm wondering if "devenv /setup" would help. did you try?
Sergey is right that we no longer support the 11.x version. Please upgrade to the newer compiler. Or use Jim's work-around.
Could you try building your project with Intel IDE + MSVC++ compiler? To do that open your solution in VS, open project properties for helloW and set General-->Compiler and Environment Settings property to "Microsoft Visual C++ Compiler (cl.exe)" for Release configuration. Then run your devenv command from the command prompt. What is the result? This check is to find what component (Intel compiler or IDE) has a bug. If this scenario works fine then the problem is in the compiler.
I couldn't reproduce the issue with IDE 11.1. Unfortunately I had to use 12.1 compiler since 11.1 is unavailable.
I have already documented that this works fine if I switch the project to MSVC compiler.
There are no issues in using Intel Compiler via IDE GUI. the reported issue only shows up during command line build... and it works fine on another machine on which windows updates have been disabled for last 6 months.
While I agree to Sergey's suggestion... It is the only build server left where we are able to do automated builds. I'll make a clone of that server to try one-patch-at-a-time approach.
Thanks for all the advice