Community
cancel
Showing results for 
Search instead for 
Did you mean: 
Steve_K_1
Beginner
165 Views

MSBUILD fails when using XE 2015 Composer

After installation of Composer XE 2015, build with msbuild.exe on command prompt (Intel64 Visual Studio 2013 mode) always fails. It seems msbuild.exe platform toolset configuration for new XE is wrong. (icl.exe location)

Can anyone suggest workaround?

my msbuild arguments:

msbuild.exe msbuild.sln /p:Configuration=Debug;PlatformToolset="Intel C++ Compiler XE 15.0"

msbuild.sln is simple 'Hello World' project. (x64)

Build Log:

Microsoft (R) Build Engine version 12.0.30723.0
[Microsoft .NET Framework, version 4.0.30319.34014]
Copyright (C) Microsoft Corporation. All rights reserved.

Building the projects in this solution one at a time. To enable parallel build, please add the "/m" switch.
Build started 9/20/2014 1:39:53 AM.
Project "C:\ICPP15\VS2013.U3\msbuild\msbuild.sln" on node 1 (default targets).
ValidateSolutionConfiguration:
  Building solution configuration "Debug|X64".
Project "C:\ICPP15\VS2013.U3\msbuild\msbuild.sln" (1) is building "C:\ICPP15\VS2013.U3\msbuild\msbuild_example.vcxproj" (2) on node 1 (default targets).
InitializeBuildStatus:
  Touching "x64\Debug\msbuild_example.tlog\unsuccessfulbuild".
MessageBuildingWithCompiler:
  Building with Intel(R) C++ Compiler XE 15.0
ClCompile:
  ***** ClCompile (x64 - Intel C++)
  C:\devTools\Intel\Composer XE 2015\bin\Intel64\icl.exe /c /Qvc12 /Qlocation,link,"C:\devTools\VS2013\VC\bin\amd64" /Zi /nologo /W3 /Od /Qftz- /D __INTEL_COMPILER=1500 /D WIN32 /D _DEBUG /D _CONSOLE /D _LIB /D _UNICODE /D UNICODE /EHsc /RTC1 /MDd /GS /Zc:wchar_t /Zc:forScope /Fo"x64\Debug\\" /Fd"x64\Debug\vc120.pdb" /TP main.cpp
C:\Program Files (x86)\MSBuild\Microsoft.Cpp\v4.0\V120\Platforms\x64\PlatformToolsets\Intel C++ Compiler XE 15.0\Toolset.targets(357,5): error MSB6003: The specified task executable "icl.exe" could not be run. The system cannot find the file specified. (Exception from HRESULT: 0x80070002) 
Done Building Project "C:\ICPP15\VS2013.U3\msbuild\msbuild_example.vcxproj" (default targets) -- FAILED.
Done Building Project "C:\ICPP15\VS2013.U3\msbuild\msbuild.sln" (default targets) -- FAILED.

Build FAILED.

"C:\ICPP15\VS2013.U3\msbuild\msbuild.sln" (default target) (1) ->
"C:\ICPP15\VS2013.U3\msbuild\msbuild_example.vcxproj" (default target) (2) ->
(ClCompile target) -> 
  C:\Program Files (x86)\MSBuild\Microsoft.Cpp\v4.0\V120\Platforms\x64\PlatformToolsets\Intel C++ Compiler XE 15.0\Toolset.targets(357,5): error MSB6003: The specified task executable "icl.exe" could not be run. The system cannot find the file specified. (Exception from HRESULT: 0x80070002) 

    0 Warning(s)
    1 Error(s)

Time Elapsed 00:00:00.48

 

 

* Windows 8.1 Enterprise N / Windows Server 2012 R2

* ICPP 15.0

* Visual Studio 2013 Update 3

 

0 Kudos
7 Replies
Marián__VooDooMan__M
New Contributor II
165 Views

Greetings,

I have similar problem, and ICC 15 broke ICC 14 as well.

here is my build log:

Intel(R) Parallel Studio XE 2013 SP1
Copyright (C) 1985-2014 Intel Corporation. All rights reserved.
Intel(R) Composer XE 2013 SP1 Update 3 (package 202)

C:\Program Files (x86)\Intel\MPI\5.0.1.037\\em64t\bin;C:\Program Files (x86)\Intel\Composer XE 2013 SP1\bin\intel64;C:\Program Files (x86)\Intel\Composer XE 2013 SP1\redist\intel64\compiler;C:\Program Files (x86)\Microsoft Visual Studio 12.0\Common7\IDE\CommonExtensions\Microsoft\TestWindow;C:\Program Files (x86)\MSBuild\12.0\bin\amd64;C:\Program Files (x86)\Microsoft Visual Studio 12.0\VC\BIN\amd64;C:\Windows\Microsoft.NET\Framework64\v4.0.30319;C:\Program Files (x86)\Microsoft Visual Studio 12.0\VC\VCPackages;C:\Program Files (x86)\Microsoft Visual Studio 12.0\Common7\IDE;C:\Program Files (x86)\Microsoft Visual Studio 12.0\Common7\Tools;C:\Program Files (x86)\HTML Help Workshop;C:\Program Files (x86)\Microsoft Visual Studio 12.0\Team Tools\Performance Tools\x64;C:\Program Files (x86)\Microsoft Visual Studio 12.0\Team Tools\Performance Tools;C:\Program Files (x86)\Windows Kits\8.1\bin\x64;C:\Program Files (x86)\Windows Kits\8.1\bin\x86;C:\Program Files (x86)\Microsoft SDKs\Windows\v8.1A\bin\NETFX 4.5.1 Tools\x64\;C:\Program Files (x86)\Intel\Composer XE 2013 SP1\ipp\..\redist\intel64\ipp;C:\Program Files (x86)\Intel\Composer XE 2013 SP1\ipp\..\redist\intel64\compiler;C:\Program Files (x86)\Intel\Composer XE 2013 SP1\redist\intel64\mkl;C:\Program Files (x86)\Intel\Composer XE 2013 SP1\redist\intel64\compiler;C:\Program Files (x86)\Intel\Composer XE 2013 SP1\tbb\bin\..\..\redist\intel64\tbb\vc12;C:\Windows\system32;C:\Windows;C:\Windows\System32\Wbem;C:\Windows\System32\WindowsPowerShell\v1.0\;C:\Windows\system32;C:\Windows;C:\Windows\System32\Wbem;C:\Windows\System32\WindowsPowerShell\v1.0\;C:\Program Files (x86)\Intel\Composer XE 2013 SP1\redist\intel64\mpirt;
Microsoft (R) Build Engine version 12.0.21005.1
[Microsoft .NET Framework, version 4.0.30319.34014]
Copyright (C) Microsoft Corporation. All rights reserved.

Building the projects in this solution one at a time. To enable parallel build, please add the "/m" switch.
Build started 2014-09-27 14:33:42.
Project "c:\Users\vdmn\Documents\develop\Recorder7.1\tmp\22\fftw-2\win32\fftwl.sln" on node 1 (Rebuild target(s)).
ValidateSolutionConfiguration:
  Building solution configuration "ReleasePrecise|X64".
Project "c:\Users\vdmn\Documents\develop\Recorder7.1\tmp\22\fftw-2\win32\fftwl.sln" (1) is building "c:\Users\vdmn\Documents\develop\Recorder7.1\tmp\22\fftw-2\win32\libfftwl.vcxproj" (2) on node 1 (Rebuild target(s)).
_PrepareForClean:
  Deleting file "x64\ReleasePrecise_l\libfftwl.tlog\libfftwl.lastbuildstate".
InitializeBuildStatus:
  Touching "x64\ReleasePrecise_l\libfftwl.tlog\unsuccessfulbuild".
MessageBuildingWithCompiler:
  Building with Intel(R) C++ Compiler XE 14.0
ClCompile:
  ***** ClCompile (x64 - Intel C++)
  C:\Program Files (x86)\Intel\Composer XE 2013 SP1\bin\Intel64\icl.exe /c /Qvc12 /Qlocation,link,"C:\Program Files (x86)\Microsoft Visual Studio 12.0\VC\bin\amd64" /I"..\simd-support\\" /I..\ /I..\api /I..\dft /I..\cell /I..\cell\spu /I..\dft\scalar /I..\dft\scalar\codelets /I..\dft\simd /I..\dft\simd\codelets /I..\kernel /I..\rdft /I..\rdft\scalar /I..\rdft\scalar\r2cb /I..\rdft\scalar\r2cf /I..\rdft\scalar\r2r /I..\rdft\simd\ /I..\rdft\simd\codelets /I..\reodft /I..\simd /I..\simd\nonportable /I..\support /Zi /nologo /W3 /MP /debug:expr-source-pos /O3 /Ob2 /Oi /Ot /Qipo /Qftz /Qopt-matmul- /Quse-intel-optimized-headers /D __INTEL_COMPILER=1400 /D _IPP_SEQUENTIAL_DYNAMIC /D "VDM_PREC=\"prec_ldouble.h\"" /D _USRDLL /D _SECURE_SCL=0 /D _HAS_ITERATOR_DEBUGGING=0 /D "DLL_EXPORT=__declspec(dllexport)" /D WIN32 /D NDEBUG /D _WINDLL /D _UNICODE /D UNICODE /EHsc /MD /GS- /fp:precise /QxHost /Zc:wchar_t /Zc:forScope /GR- /Qstd=c99 /Fo"x64\ReleasePrecise_l\api\\" /Fd"x64\ReleasePrecise_l\vc120.pdb" /TC ..\api\apiplan.c ..\api\configure.c "..\api\execute-dft-c2r.c" "..\api\execute-dft-r2c.c" "..\api\execute-dft.c" "..\api\execute-r2r.c" "..\api\execute-split-dft-c2r.c" "..\api\execute-split-dft-r2c.c" "..\api\execute-split-dft.c" ..\api\execute.c "..\api\export-wisdom-to-file.c" "..\api\export-wisdom-to-string.c" "..\api\export-wisdom.c" ..\api\f77api.c ..\api\flops.c "..\api\forget-wisdom.c" "..\api\import-system-wisdom.c" "..\api\import-wisdom-from-file.c" "..\api\import-wisdom-from-string.c" "..\api\import-wisdom.c" ..\api\malloc.c "..\api\map-r2r-kind.c" ..\api\mapflags.c "..\api\mkprinter-file.c" "..\api\mktensor-iodims.c" "..\api\mktensor-iodims64.c" "..\api\mktensor-rowmajor.c" "..\api\plan-dft-1d.c" "..\api\plan-dft-2d.c" "..\api\plan-dft-3d.c" "..\api\plan-dft-c2r-1d.c" "..\api\plan-dft-c2r-2d.c" "..\api\plan-dft-c2r-3d.c" "..\api\plan-dft-c2r.c" "..\api\plan-dft-r2c-1d.c" "..\api\plan-dft-r2c-2d.c" "..\api\plan-dft-r2c-3d.c" "..\api\plan-dft-r2c.c" "..\api\plan-dft.c" "..\api\plan-guru-dft-c2r.c" "..\api\plan-guru-dft-r2c.c" "..\api\plan-guru-dft.c" "..\api\plan-guru-r2r.c" "..\api\plan-guru-split-dft-c2r.c" "..\api\plan-guru-split-dft-r2c.c" "..\api\plan-guru-split-dft.c" "..\api\plan-guru64-dft-c2r.c" "..\api\plan-guru64-dft-r2c.c" "..\api\plan-guru64-dft.c" "..\api\plan-guru64-r2r.c" "..\api\plan-guru64-split-dft-c2r.c" "..\api\plan-guru64-split-dft-r2c.c" "..\api\plan-guru64-split-dft.c" "..\api\plan-many-dft-c2r.c" "..\api\plan-many-dft-r2c.c" "..\api\plan-many-dft.c" "..\api\plan-many-r2r.c" "..\api\plan-r2r-1d.c" "..\api\plan-r2r-2d.c" "..\api\plan-r2r-3d.c" "..\api\plan-r2r.c" "..\api\print-plan.c" "..\api\rdft2-pad.c" "..\api\the-planner.c" ..\api\version.c /Gm /Qlong_double /Qopt-class-analysis /Qopt-mem-bandwidth2 /Qopt-streaming-stores:auto /Qno-alias-args /Qfast_transcendentals /Qopt-prefetch
C:\Program Files (x86)\MSBuild\Microsoft.Cpp\v4.0\V120\Platforms\x64\PlatformToolsets\Intel C++ Compiler XE 14.0\Toolset.targets(330,5): error MSB6003: The specified task executable "icl.exe" could not be run. The system cannot find the file specified. (Exception from HRESULT: 0x80070002) 
Done Building Project "c:\Users\vdmn\Documents\develop\Recorder7.1\tmp\22\fftw-2\win32\libfftwl.vcxproj" (Rebuild target(s)) -- FAILED.
Done Building Project "c:\Users\vdmn\Documents\develop\Recorder7.1\tmp\22\fftw-2\win32\fftwl.sln" (Rebuild target(s)) -- FAILED.

Build FAILED.

"c:\Users\vdmn\Documents\develop\Recorder7.1\tmp\22\fftw-2\win32\fftwl.sln" (Rebuild target) (1) ->
"c:\Users\vdmn\Documents\develop\Recorder7.1\tmp\22\fftw-2\win32\libfftwl.vcxproj" (Rebuild target) (2) ->
(ClCompile target) -> 
  C:\Program Files (x86)\MSBuild\Microsoft.Cpp\v4.0\V120\Platforms\x64\PlatformToolsets\Intel C++ Compiler XE 14.0\Toolset.targets(330,5): error MSB6003: The specified task executable "icl.exe" could not be run. The system cannot find the file specified. (Exception from HRESULT: 0x80070002) 

    0 Warning(s)
    1 Error(s)

Time Elapsed 00:00:00.60

TIA!

Marián__VooDooMan__M
New Contributor II
165 Views

I forgot to mention that my build command from cmd.exe was:

call "C:\Program Files (x86)\Intel\Composer XE 2013 SP1\bin\iclvars.bat" intel64 vs2013
call msbuild fftwl.sln /t:Rebuild /p:Configuration=ReleasePrecise

 

Bernard
Black Belt
165 Views

>>>C:\Program Files (x86)\MSBuild\Microsoft.Cpp\v4.0\V120\Platforms\x64\PlatformToolsets\Intel C++ Compiler XE 14.0\Toolset.targets(330,5): error MSB6003: The specified task executable "icl.exe" could not be run. The system cannot find the file specified. (Exception from HRESULT: 0x80070002) >>>

Do you have AV real time protection active on your machine?

Marian_M_
Beginner
165 Views

I don't think it has something to do with AV, but as you are asking, yes I do. Though I know AV's can cause strange problems when compiler or something is generating machine code.

I had problems with "MSBuild" directory before, so I had set-up daily backup of this directory like a year ago, and now recovered it from backup, and everything is working well now.

Bernard
Black Belt
165 Views

It could be also a failure of FindFirstFile function when the improper parameter is passed.

JenniferJ
Moderator
165 Views

We've found the rootcause of this issue, and it's been worked on right now.

Please use the workaround provided by this article. The workaround is easy and simple.

Let me know if it works for you.

thanks,

Jennifer

Richard_A_Intel
Employee
165 Views

This issue have been fixed and is now available in Intel® Parallel Studio XE 2015 Update 2.

Thanks,
Richard
Reply