Analyzing c++ fails on windows 7 but works on windows 10

I’m using build-wrapper-win-x86-64.exe version 6.0 to analyze c++ code with msbuild. When I run the it on Windows 7, the build wrapper works perfectly, on Windows 10 with the exact same command, I get a nothing. The code doesn’t even build. If I run msbuild without the build wrapper, it builds just fine.

This is a corporate machine with fairly aggressive anti-virus and such, can that interfere with the build wrapper? Could that be why I see so many “skipping process” lines in the log?

Here are the log and json files from windows 10:

© SonarSource SA, 2014-2018, info@sonarsource.com

All SONARSOURCE programs and content are copyright protected.

SONARSOURCE and SONARQUBE are trademarks of SonarSource SA. All rights are expressly reserved.

This file is designed exclusively for use with the SONARSOURCE C / C++ / Objective-C Plugin.

It may not be used in connection with any other software.

Any other use is prohibited by law and may be grounds for immediate termination of your License.

{
“version”:0,
“captures”:[
]}

Fri Nov 01 14:28:36 2019: build-wrapper, version 6.0 (win-x86-64)
Fri Nov 01 14:28:36 2019: isWow64: 0
Fri Nov 01 14:28:36 2019: windows version: 6.2, service pack: 0.0, build number: 9200, product type: 1
Fri Nov 01 14:28:36 2019: current directory: C:\code\ALCM-Core\TESW_Common_Core
Fri Nov 01 14:28:36 2019: command line received: <C:\Program Files (x86)\MSBuild\14.0\Bin\amd64\MSBuild.exe /t:Rebuild .\AXF-RTT_Muti_Project\multi-project\multi-project.sln>
Fri Nov 01 14:28:44 2019: initializing json file
Fri Nov 01 14:28:44 2019: starting debug cycle
Fri Nov 01 14:28:44 2019: process created with pid: 2720
Fri Nov 01 14:28:44 2019: image path name: <C:\Program Files (x86)\MSBuild\14.0\Bin\amd64\MSBuild.exe>
Fri Nov 01 14:28:44 2019: command line: <“C:\Program Files (x86)\MSBuild\14.0\Bin\amd64\MSBuild.exe” /t:Rebuild .\AXF-RTT_Muti_Project\multi-project\multi-project.sln>
Fri Nov 01 14:28:44 2019: working directory: <C:\code\ALCM-Core\TESW_Common_Core>
Fri Nov 01 14:28:44 2019: isWow64: 0
Fri Nov 01 14:28:44 2019: skipping process C:\Program Files (x86)\MSBuild\14.0\Bin\amd64\MSBuild.exe with pid: 2720
Fri Nov 01 14:28:44 2019: process created with pid: 21104
Fri Nov 01 14:28:44 2019: image path name: <C:\Program Files (x86)\MSBuild\14.0\Bin\amd64\MSBuild.exe>
Fri Nov 01 14:28:44 2019: command line: <“C:\Program Files (x86)\MSBuild\14.0\Bin\amd64\MSBuild.exe” /t:Rebuild .\AXF-RTT_Muti_Project\multi-project\multi-project.sln>
Fri Nov 01 14:28:44 2019: working directory: <C:\code\ALCM-Core\TESW_Common_Core>
Fri Nov 01 14:28:44 2019: isWow64: 0
Fri Nov 01 14:28:44 2019: skipping process C:\Program Files (x86)\MSBuild\14.0\Bin\amd64\MSBuild.exe with pid: 21104
Fri Nov 01 14:28:44 2019: process created with pid: 15000
Fri Nov 01 14:28:44 2019: image path name: <C:\Program Files (x86)\MSBuild\14.0\Bin\amd64\MSBuild.exe>
Fri Nov 01 14:28:44 2019: command line: <“C:\Program Files (x86)\MSBuild\14.0\Bin\amd64\MSBuild.exe” /t:Rebuild .\AXF-RTT_Muti_Project\multi-project\multi-project.sln>
Fri Nov 01 14:28:44 2019: working directory: <C:\code\ALCM-Core\TESW_Common_Core>
Fri Nov 01 14:28:44 2019: isWow64: 0
Fri Nov 01 14:28:44 2019: skipping process C:\Program Files (x86)\MSBuild\14.0\Bin\amd64\MSBuild.exe with pid: 15000
Fri Nov 01 14:28:44 2019: process created with pid: 21640
Fri Nov 01 14:28:44 2019: image path name: <C:\Program Files (x86)\MSBuild\14.0\Bin\amd64\MSBuild.exe>
Fri Nov 01 14:28:44 2019: command line: <“C:\Program Files (x86)\MSBuild\14.0\Bin\amd64\MSBuild.exe” /t:Rebuild .\AXF-RTT_Muti_Project\multi-project\multi-project.sln>
Fri Nov 01 14:28:44 2019: working directory: <C:\code\ALCM-Core\TESW_Common_Core>
Fri Nov 01 14:28:44 2019: isWow64: 0
Fri Nov 01 14:28:44 2019: skipping process C:\Program Files (x86)\MSBuild\14.0\Bin\amd64\MSBuild.exe with pid: 21640
– snip… more of the same
Fri Nov 01 14:28:47 2019: process created with pid: 3208
Fri Nov 01 14:28:47 2019: image path name: <C:\Program Files (x86)\MSBuild\14.0\Bin\amd64\MSBuild.exe>
Fri Nov 01 14:28:47 2019: command line: <“C:\Program Files (x86)\MSBuild\14.0\Bin\amd64\MSBuild.exe” /t:Rebuild .\AXF-RTT_Muti_Project\multi-project\multi-project.sln>
Fri Nov 01 14:28:47 2019: working directory: <C:\code\ALCM-Core\TESW_Common_Core>
Fri Nov 01 14:28:47 2019: isWow64: 0
Fri Nov 01 14:28:47 2019: skipping process C:\Program Files (x86)\MSBuild\14.0\Bin\amd64\MSBuild.exe with pid: 3208
Fri Nov 01 14:28:47 2019: process created with pid: 13652
Fri Nov 01 14:28:47 2019: image path name: <C:\Program Files (x86)\MSBuild\14.0\Bin\amd64\MSBuild.exe>
Fri Nov 01 14:28:47 2019: command line: <“C:\Program Files (x86)\MSBuild\14.0\Bin\amd64\MSBuild.exe” /t:Rebuild .\AXF-RTT_Muti_Project\multi-project\multi-project.sln>
Fri Nov 01 14:28:47 2019: working directory: <C:\code\ALCM-Core\TESW_Common_Core>
Fri Nov 01 14:28:47 2019: isWow64: 0
Fri Nov 01 14:28:47 2019: skipping process C:\Program Files (x86)\MSBuild\14.0\Bin\amd64\MSBuild.exe with pid: 13652
Fri Nov 01 14:28:47 2019: process with pid 2720 exit with code: 0 (0x0)
Fri Nov 01 14:28:47 2019: finalizing json file

Hi @vanwykch,

could you rerun msbuild with option /nodeReuse:false?

I tried it. The results were the same.

Hi @vanwykch,

you are using build-wrapper 6.0 which is old, could you use latest version 6.4 of both the analyzer and the build-wrapper?

Where do I get 6.4? Downloading from my server gives me 6.3. It is a corporate server, so I can’t update it.

Hi @vanwykch,

version 6.4 is available from SonarQube 7.9 which is an LTS version. You should anyway use the latest build-wrapper available on your server and not the 6.0 version.