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

ICX trying to load wrong System.Data.SQLite.dll

Przemysław_O_
Beginner
3,727 Views

Hello,

 

we try to build one of our projects with MSBuild. After ICX call:

 

C:\Program Files (x86)\Intel\oneAPI\compiler\2022.0.2\windows\bin\icx.exe /c /Qm32 /I. /Zi /nologo /W3 /O2 /Oi /Ot /Qipo /D WIN32 /D NDEBUG /D _WINDOWS /D _USRDLL /D EXTRANSIMULATIONNAT_EXPORTS /D _WINDLL /D _UNICODE /D UNICODE /EHsc /MD /GS /Gy /fp:precise /Zc:forScope /Yc"StdAfx.h" /Fp"Release\ExtranSim.pch" /Fo"Release\\" /Gd /TP /Qoption,cpp stdafx.cpp

 

we get those errors from MSBuild:

 

C:\Program Files\Microsoft Visual Studio\2022\Enterprise\MSBuild\Microsoft\VC\v170\Platforms\Win32\PlatformToolsets\Intel C++ Compiler 2022\Toolset.targets(225,5): 
error MSB4018: The "ICX" task failed unexpectedly.
error MSB4018: System.BadImageFormatException: Could not load file or assembly 'System.Data.SQLite, Version=1.0.113.0, Culture=neutral, PublicKeyToken=db937bc2d44ff139' or one of its dependencies. Es wurde versucht, eine Datei mit einem falschen Format zu laden.
error MSB4018: File name: 'System.Data.SQLite, Version=1.0.113.0, Culture=neutral, PublicKeyToken=db937bc2d44ff139' ---> System.BadImageFormatException: Could not load file or assembly 'System.Data.SQLite, Version=1.0.113.0, Culture=neutral, PublicKeyToken=db937bc2d44ff139'. This assembly was compiled for a different processor.
error MSB4018:    at System.Reflection.RuntimeAssembly.nLoadFile(String path, Evidence evidence)
error MSB4018:    at System.Reflection.Assembly.LoadFile(String path)
error MSB4018:    at Intel.Misc.Utilities.AssemblyResolver.SQLiteAssemblyResolver(Object sender, ResolveEventArgs args)
error MSB4018:    at System.AppDomain.OnAssemblyResolveEvent(RuntimeAssembly assembly, String assemblyFullName)
error MSB4018:    at Intel.Compiler.IDE.OptReports.DB.DBUtilities.Commit(OptReportsDataBase db, String projectFilePath, String solutionPath)
error MSB4018:    at Intel.Compiler.IDE.OptReports.DB.MessageParser.CommitToDataBase(String solutionPath, String projectFilePath)
error MSB4018:    at Intel.Compiler.IDE.OptReports.DB.MessageParser.ParseICXOptReports(IEnumerable`1 optReportFiles, String solutionPath, String projectFilePath, String optLevel)
error MSB4018:    at Intel.Build.ICXTasks.ICX.ExecuteTool(String pathToTool, String responseFileCommands, String commandLineCommands)
error MSB4018:    at Microsoft.Build.Utilities.ToolTask.Execute()
error MSB4018:    at Microsoft.Build.CPPTasks.VCToolTask.Execute()
error MSB4018:    at Microsoft.Build.CPPTasks.TrackedVCToolTask.Execute()
error MSB4018:    at Intel.Build.ICXTasks.ICX.Execute()
error MSB4018:    at Microsoft.Build.BackEnd.TaskExecutionHost.Microsoft.Build.BackEnd.ITaskExecutionHost.Execute()
error MSB4018:    at Microsoft.Build.BackEnd.TaskBuilder.<ExecuteInstantiatedTask>d__26.MoveNext()

 

I think ICX is trying to load System.Data.SQLite.dll, which has a version 1.0.113.0, from:

c:\Program Files\Microsoft Visual Studio\2022\Enterprise\Common7\IDE\PublicAssemblies\

 We can build this project with Visual Studio 2022 IDE without errors, but we need also MSBuild working with it.

 

Best regards

Przemek

0 Kudos
13 Replies
NoorjahanSk_Intel
Moderator
3,594 Views

Hi,


Thanks for reaching out to us.


Could you please provide a sample reproducer along with the steps you have followed, so that we can try it from our end?

Also please provide the exact version of Visual Studio being used


Thanks & Regards,

Noorjahan.


0 Kudos
Przemysław_O_
Beginner
3,535 Views

Hi,

 

my repro: with attached project call:

"C:\Program Files\Microsoft Visual Studio\2022\Enterprise\MSBuild\Current\Bin\MSBuild.exe" IntelSQLite.sln /p:Configuration=Release /p:RuntimeIdentifiers=win7-x86 -property:Platform=x86 > output.txt

my output is:

Microsoft (R) Build Engine version 17.1.0+ae57d105c for .NET Framework
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 09.03.2022 13:48:48.
Project "D:\Intel-Compiler\IntelSQLite\IntelSQLite.sln" on node 1 (default targets).
ValidateSolutionConfiguration:
  Building solution configuration "Release|x86".
Project "D:\Intel-Compiler\IntelSQLite\IntelSQLite.sln" (1) is building "D:\Intel-Compiler\IntelSQLite\IntelSQLite\IntelSQLite.vcxproj" (2) on node 1 (default targets).
PrepareForBuild:
  Creating directory "Release\".
  Creating directory "D:\Intel-Compiler\IntelSQLite\Release\".
  Creating directory "Release\IntelSQLite.tlog\".
InitializeBuildStatus:
  Creating "Release\IntelSQLite.tlog\unsuccessfulbuild" because "AlwaysCreate" was specified.
MessageBuildingWithCompiler:
  Building with Intel(R) C++ Compiler 2022
ClCompile:
  ***** ClCompile (Win32 - Intel C++)
  C:\Program Files (x86)\Intel\oneAPI\compiler\2022.0.3\windows\bin\icx.exe /c /Qm32 /Zi /nologo /W3 /O2 /Oi /Qipo /D WIN32 /D NDEBUG /D _CONSOLE /D _UNICODE /D UNICODE /EHsc /MD /GS /Gy /Zc:forScope /Fo"Release\\" /Gd /TP IntelSQLite.cpp
C:\Program Files\Microsoft Visual Studio\2022\Enterprise\MSBuild\Microsoft\VC\v170\Platforms\Win32\PlatformToolsets\Intel C++ Compiler 2022\Toolset.targets(303,5): error MSB4018: The "ICX" task failed unexpectedly. [D:\Intel-Compiler\IntelSQLite\IntelSQLite\IntelSQLite.vcxproj]
C:\Program Files\Microsoft Visual Studio\2022\Enterprise\MSBuild\Microsoft\VC\v170\Platforms\Win32\PlatformToolsets\Intel C++ Compiler 2022\Toolset.targets(303,5): error MSB4018: System.BadImageFormatException: Could not load file or assembly 'System.Data.SQLite, Version=1.0.113.0, Culture=neutral, PublicKeyToken=db937bc2d44ff139' or one of its dependencies. Pr¢bowano zaladowac program w niepoprawnym formacie. [D:\Intel-Compiler\IntelSQLite\IntelSQLite\IntelSQLite.vcxproj]
C:\Program Files\Microsoft Visual Studio\2022\Enterprise\MSBuild\Microsoft\VC\v170\Platforms\Win32\PlatformToolsets\Intel C++ Compiler 2022\Toolset.targets(303,5): error MSB4018: File name: 'System.Data.SQLite, Version=1.0.113.0, Culture=neutral, PublicKeyToken=db937bc2d44ff139' ---> System.BadImageFormatException: Could not load file or assembly 'System.Data.SQLite, Version=1.0.113.0, Culture=neutral, PublicKeyToken=db937bc2d44ff139'. This assembly was compiled for a different processor. [D:\Intel-Compiler\IntelSQLite\IntelSQLite\IntelSQLite.vcxproj]
C:\Program Files\Microsoft Visual Studio\2022\Enterprise\MSBuild\Microsoft\VC\v170\Platforms\Win32\PlatformToolsets\Intel C++ Compiler 2022\Toolset.targets(303,5): error MSB4018:    at System.Reflection.RuntimeAssembly.nLoadFile(String path, Evidence evidence) [D:\Intel-Compiler\IntelSQLite\IntelSQLite\IntelSQLite.vcxproj]
C:\Program Files\Microsoft Visual Studio\2022\Enterprise\MSBuild\Microsoft\VC\v170\Platforms\Win32\PlatformToolsets\Intel C++ Compiler 2022\Toolset.targets(303,5): error MSB4018:    at System.Reflection.Assembly.LoadFile(String path) [D:\Intel-Compiler\IntelSQLite\IntelSQLite\IntelSQLite.vcxproj]
C:\Program Files\Microsoft Visual Studio\2022\Enterprise\MSBuild\Microsoft\VC\v170\Platforms\Win32\PlatformToolsets\Intel C++ Compiler 2022\Toolset.targets(303,5): error MSB4018:    at Intel.Misc.Utilities.AssemblyResolver.SQLiteAssemblyResolver(Object sender, ResolveEventArgs args) [D:\Intel-Compiler\IntelSQLite\IntelSQLite\IntelSQLite.vcxproj]
C:\Program Files\Microsoft Visual Studio\2022\Enterprise\MSBuild\Microsoft\VC\v170\Platforms\Win32\PlatformToolsets\Intel C++ Compiler 2022\Toolset.targets(303,5): error MSB4018:    at System.AppDomain.OnAssemblyResolveEvent(RuntimeAssembly assembly, String assemblyFullName) [D:\Intel-Compiler\IntelSQLite\IntelSQLite\IntelSQLite.vcxproj]
C:\Program Files\Microsoft Visual Studio\2022\Enterprise\MSBuild\Microsoft\VC\v170\Platforms\Win32\PlatformToolsets\Intel C++ Compiler 2022\Toolset.targets(303,5): error MSB4018:    at Intel.Compiler.IDE.OptReports.DB.DBUtilities.Commit(OptReportsDataBase db, String projectFilePath, String solutionPath) [D:\Intel-Compiler\IntelSQLite\IntelSQLite\IntelSQLite.vcxproj]
C:\Program Files\Microsoft Visual Studio\2022\Enterprise\MSBuild\Microsoft\VC\v170\Platforms\Win32\PlatformToolsets\Intel C++ Compiler 2022\Toolset.targets(303,5): error MSB4018:    at Intel.Compiler.IDE.OptReports.DB.MessageParser.CommitToDataBase(String solutionPath, String projectFilePath) [D:\Intel-Compiler\IntelSQLite\IntelSQLite\IntelSQLite.vcxproj]
C:\Program Files\Microsoft Visual Studio\2022\Enterprise\MSBuild\Microsoft\VC\v170\Platforms\Win32\PlatformToolsets\Intel C++ Compiler 2022\Toolset.targets(303,5): error MSB4018:    at Intel.Compiler.IDE.OptReports.DB.MessageParser.ParseICXOptReports(IEnumerable`1 optReportFiles, String solutionPath, String projectFilePath, String optLevel) [D:\Intel-Compiler\IntelSQLite\IntelSQLite\IntelSQLite.vcxproj]
C:\Program Files\Microsoft Visual Studio\2022\Enterprise\MSBuild\Microsoft\VC\v170\Platforms\Win32\PlatformToolsets\Intel C++ Compiler 2022\Toolset.targets(303,5): error MSB4018:    at Intel.Build.ICXTasks.ICX.ExecuteTool(String pathToTool, String responseFileCommands, String commandLineCommands) [D:\Intel-Compiler\IntelSQLite\IntelSQLite\IntelSQLite.vcxproj]
C:\Program Files\Microsoft Visual Studio\2022\Enterprise\MSBuild\Microsoft\VC\v170\Platforms\Win32\PlatformToolsets\Intel C++ Compiler 2022\Toolset.targets(303,5): error MSB4018:    at Microsoft.Build.Utilities.ToolTask.Execute() [D:\Intel-Compiler\IntelSQLite\IntelSQLite\IntelSQLite.vcxproj]
C:\Program Files\Microsoft Visual Studio\2022\Enterprise\MSBuild\Microsoft\VC\v170\Platforms\Win32\PlatformToolsets\Intel C++ Compiler 2022\Toolset.targets(303,5): error MSB4018:    at Microsoft.Build.CPPTasks.VCToolTask.Execute() [D:\Intel-Compiler\IntelSQLite\IntelSQLite\IntelSQLite.vcxproj]
C:\Program Files\Microsoft Visual Studio\2022\Enterprise\MSBuild\Microsoft\VC\v170\Platforms\Win32\PlatformToolsets\Intel C++ Compiler 2022\Toolset.targets(303,5): error MSB4018:    at Microsoft.Build.CPPTasks.TrackedVCToolTask.Execute() [D:\Intel-Compiler\IntelSQLite\IntelSQLite\IntelSQLite.vcxproj]
C:\Program Files\Microsoft Visual Studio\2022\Enterprise\MSBuild\Microsoft\VC\v170\Platforms\Win32\PlatformToolsets\Intel C++ Compiler 2022\Toolset.targets(303,5): error MSB4018:    at Intel.Build.ICXTasks.ICX.Execute() [D:\Intel-Compiler\IntelSQLite\IntelSQLite\IntelSQLite.vcxproj]
C:\Program Files\Microsoft Visual Studio\2022\Enterprise\MSBuild\Microsoft\VC\v170\Platforms\Win32\PlatformToolsets\Intel C++ Compiler 2022\Toolset.targets(303,5): error MSB4018:    at Microsoft.Build.BackEnd.TaskExecutionHost.Microsoft.Build.BackEnd.ITaskExecutionHost.Execute() [D:\Intel-Compiler\IntelSQLite\IntelSQLite\IntelSQLite.vcxproj]
C:\Program Files\Microsoft Visual Studio\2022\Enterprise\MSBuild\Microsoft\VC\v170\Platforms\Win32\PlatformToolsets\Intel C++ Compiler 2022\Toolset.targets(303,5): error MSB4018:    at Microsoft.Build.BackEnd.TaskBuilder.<ExecuteInstantiatedTask>d__26.MoveNext() [D:\Intel-Compiler\IntelSQLite\IntelSQLite\IntelSQLite.vcxproj]
C:\Program Files\Microsoft Visual Studio\2022\Enterprise\MSBuild\Microsoft\VC\v170\Platforms\Win32\PlatformToolsets\Intel C++ Compiler 2022\Toolset.targets(303,5): error MSB4018:  [D:\Intel-Compiler\IntelSQLite\IntelSQLite\IntelSQLite.vcxproj]
C:\Program Files\Microsoft Visual Studio\2022\Enterprise\MSBuild\Microsoft\VC\v170\Platforms\Win32\PlatformToolsets\Intel C++ Compiler 2022\Toolset.targets(303,5): error MSB4018:  [D:\Intel-Compiler\IntelSQLite\IntelSQLite\IntelSQLite.vcxproj]
Done Building Project "D:\Intel-Compiler\IntelSQLite\IntelSQLite\IntelSQLite.vcxproj" (default targets) -- FAILED.
Done Building Project "D:\Intel-Compiler\IntelSQLite\IntelSQLite.sln" (default targets) -- FAILED.

Build FAILED.

"D:\Intel-Compiler\IntelSQLite\IntelSQLite.sln" (default target) (1) ->
"D:\Intel-Compiler\IntelSQLite\IntelSQLite\IntelSQLite.vcxproj" (default target) (2) ->
(ClCompile target) -> 
  C:\Program Files\Microsoft Visual Studio\2022\Enterprise\MSBuild\Microsoft\VC\v170\Platforms\Win32\PlatformToolsets\Intel C++ Compiler 2022\Toolset.targets(303,5): error MSB4018: The "ICX" task failed unexpectedly. [D:\Intel-Compiler\IntelSQLite\IntelSQLite\IntelSQLite.vcxproj]
C:\Program Files\Microsoft Visual Studio\2022\Enterprise\MSBuild\Microsoft\VC\v170\Platforms\Win32\PlatformToolsets\Intel C++ Compiler 2022\Toolset.targets(303,5): error MSB4018: System.BadImageFormatException: Could not load file or assembly 'System.Data.SQLite, Version=1.0.113.0, Culture=neutral, PublicKeyToken=db937bc2d44ff139' or one of its dependencies. Pr¢bowano zaladowac program w niepoprawnym formacie. [D:\Intel-Compiler\IntelSQLite\IntelSQLite\IntelSQLite.vcxproj]
C:\Program Files\Microsoft Visual Studio\2022\Enterprise\MSBuild\Microsoft\VC\v170\Platforms\Win32\PlatformToolsets\Intel C++ Compiler 2022\Toolset.targets(303,5): error MSB4018: File name: 'System.Data.SQLite, Version=1.0.113.0, Culture=neutral, PublicKeyToken=db937bc2d44ff139' ---> System.BadImageFormatException: Could not load file or assembly 'System.Data.SQLite, Version=1.0.113.0, Culture=neutral, PublicKeyToken=db937bc2d44ff139'. This assembly was compiled for a different processor. [D:\Intel-Compiler\IntelSQLite\IntelSQLite\IntelSQLite.vcxproj]
C:\Program Files\Microsoft Visual Studio\2022\Enterprise\MSBuild\Microsoft\VC\v170\Platforms\Win32\PlatformToolsets\Intel C++ Compiler 2022\Toolset.targets(303,5): error MSB4018:    at System.Reflection.RuntimeAssembly.nLoadFile(String path, Evidence evidence) [D:\Intel-Compiler\IntelSQLite\IntelSQLite\IntelSQLite.vcxproj]
C:\Program Files\Microsoft Visual Studio\2022\Enterprise\MSBuild\Microsoft\VC\v170\Platforms\Win32\PlatformToolsets\Intel C++ Compiler 2022\Toolset.targets(303,5): error MSB4018:    at System.Reflection.Assembly.LoadFile(String path) [D:\Intel-Compiler\IntelSQLite\IntelSQLite\IntelSQLite.vcxproj]
C:\Program Files\Microsoft Visual Studio\2022\Enterprise\MSBuild\Microsoft\VC\v170\Platforms\Win32\PlatformToolsets\Intel C++ Compiler 2022\Toolset.targets(303,5): error MSB4018:    at Intel.Misc.Utilities.AssemblyResolver.SQLiteAssemblyResolver(Object sender, ResolveEventArgs args) [D:\Intel-Compiler\IntelSQLite\IntelSQLite\IntelSQLite.vcxproj]
C:\Program Files\Microsoft Visual Studio\2022\Enterprise\MSBuild\Microsoft\VC\v170\Platforms\Win32\PlatformToolsets\Intel C++ Compiler 2022\Toolset.targets(303,5): error MSB4018:    at System.AppDomain.OnAssemblyResolveEvent(RuntimeAssembly assembly, String assemblyFullName) [D:\Intel-Compiler\IntelSQLite\IntelSQLite\IntelSQLite.vcxproj]
C:\Program Files\Microsoft Visual Studio\2022\Enterprise\MSBuild\Microsoft\VC\v170\Platforms\Win32\PlatformToolsets\Intel C++ Compiler 2022\Toolset.targets(303,5): error MSB4018:    at Intel.Compiler.IDE.OptReports.DB.DBUtilities.Commit(OptReportsDataBase db, String projectFilePath, String solutionPath) [D:\Intel-Compiler\IntelSQLite\IntelSQLite\IntelSQLite.vcxproj]
C:\Program Files\Microsoft Visual Studio\2022\Enterprise\MSBuild\Microsoft\VC\v170\Platforms\Win32\PlatformToolsets\Intel C++ Compiler 2022\Toolset.targets(303,5): error MSB4018:    at Intel.Compiler.IDE.OptReports.DB.MessageParser.CommitToDataBase(String solutionPath, String projectFilePath) [D:\Intel-Compiler\IntelSQLite\IntelSQLite\IntelSQLite.vcxproj]
C:\Program Files\Microsoft Visual Studio\2022\Enterprise\MSBuild\Microsoft\VC\v170\Platforms\Win32\PlatformToolsets\Intel C++ Compiler 2022\Toolset.targets(303,5): error MSB4018:    at Intel.Compiler.IDE.OptReports.DB.MessageParser.ParseICXOptReports(IEnumerable`1 optReportFiles, String solutionPath, String projectFilePath, String optLevel) [D:\Intel-Compiler\IntelSQLite\IntelSQLite\IntelSQLite.vcxproj]
C:\Program Files\Microsoft Visual Studio\2022\Enterprise\MSBuild\Microsoft\VC\v170\Platforms\Win32\PlatformToolsets\Intel C++ Compiler 2022\Toolset.targets(303,5): error MSB4018:    at Intel.Build.ICXTasks.ICX.ExecuteTool(String pathToTool, String responseFileCommands, String commandLineCommands) [D:\Intel-Compiler\IntelSQLite\IntelSQLite\IntelSQLite.vcxproj]
C:\Program Files\Microsoft Visual Studio\2022\Enterprise\MSBuild\Microsoft\VC\v170\Platforms\Win32\PlatformToolsets\Intel C++ Compiler 2022\Toolset.targets(303,5): error MSB4018:    at Microsoft.Build.Utilities.ToolTask.Execute() [D:\Intel-Compiler\IntelSQLite\IntelSQLite\IntelSQLite.vcxproj]
C:\Program Files\Microsoft Visual Studio\2022\Enterprise\MSBuild\Microsoft\VC\v170\Platforms\Win32\PlatformToolsets\Intel C++ Compiler 2022\Toolset.targets(303,5): error MSB4018:    at Microsoft.Build.CPPTasks.VCToolTask.Execute() [D:\Intel-Compiler\IntelSQLite\IntelSQLite\IntelSQLite.vcxproj]
C:\Program Files\Microsoft Visual Studio\2022\Enterprise\MSBuild\Microsoft\VC\v170\Platforms\Win32\PlatformToolsets\Intel C++ Compiler 2022\Toolset.targets(303,5): error MSB4018:    at Microsoft.Build.CPPTasks.TrackedVCToolTask.Execute() [D:\Intel-Compiler\IntelSQLite\IntelSQLite\IntelSQLite.vcxproj]
C:\Program Files\Microsoft Visual Studio\2022\Enterprise\MSBuild\Microsoft\VC\v170\Platforms\Win32\PlatformToolsets\Intel C++ Compiler 2022\Toolset.targets(303,5): error MSB4018:    at Intel.Build.ICXTasks.ICX.Execute() [D:\Intel-Compiler\IntelSQLite\IntelSQLite\IntelSQLite.vcxproj]
C:\Program Files\Microsoft Visual Studio\2022\Enterprise\MSBuild\Microsoft\VC\v170\Platforms\Win32\PlatformToolsets\Intel C++ Compiler 2022\Toolset.targets(303,5): error MSB4018:    at Microsoft.Build.BackEnd.TaskExecutionHost.Microsoft.Build.BackEnd.ITaskExecutionHost.Execute() [D:\Intel-Compiler\IntelSQLite\IntelSQLite\IntelSQLite.vcxproj]
C:\Program Files\Microsoft Visual Studio\2022\Enterprise\MSBuild\Microsoft\VC\v170\Platforms\Win32\PlatformToolsets\Intel C++ Compiler 2022\Toolset.targets(303,5): error MSB4018:    at Microsoft.Build.BackEnd.TaskBuilder.<ExecuteInstantiatedTask>d__26.MoveNext() [D:\Intel-Compiler\IntelSQLite\IntelSQLite\IntelSQLite.vcxproj]
C:\Program Files\Microsoft Visual Studio\2022\Enterprise\MSBuild\Microsoft\VC\v170\Platforms\Win32\PlatformToolsets\Intel C++ Compiler 2022\Toolset.targets(303,5): error MSB4018:  [D:\Intel-Compiler\IntelSQLite\IntelSQLite\IntelSQLite.vcxproj]
C:\Program Files\Microsoft Visual Studio\2022\Enterprise\MSBuild\Microsoft\VC\v170\Platforms\Win32\PlatformToolsets\Intel C++ Compiler 2022\Toolset.targets(303,5): error MSB4018:  [D:\Intel-Compiler\IntelSQLite\IntelSQLite\IntelSQLite.vcxproj]

    0 Warning(s)
    1 Error(s)

Time Elapsed 00:00:00.67

 

Intel C++ 2022.0.3 & VS 2022 17.1.1

 

Best regards

Przemek

0 Kudos
NoorjahanSk_Intel
Moderator
3,485 Views

Hi,

Thanks for providing the details.

 

Could you please try initializing the oneAPI environment by running the setvars.bat script file and then build your source code?

 

Please refer to the attached log file for more details.

 

Please do let us know if it helps in resolving your issue.

 

 

Thanks & Regards,

Noorjahan.

 

0 Kudos
NoorjahanSk_Intel
Moderator
3,432 Views

HI,


We haven't heard back from you. Could you please provide an update on your issue?


Thanks & Regards,

Noorjahan.


0 Kudos
Przemysław_O_
Beginner
3,361 Views

Hello,

 

I apologize, but I have been absent.
Unfortunately setvars.bat doesn't change anything here. My earlier attempts were done with "Intel oneAPI command prompt for IA32 for Visual Studio 2022", which is after setvars.bat was executed.

Are you not able to reproduce this with my project and solution?

 

Best regards

Przemek

0 Kudos
NoorjahanSk_Intel
Moderator
3,337 Views

Hi,

>>Are you not able to reproduce this with my project and solution?

 

We tried on Intel oneAPI command prompt for IA32 for Visual Studio 2022 with the provided project (with command that you have given)and we are not able to reproduce the issue from our end.

 

Please find attached screenshots for more details.

NoorjahanSk_Intel_0-1647932844177.png

 

Our Environment details:

Windows version: Windows 10

VS version: 2022 Version 17.1.1

ICX version: 2022.0.0(you can get the version using icx --version command)

 

 

>>/p:RuntimeIdentifiers=win7-x86

Could you please confirm OS version that you are using?

 

Please do let us know if there is anything else that need to done from our end.

 

Thanks & Regards,

Noorjahan.

 

0 Kudos
Przemysław_O_
Beginner
3,328 Views

Hi,

 

thanks for your reply.

My compiler:

C:\Users\przemyslaw\source\repos\IntelSQLite>icx --version
Intel(R) oneAPI DPC++/C++ Compiler for applications running on Intel(R) 64, Version 2022.0.0 Build 20211123
Copyright (C) 1985-2021 Intel Corporation. All rights reserved.

Intel(R) oneAPI DPC++/C++ Compiler 2022.0.0 (2022.0.0.20211123)
Target: x86_64-pc-windows-msvc
Thread model: posix
InstalledDir: C:\PROGRA~2\Intel\oneAPI\compiler\latest\windows\bin-llvm

Visual Studio version 17.1.1

Windows 10 Enterprise 21H2

Have you tried a clean build? If you build it first with Visual Studio GUI than MSBuild have obj files and you will not see any error.

Try to use Rebuild:

"C:\Program Files\Microsoft Visual Studio\2022\Enterprise\MSBuild\Current\Bin\MSBuild.exe" IntelSQLite.sln /p:Configuration=Release -property:Platform=x86 /t:Rebuild

Best regards

Przemek

0 Kudos
SaschaM
Beginner
3,293 Views

* I'm seeing the exact same problem

* Problem occurs when doing a full rebuild

* When doing a Rebuild first and then a build, it goes through the second time

0 Kudos
NoorjahanSk_Intel
Moderator
3,248 Views

Hi,

 

Apologies for delay.

 

 Could you can please try with the 64bit msbuild.exe to build your source code with the below command as it is working fine without any errors from our end.

 

"C:\Program Files\Microsoft Visual Studio\2022\Professional\Msbuild\Current\Bin\amd64\MSBuild.exe" IntelSQLite.sln /p:Configuration=Release /p:RuntimeIdentifiers=win7-x86 -property:Platform=x86 /t:rebuild

 

Please find attached screenshot for more details:

NoorjahanSk_Intel_0-1648725973442.png

 

Please do let us know if it helps.

 

Thanks & Regards,

Noorjahan.

 

0 Kudos
Przemysław_O_
Beginner
3,238 Views

Hi,

 

thank you, it works with 64 bit MSBuild.

It would be good to fix this issue for 32 bit version.

I will try to switch MSBuild in our CI.

 

Best regards

Przemek

0 Kudos
NoorjahanSk_Intel
Moderator
3,110 Views

Hi,

 

>>it works with 64 bit MSBuild.

 

Thank you for the trying and confirming with 64bit MSBuild version.

 

>>It would be good to fix this issue for 32 bit version.

Thank you for the feedback. We will let the concerned team to know about this issue.

 

Could you please try the below command as a workaround for 32bit version of MSBuild as it worked from our side.

 

"C:\Program Files\Microsoft Visual Studio\2022\Professional\Msbuild\Current\Bin\MSBuild.exe" IntelSQLite.sln /p:Configuration=Release -property:Platform=x86 /t:build

 

Please find the attached screenshot for more details.

NoorjahanSk_Intel_0-1649412649644.png

 

Thanks & Regards,

Noorjahan.

 

0 Kudos
NoorjahanSk_Intel
Moderator
2,925 Views

Hi,


The issue with 32 bit version of MS build will be fixed in future releases of Intel oneAPI. We will update you once the issue is fixed.



Thanks & Regards,

Noorjahan.


0 Kudos
NoorjahanSk_Intel
Moderator
2,421 Views

Hi,


Thank you for your patience. The issue raised by you will be fixed in the next release i.e oneAPI 2022.3


Please refer to the below link to get the updates on the next release.

https://www.intel.com/content/www/us/en/developer/articles/release-notes/intel-oneapi-toolkit-release-notes.html


We are closing this thread. This thread will no longer be monitored by Intel. If you need further assistance, please post a new question.


Thanks & Regards,

Noorjahan


0 Kudos
Reply