Intel® C++ Compiler
Community support and assistance for creating C++ code that runs on platforms based on Intel® processors.
7932 Discussions

New version Intel OneAPI 2022.3 failing to build on VS 2022 (OneAPI 2022.2 worked fine)

AndrewC
New Contributor III
758 Views

I upgraded to OneAPI 2022.3 from the previous version, and now my VS 2022 build fails with the errors below. To be clear, no other changes were made to the development environment.
After I uninstalled 2022.3, then reactivated OneAPI 2022.2 , the project built fine.
Simple projects also build fine. This is very complex project with many hundreds of files.

 

 

34>C:\Program Files\Microsoft Visual Studio\2022\Professional\MSBuild\Microsoft\VC\v170\Platforms\x64\PlatformToolsets\Intel C++ Compiler 2022\Toolset.targets(344,5): error MSB6003: The specified task executable "icx.exe" could not be run. System.IO.IOException: The process cannot access the file 'Intel.Build.ICXTasks.ICX.read.1.tlog' because it is being used by another process.
34>C:\Program Files\Microsoft Visual Studio\2022\Professional\MSBuild\Microsoft\VC\v170\Platforms\x64\PlatformToolsets\Intel C++ Compiler 2022\Toolset.targets(344,5): error MSB6003:    at System.IO.__Error.WinIOError(Int32 errorCode, String maybeFullPath)
34>C:\Program Files\Microsoft Visual Studio\2022\Professional\MSBuild\Microsoft\VC\v170\Platforms\x64\PlatformToolsets\Intel C++ Compiler 2022\Toolset.targets(344,5): error MSB6003:    at System.IO.FileStream.Init(String path, FileMode mode, FileAccess access, Int32 rights, Boolean useRights, FileShare share, Int32 bufferSize, FileOptions options, SECURITY_ATTRIBUTES secAttrs, String msgPath, Boolean bFromProxy, Boolean useLongPath, Boolean checkHost)
34>C:\Program Files\Microsoft Visual Studio\2022\Professional\MSBuild\Microsoft\VC\v170\Platforms\x64\PlatformToolsets\Intel C++ Compiler 2022\Toolset.targets(344,5): error MSB6003:    at System.IO.FileStream..ctor(String path, FileMode mode, FileAccess access, FileShare share, Int32 bufferSize, FileOptions options, String msgPath, Boolean bFromProxy, Boolean useLongPath, Boolean checkHost)
34>C:\Program Files\Microsoft Visual Studio\2022\Professional\MSBuild\Microsoft\VC\v170\Platforms\x64\PlatformToolsets\Intel C++ Compiler 2022\Toolset.targets(344,5): error MSB6003:    at System.IO.StreamWriter.CreateFile(String path, Boolean append, Boolean checkHost)
34>C:\Program Files\Microsoft Visual Studio\2022\Professional\MSBuild\Microsoft\VC\v170\Platforms\x64\PlatformToolsets\Intel C++ Compiler 2022\Toolset.targets(344,5): error MSB6003:    at System.IO.StreamWriter..ctor(String path, Boolean append, Encoding encoding, Int32 bufferSize, Boolean checkHost)
34>C:\Program Files\Microsoft Visual Studio\2022\Professional\MSBuild\Microsoft\VC\v170\Platforms\x64\PlatformToolsets\Intel C++ Compiler 2022\Toolset.targets(344,5): error MSB6003:    at System.IO.File.InternalWriteAllText(String path, String contents, Encoding encoding, Boolean checkHost)
34>C:\Program Files\Microsoft Visual Studio\2022\Professional\MSBuild\Microsoft\VC\v170\Platforms\x64\PlatformToolsets\Intel C++ Compiler 2022\Toolset.targets(344,5): error MSB6003:    at Microsoft.Build.Utilities.CanonicalTrackedInputFiles.SaveTlog(DependencyFilter includeInTLog)
34>C:\Program Files\Microsoft Visual Studio\2022\Professional\MSBuild\Microsoft\VC\v170\Platforms\x64\PlatformToolsets\Intel C++ Compiler 2022\Toolset.targets(344,5): error MSB6003:    at Intel.Build.ICXTasks.ICX.PostExecuteTool(Int32 exitCode)
34>C:\Program Files\Microsoft Visual Studio\2022\Professional\MSBuild\Microsoft\VC\v170\Platforms\x64\PlatformToolsets\Intel C++ Compiler 2022\Toolset.targets(344,5): error MSB6003:    at Intel.Build.ICXTasks.ICX.ExecuteTool(String pathToTool, String responseFileCommands, String commandLineCommands)
34>C:\Program Files\Microsoft Visual Studio\2022\Professional\MSBuild\Microsoft\VC\v170\Platforms\x64\PlatformToolsets\Intel C++ Compiler 2022\Toolset.targets(344,5): error MSB6003:    at Microsoft.Build.Utilities.ToolTask.Execute()

 




0 Kudos
1 Solution
AndrewC
New Contributor III
644 Views

I was able to fix this issue by

  • Updating to VS 2022 17.3.5
  • Completely removing all OneAPI versions
  • re-installing OneAPI 2022.3

    It's not clear what fixed the problem....

View solution in original post

0 Kudos
4 Replies
SeshaP_Intel
Moderator
724 Views

Hi,


Thank you for posting in Intel Communities.


It seems to be a compatibility issue between Visual studio & Intel oneAPI toolkits.

Latest version OneAPI 2022.3 is compatible with the latest version of Visual Studio VS2022 17.2.3 and VS2022 17.2.6 (limited testing).

And OneAPI 2022.2 is compatible with the latest version of Visual Studio VS2022 17.0.2 and VS2022 17.1.0 (limited testing).


Please refer to the link below for more details.

https://www.intel.com/content/www/us/en/developer/articles/reference-implementation/intel-compilers-compatibility-with-microsoft-visual-studio-and-xcode.html


If you still face any issues please provide the complete error log with the steps you have followed.


Thanks and Regards,

Pendyala Sesha Srinivas


0 Kudos
AndrewC
New Contributor III
706 Views

The latest version of Visual Studio 2022 is 17.3.4.
One API 2022.2 works just fine with 17.3.4. 
OneAPI 2022.3 has some issues as per my report.

Could you be more specific about "complete error log". I have supplied the complete error as reported by Visual Studio.

Sadly, I have had to revert to OneAPI 2022.2 because OneAPI 2022.3 is unusable for me.

0 Kudos
AndrewC
New Contributor III
645 Views

I was able to fix this issue by

  • Updating to VS 2022 17.3.5
  • Completely removing all OneAPI versions
  • re-installing OneAPI 2022.3

    It's not clear what fixed the problem....
0 Kudos
SeshaP_Intel
Moderator
619 Views

Hi,


Glad to know that your issue is resolved.

If you need any additional information, please post a new question as this thread will no longer be monitored by Intel.


Thanks and Regards,

Pendyala Sesha Srinivas


0 Kudos
Reply