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

64bit compiler issue with TFS team builds


When we try to compile a 64bit target using TFS team builds (MSBuild) it fails with below error. The error appears to be to do with Intel Compiler trying to load SQLite and it seems it's loading the wrong version. But when we try to compile using visual studio it works. Somehow with MSBuild it is linking wrong SQLlite, any ideas how to resolve this issue ?

C:\Program Files (x86)\MSBuild\Microsoft.Cpp\v4.0\V120\Platforms\x64\PlatformToolsets\Intel C++ Compiler XE 15.0\Toolset.targets (357, 0)

The "ICL" task failed unexpectedly.
System.BadImageFormatException: Could not load file or assembly 'System.Data.SQLite.dll' or one of its dependencies. is not a valid Win32 application. (Exception from HRESULT: 0x800700C1)
File name: 'System.Data.SQLite.dll'
at Intel.Compiler.IDE.OptReports.DB.DBUtilities.CreateDB(String solutionPath)
at Intel.Compiler.IDE.OptReports.DB.MessageParser.<>c__DisplayClass1.<ParseOptReports>b__0(String reportName)
at Intel.Misc.Utilities.ExtensionMethods.ForEach(IEnumerable`1 collection, Action`1 action)
at Intel.Compiler.IDE.OptReports.DB.MessageParser.ParseOptReports(IEnumerable`1 optReportFiles, String solutionPath, String projectFilePath, String optLevel)
at Intel.Build.ICLTasks.ICL.ExecuteTool(String pathToTool, String responseFileCommands, String commandLineCommands)
at Microsoft.Build.Utilities.ToolTask.Execute()
at Microsoft.Build.CPPTasks.TrackedVCToolTask.Execute()
at Microsoft.Build.BackEnd.TaskExecutionHost.Microsoft.Build.BackEnd.ITaskExecutionHost.Execute()
at Microsoft.Build.BackEnd.TaskBuilder.<ExecuteInstantiatedTask>d__20.MoveNext()
0 Kudos
0 Replies