Quantcast
Channel: Intel Developer Zone Articles
Viewing all articles
Browse latest Browse all 3384

Fail to Build Visual Studio 2013* project Using msbuild and Intel® C++ Compiler from Command Window

$
0
0

Reference Number : DPD200365407

Affected Product Version :

  • Intel® Parallel Composer XE 2015 for C++ Windows (all editions) RTM and update 1
  • Intel® C++ Composer XE 2013 SP1 for Windows* (RTM, update 1 to update 4)

Operating System : Windows

Problem Description :

When building a Visual Studio 2013 project with Intel C++ Compiler through msbuild from a command window, the following error might occur:
    error MSB6003: The specified task executable "icl.exe" could not be run.

This issue only happens when all the following conditions are met:

  • building Visual Studio 2013 project
  • building x64 configurations
  • using msbuild
  • building from a command window

Resolution Status :

This issue has been root caused and is being worked on. When the fix is available, this article will be updated with the detail product information.
Please use the work around below for now:

  • Locating the "compilervars_arch.bat":
    • For 15.0: the file is at [icl15-install-root]\Composer XE 2015\bin\compilervars_arch.bat" orC:\Program Files (x86)\Intel\Composer XE 2015\bin\compilervars_arch.bat" with default installation
    • For 14.0: the file is at [icl14-install-root]\Composer XE 2013 SP1\bin\compilervars_arch.bat" orC:\Program Files (x86)\Intel\Composer XE 2013 SP1\bin\compilervars_arch.bat" with default installation
  • Find the section below and add the line #7:
        ::VS2013
        if /i "%TARGET_VS%"=="vs2013" (
            if defined VS120COMNTOOLS (
                if exist "%VS120COMNTOOLS%..\IDE\devenv.exe" (
                    if exist "%VS120COMNTOOLS%..\..\VC\vcvarsall.bat" (
                        set MSVS_VAR_SCRIPT="%VS120COMNTOOLS%..\..\VC\vcvarsall.bat"
                        if /i "%TARGET_ARCH%"=="intel64" set TARGET_VS_ARCH=x86_amd64
                        goto Calls
                    )
                )
                if exist "%VS120COMNTOOLS%..\IDE\WDExpress.exe" (
                    if exist "%VS120COMNTOOLS%..\..\VC\vcvarsall.bat" (
                        set MSVS_VAR_SCRIPT="%VS120COMNTOOLS%..\..\VC\vcvarsall.bat"
                        if /i "%TARGET_ARCH%"=="intel64" set TARGET_VS_ARCH=x86_amd64
                        goto Calls
                    )
                )
            )
            .....
        )
  • Open the Intel®-64 Build Environment from [Start] menu
  • Run msbuild command:
    msbuild.exe vs2013_test.sln /p:Configuration=Release|x64;PlatformToolset="Intel C++ Compiler XE 15.0"

Viewing all articles
Browse latest Browse all 3384

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>