SoftwareNetwork / sw

Software Manager. Build System, Build System Generator and Package Manager. C/C++ and other languages. Tools and libraries for Software Management.
https://software-network.org
Other
118 stars 24 forks source link

SW error "Cannot match VS include prefix" when building leptonica on Windows #63

Closed sdouthat closed 3 years ago

sdouthat commented 3 years ago

I'm trying to build the latest leptonica source (1.80.0) on Windows and I'm getting "Cannot match VS include prefix" error from SW.exe. I have several versions of Visual Studio installed - maybe that's confusing it? Here is the output from running build with the trace option:

Starting sw...
version:
sw.client.sw version 1.0.0
git revision 22757a4388a99010ffdee79011fbde5af50cee17 plus 8 modified files
assembled on
22.03.2021 10:41:23 UTC
22.03.2021 06:41:23 Eastern Daylight Time
command line:
C:\dev\current\sdk\external\leptonica\leptonica-1.80.0\build\sw.exe -trace build
Checking remote version
Host configuration: {"os":{"arch":"x86_64","kernel":"com.Microsoft.Windows.NT"}}
Registering driver: org.sw.sw.driver.cpp-0.4.1
dir input "C:/dev/current/sdk/external/leptonica/leptonica-1.80.0/build"
build id 00000178AD80B670 performing void __cdecl sw::SwBuild::loadInputs(void)
Loading input C:/dev/current/sdk/external/leptonica/leptonica-1.80.0/build, settings = {"os":{"arch":"x86_64","kernel":"com.Microsoft.Windows.NT"}}
Loading input C:/dev/current/sdk/external/leptonica/leptonica-1.80.0/build, settings = {"os":{"arch":"x86_64","kernel":"com.Microsoft.Windows.NT"}}
Detected target: com.Microsoft.VisualStudio.VC.cl-19.16.27041: {"os":{"arch":"x86_64","kernel":"com.Microsoft.Windows.NT"}}
Detected program: C:\Program Files (x86)\Microsoft Visual Studio\2017\Professional\VC\Tools\MSVC\14.16.27023\bin\Hostx64\x64\cl.exe
Detected target: msvc-19.16.27041: {"os":{"arch":"x86_64","kernel":"com.Microsoft.Windows.NT"}}
Detected target: com.Microsoft.VisualStudio.VC.link-19.16.27041: {"os":{"arch":"x86_64","kernel":"com.Microsoft.Windows.NT"}}
Detected program: C:\Program Files (x86)\Microsoft Visual Studio\2017\Professional\VC\Tools\MSVC\14.16.27023\bin\Hostx64\x64\link.exe
Detected target: com.Microsoft.VisualStudio.VC.lib-19.16.27041: {"os":{"arch":"x86_64","kernel":"com.Microsoft.Windows.NT"}}
Detected program: C:\Program Files (x86)\Microsoft Visual Studio\2017\Professional\VC\Tools\MSVC\14.16.27023\bin\Hostx64\x64\lib.exe
Detected target: com.Microsoft.VisualStudio.VC.ml-19.16.27041: {"os":{"arch":"x86_64","kernel":"com.Microsoft.Windows.NT"}}
Detected program: C:\Program Files (x86)\Microsoft Visual Studio\2017\Professional\VC\Tools\MSVC\14.16.27023\bin\Hostx64\x64\ml64.exe
Detected target: com.Microsoft.VisualStudio.VC.dumpbin-19.16.27041: {"os":{"arch":"x86_64","kernel":"com.Microsoft.Windows.NT"}}
Detected program: C:\Program Files (x86)\Microsoft Visual Studio\2017\Professional\VC\Tools\MSVC\14.16.27023\bin\Hostx64\x64\dumpbin.exe
Detected target: com.Microsoft.VisualStudio.VC.libcpp-19.16.27041: {"os":{"arch":"x86_64","kernel":"com.Microsoft.Windows.NT"}}
Detected target: com.Microsoft.VisualStudio.VC.ATLMFC-19.16.27041: {"os":{"arch":"x86_64","kernel":"com.Microsoft.Windows.NT"}}
Detected target: com.Microsoft.VisualStudio.VC.concrt-19.16.27041: {"os":{"arch":"x86_64","kernel":"com.Microsoft.Windows.NT"}}
Detected target: com.Microsoft.VisualStudio.VC.runtime-19.16.27041: {"os":{"arch":"x86_64","kernel":"com.Microsoft.Windows.NT"}}
Detected target: com.Microsoft.VisualStudio.VC.cl-19.22.27905: {"os":{"arch":"x86_64","kernel":"com.Microsoft.Windows.NT"}}
Detected program: C:\Program Files (x86)\Microsoft Visual Studio\2019\Professional\VC\Tools\MSVC\14.22.27905\bin\Hostx64\x64\cl.exe
Detected target: msvc-19.22.27905: {"os":{"arch":"x86_64","kernel":"com.Microsoft.Windows.NT"}}
Detected target: com.Microsoft.VisualStudio.VC.link-19.22.27905: {"os":{"arch":"x86_64","kernel":"com.Microsoft.Windows.NT"}}
Detected program: C:\Program Files (x86)\Microsoft Visual Studio\2019\Professional\VC\Tools\MSVC\14.22.27905\bin\Hostx64\x64\link.exe
Detected target: com.Microsoft.VisualStudio.VC.lib-19.22.27905: {"os":{"arch":"x86_64","kernel":"com.Microsoft.Windows.NT"}}
Detected program: C:\Program Files (x86)\Microsoft Visual Studio\2019\Professional\VC\Tools\MSVC\14.22.27905\bin\Hostx64\x64\lib.exe
Detected target: com.Microsoft.VisualStudio.VC.ml-19.22.27905: {"os":{"arch":"x86_64","kernel":"com.Microsoft.Windows.NT"}}
Detected program: C:\Program Files (x86)\Microsoft Visual Studio\2019\Professional\VC\Tools\MSVC\14.22.27905\bin\Hostx64\x64\ml64.exe
Detected target: com.Microsoft.VisualStudio.VC.dumpbin-19.22.27905: {"os":{"arch":"x86_64","kernel":"com.Microsoft.Windows.NT"}}
Detected program: C:\Program Files (x86)\Microsoft Visual Studio\2019\Professional\VC\Tools\MSVC\14.22.27905\bin\Hostx64\x64\dumpbin.exe
Detected target: com.Microsoft.VisualStudio.VC.libcpp-19.22.27905: {"os":{"arch":"x86_64","kernel":"com.Microsoft.Windows.NT"}}
Detected target: com.Microsoft.VisualStudio.VC.ATLMFC-19.22.27905: {"os":{"arch":"x86_64","kernel":"com.Microsoft.Windows.NT"}}
Detected target: com.Microsoft.VisualStudio.VC.concrt-19.22.27905: {"os":{"arch":"x86_64","kernel":"com.Microsoft.Windows.NT"}}
Detected target: com.Microsoft.VisualStudio.VC.runtime-19.22.27905: {"os":{"arch":"x86_64","kernel":"com.Microsoft.Windows.NT"}}
Detected target: com.Microsoft.VisualStudio.VC.cl-19.16.27041: {"os":{"arch":"x86","kernel":"com.Microsoft.Windows.NT"}}
Detected program: C:\Program Files (x86)\Microsoft Visual Studio\2017\Professional\VC\Tools\MSVC\14.16.27023\bin\Hostx64\x86\cl.exe
Detected target: com.Microsoft.VisualStudio.VC.link-19.16.27041: {"os":{"arch":"x86","kernel":"com.Microsoft.Windows.NT"}}
Detected program: C:\Program Files (x86)\Microsoft Visual Studio\2017\Professional\VC\Tools\MSVC\14.16.27023\bin\Hostx64\x86\link.exe
Detected target: com.Microsoft.VisualStudio.VC.lib-19.16.27041: {"os":{"arch":"x86","kernel":"com.Microsoft.Windows.NT"}}
Detected program: C:\Program Files (x86)\Microsoft Visual Studio\2017\Professional\VC\Tools\MSVC\14.16.27023\bin\Hostx64\x86\lib.exe
Detected target: com.Microsoft.VisualStudio.VC.ml-19.16.27041: {"os":{"arch":"x86","kernel":"com.Microsoft.Windows.NT"}}
Detected program: C:\Program Files (x86)\Microsoft Visual Studio\2017\Professional\VC\Tools\MSVC\14.16.27023\bin\Hostx64\x86\ml.exe
Detected target: com.Microsoft.VisualStudio.VC.dumpbin-19.16.27041: {"os":{"arch":"x86","kernel":"com.Microsoft.Windows.NT"}}
Detected program: C:\Program Files (x86)\Microsoft Visual Studio\2017\Professional\VC\Tools\MSVC\14.16.27023\bin\Hostx64\x86\dumpbin.exe
Detected target: com.Microsoft.VisualStudio.VC.libcpp-19.16.27041: {"os":{"arch":"x86","kernel":"com.Microsoft.Windows.NT"}}
Detected target: com.Microsoft.VisualStudio.VC.ATLMFC-19.16.27041: {"os":{"arch":"x86","kernel":"com.Microsoft.Windows.NT"}}
Detected target: com.Microsoft.VisualStudio.VC.concrt-19.16.27041: {"os":{"arch":"x86","kernel":"com.Microsoft.Windows.NT"}}
Detected target: com.Microsoft.VisualStudio.VC.runtime-19.16.27041: {"os":{"arch":"x86","kernel":"com.Microsoft.Windows.NT"}}
Detected target: com.Microsoft.VisualStudio.VC.cl-19.22.27905: {"os":{"arch":"x86","kernel":"com.Microsoft.Windows.NT"}}
Detected program: C:\Program Files (x86)\Microsoft Visual Studio\2019\Professional\VC\Tools\MSVC\14.22.27905\bin\Hostx64\x86\cl.exe
Detected target: com.Microsoft.VisualStudio.VC.link-19.22.27905: {"os":{"arch":"x86","kernel":"com.Microsoft.Windows.NT"}}
Detected program: C:\Program Files (x86)\Microsoft Visual Studio\2019\Professional\VC\Tools\MSVC\14.22.27905\bin\Hostx64\x86\link.exe
Detected target: com.Microsoft.VisualStudio.VC.lib-19.22.27905: {"os":{"arch":"x86","kernel":"com.Microsoft.Windows.NT"}}
Detected program: C:\Program Files (x86)\Microsoft Visual Studio\2019\Professional\VC\Tools\MSVC\14.22.27905\bin\Hostx64\x86\lib.exe
Detected target: com.Microsoft.VisualStudio.VC.ml-19.22.27905: {"os":{"arch":"x86","kernel":"com.Microsoft.Windows.NT"}}
Detected program: C:\Program Files (x86)\Microsoft Visual Studio\2019\Professional\VC\Tools\MSVC\14.22.27905\bin\Hostx64\x86\ml.exe
Detected target: com.Microsoft.VisualStudio.VC.dumpbin-19.22.27905: {"os":{"arch":"x86","kernel":"com.Microsoft.Windows.NT"}}
Detected program: C:\Program Files (x86)\Microsoft Visual Studio\2019\Professional\VC\Tools\MSVC\14.22.27905\bin\Hostx64\x86\dumpbin.exe
Detected target: com.Microsoft.VisualStudio.VC.libcpp-19.22.27905: {"os":{"arch":"x86","kernel":"com.Microsoft.Windows.NT"}}
Detected target: com.Microsoft.VisualStudio.VC.ATLMFC-19.22.27905: {"os":{"arch":"x86","kernel":"com.Microsoft.Windows.NT"}}
Detected target: com.Microsoft.VisualStudio.VC.concrt-19.22.27905: {"os":{"arch":"x86","kernel":"com.Microsoft.Windows.NT"}}
Detected target: com.Microsoft.VisualStudio.VC.runtime-19.22.27905: {"os":{"arch":"x86","kernel":"com.Microsoft.Windows.NT"}}
detectMsvcCommon: "C:\\Program Files (x86)\\Microsoft Visual Studio\\2017\\Professional\\VC\\Tools\\MSVC\\14.16.27023\\bin\\Hostx64\\arm\\cl.exe" does not exists
detectMsvcCommon: "C:\\Program Files (x86)\\Microsoft Visual Studio\\2019\\Professional\\VC\\Tools\\MSVC\\14.22.27905\\bin\\Hostx64\\arm\\cl.exe" does not exists
detectMsvcCommon: "C:\\Program Files (x86)\\Microsoft Visual Studio\\2017\\Professional\\VC\\Tools\\MSVC\\14.16.27023\\bin\\Hostx64\\arm64\\cl.exe" does not exists
detectMsvcCommon: "C:\\Program Files (x86)\\Microsoft Visual Studio\\2019\\Professional\\VC\\Tools\\MSVC\\14.22.27905\\bin\\Hostx64\\arm64\\cl.exe" does not exists
Detecting msvc 14 and older
Found VS140COMNTOOLS=C:\Program Files (x86)\Microsoft Visual Studio 14.0\Common7\Tools\
Use VS140COMNTOOLS as "C:\\Program Files (x86)\\Microsoft Visual Studio 14.0"
detectMsvcCommon: "C:\\Program Files (x86)\\Microsoft Visual Studio 14.0\\VC\\bin\\amd64\\cl.exe" does not exists
detectMsvcCommon: "C:\\Program Files (x86)\\Microsoft Visual Studio 14.0\\VC\\bin\\amd64_x86\\cl.exe" does not exists
detectMsvcCommon: "C:\\Program Files (x86)\\Microsoft Visual Studio 14.0\\VC\\bin\\amd64_arm\\cl.exe" does not exists
Default VS2015 paths were not found. Trying older versions layout.
detectMsvcCommon: "C:\\Program Files (x86)\\Microsoft Visual Studio 14.0\\VC\\bin\\x86_amd64\\cl.exe" does not exists
detectMsvcCommon: "C:\\Program Files (x86)\\Microsoft Visual Studio 14.0\\VC\\bin\\cl.exe" does not exists
Found VS120COMNTOOLS=C:\Program Files (x86)\Microsoft Visual Studio 12.0\Common7\Tools\
Use VS120COMNTOOLS as "C:\\Program Files (x86)\\Microsoft Visual Studio 12.0"
Detected target: com.Microsoft.VisualStudio.VC.cl-18.0.40629: {"os":{"arch":"x86_64","kernel":"com.Microsoft.Windows.NT"}}
Detected program: C:\Program Files (x86)\Microsoft Visual Studio 12.0\VC\bin\amd64\cl.exe
Detected target: msvc-18.0.40629: {"os":{"arch":"x86_64","kernel":"com.Microsoft.Windows.NT"}}
Detected target: com.Microsoft.VisualStudio.VC.link-18.0.40629: {"os":{"arch":"x86_64","kernel":"com.Microsoft.Windows.NT"}}
Detected program: C:\Program Files (x86)\Microsoft Visual Studio 12.0\VC\bin\amd64\link.exe
Detected target: com.Microsoft.VisualStudio.VC.lib-18.0.40629: {"os":{"arch":"x86_64","kernel":"com.Microsoft.Windows.NT"}}
Detected program: C:\Program Files (x86)\Microsoft Visual Studio 12.0\VC\bin\amd64\lib.exe
Detected target: com.Microsoft.VisualStudio.VC.ml-18.0.40629: {"os":{"arch":"x86_64","kernel":"com.Microsoft.Windows.NT"}}
Detected program: C:\Program Files (x86)\Microsoft Visual Studio 12.0\VC\bin\amd64\ml64.exe
Detected target: com.Microsoft.VisualStudio.VC.dumpbin-18.0.40629: {"os":{"arch":"x86_64","kernel":"com.Microsoft.Windows.NT"}}
Detected program: C:\Program Files (x86)\Microsoft Visual Studio 12.0\VC\bin\amd64\dumpbin.exe
Detected target: com.Microsoft.VisualStudio.VC.libcpp-18.0.40629: {"os":{"arch":"x86_64","kernel":"com.Microsoft.Windows.NT"}}
Detected target: com.Microsoft.VisualStudio.VC.ATLMFC-18.0.40629: {"os":{"arch":"x86_64","kernel":"com.Microsoft.Windows.NT"}}
Detected target: com.Microsoft.VisualStudio.VC.cl-18.0.40629: {"os":{"arch":"x86","kernel":"com.Microsoft.Windows.NT"}}
Detected program: C:\Program Files (x86)\Microsoft Visual Studio 12.0\VC\bin\amd64_x86\cl.exe
Detected target: com.Microsoft.VisualStudio.VC.link-18.0.40629: {"os":{"arch":"x86","kernel":"com.Microsoft.Windows.NT"}}
Detected program: C:\Program Files (x86)\Microsoft Visual Studio 12.0\VC\bin\amd64_x86\link.exe
Detected target: com.Microsoft.VisualStudio.VC.lib-18.0.40629: {"os":{"arch":"x86","kernel":"com.Microsoft.Windows.NT"}}
Detected program: C:\Program Files (x86)\Microsoft Visual Studio 12.0\VC\bin\amd64_x86\lib.exe
Detected target: com.Microsoft.VisualStudio.VC.ml-18.0.40629: {"os":{"arch":"x86","kernel":"com.Microsoft.Windows.NT"}}
Detected program: C:\Program Files (x86)\Microsoft Visual Studio 12.0\VC\bin\amd64_x86\ml.exe
Detected target: com.Microsoft.VisualStudio.VC.dumpbin-18.0.40629: {"os":{"arch":"x86","kernel":"com.Microsoft.Windows.NT"}}
Detected program: C:\Program Files (x86)\Microsoft Visual Studio 12.0\VC\bin\amd64_x86\dumpbin.exe
Detected target: com.Microsoft.VisualStudio.VC.libcpp-18.0.40629: {"os":{"arch":"x86","kernel":"com.Microsoft.Windows.NT"}}
Detected target: com.Microsoft.VisualStudio.VC.ATLMFC-18.0.40629: {"os":{"arch":"x86","kernel":"com.Microsoft.Windows.NT"}}
Detected target: com.Microsoft.VisualStudio.VC.cl-18.0.40629: {"os":{"arch":"arm","kernel":"com.Microsoft.Windows.NT"}}
Detected program: C:\Program Files (x86)\Microsoft Visual Studio 12.0\VC\bin\amd64_arm\cl.exe
Detected target: com.Microsoft.VisualStudio.VC.link-18.0.40629: {"os":{"arch":"arm","kernel":"com.Microsoft.Windows.NT"}}
Detected program: C:\Program Files (x86)\Microsoft Visual Studio 12.0\VC\bin\amd64_arm\link.exe
Detected target: com.Microsoft.VisualStudio.VC.lib-18.0.40629: {"os":{"arch":"arm","kernel":"com.Microsoft.Windows.NT"}}
Detected program: C:\Program Files (x86)\Microsoft Visual Studio 12.0\VC\bin\amd64_arm\lib.exe
Detected target: com.Microsoft.VisualStudio.VC.dumpbin-18.0.40629: {"os":{"arch":"arm","kernel":"com.Microsoft.Windows.NT"}}
Detected program: C:\Program Files (x86)\Microsoft Visual Studio 12.0\VC\bin\amd64_arm\dumpbin.exe
Detected target: com.Microsoft.VisualStudio.VC.libcpp-18.0.40629: {"os":{"arch":"arm","kernel":"com.Microsoft.Windows.NT"}}
Detected target: com.Microsoft.VisualStudio.VC.ATLMFC-18.0.40629: {"os":{"arch":"arm","kernel":"com.Microsoft.Windows.NT"}}
Found VS110COMNTOOLS=C:\Program Files (x86)\Microsoft Visual Studio 11.0\Common7\Tools\
Use VS110COMNTOOLS as "C:\\Program Files (x86)\\Microsoft Visual Studio 11.0"
detectMsvcCommon: "C:\\Program Files (x86)\\Microsoft Visual Studio 11.0\\VC\\bin\\amd64\\cl.exe" does not exists
detectMsvcCommon: "C:\\Program Files (x86)\\Microsoft Visual Studio 11.0\\VC\\bin\\amd64_x86\\cl.exe" does not exists
detectMsvcCommon: "C:\\Program Files (x86)\\Microsoft Visual Studio 11.0\\VC\\bin\\amd64_arm\\cl.exe" does not exists
Default VS2015 paths were not found. Trying older versions layout.
Empty stdout from 'C:/Program Files (x86)/Microsoft Visual Studio 11.0/VC/bin/x86_amd64/cl.exe', trying stderr. Cmd: "C:/Program Files (x86)/Microsoft Visual Studio 11.0/VC/bin/x86_amd64/cl.exe" "/showIncludes" "/c" "C:\Users\sdouthat\AppData\Local\Temp\sw\cliprefix\53e3-daf0-d974-64a1.c" "/FoC:\Users\sdouthat\AppData\Local\Temp\sw\cliprefix\53e3-daf0-d974-64a1.c.obj"
Exception in file D:/dev/cppan2/client2/src/sw/driver/compiler/detect.cpp:73, function detectMsvcPrefix: Cannot match VS include prefix (Bad output: "C:/Program Files (x86)/Microsoft Visual Studio 11.0/VC/bin/x86_amd64/cl.exe" "/showIncludes" "/c" "C:\Users\sdouthat\AppData\Local\Temp\sw\cliprefix\53e3-daf0-d974-64a1.c" "/FoC:\Users\sdouthat\AppData\Local\Temp\sw\cliprefix\53e3-daf0-d974-64a1.c.obj"):

stderr:
egorpugin commented 3 years ago

Interesting. Can you run "C:/Program Files (x86)/Microsoft Visual Studio 11.0/VC/bin/x86_amd64/cl.exe" "/showIncludes" "/c" "1.c" with 1.c containing #include <stdio.h> and post output?

egorpugin commented 3 years ago

Or create empty 1.h and set 1.c to #include "1.h"

sdouthat commented 3 years ago

Here is what I got. I also tried with a newer version of Visual Studio (2017) and got the same error:

PS C:\dev\current\sdk\external\leptonica\leptonica-1.80.0\build> "C:/Program Files (x86)/Microsoft Visual Studio 11.0/VC/bin/x86_amd64/cl.exe" /showIncludes /c 1.c At line:1 char:80

egorpugin commented 3 years ago

Call it from cmd, not from powershell. Show full output including command.

sdouthat commented 3 years ago

sorry - that last result was not valid. I was running this outside of Visual Studio. When I run the correct cl.exe from a VS 2017 command prompt:

C:\dev\current\sdk\external\leptonica\leptonica-1.80.0\build>"C:\Program Files (x86)\Microsoft Visual Studio\2017\Professional\VC\Tools\MSVC\14.16.27023\bin\Hostx86\x64\cl.exe" /showIncludes /c 1.c Microsoft (R) C/C++ Optimizing Compiler Version 19.16.27041 for x64 Copyright (C) Microsoft Corporation. All rights reserved.

1.c Note: including file: c:\dev\current\sdk\external\leptonica\leptonica-1.80.0\build\1.h

egorpugin commented 3 years ago

1) You don't need vs command prompt. Just press Win+R, type cmd and run commands there. 2) You show VS2017 output, but error is from VS 11.0. Run exactly command I posted.

sdouthat commented 3 years ago

There is no output in this case: C:\Users\sdouthat>cd C:\dev\current\sdk\external\leptonica\leptonica-1.80.0\build

C:\dev\current\sdk\external\leptonica\leptonica-1.80.0\build>"C:/Program Files (x86)/Microsoft Visual Studio 11.0/VC/bin/x86_amd64/cl.exe" /showIncludes /c 1.c

C:\dev\current\sdk\external\leptonica\leptonica-1.80.0\build>

egorpugin commented 3 years ago

And 1.c has #include "1.h" or #include <stdio.h>? Try with 1.h also.

sdouthat commented 3 years ago

It has "1.h" - which you can see in the output when I ran from within VS.

egorpugin commented 3 years ago

Also try /c /showIncludes 1.c and /c 1.c /showIncludes - different order.

sdouthat commented 3 years ago

That worked better:

C:\dev\current\sdk\external\leptonica\leptonica-1.80.0\build>"C:\Program Files (x86)\Microsoft Visual Studio\2017\Professional\VC\Tools\MSVC\14.16.27023\bin\Hostx86\x64\cl.exe" /c 1.c /showIncludes Microsoft (R) C/C++ Optimizing Compiler Version 19.16.27041 for x64 Copyright (C) Microsoft Corporation. All rights reserved.

1.c Note: including file: c:\dev\current\sdk\external\leptonica\leptonica-1.80.0\build\1.h

egorpugin commented 3 years ago

Again you are calling VS2017. "C:\Program Files (x86)\Microsoft Visual Studio\2017\Professional\VC\Tools\MSVC\14.16.27023\bin\Hostx86\x64\cl.exe"

Call VS 11.

sdouthat commented 3 years ago

system error: mspdb110.dll not found

Here is my path (with newlines instead of semi-colons): PATH=C:\Program Files\AdoptOpenJDK\jdk-11.0.8.10-hotspot\bin C:\Program Files\AdoptOpenJDK\jdk-8.0.242.08-hotspot\bin C:\Program Files (x86)\Intel\Intel(R) Management Engine Components\iCLS\ C:\Program Files\Intel\Intel(R) Management Engine Components\iCLS\ C:\ProgramData\Oracle\Java\javapath C:\WINDOWS\system32 C:\WINDOWS C:\WINDOWS\System32\Wbem C:\WINDOWS\System32\WindowsPowerShell\v1.0\ C:\WINDOWS\CCM C:\Program Files\Intel\WiFi\bin\ C:\Program Files\Common Files\Intel\WirelessCommon\ C:\Program Files (x86)\Intel\Intel(R) Management Engine Components\DAL C:\Program Files\Intel\Intel(R) Management Engine Components\DAL C:\Program Files (x86)\Intel\Intel(R) Management Engine Components\IPT C:\Program Files\Intel\Intel(R) Management Engine Components\IPT C:\Program Files\Microsoft SQL Server\110\Tools\Binn\ C:\Program Files (x86)\Microsoft SDKs\TypeScript\1.0\ C:\Program Files\Microsoft SQL Server\120\Tools\Binn\ c:\Program Files (x86)\Microsoft SQL Server\100\Tools\Binn\ c:\Program Files\Microsoft SQL Server\100\Tools\Binn\ c:\Program Files\Microsoft SQL Server\100\DTS\Binn\ C:\Strawberry\c\bin C:\Strawberry\perl\site\bin C:\Strawberry\perl\bin C:\Program Files\apache-ant-1.10.5\bin C:\WINDOWS\System32\OpenSSH\ C:\Program Files\dotnet\ C:\Program Files\Microsoft SQL Server\130\Tools\Binn\ C:\Program Files (x86)\Symantec\VIP Access Client\ C:\Program Files\Git\cmd C:\Program Files\TortoiseSVN\bin C:\Users\sdouthat\AppData\Local\Programs\Python\Python37-32\Scripts\ C:\Users\sdouthat\AppData\Local\Programs\Python\Python37-32\ C:\Users\sdouthat\AppData\Local\Microsoft\WindowsApps

egorpugin commented 3 years ago

Post

cd "C:/Program Files (x86)/Microsoft Visual Studio 11.0/VC/bin/"
tree
sdouthat commented 3 years ago

C:\Program Files (x86)\Microsoft Visual Studio 11.0\VC\bin>tree Folder PATH listing for volume Windows Volume serial number is 82EA-5AEA C:. ├───1033 ├───en-US ├───x86_amd64 │ └───1033 └───x86_arm └───1033

C:\Program Files (x86)\Microsoft Visual Studio 11.0\VC\bin>

egorpugin commented 3 years ago

I see. Also run dir in bin, bin/x86_amd64 and bin/x86_arm.

egorpugin commented 3 years ago

In other words tree /F.

sdouthat commented 3 years ago

C:\Program Files (x86)\Microsoft Visual Studio 11.0\VC\bin>tree /F Folder PATH listing for volume Windows Volume serial number is 82EA-5AEA C:. │ bscmake.exe │ c1.dll │ c1ast.dll │ c1xx.dll │ c1xxast.dll │ c2.dll │ cl.exe │ cl.exe.config │ cvtres.exe │ D3Dcompiler_46.dll │ dpcmi.dll │ dumpbin.exe │ editbin.exe │ lib.exe │ link.exe │ link.exe.config │ ml.exe │ mspft110.dll │ nmake.exe │ undname.exe │ vcmeta.dll │ vcmui.dll │ vcvars32.bat │ xdcmake.exe │ xdcmake.exe.config │ ├───1033 │ bscmakeui.dll │ clui.dll │ cvtresui.dll │ linkui.dll │ mspft110ui.dll │ nmakeui.dll │ vcomp110ui.dll │ ├───en-US │ vcmui.dll.mui │ ├───x86_amd64 │ │ c1.dll │ │ c1ast.dll │ │ c1xx.dll │ │ c1xxast.dll │ │ c2.dll │ │ cl.exe │ │ cl.exe.config │ │ D3DCompiler_46.dll │ │ dpcmi.dll │ │ dumpbin.exe │ │ editbin.exe │ │ lib.exe │ │ link.exe │ │ link.exe.config │ │ ml64.exe │ │ vcmeta.dll │ │ vcvarsx86_amd64.bat │ │ │ └───1033 │ clui.dll │ linkui.dll │ └───x86_arm │ armasm.exe │ c1.dll │ c1ast.dll │ c1xx.dll │ c1xxast.dll │ c2.dll │ cl.exe │ cl.exe.config │ D3DCompiler_46.dll │ dpcmi.dll │ dumpbin.exe │ editbin.exe │ lib.exe │ link.exe │ link.exe.config │ vcmeta.dll │ vcvarsx86_arm.bat │ └───1033 clui.dll linkui.dll

egorpugin commented 3 years ago

Ok, there is no mspdb110.dll. Try to find it in C:\Program Files (x86)\Microsoft Visual Studio 11.0\VC or in C:\Program Files (x86)\Microsoft Visual Studio 11.0 in explorer. And what's its path?

sdouthat commented 3 years ago

C:\Program Files (x86)\Microsoft Visual Studio 11.0\Common7\IDE

egorpugin commented 3 years ago

I see, thank you! This is the reason. I'll try to prepare a fix. Can you send output of "C:/Program Files (x86)/Microsoft Visual Studio 11.0/VC/bin/x86_amd64/cl.exe" /? in VS command prompt? I need cl.exe version from VS 11. What you can do now to temporarily fix the issue is to rename C:/Program Files (x86)/Microsoft Visual Studio 11.0/ to, let's say, C:/Program Files (x86)/Microsoft Visual Studio 11.0 123/ and try to build lept.

sdouthat commented 3 years ago

Microsoft (R) C/C++ Optimizing Compiler Version 17.00.60610.1 for x64 Copyright (C) Microsoft Corporation. All rights reserved.

                     C/C++ COMPILER OPTIONS

                          -OPTIMIZATION-

/O1 minimize space /O2 maximize speed /Ob inline expansion (default n=0) /Od disable optimizations (default) /Og enable global optimization /Oi[-] enable intrinsic functions /Os favor code space /Ot favor code speed /Ox maximum optimizations /favor:<blend|AMD64|INTEL64|ATOM> select processor to optimize for, one of: blend - a combination of optimizations for several different x64 processors AMD64 - 64-bit AMD processors INTEL64 - Intel(R)64 architecture processors ATOM - Intel(R) Atom(TM) processors

                         -CODE GENERATION-

/GF enable read-only string pooling /Gm[-] enable minimal rebuild /Gy[-] separate functions for linker /GS[-] enable security checks /GR[-] enable C++ RTTI /GX[-] enable C++ EH (same as /EHsc) /EHs enable C++ EH (no SEH exceptions) /EHa enable C++ EH (w/ SEH exceptions) /EHc extern "C" defaults to nothrow /fp:<except[-]|fast|precise|strict> choose floating-point model: except[-] - consider floating-point exceptions when generating code fast - "fast" floating-point model; results are less predictable

egorpugin commented 3 years ago

Please try this binary without renaming VS dir C:\Program Files (x86)\Microsoft Visual Studio 11.0. Post logs.

sw.client.sw-1.0.0.exe.zip

sdouthat commented 3 years ago

Renaming that folder worked - build appears successful. Many thanks for that!

The new binary (with VS 11 name restored) avoided that problem, but encountered the same error - this time with VS 12 (2013)

egorpugin commented 3 years ago

Can you check where is mspdb120.dll in C:\Program Files (x86)\Microsoft Visual Studio 12.0?

egorpugin commented 3 years ago

This binary tries to fix VS 12.0 issue using the same dir (common7/ide).

sw.client.sw-1.0.0.exe.zip

sdouthat commented 3 years ago

That one failed as well. Sorry, but I have to leave now for the weekend. I will continue this on Monday. Thanks again.

egorpugin commented 3 years ago

Ok, thank you.

Please post logs when you are back.

but encountered the same error - this time with VS 12 (2013)

(no logs posted unfortunately)

sdouthat commented 3 years ago

C:\dev\current\sdk\external\leptonica\leptonica-1.80.0\build>cmake .. -DBUILD_SHARED_LIBS=OFF -- Building for: Visual Studio 15 2017 -- Selecting Windows SDK version 10.0.18362.0 to target Windows 10.0.18363. -- The C compiler identification is MSVC 19.16.27041.0 -- The CXX compiler identification is MSVC 19.16.27041.0 -- Check for working C compiler: C:/Program Files (x86)/Microsoft Visual Studio/2017/Professional/VC/Tools/MSVC/14.16.27023/bin/Hostx86/x86/cl.exe -- Check for working C compiler: C:/Program Files (x86)/Microsoft Visual Studio/2017/Professional/VC/Tools/MSVC/14.16.27023/bin/Hostx86/x86/cl.exe -- works -- Detecting C compiler ABI info -- Detecting C compiler ABI info - done -- Detecting C compile features -- Detecting C compile features - done -- Check for working CXX compiler: C:/Program Files (x86)/Microsoft Visual Studio/2017/Professional/VC/Tools/MSVC/14.16.27023/bin/Hostx86/x86/cl.exe -- Check for working CXX compiler: C:/Program Files (x86)/Microsoft Visual Studio/2017/Professional/VC/Tools/MSVC/14.16.27023/bin/Hostx86/x86/cl.exe -- works -- Detecting CXX compiler ABI info -- Detecting CXX compiler ABI info - done -- Detecting CXX compile features -- Detecting CXX compile features - done -- Found SW: C:/dev/current/sdk/external/leptonica/leptonica-1.80.0/build/sw.exe -- sw: processing dependencies Downloading database from origin remote Downloading: [org.sw.demo.sqlite3-3.35.4]/[Source Archive] Unpacking : [org.sw.demo.sqlite3-3.35.4]/[Source Archive] Exception in file D:\dev\cppan2\client2\src\sw\driver\compiler\detect.cpp:75, function detectMsvcPrefix: Cannot match VS include prefix (Bad output: "C:/Program Files (x86)/Microsoft Visual Studio 12.0/VC/bin/amd64_x86/cl.exe" "/showIncludes" "/c" "C:\Users\sdouthat\AppData\Local\Temp\sw\cliprefix\e558-ff74-e945-c435.c" "/FoC:\Users\sdouthat\AppData\Local\Temp\sw\cliprefix\e558-ff74-e945-c435.c.obj"):

stderr: sw command: C:/dev/current/sdk/external/leptonica/leptonica-1.80.0/build/sw.exe -static -platform x86 -compiler msvc-19.16 -d C:/dev/current/sdk/external/leptonica/leptonica-1.80.0/build/.sw/cmake -config d,msr,rwdi,r integrate -cmake-deps C:/dev/current/sdk/external/leptonica/leptonica-1.80.0/build/.sw/cmake/sw.txt -cmake-file-version 4 CMake Error at C:/Users/sdouthat/.sw/storage/etc/sw/static/SWConfig.cmake:232 (message): sw: non-zero exit code: 1 Call Stack (most recent call first): CMakeLists.txt:120 (sw_execute)

-- Configuring incomplete, errors occurred! See also "C:/dev/current/sdk/external/leptonica/leptonica-1.80.0/build/CMakeFiles/CMakeOutput.log".

C:\dev\current\sdk\external\leptonica\leptonica-1.80.0\build>

egorpugin commented 3 years ago

Can you check https://github.com/SoftwareNetwork/sw/issues/63#issuecomment-812717204 ?

sdouthat commented 3 years ago

mspdb120.dll is in: C:\Program Files (x86)\Microsoft Visual Studio 12.0\VC\bin and C:\Program Files (x86)\Microsoft Visual Studio 12.0\VC\bin\amd64

egorpugin commented 3 years ago

Run cmake .. -DBUILD_SHARED_LIBS=OFF -DSW_DEBUG=1 There will be full sw command in the log. Copy and run it with -trace flag. Post logs.

sdouthat commented 3 years ago

C:\dev\current\sdk\external\leptonica\test\leptonica-1.80.0\build>C:/dev/current/sdk/external/leptonica/bin/sw.exe -trace -static -platform x86 -compiler msvc-19.16 -d C:/dev/current/sdk/external/leptonica/test/leptonica-1.80.0/build/.sw/cmake -config d,msr,rwdi,r integrate -cmake-deps C:/dev/current/sdk/external/leptonica/test/leptonica-1.80.0/build/.sw/cmake/sw.txt -cmake-file-version 4

Starting sw... version: sw.client.sw version 1.0.0 git revision 22757a4388a99010ffdee79011fbde5af50cee17 plus 9 modified files assembled on 02.04.2021 21:18:16 UTC 02.04.2021 17:18:16 Eastern Daylight Time command line: C:/dev/current/sdk/external/leptonica/bin/sw.exe -trace -static -platform x86 -compiler msvc-19.16 -d C:/dev/current/sdk/external/leptonica/test/leptonica-1.80.0/build/.sw/cmake -config d,msr,rwdi,r integrate -cmake-deps C:/dev/current/sdk/external/leptonica/test/leptonica-1.80.0/build/.sw/cmake/sw.txt -cmake-file-version 4 Checking remote version Host configuration: {"os":{"arch":"x86_64","kernel":"com.Microsoft.Windows.NT"}} Registering driver: org.sw.sw.driver.cpp-0.4.1 Loading input: org.sw.demo.gif-5.2.1 using sw frontend for input "C:/Users/sdouthat/.sw/storage/pkg/89/dc/64e7/src/sdir\sw.cpp" Loading input: org.sw.demo.jpeg-9.4.0 using sw frontend for input "C:/Users/sdouthat/.sw/storage/pkg/a9/0c/280b/src/sdir\sw.cpp" Loading input: org.sw.demo.glennrp.png-1.6.37 using sw frontend for input "C:/Users/sdouthat/.sw/storage/pkg/28/39/9564/src/sdir\sw.cpp" Loading input: org.sw.demo.tiff-4.1.0 using sw frontend for input "C:/Users/sdouthat/.sw/storage/pkg/f5/fe/083c/src/sdir\sw.cpp" Loading input: org.sw.demo.webmproject.webp-1.1.0 using sw frontend for input "C:/Users/sdouthat/.sw/storage/pkg/11/6c/8964/src/sdir\sw.cpp" Loading input: org.sw.demo.uclouvain.openjpeg.openjp2-2.4.0 using sw frontend for input "C:/Users/sdouthat/.sw/storage/pkg/4b/6f/6626/src/sdir\sw.cpp" build id 000002198249E9C0 performing void __cdecl sw::SwBuild::loadInputs(void) Detected target: com.Microsoft.VisualStudio.VC.cl-19.16.27041: {"os":{"arch":"x86_64","kernel":"com.Microsoft.Windows.NT"}} Detected program: C:\Program Files (x86)\Microsoft Visual Studio\2017\Professional\VC\Tools\MSVC\14.16.27023\bin\Hostx64\x64\cl.exe Detected target: msvc-19.16.27041: {"os":{"arch":"x86_64","kernel":"com.Microsoft.Windows.NT"}} Detected target: com.Microsoft.VisualStudio.VC.link-19.16.27041: {"os":{"arch":"x86_64","kernel":"com.Microsoft.Windows.NT"}} Detected program: C:\Program Files (x86)\Microsoft Visual Studio\2017\Professional\VC\Tools\MSVC\14.16.27023\bin\Hostx64\x64\link.exe Detected target: com.Microsoft.VisualStudio.VC.lib-19.16.27041: {"os":{"arch":"x86_64","kernel":"com.Microsoft.Windows.NT"}} Detected program: C:\Program Files (x86)\Microsoft Visual Studio\2017\Professional\VC\Tools\MSVC\14.16.27023\bin\Hostx64\x64\lib.exe Detected target: com.Microsoft.VisualStudio.VC.ml-19.16.27041: {"os":{"arch":"x86_64","kernel":"com.Microsoft.Windows.NT"}} Detected program: C:\Program Files (x86)\Microsoft Visual Studio\2017\Professional\VC\Tools\MSVC\14.16.27023\bin\Hostx64\x64\ml64.exe Detected target: com.Microsoft.VisualStudio.VC.dumpbin-19.16.27041: {"os":{"arch":"x86_64","kernel":"com.Microsoft.Windows.NT"}} Detected program: C:\Program Files (x86)\Microsoft Visual Studio\2017\Professional\VC\Tools\MSVC\14.16.27023\bin\Hostx64\x64\dumpbin.exe Detected target: com.Microsoft.VisualStudio.VC.libcpp-19.16.27041: {"os":{"arch":"x86_64","kernel":"com.Microsoft.Windows.NT"}} Detected target: com.Microsoft.VisualStudio.VC.ATLMFC-19.16.27041: {"os":{"arch":"x86_64","kernel":"com.Microsoft.Windows.NT"}} Detected target: com.Microsoft.VisualStudio.VC.concrt-19.16.27041: {"os":{"arch":"x86_64","kernel":"com.Microsoft.Windows.NT"}} Detected target: com.Microsoft.VisualStudio.VC.runtime-19.16.27041: {"os":{"arch":"x86_64","kernel":"com.Microsoft.Windows.NT"}} Detected target: com.Microsoft.VisualStudio.VC.cl-19.22.27905: {"os":{"arch":"x86_64","kernel":"com.Microsoft.Windows.NT"}} Detected program: C:\Program Files (x86)\Microsoft Visual Studio\2019\Professional\VC\Tools\MSVC\14.22.27905\bin\Hostx64\x64\cl.exe Detected target: msvc-19.22.27905: {"os":{"arch":"x86_64","kernel":"com.Microsoft.Windows.NT"}} Detected target: com.Microsoft.VisualStudio.VC.link-19.22.27905: {"os":{"arch":"x86_64","kernel":"com.Microsoft.Windows.NT"}} Detected program: C:\Program Files (x86)\Microsoft Visual Studio\2019\Professional\VC\Tools\MSVC\14.22.27905\bin\Hostx64\x64\link.exe Detected target: com.Microsoft.VisualStudio.VC.lib-19.22.27905: {"os":{"arch":"x86_64","kernel":"com.Microsoft.Windows.NT"}} Detected program: C:\Program Files (x86)\Microsoft Visual Studio\2019\Professional\VC\Tools\MSVC\14.22.27905\bin\Hostx64\x64\lib.exe Detected target: com.Microsoft.VisualStudio.VC.ml-19.22.27905: {"os":{"arch":"x86_64","kernel":"com.Microsoft.Windows.NT"}} Detected program: C:\Program Files (x86)\Microsoft Visual Studio\2019\Professional\VC\Tools\MSVC\14.22.27905\bin\Hostx64\x64\ml64.exe Detected target: com.Microsoft.VisualStudio.VC.dumpbin-19.22.27905: {"os":{"arch":"x86_64","kernel":"com.Microsoft.Windows.NT"}} Detected program: C:\Program Files (x86)\Microsoft Visual Studio\2019\Professional\VC\Tools\MSVC\14.22.27905\bin\Hostx64\x64\dumpbin.exe Detected target: com.Microsoft.VisualStudio.VC.libcpp-19.22.27905: {"os":{"arch":"x86_64","kernel":"com.Microsoft.Windows.NT"}} Detected target: com.Microsoft.VisualStudio.VC.ATLMFC-19.22.27905: {"os":{"arch":"x86_64","kernel":"com.Microsoft.Windows.NT"}} Detected target: com.Microsoft.VisualStudio.VC.concrt-19.22.27905: {"os":{"arch":"x86_64","kernel":"com.Microsoft.Windows.NT"}} Detected target: com.Microsoft.VisualStudio.VC.runtime-19.22.27905: {"os":{"arch":"x86_64","kernel":"com.Microsoft.Windows.NT"}} Detected target: com.Microsoft.VisualStudio.VC.cl-19.16.27041: {"os":{"arch":"x86","kernel":"com.Microsoft.Windows.NT"}} Detected program: C:\Program Files (x86)\Microsoft Visual Studio\2017\Professional\VC\Tools\MSVC\14.16.27023\bin\Hostx64\x86\cl.exe Detected target: com.Microsoft.VisualStudio.VC.link-19.16.27041: {"os":{"arch":"x86","kernel":"com.Microsoft.Windows.NT"}} Detected program: C:\Program Files (x86)\Microsoft Visual Studio\2017\Professional\VC\Tools\MSVC\14.16.27023\bin\Hostx64\x86\link.exe Detected target: com.Microsoft.VisualStudio.VC.lib-19.16.27041: {"os":{"arch":"x86","kernel":"com.Microsoft.Windows.NT"}} Detected program: C:\Program Files (x86)\Microsoft Visual Studio\2017\Professional\VC\Tools\MSVC\14.16.27023\bin\Hostx64\x86\lib.exe Detected target: com.Microsoft.VisualStudio.VC.ml-19.16.27041: {"os":{"arch":"x86","kernel":"com.Microsoft.Windows.NT"}} Detected program: C:\Program Files (x86)\Microsoft Visual Studio\2017\Professional\VC\Tools\MSVC\14.16.27023\bin\Hostx64\x86\ml.exe Detected target: com.Microsoft.VisualStudio.VC.dumpbin-19.16.27041: {"os":{"arch":"x86","kernel":"com.Microsoft.Windows.NT"}} Detected program: C:\Program Files (x86)\Microsoft Visual Studio\2017\Professional\VC\Tools\MSVC\14.16.27023\bin\Hostx64\x86\dumpbin.exe Detected target: com.Microsoft.VisualStudio.VC.libcpp-19.16.27041: {"os":{"arch":"x86","kernel":"com.Microsoft.Windows.NT"}} Detected target: com.Microsoft.VisualStudio.VC.ATLMFC-19.16.27041: {"os":{"arch":"x86","kernel":"com.Microsoft.Windows.NT"}} Detected target: com.Microsoft.VisualStudio.VC.concrt-19.16.27041: {"os":{"arch":"x86","kernel":"com.Microsoft.Windows.NT"}} Detected target: com.Microsoft.VisualStudio.VC.runtime-19.16.27041: {"os":{"arch":"x86","kernel":"com.Microsoft.Windows.NT"}} Detected target: com.Microsoft.VisualStudio.VC.cl-19.22.27905: {"os":{"arch":"x86","kernel":"com.Microsoft.Windows.NT"}} Detected program: C:\Program Files (x86)\Microsoft Visual Studio\2019\Professional\VC\Tools\MSVC\14.22.27905\bin\Hostx64\x86\cl.exe Detected target: com.Microsoft.VisualStudio.VC.link-19.22.27905: {"os":{"arch":"x86","kernel":"com.Microsoft.Windows.NT"}} Detected program: C:\Program Files (x86)\Microsoft Visual Studio\2019\Professional\VC\Tools\MSVC\14.22.27905\bin\Hostx64\x86\link.exe Detected target: com.Microsoft.VisualStudio.VC.lib-19.22.27905: {"os":{"arch":"x86","kernel":"com.Microsoft.Windows.NT"}} Detected program: C:\Program Files (x86)\Microsoft Visual Studio\2019\Professional\VC\Tools\MSVC\14.22.27905\bin\Hostx64\x86\lib.exe Detected target: com.Microsoft.VisualStudio.VC.ml-19.22.27905: {"os":{"arch":"x86","kernel":"com.Microsoft.Windows.NT"}} Detected program: C:\Program Files (x86)\Microsoft Visual Studio\2019\Professional\VC\Tools\MSVC\14.22.27905\bin\Hostx64\x86\ml.exe Detected target: com.Microsoft.VisualStudio.VC.dumpbin-19.22.27905: {"os":{"arch":"x86","kernel":"com.Microsoft.Windows.NT"}} Detected program: C:\Program Files (x86)\Microsoft Visual Studio\2019\Professional\VC\Tools\MSVC\14.22.27905\bin\Hostx64\x86\dumpbin.exe Detected target: com.Microsoft.VisualStudio.VC.libcpp-19.22.27905: {"os":{"arch":"x86","kernel":"com.Microsoft.Windows.NT"}} Detected target: com.Microsoft.VisualStudio.VC.ATLMFC-19.22.27905: {"os":{"arch":"x86","kernel":"com.Microsoft.Windows.NT"}} Detected target: com.Microsoft.VisualStudio.VC.concrt-19.22.27905: {"os":{"arch":"x86","kernel":"com.Microsoft.Windows.NT"}} Detected target: com.Microsoft.VisualStudio.VC.runtime-19.22.27905: {"os":{"arch":"x86","kernel":"com.Microsoft.Windows.NT"}} detectMsvcCommon: "C:\Program Files (x86)\Microsoft Visual Studio\2017\Professional\VC\Tools\MSVC\14.16.27023\bin\Hostx64\arm\cl.exe" does not exists detectMsvcCommon: "C:\Program Files (x86)\Microsoft Visual Studio\2019\Professional\VC\Tools\MSVC\14.22.27905\bin\Hostx64\arm\cl.exe" does not exists detectMsvcCommon: "C:\Program Files (x86)\Microsoft Visual Studio\2017\Professional\VC\Tools\MSVC\14.16.27023\bin\Hostx64\arm64\cl.exe" does not exists detectMsvcCommon: "C:\Program Files (x86)\Microsoft Visual Studio\2019\Professional\VC\Tools\MSVC\14.22.27905\bin\Hostx64\arm64\cl.exe" does not exists Detecting msvc 14 and older Found VS140COMNTOOLS=C:\Program Files (x86)\Microsoft Visual Studio 14.0\Common7\Tools\ Use VS140COMNTOOLS as "C:\Program Files (x86)\Microsoft Visual Studio 14.0" detectMsvcCommon: "C:\Program Files (x86)\Microsoft Visual Studio 14.0\VC\bin\amd64\cl.exe" does not exists detectMsvcCommon: "C:\Program Files (x86)\Microsoft Visual Studio 14.0\VC\bin\amd64_x86\cl.exe" does not exists detectMsvcCommon: "C:\Program Files (x86)\Microsoft Visual Studio 14.0\VC\bin\amd64_arm\cl.exe" does not exists Default VS2015 paths were not found. Trying older versions layout. detectMsvcCommon: "C:\Program Files (x86)\Microsoft Visual Studio 14.0\VC\bin\x86_amd64\cl.exe" does not exists detectMsvcCommon: "C:\Program Files (x86)\Microsoft Visual Studio 14.0\VC\bin\cl.exe" does not exists Found VS120COMNTOOLS=C:\Program Files (x86)\Microsoft Visual Studio 12.0\Common7\Tools\ Use VS120COMNTOOLS as "C:\Program Files (x86)\Microsoft Visual Studio 12.0" Detected target: com.Microsoft.VisualStudio.VC.cl-18.0.40629: {"os":{"arch":"x86_64","kernel":"com.Microsoft.Windows.NT"}} Detected program: C:\Program Files (x86)\Microsoft Visual Studio 12.0\VC\bin\amd64\cl.exe Detected target: msvc-18.0.40629: {"os":{"arch":"x86_64","kernel":"com.Microsoft.Windows.NT"}} Detected target: com.Microsoft.VisualStudio.VC.link-18.0.40629: {"os":{"arch":"x86_64","kernel":"com.Microsoft.Windows.NT"}} Detected program: C:\Program Files (x86)\Microsoft Visual Studio 12.0\VC\bin\amd64\link.exe Detected target: com.Microsoft.VisualStudio.VC.lib-18.0.40629: {"os":{"arch":"x86_64","kernel":"com.Microsoft.Windows.NT"}} Detected program: C:\Program Files (x86)\Microsoft Visual Studio 12.0\VC\bin\amd64\lib.exe Detected target: com.Microsoft.VisualStudio.VC.ml-18.0.40629: {"os":{"arch":"x86_64","kernel":"com.Microsoft.Windows.NT"}} Detected program: C:\Program Files (x86)\Microsoft Visual Studio 12.0\VC\bin\amd64\ml64.exe Detected target: com.Microsoft.VisualStudio.VC.dumpbin-18.0.40629: {"os":{"arch":"x86_64","kernel":"com.Microsoft.Windows.NT"}} Detected program: C:\Program Files (x86)\Microsoft Visual Studio 12.0\VC\bin\amd64\dumpbin.exe Detected target: com.Microsoft.VisualStudio.VC.libcpp-18.0.40629: {"os":{"arch":"x86_64","kernel":"com.Microsoft.Windows.NT"}} Detected target: com.Microsoft.VisualStudio.VC.ATLMFC-18.0.40629: {"os":{"arch":"x86_64","kernel":"com.Microsoft.Windows.NT"}} Empty stdout from 'C:/Program Files (x86)/Microsoft Visual Studio 12.0/VC/bin/amd64_x86/cl.exe', trying stderr. Cmd: "C:/Program Files (x86)/Microsoft Visual Studio 12.0/VC/bin/amd64_x86/cl.exe" "/showIncludes" "/c" "C:\Users\sdouthat\AppData\Local\Temp\sw\cliprefix\e450-ce77-a128-a862.c" "/FoC:\Users\sdouthat\AppData\Local\Temp\sw\cliprefix\e450-ce77-a128-a862.c.obj" error code = 3221225781 Exception in file D:\dev\cppan2\client2\src\sw\driver\compiler\detect.cpp:75, function detectMsvcPrefix: Cannot match VS include prefix (Bad output: "C:/Program Files (x86)/Microsoft Visual Studio 12.0/VC/bin/amd64_x86/cl.exe" "/showIncludes" "/c" "C:\Users\sdouthat\AppData\Local\Temp\sw\cliprefix\e450-ce77-a128-a862.c" "/FoC:\Users\sdouthat\AppData\Local\Temp\sw\cliprefix\e450-ce77-a128-a862.c.obj"):

stderr:

C:\dev\current\sdk\external\leptonica\test\leptonica-1.80.0\build>

egorpugin commented 3 years ago
  1. Try same command with this sw.exe. Post logs.
  2. Try to run, post output
    C:/Program Files (x86)/Microsoft Visual Studio 12.0/VC/bin/amd64_x86/cl.exe" "/showIncludes" "/c" "1.c"

    Create 1.c with #include "1.h" and 1.h as before.

sw.client.sw-1.0.0.exe.zip

sdouthat commented 3 years ago

1. C:\dev\current\sdk\external\leptonica\test\leptonica-1.80.0\build>C:/dev/current/sdk/external/leptonica/bin/sw.exe -trace -static -platform x86 -compiler msvc-19.16 -d C:/dev/current/sdk/external/leptonica/test/leptonica-1.80.0/build/.sw/cmake -config d,msr,rwdi,r integrate -cmake-deps C:/dev/current/sdk/external/leptonica/test/leptonica-1.80.0/build/.sw/cmake/sw.txt -cmake-file-version 4

Starting sw... version: sw.client.sw version 1.0.0 git revision 827316a0af08f81d1610689011970593eeb2999e plus 1 modified files assembled on 05.04.2021 16:46:11 UTC 05.04.2021 12:46:11 Eastern Daylight Time command line: C:/dev/current/sdk/external/leptonica/bin/sw.exe -trace -static -platform x86 -compiler msvc-19.16 -d C:/dev/current/sdk/external/leptonica/test/leptonica-1.80.0/build/.sw/cmake -config d,msr,rwdi,r integrate -cmake-deps C:/dev/current/sdk/external/leptonica/test/leptonica-1.80.0/build/.sw/cmake/sw.txt -cmake-file-version 4 Checking remote version Host configuration: {"os":{"arch":"x86_64","kernel":"com.Microsoft.Windows.NT"}} Registering driver: org.sw.sw.driver.cpp-0.4.1 Loading input: org.sw.demo.gif-5.2.1 using sw frontend for input "C:/Users/sdouthat/.sw/storage/pkg/89/dc/64e7/src/sdir\sw.cpp" Loading input: org.sw.demo.jpeg-9.4.0 using sw frontend for input "C:/Users/sdouthat/.sw/storage/pkg/a9/0c/280b/src/sdir\sw.cpp" Loading input: org.sw.demo.glennrp.png-1.6.37 using sw frontend for input "C:/Users/sdouthat/.sw/storage/pkg/28/39/9564/src/sdir\sw.cpp" Loading input: org.sw.demo.tiff-4.1.0 using sw frontend for input "C:/Users/sdouthat/.sw/storage/pkg/f5/fe/083c/src/sdir\sw.cpp" Loading input: org.sw.demo.webmproject.webp-1.1.0 using sw frontend for input "C:/Users/sdouthat/.sw/storage/pkg/11/6c/8964/src/sdir\sw.cpp" Loading input: org.sw.demo.uclouvain.openjpeg.openjp2-2.4.0 using sw frontend for input "C:/Users/sdouthat/.sw/storage/pkg/4b/6f/6626/src/sdir\sw.cpp" build id 00000157DB1FC9D0 performing void __cdecl sw::SwBuild::loadInputs(void) Detected target: com.Microsoft.VisualStudio.VC.cl-19.16.27041: {"os":{"arch":"x86_64","kernel":"com.Microsoft.Windows.NT"}} Detected program: C:\Program Files (x86)\Microsoft Visual Studio\2017\Professional\VC\Tools\MSVC\14.16.27023\bin\Hostx64\x64\cl.exe Detected target: msvc-19.16.27041: {"os":{"arch":"x86_64","kernel":"com.Microsoft.Windows.NT"}} Detected target: com.Microsoft.VisualStudio.VC.link-19.16.27041: {"os":{"arch":"x86_64","kernel":"com.Microsoft.Windows.NT"}} Detected program: C:\Program Files (x86)\Microsoft Visual Studio\2017\Professional\VC\Tools\MSVC\14.16.27023\bin\Hostx64\x64\link.exe Detected target: com.Microsoft.VisualStudio.VC.lib-19.16.27041: {"os":{"arch":"x86_64","kernel":"com.Microsoft.Windows.NT"}} Detected program: C:\Program Files (x86)\Microsoft Visual Studio\2017\Professional\VC\Tools\MSVC\14.16.27023\bin\Hostx64\x64\lib.exe Detected target: com.Microsoft.VisualStudio.VC.ml-19.16.27041: {"os":{"arch":"x86_64","kernel":"com.Microsoft.Windows.NT"}} Detected program: C:\Program Files (x86)\Microsoft Visual Studio\2017\Professional\VC\Tools\MSVC\14.16.27023\bin\Hostx64\x64\ml64.exe Detected target: com.Microsoft.VisualStudio.VC.dumpbin-19.16.27041: {"os":{"arch":"x86_64","kernel":"com.Microsoft.Windows.NT"}} Detected program: C:\Program Files (x86)\Microsoft Visual Studio\2017\Professional\VC\Tools\MSVC\14.16.27023\bin\Hostx64\x64\dumpbin.exe Detected target: com.Microsoft.VisualStudio.VC.libcpp-19.16.27041: {"os":{"arch":"x86_64","kernel":"com.Microsoft.Windows.NT"}} Detected target: com.Microsoft.VisualStudio.VC.ATLMFC-19.16.27041: {"os":{"arch":"x86_64","kernel":"com.Microsoft.Windows.NT"}} Detected target: com.Microsoft.VisualStudio.VC.concrt-19.16.27041: {"os":{"arch":"x86_64","kernel":"com.Microsoft.Windows.NT"}} Detected target: com.Microsoft.VisualStudio.VC.runtime-19.16.27041: {"os":{"arch":"x86_64","kernel":"com.Microsoft.Windows.NT"}} Detected target: com.Microsoft.VisualStudio.VC.cl-19.22.27905: {"os":{"arch":"x86_64","kernel":"com.Microsoft.Windows.NT"}} Detected program: C:\Program Files (x86)\Microsoft Visual Studio\2019\Professional\VC\Tools\MSVC\14.22.27905\bin\Hostx64\x64\cl.exe Detected target: msvc-19.22.27905: {"os":{"arch":"x86_64","kernel":"com.Microsoft.Windows.NT"}} Detected target: com.Microsoft.VisualStudio.VC.link-19.22.27905: {"os":{"arch":"x86_64","kernel":"com.Microsoft.Windows.NT"}} Detected program: C:\Program Files (x86)\Microsoft Visual Studio\2019\Professional\VC\Tools\MSVC\14.22.27905\bin\Hostx64\x64\link.exe Detected target: com.Microsoft.VisualStudio.VC.lib-19.22.27905: {"os":{"arch":"x86_64","kernel":"com.Microsoft.Windows.NT"}} Detected program: C:\Program Files (x86)\Microsoft Visual Studio\2019\Professional\VC\Tools\MSVC\14.22.27905\bin\Hostx64\x64\lib.exe Detected target: com.Microsoft.VisualStudio.VC.ml-19.22.27905: {"os":{"arch":"x86_64","kernel":"com.Microsoft.Windows.NT"}} Detected program: C:\Program Files (x86)\Microsoft Visual Studio\2019\Professional\VC\Tools\MSVC\14.22.27905\bin\Hostx64\x64\ml64.exe Detected target: com.Microsoft.VisualStudio.VC.dumpbin-19.22.27905: {"os":{"arch":"x86_64","kernel":"com.Microsoft.Windows.NT"}} Detected program: C:\Program Files (x86)\Microsoft Visual Studio\2019\Professional\VC\Tools\MSVC\14.22.27905\bin\Hostx64\x64\dumpbin.exe Detected target: com.Microsoft.VisualStudio.VC.libcpp-19.22.27905: {"os":{"arch":"x86_64","kernel":"com.Microsoft.Windows.NT"}} Detected target: com.Microsoft.VisualStudio.VC.ATLMFC-19.22.27905: {"os":{"arch":"x86_64","kernel":"com.Microsoft.Windows.NT"}} Detected target: com.Microsoft.VisualStudio.VC.concrt-19.22.27905: {"os":{"arch":"x86_64","kernel":"com.Microsoft.Windows.NT"}} Detected target: com.Microsoft.VisualStudio.VC.runtime-19.22.27905: {"os":{"arch":"x86_64","kernel":"com.Microsoft.Windows.NT"}} Detected target: com.Microsoft.VisualStudio.VC.cl-19.16.27041: {"os":{"arch":"x86","kernel":"com.Microsoft.Windows.NT"}} Detected program: C:\Program Files (x86)\Microsoft Visual Studio\2017\Professional\VC\Tools\MSVC\14.16.27023\bin\Hostx64\x86\cl.exe Detected target: com.Microsoft.VisualStudio.VC.link-19.16.27041: {"os":{"arch":"x86","kernel":"com.Microsoft.Windows.NT"}} Detected program: C:\Program Files (x86)\Microsoft Visual Studio\2017\Professional\VC\Tools\MSVC\14.16.27023\bin\Hostx64\x86\link.exe Detected target: com.Microsoft.VisualStudio.VC.lib-19.16.27041: {"os":{"arch":"x86","kernel":"com.Microsoft.Windows.NT"}} Detected program: C:\Program Files (x86)\Microsoft Visual Studio\2017\Professional\VC\Tools\MSVC\14.16.27023\bin\Hostx64\x86\lib.exe Detected target: com.Microsoft.VisualStudio.VC.ml-19.16.27041: {"os":{"arch":"x86","kernel":"com.Microsoft.Windows.NT"}} Detected program: C:\Program Files (x86)\Microsoft Visual Studio\2017\Professional\VC\Tools\MSVC\14.16.27023\bin\Hostx64\x86\ml.exe Detected target: com.Microsoft.VisualStudio.VC.dumpbin-19.16.27041: {"os":{"arch":"x86","kernel":"com.Microsoft.Windows.NT"}} Detected program: C:\Program Files (x86)\Microsoft Visual Studio\2017\Professional\VC\Tools\MSVC\14.16.27023\bin\Hostx64\x86\dumpbin.exe Detected target: com.Microsoft.VisualStudio.VC.libcpp-19.16.27041: {"os":{"arch":"x86","kernel":"com.Microsoft.Windows.NT"}} Detected target: com.Microsoft.VisualStudio.VC.ATLMFC-19.16.27041: {"os":{"arch":"x86","kernel":"com.Microsoft.Windows.NT"}} Detected target: com.Microsoft.VisualStudio.VC.concrt-19.16.27041: {"os":{"arch":"x86","kernel":"com.Microsoft.Windows.NT"}} Detected target: com.Microsoft.VisualStudio.VC.runtime-19.16.27041: {"os":{"arch":"x86","kernel":"com.Microsoft.Windows.NT"}} Detected target: com.Microsoft.VisualStudio.VC.cl-19.22.27905: {"os":{"arch":"x86","kernel":"com.Microsoft.Windows.NT"}} Detected program: C:\Program Files (x86)\Microsoft Visual Studio\2019\Professional\VC\Tools\MSVC\14.22.27905\bin\Hostx64\x86\cl.exe Detected target: com.Microsoft.VisualStudio.VC.link-19.22.27905: {"os":{"arch":"x86","kernel":"com.Microsoft.Windows.NT"}} Detected program: C:\Program Files (x86)\Microsoft Visual Studio\2019\Professional\VC\Tools\MSVC\14.22.27905\bin\Hostx64\x86\link.exe Detected target: com.Microsoft.VisualStudio.VC.lib-19.22.27905: {"os":{"arch":"x86","kernel":"com.Microsoft.Windows.NT"}} Detected program: C:\Program Files (x86)\Microsoft Visual Studio\2019\Professional\VC\Tools\MSVC\14.22.27905\bin\Hostx64\x86\lib.exe Detected target: com.Microsoft.VisualStudio.VC.ml-19.22.27905: {"os":{"arch":"x86","kernel":"com.Microsoft.Windows.NT"}} Detected program: C:\Program Files (x86)\Microsoft Visual Studio\2019\Professional\VC\Tools\MSVC\14.22.27905\bin\Hostx64\x86\ml.exe Detected target: com.Microsoft.VisualStudio.VC.dumpbin-19.22.27905: {"os":{"arch":"x86","kernel":"com.Microsoft.Windows.NT"}} Detected program: C:\Program Files (x86)\Microsoft Visual Studio\2019\Professional\VC\Tools\MSVC\14.22.27905\bin\Hostx64\x86\dumpbin.exe Detected target: com.Microsoft.VisualStudio.VC.libcpp-19.22.27905: {"os":{"arch":"x86","kernel":"com.Microsoft.Windows.NT"}} Detected target: com.Microsoft.VisualStudio.VC.ATLMFC-19.22.27905: {"os":{"arch":"x86","kernel":"com.Microsoft.Windows.NT"}} Detected target: com.Microsoft.VisualStudio.VC.concrt-19.22.27905: {"os":{"arch":"x86","kernel":"com.Microsoft.Windows.NT"}} Detected target: com.Microsoft.VisualStudio.VC.runtime-19.22.27905: {"os":{"arch":"x86","kernel":"com.Microsoft.Windows.NT"}} detectMsvcCommon: "C:\Program Files (x86)\Microsoft Visual Studio\2017\Professional\VC\Tools\MSVC\14.16.27023\bin\Hostx64\arm\cl.exe" does not exists detectMsvcCommon: "C:\Program Files (x86)\Microsoft Visual Studio\2019\Professional\VC\Tools\MSVC\14.22.27905\bin\Hostx64\arm\cl.exe" does not exists detectMsvcCommon: "C:\Program Files (x86)\Microsoft Visual Studio\2017\Professional\VC\Tools\MSVC\14.16.27023\bin\Hostx64\arm64\cl.exe" does not exists detectMsvcCommon: "C:\Program Files (x86)\Microsoft Visual Studio\2019\Professional\VC\Tools\MSVC\14.22.27905\bin\Hostx64\arm64\cl.exe" does not exists Detecting msvc 14 and older Found VS140COMNTOOLS=C:\Program Files (x86)\Microsoft Visual Studio 14.0\Common7\Tools\ Use VS140COMNTOOLS as "C:\Program Files (x86)\Microsoft Visual Studio 14.0" detectMsvcCommon: "C:\Program Files (x86)\Microsoft Visual Studio 14.0\VC\bin\amd64\cl.exe" does not exists detectMsvcCommon: "C:\Program Files (x86)\Microsoft Visual Studio 14.0\VC\bin\amd64_x86\cl.exe" does not exists detectMsvcCommon: "C:\Program Files (x86)\Microsoft Visual Studio 14.0\VC\bin\amd64_arm\cl.exe" does not exists Default VS2015 paths were not found. Trying older versions layout. detectMsvcCommon: "C:\Program Files (x86)\Microsoft Visual Studio 14.0\VC\bin\x86_amd64\cl.exe" does not exists detectMsvcCommon: "C:\Program Files (x86)\Microsoft Visual Studio 14.0\VC\bin\cl.exe" does not exists Found VS120COMNTOOLS=C:\Program Files (x86)\Microsoft Visual Studio 12.0\Common7\Tools\ Use VS120COMNTOOLS as "C:\Program Files (x86)\Microsoft Visual Studio 12.0" Detected target: com.Microsoft.VisualStudio.VC.cl-18.0.40629: {"os":{"arch":"x86_64","kernel":"com.Microsoft.Windows.NT"}} Detected program: C:\Program Files (x86)\Microsoft Visual Studio 12.0\VC\bin\amd64\cl.exe Detected target: msvc-18.0.40629: {"os":{"arch":"x86_64","kernel":"com.Microsoft.Windows.NT"}} Detected target: com.Microsoft.VisualStudio.VC.link-18.0.40629: {"os":{"arch":"x86_64","kernel":"com.Microsoft.Windows.NT"}} Detected program: C:\Program Files (x86)\Microsoft Visual Studio 12.0\VC\bin\amd64\link.exe Detected target: com.Microsoft.VisualStudio.VC.lib-18.0.40629: {"os":{"arch":"x86_64","kernel":"com.Microsoft.Windows.NT"}} Detected program: C:\Program Files (x86)\Microsoft Visual Studio 12.0\VC\bin\amd64\lib.exe Detected target: com.Microsoft.VisualStudio.VC.ml-18.0.40629: {"os":{"arch":"x86_64","kernel":"com.Microsoft.Windows.NT"}} Detected program: C:\Program Files (x86)\Microsoft Visual Studio 12.0\VC\bin\amd64\ml64.exe Detected target: com.Microsoft.VisualStudio.VC.dumpbin-18.0.40629: {"os":{"arch":"x86_64","kernel":"com.Microsoft.Windows.NT"}} Detected program: C:\Program Files (x86)\Microsoft Visual Studio 12.0\VC\bin\amd64\dumpbin.exe Detected target: com.Microsoft.VisualStudio.VC.libcpp-18.0.40629: {"os":{"arch":"x86_64","kernel":"com.Microsoft.Windows.NT"}} Detected target: com.Microsoft.VisualStudio.VC.ATLMFC-18.0.40629: {"os":{"arch":"x86_64","kernel":"com.Microsoft.Windows.NT"}} Empty stdout from 'C:/Program Files (x86)/Microsoft Visual Studio 12.0/VC/bin/amd64_x86/cl.exe', trying stderr. Cmd: "C:/Program Files (x86)/Microsoft Visual Studio 12.0/VC/bin/amd64_x86/cl.exe" "/showIncludes" "/c" "C:\Users\sdouthat\AppData\Local\Temp\sw\cliprefix\91b4-1102-dfcc-c223.c" "/FoC:\Users\sdouthat\AppData\Local\Temp\sw\cliprefix\91b4-1102-dfcc-c223.c.obj" Env: PATH: C:\WINDOWS\System32;C:\WINDOWS;C:\WINDOWS\System32\Wbem;C:\WINDOWS\System32\WindowsPowerShell\v1.0\;C:\Program Files (x86)\Microsoft Visual Studio 12.0\Common7\IDE error code = 3221225781 Exception in file D:\dev\cppan2\client2\src\sw\driver\compiler\detect.cpp:83, function detectMsvcPrefix: Cannot match VS include prefix (Bad output: "C:/Program Files (x86)/Microsoft Visual Studio 12.0/VC/bin/amd64_x86/cl.exe" "/showIncludes" "/c" "C:\Users\sdouthat\AppData\Local\Temp\sw\cliprefix\91b4-1102-dfcc-c223.c" "/FoC:\Users\sdouthat\AppData\Local\Temp\sw\cliprefix\91b4-1102-dfcc-c223.c.obj" Env: PATH: C:\WINDOWS\System32;C:\WINDOWS;C:\WINDOWS\System32\Wbem;C:\WINDOWS\System32\WindowsPowerShell\v1.0\;C:\Program Files (x86)\Microsoft Visual Studio 12.0\Common7\IDE ):

stderr:

C:\dev\current\sdk\external\leptonica\test\leptonica-1.80.0\build>

egorpugin commented 3 years ago

Try this binary. I've made a fix for VS12.

sw.client.sw-1.0.0.exe.zip

sdouthat commented 3 years ago

C:\dev\current\sdk\external\leptonica\test\leptonica-1.80.0\build>C:/dev/current/sdk/external/leptonica/bin/sw.exe -trace -static -platform x86 -compiler msvc-19.16 -d C:/dev/current/sdk/external/leptonica/test/leptonica-1.80.0/build/.sw/cmake -config d,msr,rwdi,r integrate -cmake-deps C:/dev/current/sdk/external/leptonica/test/leptonica-1.80.0/build/.sw/cmake/sw.txt -cmake-file-version 4

Starting sw... version: sw.client.sw version 1.0.0 git revision 827316a0af08f81d1610689011970593eeb2999e plus 1 modified files assembled on 05.04.2021 17:08:31 UTC 05.04.2021 13:08:31 Eastern Daylight Time command line: C:/dev/current/sdk/external/leptonica/bin/sw.exe -trace -static -platform x86 -compiler msvc-19.16 -d C:/dev/current/sdk/external/leptonica/test/leptonica-1.80.0/build/.sw/cmake -config d,msr,rwdi,r integrate -cmake-deps C:/dev/current/sdk/external/leptonica/test/leptonica-1.80.0/build/.sw/cmake/sw.txt -cmake-file-version 4 Checking remote version Host configuration: {"os":{"arch":"x86_64","kernel":"com.Microsoft.Windows.NT"}} Registering driver: org.sw.sw.driver.cpp-0.4.1 Loading input: org.sw.demo.gif-5.2.1 using sw frontend for input "C:/Users/sdouthat/.sw/storage/pkg/89/dc/64e7/src/sdir\sw.cpp" Loading input: org.sw.demo.jpeg-9.4.0 using sw frontend for input "C:/Users/sdouthat/.sw/storage/pkg/a9/0c/280b/src/sdir\sw.cpp" Loading input: org.sw.demo.glennrp.png-1.6.37 using sw frontend for input "C:/Users/sdouthat/.sw/storage/pkg/28/39/9564/src/sdir\sw.cpp" Loading input: org.sw.demo.tiff-4.1.0 using sw frontend for input "C:/Users/sdouthat/.sw/storage/pkg/f5/fe/083c/src/sdir\sw.cpp" Loading input: org.sw.demo.webmproject.webp-1.1.0 using sw frontend for input "C:/Users/sdouthat/.sw/storage/pkg/11/6c/8964/src/sdir\sw.cpp" Loading input: org.sw.demo.uclouvain.openjpeg.openjp2-2.4.0 using sw frontend for input "C:/Users/sdouthat/.sw/storage/pkg/4b/6f/6626/src/sdir\sw.cpp" build id 000002392F56FDD0 performing void __cdecl sw::SwBuild::loadInputs(void) Detected target: com.Microsoft.VisualStudio.VC.cl-19.16.27041: {"os":{"arch":"x86_64","kernel":"com.Microsoft.Windows.NT"}} Detected program: C:\Program Files (x86)\Microsoft Visual Studio\2017\Professional\VC\Tools\MSVC\14.16.27023\bin\Hostx64\x64\cl.exe Detected target: msvc-19.16.27041: {"os":{"arch":"x86_64","kernel":"com.Microsoft.Windows.NT"}} Detected target: com.Microsoft.VisualStudio.VC.link-19.16.27041: {"os":{"arch":"x86_64","kernel":"com.Microsoft.Windows.NT"}} Detected program: C:\Program Files (x86)\Microsoft Visual Studio\2017\Professional\VC\Tools\MSVC\14.16.27023\bin\Hostx64\x64\link.exe Detected target: com.Microsoft.VisualStudio.VC.lib-19.16.27041: {"os":{"arch":"x86_64","kernel":"com.Microsoft.Windows.NT"}} Detected program: C:\Program Files (x86)\Microsoft Visual Studio\2017\Professional\VC\Tools\MSVC\14.16.27023\bin\Hostx64\x64\lib.exe Detected target: com.Microsoft.VisualStudio.VC.ml-19.16.27041: {"os":{"arch":"x86_64","kernel":"com.Microsoft.Windows.NT"}} Detected program: C:\Program Files (x86)\Microsoft Visual Studio\2017\Professional\VC\Tools\MSVC\14.16.27023\bin\Hostx64\x64\ml64.exe Detected target: com.Microsoft.VisualStudio.VC.dumpbin-19.16.27041: {"os":{"arch":"x86_64","kernel":"com.Microsoft.Windows.NT"}} Detected program: C:\Program Files (x86)\Microsoft Visual Studio\2017\Professional\VC\Tools\MSVC\14.16.27023\bin\Hostx64\x64\dumpbin.exe Detected target: com.Microsoft.VisualStudio.VC.libcpp-19.16.27041: {"os":{"arch":"x86_64","kernel":"com.Microsoft.Windows.NT"}} Detected target: com.Microsoft.VisualStudio.VC.ATLMFC-19.16.27041: {"os":{"arch":"x86_64","kernel":"com.Microsoft.Windows.NT"}} Detected target: com.Microsoft.VisualStudio.VC.concrt-19.16.27041: {"os":{"arch":"x86_64","kernel":"com.Microsoft.Windows.NT"}} Detected target: com.Microsoft.VisualStudio.VC.runtime-19.16.27041: {"os":{"arch":"x86_64","kernel":"com.Microsoft.Windows.NT"}} Detected target: com.Microsoft.VisualStudio.VC.cl-19.22.27905: {"os":{"arch":"x86_64","kernel":"com.Microsoft.Windows.NT"}} Detected program: C:\Program Files (x86)\Microsoft Visual Studio\2019\Professional\VC\Tools\MSVC\14.22.27905\bin\Hostx64\x64\cl.exe Detected target: msvc-19.22.27905: {"os":{"arch":"x86_64","kernel":"com.Microsoft.Windows.NT"}} Detected target: com.Microsoft.VisualStudio.VC.link-19.22.27905: {"os":{"arch":"x86_64","kernel":"com.Microsoft.Windows.NT"}} Detected program: C:\Program Files (x86)\Microsoft Visual Studio\2019\Professional\VC\Tools\MSVC\14.22.27905\bin\Hostx64\x64\link.exe Detected target: com.Microsoft.VisualStudio.VC.lib-19.22.27905: {"os":{"arch":"x86_64","kernel":"com.Microsoft.Windows.NT"}} Detected program: C:\Program Files (x86)\Microsoft Visual Studio\2019\Professional\VC\Tools\MSVC\14.22.27905\bin\Hostx64\x64\lib.exe Detected target: com.Microsoft.VisualStudio.VC.ml-19.22.27905: {"os":{"arch":"x86_64","kernel":"com.Microsoft.Windows.NT"}} Detected program: C:\Program Files (x86)\Microsoft Visual Studio\2019\Professional\VC\Tools\MSVC\14.22.27905\bin\Hostx64\x64\ml64.exe Detected target: com.Microsoft.VisualStudio.VC.dumpbin-19.22.27905: {"os":{"arch":"x86_64","kernel":"com.Microsoft.Windows.NT"}} Detected program: C:\Program Files (x86)\Microsoft Visual Studio\2019\Professional\VC\Tools\MSVC\14.22.27905\bin\Hostx64\x64\dumpbin.exe Detected target: com.Microsoft.VisualStudio.VC.libcpp-19.22.27905: {"os":{"arch":"x86_64","kernel":"com.Microsoft.Windows.NT"}} Detected target: com.Microsoft.VisualStudio.VC.ATLMFC-19.22.27905: {"os":{"arch":"x86_64","kernel":"com.Microsoft.Windows.NT"}} Detected target: com.Microsoft.VisualStudio.VC.concrt-19.22.27905: {"os":{"arch":"x86_64","kernel":"com.Microsoft.Windows.NT"}} Detected target: com.Microsoft.VisualStudio.VC.runtime-19.22.27905: {"os":{"arch":"x86_64","kernel":"com.Microsoft.Windows.NT"}} Detected target: com.Microsoft.VisualStudio.VC.cl-19.16.27041: {"os":{"arch":"x86","kernel":"com.Microsoft.Windows.NT"}} Detected program: C:\Program Files (x86)\Microsoft Visual Studio\2017\Professional\VC\Tools\MSVC\14.16.27023\bin\Hostx64\x86\cl.exe Detected target: com.Microsoft.VisualStudio.VC.link-19.16.27041: {"os":{"arch":"x86","kernel":"com.Microsoft.Windows.NT"}} Detected program: C:\Program Files (x86)\Microsoft Visual Studio\2017\Professional\VC\Tools\MSVC\14.16.27023\bin\Hostx64\x86\link.exe Detected target: com.Microsoft.VisualStudio.VC.lib-19.16.27041: {"os":{"arch":"x86","kernel":"com.Microsoft.Windows.NT"}} Detected program: C:\Program Files (x86)\Microsoft Visual Studio\2017\Professional\VC\Tools\MSVC\14.16.27023\bin\Hostx64\x86\lib.exe Detected target: com.Microsoft.VisualStudio.VC.ml-19.16.27041: {"os":{"arch":"x86","kernel":"com.Microsoft.Windows.NT"}} Detected program: C:\Program Files (x86)\Microsoft Visual Studio\2017\Professional\VC\Tools\MSVC\14.16.27023\bin\Hostx64\x86\ml.exe Detected target: com.Microsoft.VisualStudio.VC.dumpbin-19.16.27041: {"os":{"arch":"x86","kernel":"com.Microsoft.Windows.NT"}} Detected program: C:\Program Files (x86)\Microsoft Visual Studio\2017\Professional\VC\Tools\MSVC\14.16.27023\bin\Hostx64\x86\dumpbin.exe Detected target: com.Microsoft.VisualStudio.VC.libcpp-19.16.27041: {"os":{"arch":"x86","kernel":"com.Microsoft.Windows.NT"}} Detected target: com.Microsoft.VisualStudio.VC.ATLMFC-19.16.27041: {"os":{"arch":"x86","kernel":"com.Microsoft.Windows.NT"}} Detected target: com.Microsoft.VisualStudio.VC.concrt-19.16.27041: {"os":{"arch":"x86","kernel":"com.Microsoft.Windows.NT"}} Detected target: com.Microsoft.VisualStudio.VC.runtime-19.16.27041: {"os":{"arch":"x86","kernel":"com.Microsoft.Windows.NT"}} Detected target: com.Microsoft.VisualStudio.VC.cl-19.22.27905: {"os":{"arch":"x86","kernel":"com.Microsoft.Windows.NT"}} Detected program: C:\Program Files (x86)\Microsoft Visual Studio\2019\Professional\VC\Tools\MSVC\14.22.27905\bin\Hostx64\x86\cl.exe Detected target: com.Microsoft.VisualStudio.VC.link-19.22.27905: {"os":{"arch":"x86","kernel":"com.Microsoft.Windows.NT"}} Detected program: C:\Program Files (x86)\Microsoft Visual Studio\2019\Professional\VC\Tools\MSVC\14.22.27905\bin\Hostx64\x86\link.exe Detected target: com.Microsoft.VisualStudio.VC.lib-19.22.27905: {"os":{"arch":"x86","kernel":"com.Microsoft.Windows.NT"}} Detected program: C:\Program Files (x86)\Microsoft Visual Studio\2019\Professional\VC\Tools\MSVC\14.22.27905\bin\Hostx64\x86\lib.exe Detected target: com.Microsoft.VisualStudio.VC.ml-19.22.27905: {"os":{"arch":"x86","kernel":"com.Microsoft.Windows.NT"}} Detected program: C:\Program Files (x86)\Microsoft Visual Studio\2019\Professional\VC\Tools\MSVC\14.22.27905\bin\Hostx64\x86\ml.exe Detected target: com.Microsoft.VisualStudio.VC.dumpbin-19.22.27905: {"os":{"arch":"x86","kernel":"com.Microsoft.Windows.NT"}} Detected program: C:\Program Files (x86)\Microsoft Visual Studio\2019\Professional\VC\Tools\MSVC\14.22.27905\bin\Hostx64\x86\dumpbin.exe Detected target: com.Microsoft.VisualStudio.VC.libcpp-19.22.27905: {"os":{"arch":"x86","kernel":"com.Microsoft.Windows.NT"}} Detected target: com.Microsoft.VisualStudio.VC.ATLMFC-19.22.27905: {"os":{"arch":"x86","kernel":"com.Microsoft.Windows.NT"}} Detected target: com.Microsoft.VisualStudio.VC.concrt-19.22.27905: {"os":{"arch":"x86","kernel":"com.Microsoft.Windows.NT"}} Detected target: com.Microsoft.VisualStudio.VC.runtime-19.22.27905: {"os":{"arch":"x86","kernel":"com.Microsoft.Windows.NT"}} detectMsvcCommon: "C:\Program Files (x86)\Microsoft Visual Studio\2017\Professional\VC\Tools\MSVC\14.16.27023\bin\Hostx64\arm\cl.exe" does not exists detectMsvcCommon: "C:\Program Files (x86)\Microsoft Visual Studio\2019\Professional\VC\Tools\MSVC\14.22.27905\bin\Hostx64\arm\cl.exe" does not exists detectMsvcCommon: "C:\Program Files (x86)\Microsoft Visual Studio\2017\Professional\VC\Tools\MSVC\14.16.27023\bin\Hostx64\arm64\cl.exe" does not exists detectMsvcCommon: "C:\Program Files (x86)\Microsoft Visual Studio\2019\Professional\VC\Tools\MSVC\14.22.27905\bin\Hostx64\arm64\cl.exe" does not exists Detecting msvc 14 and older Found VS140COMNTOOLS=C:\Program Files (x86)\Microsoft Visual Studio 14.0\Common7\Tools\ Use VS140COMNTOOLS as "C:\Program Files (x86)\Microsoft Visual Studio 14.0" detectMsvcCommon: "C:\Program Files (x86)\Microsoft Visual Studio 14.0\VC\bin\amd64\cl.exe" does not exists detectMsvcCommon: "C:\Program Files (x86)\Microsoft Visual Studio 14.0\VC\bin\amd64_x86\cl.exe" does not exists detectMsvcCommon: "C:\Program Files (x86)\Microsoft Visual Studio 14.0\VC\bin\amd64_arm\cl.exe" does not exists Default VS2015 paths were not found. Trying older versions layout. detectMsvcCommon: "C:\Program Files (x86)\Microsoft Visual Studio 14.0\VC\bin\x86_amd64\cl.exe" does not exists detectMsvcCommon: "C:\Program Files (x86)\Microsoft Visual Studio 14.0\VC\bin\cl.exe" does not exists Found VS120COMNTOOLS=C:\Program Files (x86)\Microsoft Visual Studio 12.0\Common7\Tools\ Use VS120COMNTOOLS as "C:\Program Files (x86)\Microsoft Visual Studio 12.0" Detected target: com.Microsoft.VisualStudio.VC.cl-18.0.40629: {"os":{"arch":"x86_64","kernel":"com.Microsoft.Windows.NT"}} Detected program: C:\Program Files (x86)\Microsoft Visual Studio 12.0\VC\bin\amd64\cl.exe Detected target: msvc-18.0.40629: {"os":{"arch":"x86_64","kernel":"com.Microsoft.Windows.NT"}} Detected target: com.Microsoft.VisualStudio.VC.link-18.0.40629: {"os":{"arch":"x86_64","kernel":"com.Microsoft.Windows.NT"}} Detected program: C:\Program Files (x86)\Microsoft Visual Studio 12.0\VC\bin\amd64\link.exe Detected target: com.Microsoft.VisualStudio.VC.lib-18.0.40629: {"os":{"arch":"x86_64","kernel":"com.Microsoft.Windows.NT"}} Detected program: C:\Program Files (x86)\Microsoft Visual Studio 12.0\VC\bin\amd64\lib.exe Detected target: com.Microsoft.VisualStudio.VC.ml-18.0.40629: {"os":{"arch":"x86_64","kernel":"com.Microsoft.Windows.NT"}} Detected program: C:\Program Files (x86)\Microsoft Visual Studio 12.0\VC\bin\amd64\ml64.exe Detected target: com.Microsoft.VisualStudio.VC.dumpbin-18.0.40629: {"os":{"arch":"x86_64","kernel":"com.Microsoft.Windows.NT"}} Detected program: C:\Program Files (x86)\Microsoft Visual Studio 12.0\VC\bin\amd64\dumpbin.exe Detected target: com.Microsoft.VisualStudio.VC.libcpp-18.0.40629: {"os":{"arch":"x86_64","kernel":"com.Microsoft.Windows.NT"}} Detected target: com.Microsoft.VisualStudio.VC.ATLMFC-18.0.40629: {"os":{"arch":"x86_64","kernel":"com.Microsoft.Windows.NT"}} Detected target: com.Microsoft.VisualStudio.VC.cl-18.0.40629: {"os":{"arch":"x86","kernel":"com.Microsoft.Windows.NT"}} Detected program: C:\Program Files (x86)\Microsoft Visual Studio 12.0\VC\bin\amd64_x86\cl.exe Detected target: com.Microsoft.VisualStudio.VC.link-18.0.40629: {"os":{"arch":"x86","kernel":"com.Microsoft.Windows.NT"}} Detected program: C:\Program Files (x86)\Microsoft Visual Studio 12.0\VC\bin\amd64_x86\link.exe Detected target: com.Microsoft.VisualStudio.VC.lib-18.0.40629: {"os":{"arch":"x86","kernel":"com.Microsoft.Windows.NT"}} Detected program: C:\Program Files (x86)\Microsoft Visual Studio 12.0\VC\bin\amd64_x86\lib.exe Detected target: com.Microsoft.VisualStudio.VC.ml-18.0.40629: {"os":{"arch":"x86","kernel":"com.Microsoft.Windows.NT"}} Detected program: C:\Program Files (x86)\Microsoft Visual Studio 12.0\VC\bin\amd64_x86\ml.exe Detected target: com.Microsoft.VisualStudio.VC.dumpbin-18.0.40629: {"os":{"arch":"x86","kernel":"com.Microsoft.Windows.NT"}} Detected program: C:\Program Files (x86)\Microsoft Visual Studio 12.0\VC\bin\amd64_x86\dumpbin.exe Detected target: com.Microsoft.VisualStudio.VC.libcpp-18.0.40629: {"os":{"arch":"x86","kernel":"com.Microsoft.Windows.NT"}} Detected target: com.Microsoft.VisualStudio.VC.ATLMFC-18.0.40629: {"os":{"arch":"x86","kernel":"com.Microsoft.Windows.NT"}} Detected target: com.Microsoft.VisualStudio.VC.cl-18.0.40629: {"os":{"arch":"arm","kernel":"com.Microsoft.Windows.NT"}} Detected program: C:\Program Files (x86)\Microsoft Visual Studio 12.0\VC\bin\amd64_arm\cl.exe Detected target: com.Microsoft.VisualStudio.VC.link-18.0.40629: {"os":{"arch":"arm","kernel":"com.Microsoft.Windows.NT"}} Detected program: C:\Program Files (x86)\Microsoft Visual Studio 12.0\VC\bin\amd64_arm\link.exe Detected target: com.Microsoft.VisualStudio.VC.lib-18.0.40629: {"os":{"arch":"arm","kernel":"com.Microsoft.Windows.NT"}} Detected program: C:\Program Files (x86)\Microsoft Visual Studio 12.0\VC\bin\amd64_arm\lib.exe Detected target: com.Microsoft.VisualStudio.VC.dumpbin-18.0.40629: {"os":{"arch":"arm","kernel":"com.Microsoft.Windows.NT"}} Detected program: C:\Program Files (x86)\Microsoft Visual Studio 12.0\VC\bin\amd64_arm\dumpbin.exe Detected target: com.Microsoft.VisualStudio.VC.libcpp-18.0.40629: {"os":{"arch":"arm","kernel":"com.Microsoft.Windows.NT"}} Detected target: com.Microsoft.VisualStudio.VC.ATLMFC-18.0.40629: {"os":{"arch":"arm","kernel":"com.Microsoft.Windows.NT"}} Found VS110COMNTOOLS=C:\Program Files (x86)\Microsoft Visual Studio 11.0\Common7\Tools\ Use VS110COMNTOOLS as "C:\Program Files (x86)\Microsoft Visual Studio 11.0" detectMsvcCommon: "C:\Program Files (x86)\Microsoft Visual Studio 11.0\VC\bin\amd64\cl.exe" does not exists detectMsvcCommon: "C:\Program Files (x86)\Microsoft Visual Studio 11.0\VC\bin\amd64_x86\cl.exe" does not exists detectMsvcCommon: "C:\Program Files (x86)\Microsoft Visual Studio 11.0\VC\bin\amd64_arm\cl.exe" does not exists Default VS2015 paths were not found. Trying older versions layout. Empty stdout from 'C:/Program Files (x86)/Microsoft Visual Studio 11.0/VC/bin/x86_amd64/cl.exe', trying stderr. Cmd: "C:/Program Files (x86)/Microsoft Visual Studio 11.0/VC/bin/x86_amd64/cl.exe" "/showIncludes" "/c" "C:\Users\sdouthat\AppData\Local\Temp\sw\cliprefix\22e2-15a9-5a28-c493.c" "/FoC:\Users\sdouthat\AppData\Local\Temp\sw\cliprefix\22e2-15a9-5a28-c493.c.obj" Env: error code = 3221225781 Exception in file D:\dev\cppan2\client2\src\sw\driver\compiler\detect.cpp:83, function detectMsvcPrefix: Cannot match VS include prefix (Bad output: "C:/Program Files (x86)/Microsoft Visual Studio 11.0/VC/bin/x86_amd64/cl.exe" "/showIncludes" "/c" "C:\Users\sdouthat\AppData\Local\Temp\sw\cliprefix\22e2-15a9-5a28-c493.c" "/FoC:\Users\sdouthat\AppData\Local\Temp\sw\cliprefix\22e2-15a9-5a28-c493.c.obj" Env: ):

stderr:

C:\dev\current\sdk\external\leptonica\test\leptonica-1.80.0\build>

egorpugin commented 3 years ago

VS12 passed, but VS11 is broken again. Try this binary. I've added a couple of log messages to check things.

sw.client.sw-1.0.0.exe.zip

sdouthat commented 3 years ago

C:\dev\current\sdk\external\leptonica\test\leptonica-1.80.0\build>C:/dev/current/sdk/external/leptonica/bin/sw.exe -trace -static -platform x86 -compiler msvc-19.16 -d C:/dev/current/sdk/external/leptonica/test/leptonica-1.80.0/build/.sw/cmake -config d,msr,rwdi,r integrate -cmake-deps C:/dev/current/sdk/external/leptonica/test/leptonica-1.80.0/build/.sw/cmake/sw.txt -cmake-file-version 4

Starting sw... version: sw.client.sw version 1.0.0 git revision 827316a0af08f81d1610689011970593eeb2999e plus 1 modified files assembled on 05.04.2021 17:20:28 UTC 05.04.2021 13:20:28 Eastern Daylight Time command line: C:/dev/current/sdk/external/leptonica/bin/sw.exe -trace -static -platform x86 -compiler msvc-19.16 -d C:/dev/current/sdk/external/leptonica/test/leptonica-1.80.0/build/.sw/cmake -config d,msr,rwdi,r integrate -cmake-deps C:/dev/current/sdk/external/leptonica/test/leptonica-1.80.0/build/.sw/cmake/sw.txt -cmake-file-version 4 Checking remote version Host configuration: {"os":{"arch":"x86_64","kernel":"com.Microsoft.Windows.NT"}} Registering driver: org.sw.sw.driver.cpp-0.4.1 Loading input: org.sw.demo.gif-5.2.1 using sw frontend for input "C:/Users/sdouthat/.sw/storage/pkg/89/dc/64e7/src/sdir\sw.cpp" Loading input: org.sw.demo.jpeg-9.4.0 using sw frontend for input "C:/Users/sdouthat/.sw/storage/pkg/a9/0c/280b/src/sdir\sw.cpp" Loading input: org.sw.demo.glennrp.png-1.6.37 using sw frontend for input "C:/Users/sdouthat/.sw/storage/pkg/28/39/9564/src/sdir\sw.cpp" Loading input: org.sw.demo.tiff-4.1.0 using sw frontend for input "C:/Users/sdouthat/.sw/storage/pkg/f5/fe/083c/src/sdir\sw.cpp" Loading input: org.sw.demo.webmproject.webp-1.1.0 using sw frontend for input "C:/Users/sdouthat/.sw/storage/pkg/11/6c/8964/src/sdir\sw.cpp" Loading input: org.sw.demo.uclouvain.openjpeg.openjp2-2.4.0 using sw frontend for input "C:/Users/sdouthat/.sw/storage/pkg/4b/6f/6626/src/sdir\sw.cpp" build id 000001F6BB6AE830 performing void __cdecl sw::SwBuild::loadInputs(void) Detected target: com.Microsoft.VisualStudio.VC.cl-19.16.27041: {"os":{"arch":"x86_64","kernel":"com.Microsoft.Windows.NT"}} Detected program: C:\Program Files (x86)\Microsoft Visual Studio\2017\Professional\VC\Tools\MSVC\14.16.27023\bin\Hostx64\x64\cl.exe Detected target: msvc-19.16.27041: {"os":{"arch":"x86_64","kernel":"com.Microsoft.Windows.NT"}} Detected target: com.Microsoft.VisualStudio.VC.link-19.16.27041: {"os":{"arch":"x86_64","kernel":"com.Microsoft.Windows.NT"}} Detected program: C:\Program Files (x86)\Microsoft Visual Studio\2017\Professional\VC\Tools\MSVC\14.16.27023\bin\Hostx64\x64\link.exe Detected target: com.Microsoft.VisualStudio.VC.lib-19.16.27041: {"os":{"arch":"x86_64","kernel":"com.Microsoft.Windows.NT"}} Detected program: C:\Program Files (x86)\Microsoft Visual Studio\2017\Professional\VC\Tools\MSVC\14.16.27023\bin\Hostx64\x64\lib.exe Detected target: com.Microsoft.VisualStudio.VC.ml-19.16.27041: {"os":{"arch":"x86_64","kernel":"com.Microsoft.Windows.NT"}} Detected program: C:\Program Files (x86)\Microsoft Visual Studio\2017\Professional\VC\Tools\MSVC\14.16.27023\bin\Hostx64\x64\ml64.exe Detected target: com.Microsoft.VisualStudio.VC.dumpbin-19.16.27041: {"os":{"arch":"x86_64","kernel":"com.Microsoft.Windows.NT"}} Detected program: C:\Program Files (x86)\Microsoft Visual Studio\2017\Professional\VC\Tools\MSVC\14.16.27023\bin\Hostx64\x64\dumpbin.exe Detected target: com.Microsoft.VisualStudio.VC.libcpp-19.16.27041: {"os":{"arch":"x86_64","kernel":"com.Microsoft.Windows.NT"}} Detected target: com.Microsoft.VisualStudio.VC.ATLMFC-19.16.27041: {"os":{"arch":"x86_64","kernel":"com.Microsoft.Windows.NT"}} Detected target: com.Microsoft.VisualStudio.VC.concrt-19.16.27041: {"os":{"arch":"x86_64","kernel":"com.Microsoft.Windows.NT"}} Detected target: com.Microsoft.VisualStudio.VC.runtime-19.16.27041: {"os":{"arch":"x86_64","kernel":"com.Microsoft.Windows.NT"}} Detected target: com.Microsoft.VisualStudio.VC.cl-19.22.27905: {"os":{"arch":"x86_64","kernel":"com.Microsoft.Windows.NT"}} Detected program: C:\Program Files (x86)\Microsoft Visual Studio\2019\Professional\VC\Tools\MSVC\14.22.27905\bin\Hostx64\x64\cl.exe Detected target: msvc-19.22.27905: {"os":{"arch":"x86_64","kernel":"com.Microsoft.Windows.NT"}} Detected target: com.Microsoft.VisualStudio.VC.link-19.22.27905: {"os":{"arch":"x86_64","kernel":"com.Microsoft.Windows.NT"}} Detected program: C:\Program Files (x86)\Microsoft Visual Studio\2019\Professional\VC\Tools\MSVC\14.22.27905\bin\Hostx64\x64\link.exe Detected target: com.Microsoft.VisualStudio.VC.lib-19.22.27905: {"os":{"arch":"x86_64","kernel":"com.Microsoft.Windows.NT"}} Detected program: C:\Program Files (x86)\Microsoft Visual Studio\2019\Professional\VC\Tools\MSVC\14.22.27905\bin\Hostx64\x64\lib.exe Detected target: com.Microsoft.VisualStudio.VC.ml-19.22.27905: {"os":{"arch":"x86_64","kernel":"com.Microsoft.Windows.NT"}} Detected program: C:\Program Files (x86)\Microsoft Visual Studio\2019\Professional\VC\Tools\MSVC\14.22.27905\bin\Hostx64\x64\ml64.exe Detected target: com.Microsoft.VisualStudio.VC.dumpbin-19.22.27905: {"os":{"arch":"x86_64","kernel":"com.Microsoft.Windows.NT"}} Detected program: C:\Program Files (x86)\Microsoft Visual Studio\2019\Professional\VC\Tools\MSVC\14.22.27905\bin\Hostx64\x64\dumpbin.exe Detected target: com.Microsoft.VisualStudio.VC.libcpp-19.22.27905: {"os":{"arch":"x86_64","kernel":"com.Microsoft.Windows.NT"}} Detected target: com.Microsoft.VisualStudio.VC.ATLMFC-19.22.27905: {"os":{"arch":"x86_64","kernel":"com.Microsoft.Windows.NT"}} Detected target: com.Microsoft.VisualStudio.VC.concrt-19.22.27905: {"os":{"arch":"x86_64","kernel":"com.Microsoft.Windows.NT"}} Detected target: com.Microsoft.VisualStudio.VC.runtime-19.22.27905: {"os":{"arch":"x86_64","kernel":"com.Microsoft.Windows.NT"}} Detected target: com.Microsoft.VisualStudio.VC.cl-19.16.27041: {"os":{"arch":"x86","kernel":"com.Microsoft.Windows.NT"}} Detected program: C:\Program Files (x86)\Microsoft Visual Studio\2017\Professional\VC\Tools\MSVC\14.16.27023\bin\Hostx64\x86\cl.exe Detected target: com.Microsoft.VisualStudio.VC.link-19.16.27041: {"os":{"arch":"x86","kernel":"com.Microsoft.Windows.NT"}} Detected program: C:\Program Files (x86)\Microsoft Visual Studio\2017\Professional\VC\Tools\MSVC\14.16.27023\bin\Hostx64\x86\link.exe Detected target: com.Microsoft.VisualStudio.VC.lib-19.16.27041: {"os":{"arch":"x86","kernel":"com.Microsoft.Windows.NT"}} Detected program: C:\Program Files (x86)\Microsoft Visual Studio\2017\Professional\VC\Tools\MSVC\14.16.27023\bin\Hostx64\x86\lib.exe Detected target: com.Microsoft.VisualStudio.VC.ml-19.16.27041: {"os":{"arch":"x86","kernel":"com.Microsoft.Windows.NT"}} Detected program: C:\Program Files (x86)\Microsoft Visual Studio\2017\Professional\VC\Tools\MSVC\14.16.27023\bin\Hostx64\x86\ml.exe Detected target: com.Microsoft.VisualStudio.VC.dumpbin-19.16.27041: {"os":{"arch":"x86","kernel":"com.Microsoft.Windows.NT"}} Detected program: C:\Program Files (x86)\Microsoft Visual Studio\2017\Professional\VC\Tools\MSVC\14.16.27023\bin\Hostx64\x86\dumpbin.exe Detected target: com.Microsoft.VisualStudio.VC.libcpp-19.16.27041: {"os":{"arch":"x86","kernel":"com.Microsoft.Windows.NT"}} Detected target: com.Microsoft.VisualStudio.VC.ATLMFC-19.16.27041: {"os":{"arch":"x86","kernel":"com.Microsoft.Windows.NT"}} Detected target: com.Microsoft.VisualStudio.VC.concrt-19.16.27041: {"os":{"arch":"x86","kernel":"com.Microsoft.Windows.NT"}} Detected target: com.Microsoft.VisualStudio.VC.runtime-19.16.27041: {"os":{"arch":"x86","kernel":"com.Microsoft.Windows.NT"}} Detected target: com.Microsoft.VisualStudio.VC.cl-19.22.27905: {"os":{"arch":"x86","kernel":"com.Microsoft.Windows.NT"}} Detected program: C:\Program Files (x86)\Microsoft Visual Studio\2019\Professional\VC\Tools\MSVC\14.22.27905\bin\Hostx64\x86\cl.exe Detected target: com.Microsoft.VisualStudio.VC.link-19.22.27905: {"os":{"arch":"x86","kernel":"com.Microsoft.Windows.NT"}} Detected program: C:\Program Files (x86)\Microsoft Visual Studio\2019\Professional\VC\Tools\MSVC\14.22.27905\bin\Hostx64\x86\link.exe Detected target: com.Microsoft.VisualStudio.VC.lib-19.22.27905: {"os":{"arch":"x86","kernel":"com.Microsoft.Windows.NT"}} Detected program: C:\Program Files (x86)\Microsoft Visual Studio\2019\Professional\VC\Tools\MSVC\14.22.27905\bin\Hostx64\x86\lib.exe Detected target: com.Microsoft.VisualStudio.VC.ml-19.22.27905: {"os":{"arch":"x86","kernel":"com.Microsoft.Windows.NT"}} Detected program: C:\Program Files (x86)\Microsoft Visual Studio\2019\Professional\VC\Tools\MSVC\14.22.27905\bin\Hostx64\x86\ml.exe Detected target: com.Microsoft.VisualStudio.VC.dumpbin-19.22.27905: {"os":{"arch":"x86","kernel":"com.Microsoft.Windows.NT"}} Detected program: C:\Program Files (x86)\Microsoft Visual Studio\2019\Professional\VC\Tools\MSVC\14.22.27905\bin\Hostx64\x86\dumpbin.exe Detected target: com.Microsoft.VisualStudio.VC.libcpp-19.22.27905: {"os":{"arch":"x86","kernel":"com.Microsoft.Windows.NT"}} Detected target: com.Microsoft.VisualStudio.VC.ATLMFC-19.22.27905: {"os":{"arch":"x86","kernel":"com.Microsoft.Windows.NT"}} Detected target: com.Microsoft.VisualStudio.VC.concrt-19.22.27905: {"os":{"arch":"x86","kernel":"com.Microsoft.Windows.NT"}} Detected target: com.Microsoft.VisualStudio.VC.runtime-19.22.27905: {"os":{"arch":"x86","kernel":"com.Microsoft.Windows.NT"}} detectMsvcCommon: "C:\Program Files (x86)\Microsoft Visual Studio\2017\Professional\VC\Tools\MSVC\14.16.27023\bin\Hostx64\arm\cl.exe" does not exists detectMsvcCommon: "C:\Program Files (x86)\Microsoft Visual Studio\2019\Professional\VC\Tools\MSVC\14.22.27905\bin\Hostx64\arm\cl.exe" does not exists detectMsvcCommon: "C:\Program Files (x86)\Microsoft Visual Studio\2017\Professional\VC\Tools\MSVC\14.16.27023\bin\Hostx64\arm64\cl.exe" does not exists detectMsvcCommon: "C:\Program Files (x86)\Microsoft Visual Studio\2019\Professional\VC\Tools\MSVC\14.22.27905\bin\Hostx64\arm64\cl.exe" does not exists Detecting msvc 14 and older Found VS140COMNTOOLS=C:\Program Files (x86)\Microsoft Visual Studio 14.0\Common7\Tools\ Use VS140COMNTOOLS as "C:\Program Files (x86)\Microsoft Visual Studio 14.0" vs version = 14.0.0 detectMsvcCommon: "C:\Program Files (x86)\Microsoft Visual Studio 14.0\VC\bin\amd64\cl.exe" does not exists vs version = 14.0.0 detectMsvcCommon: "C:\Program Files (x86)\Microsoft Visual Studio 14.0\VC\bin\amd64_x86\cl.exe" does not exists vs version = 14.0.0 detectMsvcCommon: "C:\Program Files (x86)\Microsoft Visual Studio 14.0\VC\bin\amd64_arm\cl.exe" does not exists Default VS2015 paths were not found. Trying older versions layout. vs version = 14.0.0 detectMsvcCommon: "C:\Program Files (x86)\Microsoft Visual Studio 14.0\VC\bin\x86_amd64\cl.exe" does not exists vs version = 14.0.0 detectMsvcCommon: "C:\Program Files (x86)\Microsoft Visual Studio 14.0\VC\bin\cl.exe" does not exists Found VS120COMNTOOLS=C:\Program Files (x86)\Microsoft Visual Studio 12.0\Common7\Tools\ Use VS120COMNTOOLS as "C:\Program Files (x86)\Microsoft Visual Studio 12.0" vs version = 12.0.0 Detected target: com.Microsoft.VisualStudio.VC.cl-18.0.40629: {"os":{"arch":"x86_64","kernel":"com.Microsoft.Windows.NT"}} Detected program: C:\Program Files (x86)\Microsoft Visual Studio 12.0\VC\bin\amd64\cl.exe Detected target: msvc-18.0.40629: {"os":{"arch":"x86_64","kernel":"com.Microsoft.Windows.NT"}} Detected target: com.Microsoft.VisualStudio.VC.link-18.0.40629: {"os":{"arch":"x86_64","kernel":"com.Microsoft.Windows.NT"}} Detected program: C:\Program Files (x86)\Microsoft Visual Studio 12.0\VC\bin\amd64\link.exe Detected target: com.Microsoft.VisualStudio.VC.lib-18.0.40629: {"os":{"arch":"x86_64","kernel":"com.Microsoft.Windows.NT"}} Detected program: C:\Program Files (x86)\Microsoft Visual Studio 12.0\VC\bin\amd64\lib.exe Detected target: com.Microsoft.VisualStudio.VC.ml-18.0.40629: {"os":{"arch":"x86_64","kernel":"com.Microsoft.Windows.NT"}} Detected program: C:\Program Files (x86)\Microsoft Visual Studio 12.0\VC\bin\amd64\ml64.exe Detected target: com.Microsoft.VisualStudio.VC.dumpbin-18.0.40629: {"os":{"arch":"x86_64","kernel":"com.Microsoft.Windows.NT"}} Detected program: C:\Program Files (x86)\Microsoft Visual Studio 12.0\VC\bin\amd64\dumpbin.exe Detected target: com.Microsoft.VisualStudio.VC.libcpp-18.0.40629: {"os":{"arch":"x86_64","kernel":"com.Microsoft.Windows.NT"}} Detected target: com.Microsoft.VisualStudio.VC.ATLMFC-18.0.40629: {"os":{"arch":"x86_64","kernel":"com.Microsoft.Windows.NT"}} vs version = 12.0.0 Detected target: com.Microsoft.VisualStudio.VC.cl-18.0.40629: {"os":{"arch":"x86","kernel":"com.Microsoft.Windows.NT"}} Detected program: C:\Program Files (x86)\Microsoft Visual Studio 12.0\VC\bin\amd64_x86\cl.exe Detected target: com.Microsoft.VisualStudio.VC.link-18.0.40629: {"os":{"arch":"x86","kernel":"com.Microsoft.Windows.NT"}} Detected program: C:\Program Files (x86)\Microsoft Visual Studio 12.0\VC\bin\amd64_x86\link.exe Detected target: com.Microsoft.VisualStudio.VC.lib-18.0.40629: {"os":{"arch":"x86","kernel":"com.Microsoft.Windows.NT"}} Detected program: C:\Program Files (x86)\Microsoft Visual Studio 12.0\VC\bin\amd64_x86\lib.exe Detected target: com.Microsoft.VisualStudio.VC.ml-18.0.40629: {"os":{"arch":"x86","kernel":"com.Microsoft.Windows.NT"}} Detected program: C:\Program Files (x86)\Microsoft Visual Studio 12.0\VC\bin\amd64_x86\ml.exe Detected target: com.Microsoft.VisualStudio.VC.dumpbin-18.0.40629: {"os":{"arch":"x86","kernel":"com.Microsoft.Windows.NT"}} Detected program: C:\Program Files (x86)\Microsoft Visual Studio 12.0\VC\bin\amd64_x86\dumpbin.exe Detected target: com.Microsoft.VisualStudio.VC.libcpp-18.0.40629: {"os":{"arch":"x86","kernel":"com.Microsoft.Windows.NT"}} Detected target: com.Microsoft.VisualStudio.VC.ATLMFC-18.0.40629: {"os":{"arch":"x86","kernel":"com.Microsoft.Windows.NT"}} vs version = 12.0.0 Detected target: com.Microsoft.VisualStudio.VC.cl-18.0.40629: {"os":{"arch":"arm","kernel":"com.Microsoft.Windows.NT"}} Detected program: C:\Program Files (x86)\Microsoft Visual Studio 12.0\VC\bin\amd64_arm\cl.exe Detected target: com.Microsoft.VisualStudio.VC.link-18.0.40629: {"os":{"arch":"arm","kernel":"com.Microsoft.Windows.NT"}} Detected program: C:\Program Files (x86)\Microsoft Visual Studio 12.0\VC\bin\amd64_arm\link.exe Detected target: com.Microsoft.VisualStudio.VC.lib-18.0.40629: {"os":{"arch":"arm","kernel":"com.Microsoft.Windows.NT"}} Detected program: C:\Program Files (x86)\Microsoft Visual Studio 12.0\VC\bin\amd64_arm\lib.exe Detected target: com.Microsoft.VisualStudio.VC.dumpbin-18.0.40629: {"os":{"arch":"arm","kernel":"com.Microsoft.Windows.NT"}} Detected program: C:\Program Files (x86)\Microsoft Visual Studio 12.0\VC\bin\amd64_arm\dumpbin.exe Detected target: com.Microsoft.VisualStudio.VC.libcpp-18.0.40629: {"os":{"arch":"arm","kernel":"com.Microsoft.Windows.NT"}} Detected target: com.Microsoft.VisualStudio.VC.ATLMFC-18.0.40629: {"os":{"arch":"arm","kernel":"com.Microsoft.Windows.NT"}} Found VS110COMNTOOLS=C:\Program Files (x86)\Microsoft Visual Studio 11.0\Common7\Tools\ Use VS110COMNTOOLS as "C:\Program Files (x86)\Microsoft Visual Studio 11.0" vs version = 11.0.0 detectMsvcCommon: "C:\Program Files (x86)\Microsoft Visual Studio 11.0\VC\bin\amd64\cl.exe" does not exists vs version = 11.0.0 detectMsvcCommon: "C:\Program Files (x86)\Microsoft Visual Studio 11.0\VC\bin\amd64_x86\cl.exe" does not exists vs version = 11.0.0 detectMsvcCommon: "C:\Program Files (x86)\Microsoft Visual Studio 11.0\VC\bin\amd64_arm\cl.exe" does not exists Default VS2015 paths were not found. Trying older versions layout. vs version = 11.0.0 Empty stdout from 'C:/Program Files (x86)/Microsoft Visual Studio 11.0/VC/bin/x86_amd64/cl.exe', trying stderr. Cmd: "C:/Program Files (x86)/Microsoft Visual Studio 11.0/VC/bin/x86_amd64/cl.exe" "/showIncludes" "/c" "C:\Users\sdouthat\AppData\Local\Temp\sw\cliprefix\c55c-e128-b0c2-57e9.c" "/FoC:\Users\sdouthat\AppData\Local\Temp\sw\cliprefix\c55c-e128-b0c2-57e9.c.obj" Env: error code = 3221225781 Exception in file D:\dev\cppan2\client2\src\sw\driver\compiler\detect.cpp:83, function detectMsvcPrefix: Cannot match VS include prefix (Bad output: "C:/Program Files (x86)/Microsoft Visual Studio 11.0/VC/bin/x86_amd64/cl.exe" "/showIncludes" "/c" "C:\Users\sdouthat\AppData\Local\Temp\sw\cliprefix\c55c-e128-b0c2-57e9.c" "/FoC:\Users\sdouthat\AppData\Local\Temp\sw\cliprefix\c55c-e128-b0c2-57e9.c.obj" Env: ):

stderr:

C:\dev\current\sdk\external\leptonica\test\leptonica-1.80.0\build>

egorpugin commented 3 years ago

Another one... Sorry for such inconvenience.

sw.client.sw-1.0.0.exe.zip

sdouthat commented 3 years ago

C:\dev\current\sdk\external\leptonica\test\leptonica-1.80.0\build>C:/dev/current/sdk/external/leptonica/bin/sw.exe -trace -static -platform x86 -compiler msvc-19.16 -d C:/dev/current/sdk/external/leptonica/test/leptonica-1.80.0/build/.sw/cmake -config d,msr,rwdi,r integrate -cmake-deps C:/dev/current/sdk/external/leptonica/test/leptonica-1.80.0/build/.sw/cmake/sw.txt -cmake-file-version 4

Starting sw... version: sw.client.sw version 1.0.0 git revision 827316a0af08f81d1610689011970593eeb2999e plus 1 modified files assembled on 05.04.2021 17:26:01 UTC 05.04.2021 13:26:01 Eastern Daylight Time command line: C:/dev/current/sdk/external/leptonica/bin/sw.exe -trace -static -platform x86 -compiler msvc-19.16 -d C:/dev/current/sdk/external/leptonica/test/leptonica-1.80.0/build/.sw/cmake -config d,msr,rwdi,r integrate -cmake-deps C:/dev/current/sdk/external/leptonica/test/leptonica-1.80.0/build/.sw/cmake/sw.txt -cmake-file-version 4 Checking remote version Host configuration: {"os":{"arch":"x86_64","kernel":"com.Microsoft.Windows.NT"}} Registering driver: org.sw.sw.driver.cpp-0.4.1 Loading input: org.sw.demo.gif-5.2.1 using sw frontend for input "C:/Users/sdouthat/.sw/storage/pkg/89/dc/64e7/src/sdir\sw.cpp" Loading input: org.sw.demo.jpeg-9.4.0 using sw frontend for input "C:/Users/sdouthat/.sw/storage/pkg/a9/0c/280b/src/sdir\sw.cpp" Loading input: org.sw.demo.glennrp.png-1.6.37 using sw frontend for input "C:/Users/sdouthat/.sw/storage/pkg/28/39/9564/src/sdir\sw.cpp" Loading input: org.sw.demo.tiff-4.1.0 using sw frontend for input "C:/Users/sdouthat/.sw/storage/pkg/f5/fe/083c/src/sdir\sw.cpp" Loading input: org.sw.demo.webmproject.webp-1.1.0 using sw frontend for input "C:/Users/sdouthat/.sw/storage/pkg/11/6c/8964/src/sdir\sw.cpp" Loading input: org.sw.demo.uclouvain.openjpeg.openjp2-2.4.0 using sw frontend for input "C:/Users/sdouthat/.sw/storage/pkg/4b/6f/6626/src/sdir\sw.cpp" build id 000001851EA81A30 performing void __cdecl sw::SwBuild::loadInputs(void) Detected target: com.Microsoft.VisualStudio.VC.cl-19.16.27041: {"os":{"arch":"x86_64","kernel":"com.Microsoft.Windows.NT"}} Detected program: C:\Program Files (x86)\Microsoft Visual Studio\2017\Professional\VC\Tools\MSVC\14.16.27023\bin\Hostx64\x64\cl.exe Detected target: msvc-19.16.27041: {"os":{"arch":"x86_64","kernel":"com.Microsoft.Windows.NT"}} Detected target: com.Microsoft.VisualStudio.VC.link-19.16.27041: {"os":{"arch":"x86_64","kernel":"com.Microsoft.Windows.NT"}} Detected program: C:\Program Files (x86)\Microsoft Visual Studio\2017\Professional\VC\Tools\MSVC\14.16.27023\bin\Hostx64\x64\link.exe Detected target: com.Microsoft.VisualStudio.VC.lib-19.16.27041: {"os":{"arch":"x86_64","kernel":"com.Microsoft.Windows.NT"}} Detected program: C:\Program Files (x86)\Microsoft Visual Studio\2017\Professional\VC\Tools\MSVC\14.16.27023\bin\Hostx64\x64\lib.exe Detected target: com.Microsoft.VisualStudio.VC.ml-19.16.27041: {"os":{"arch":"x86_64","kernel":"com.Microsoft.Windows.NT"}} Detected program: C:\Program Files (x86)\Microsoft Visual Studio\2017\Professional\VC\Tools\MSVC\14.16.27023\bin\Hostx64\x64\ml64.exe Detected target: com.Microsoft.VisualStudio.VC.dumpbin-19.16.27041: {"os":{"arch":"x86_64","kernel":"com.Microsoft.Windows.NT"}} Detected program: C:\Program Files (x86)\Microsoft Visual Studio\2017\Professional\VC\Tools\MSVC\14.16.27023\bin\Hostx64\x64\dumpbin.exe Detected target: com.Microsoft.VisualStudio.VC.libcpp-19.16.27041: {"os":{"arch":"x86_64","kernel":"com.Microsoft.Windows.NT"}} Detected target: com.Microsoft.VisualStudio.VC.ATLMFC-19.16.27041: {"os":{"arch":"x86_64","kernel":"com.Microsoft.Windows.NT"}} Detected target: com.Microsoft.VisualStudio.VC.concrt-19.16.27041: {"os":{"arch":"x86_64","kernel":"com.Microsoft.Windows.NT"}} Detected target: com.Microsoft.VisualStudio.VC.runtime-19.16.27041: {"os":{"arch":"x86_64","kernel":"com.Microsoft.Windows.NT"}} Detected target: com.Microsoft.VisualStudio.VC.cl-19.22.27905: {"os":{"arch":"x86_64","kernel":"com.Microsoft.Windows.NT"}} Detected program: C:\Program Files (x86)\Microsoft Visual Studio\2019\Professional\VC\Tools\MSVC\14.22.27905\bin\Hostx64\x64\cl.exe Detected target: msvc-19.22.27905: {"os":{"arch":"x86_64","kernel":"com.Microsoft.Windows.NT"}} Detected target: com.Microsoft.VisualStudio.VC.link-19.22.27905: {"os":{"arch":"x86_64","kernel":"com.Microsoft.Windows.NT"}} Detected program: C:\Program Files (x86)\Microsoft Visual Studio\2019\Professional\VC\Tools\MSVC\14.22.27905\bin\Hostx64\x64\link.exe Detected target: com.Microsoft.VisualStudio.VC.lib-19.22.27905: {"os":{"arch":"x86_64","kernel":"com.Microsoft.Windows.NT"}} Detected program: C:\Program Files (x86)\Microsoft Visual Studio\2019\Professional\VC\Tools\MSVC\14.22.27905\bin\Hostx64\x64\lib.exe Detected target: com.Microsoft.VisualStudio.VC.ml-19.22.27905: {"os":{"arch":"x86_64","kernel":"com.Microsoft.Windows.NT"}} Detected program: C:\Program Files (x86)\Microsoft Visual Studio\2019\Professional\VC\Tools\MSVC\14.22.27905\bin\Hostx64\x64\ml64.exe Detected target: com.Microsoft.VisualStudio.VC.dumpbin-19.22.27905: {"os":{"arch":"x86_64","kernel":"com.Microsoft.Windows.NT"}} Detected program: C:\Program Files (x86)\Microsoft Visual Studio\2019\Professional\VC\Tools\MSVC\14.22.27905\bin\Hostx64\x64\dumpbin.exe Detected target: com.Microsoft.VisualStudio.VC.libcpp-19.22.27905: {"os":{"arch":"x86_64","kernel":"com.Microsoft.Windows.NT"}} Detected target: com.Microsoft.VisualStudio.VC.ATLMFC-19.22.27905: {"os":{"arch":"x86_64","kernel":"com.Microsoft.Windows.NT"}} Detected target: com.Microsoft.VisualStudio.VC.concrt-19.22.27905: {"os":{"arch":"x86_64","kernel":"com.Microsoft.Windows.NT"}} Detected target: com.Microsoft.VisualStudio.VC.runtime-19.22.27905: {"os":{"arch":"x86_64","kernel":"com.Microsoft.Windows.NT"}} Detected target: com.Microsoft.VisualStudio.VC.cl-19.16.27041: {"os":{"arch":"x86","kernel":"com.Microsoft.Windows.NT"}} Detected program: C:\Program Files (x86)\Microsoft Visual Studio\2017\Professional\VC\Tools\MSVC\14.16.27023\bin\Hostx64\x86\cl.exe Detected target: com.Microsoft.VisualStudio.VC.link-19.16.27041: {"os":{"arch":"x86","kernel":"com.Microsoft.Windows.NT"}} Detected program: C:\Program Files (x86)\Microsoft Visual Studio\2017\Professional\VC\Tools\MSVC\14.16.27023\bin\Hostx64\x86\link.exe Detected target: com.Microsoft.VisualStudio.VC.lib-19.16.27041: {"os":{"arch":"x86","kernel":"com.Microsoft.Windows.NT"}} Detected program: C:\Program Files (x86)\Microsoft Visual Studio\2017\Professional\VC\Tools\MSVC\14.16.27023\bin\Hostx64\x86\lib.exe Detected target: com.Microsoft.VisualStudio.VC.ml-19.16.27041: {"os":{"arch":"x86","kernel":"com.Microsoft.Windows.NT"}} Detected program: C:\Program Files (x86)\Microsoft Visual Studio\2017\Professional\VC\Tools\MSVC\14.16.27023\bin\Hostx64\x86\ml.exe Detected target: com.Microsoft.VisualStudio.VC.dumpbin-19.16.27041: {"os":{"arch":"x86","kernel":"com.Microsoft.Windows.NT"}} Detected program: C:\Program Files (x86)\Microsoft Visual Studio\2017\Professional\VC\Tools\MSVC\14.16.27023\bin\Hostx64\x86\dumpbin.exe Detected target: com.Microsoft.VisualStudio.VC.libcpp-19.16.27041: {"os":{"arch":"x86","kernel":"com.Microsoft.Windows.NT"}} Detected target: com.Microsoft.VisualStudio.VC.ATLMFC-19.16.27041: {"os":{"arch":"x86","kernel":"com.Microsoft.Windows.NT"}} Detected target: com.Microsoft.VisualStudio.VC.concrt-19.16.27041: {"os":{"arch":"x86","kernel":"com.Microsoft.Windows.NT"}} Detected target: com.Microsoft.VisualStudio.VC.runtime-19.16.27041: {"os":{"arch":"x86","kernel":"com.Microsoft.Windows.NT"}} Detected target: com.Microsoft.VisualStudio.VC.cl-19.22.27905: {"os":{"arch":"x86","kernel":"com.Microsoft.Windows.NT"}} Detected program: C:\Program Files (x86)\Microsoft Visual Studio\2019\Professional\VC\Tools\MSVC\14.22.27905\bin\Hostx64\x86\cl.exe Detected target: com.Microsoft.VisualStudio.VC.link-19.22.27905: {"os":{"arch":"x86","kernel":"com.Microsoft.Windows.NT"}} Detected program: C:\Program Files (x86)\Microsoft Visual Studio\2019\Professional\VC\Tools\MSVC\14.22.27905\bin\Hostx64\x86\link.exe Detected target: com.Microsoft.VisualStudio.VC.lib-19.22.27905: {"os":{"arch":"x86","kernel":"com.Microsoft.Windows.NT"}} Detected program: C:\Program Files (x86)\Microsoft Visual Studio\2019\Professional\VC\Tools\MSVC\14.22.27905\bin\Hostx64\x86\lib.exe Detected target: com.Microsoft.VisualStudio.VC.ml-19.22.27905: {"os":{"arch":"x86","kernel":"com.Microsoft.Windows.NT"}} Detected program: C:\Program Files (x86)\Microsoft Visual Studio\2019\Professional\VC\Tools\MSVC\14.22.27905\bin\Hostx64\x86\ml.exe Detected target: com.Microsoft.VisualStudio.VC.dumpbin-19.22.27905: {"os":{"arch":"x86","kernel":"com.Microsoft.Windows.NT"}} Detected program: C:\Program Files (x86)\Microsoft Visual Studio\2019\Professional\VC\Tools\MSVC\14.22.27905\bin\Hostx64\x86\dumpbin.exe Detected target: com.Microsoft.VisualStudio.VC.libcpp-19.22.27905: {"os":{"arch":"x86","kernel":"com.Microsoft.Windows.NT"}} Detected target: com.Microsoft.VisualStudio.VC.ATLMFC-19.22.27905: {"os":{"arch":"x86","kernel":"com.Microsoft.Windows.NT"}} Detected target: com.Microsoft.VisualStudio.VC.concrt-19.22.27905: {"os":{"arch":"x86","kernel":"com.Microsoft.Windows.NT"}} Detected target: com.Microsoft.VisualStudio.VC.runtime-19.22.27905: {"os":{"arch":"x86","kernel":"com.Microsoft.Windows.NT"}} detectMsvcCommon: "C:\Program Files (x86)\Microsoft Visual Studio\2017\Professional\VC\Tools\MSVC\14.16.27023\bin\Hostx64\arm\cl.exe" does not exists detectMsvcCommon: "C:\Program Files (x86)\Microsoft Visual Studio\2019\Professional\VC\Tools\MSVC\14.22.27905\bin\Hostx64\arm\cl.exe" does not exists detectMsvcCommon: "C:\Program Files (x86)\Microsoft Visual Studio\2017\Professional\VC\Tools\MSVC\14.16.27023\bin\Hostx64\arm64\cl.exe" does not exists detectMsvcCommon: "C:\Program Files (x86)\Microsoft Visual Studio\2019\Professional\VC\Tools\MSVC\14.22.27905\bin\Hostx64\arm64\cl.exe" does not exists Detecting msvc 14 and older Found VS140COMNTOOLS=C:\Program Files (x86)\Microsoft Visual Studio 14.0\Common7\Tools\ Use VS140COMNTOOLS as "C:\Program Files (x86)\Microsoft Visual Studio 14.0" vs version = 14.0.0 host_root = "C:\Program Files (x86)\Microsoft Visual Studio 14.0\VC\bin\amd64" detectMsvcCommon: "C:\Program Files (x86)\Microsoft Visual Studio 14.0\VC\bin\amd64\cl.exe" does not exists vs version = 14.0.0 host_root = "C:\Program Files (x86)\Microsoft Visual Studio 14.0\VC\bin\amd64" detectMsvcCommon: "C:\Program Files (x86)\Microsoft Visual Studio 14.0\VC\bin\amd64_x86\cl.exe" does not exists vs version = 14.0.0 host_root = "C:\Program Files (x86)\Microsoft Visual Studio 14.0\VC\bin\amd64" detectMsvcCommon: "C:\Program Files (x86)\Microsoft Visual Studio 14.0\VC\bin\amd64_arm\cl.exe" does not exists Default VS2015 paths were not found. Trying older versions layout. vs version = 14.0.0 host_root = "C:\Program Files (x86)\Microsoft Visual Studio 14.0\VC\bin" detectMsvcCommon: "C:\Program Files (x86)\Microsoft Visual Studio 14.0\VC\bin\x86_amd64\cl.exe" does not exists vs version = 14.0.0 host_root = "C:\Program Files (x86)\Microsoft Visual Studio 14.0\VC\bin" detectMsvcCommon: "C:\Program Files (x86)\Microsoft Visual Studio 14.0\VC\bin\cl.exe" does not exists Found VS120COMNTOOLS=C:\Program Files (x86)\Microsoft Visual Studio 12.0\Common7\Tools\ Use VS120COMNTOOLS as "C:\Program Files (x86)\Microsoft Visual Studio 12.0" vs version = 12.0.0 host_root = "C:\Program Files (x86)\Microsoft Visual Studio 12.0\VC\bin\amd64" Detected target: com.Microsoft.VisualStudio.VC.cl-18.0.40629: {"os":{"arch":"x86_64","kernel":"com.Microsoft.Windows.NT"}} Detected program: C:\Program Files (x86)\Microsoft Visual Studio 12.0\VC\bin\amd64\cl.exe Detected target: msvc-18.0.40629: {"os":{"arch":"x86_64","kernel":"com.Microsoft.Windows.NT"}} Detected target: com.Microsoft.VisualStudio.VC.link-18.0.40629: {"os":{"arch":"x86_64","kernel":"com.Microsoft.Windows.NT"}} Detected program: C:\Program Files (x86)\Microsoft Visual Studio 12.0\VC\bin\amd64\link.exe Detected target: com.Microsoft.VisualStudio.VC.lib-18.0.40629: {"os":{"arch":"x86_64","kernel":"com.Microsoft.Windows.NT"}} Detected program: C:\Program Files (x86)\Microsoft Visual Studio 12.0\VC\bin\amd64\lib.exe Detected target: com.Microsoft.VisualStudio.VC.ml-18.0.40629: {"os":{"arch":"x86_64","kernel":"com.Microsoft.Windows.NT"}} Detected program: C:\Program Files (x86)\Microsoft Visual Studio 12.0\VC\bin\amd64\ml64.exe Detected target: com.Microsoft.VisualStudio.VC.dumpbin-18.0.40629: {"os":{"arch":"x86_64","kernel":"com.Microsoft.Windows.NT"}} Detected program: C:\Program Files (x86)\Microsoft Visual Studio 12.0\VC\bin\amd64\dumpbin.exe Detected target: com.Microsoft.VisualStudio.VC.libcpp-18.0.40629: {"os":{"arch":"x86_64","kernel":"com.Microsoft.Windows.NT"}} Detected target: com.Microsoft.VisualStudio.VC.ATLMFC-18.0.40629: {"os":{"arch":"x86_64","kernel":"com.Microsoft.Windows.NT"}} vs version = 12.0.0 host_root = "C:\Program Files (x86)\Microsoft Visual Studio 12.0\VC\bin\amd64" Detected target: com.Microsoft.VisualStudio.VC.cl-18.0.40629: {"os":{"arch":"x86","kernel":"com.Microsoft.Windows.NT"}} Detected program: C:\Program Files (x86)\Microsoft Visual Studio 12.0\VC\bin\amd64_x86\cl.exe Detected target: com.Microsoft.VisualStudio.VC.link-18.0.40629: {"os":{"arch":"x86","kernel":"com.Microsoft.Windows.NT"}} Detected program: C:\Program Files (x86)\Microsoft Visual Studio 12.0\VC\bin\amd64_x86\link.exe Detected target: com.Microsoft.VisualStudio.VC.lib-18.0.40629: {"os":{"arch":"x86","kernel":"com.Microsoft.Windows.NT"}} Detected program: C:\Program Files (x86)\Microsoft Visual Studio 12.0\VC\bin\amd64_x86\lib.exe Detected target: com.Microsoft.VisualStudio.VC.ml-18.0.40629: {"os":{"arch":"x86","kernel":"com.Microsoft.Windows.NT"}} Detected program: C:\Program Files (x86)\Microsoft Visual Studio 12.0\VC\bin\amd64_x86\ml.exe Detected target: com.Microsoft.VisualStudio.VC.dumpbin-18.0.40629: {"os":{"arch":"x86","kernel":"com.Microsoft.Windows.NT"}} Detected program: C:\Program Files (x86)\Microsoft Visual Studio 12.0\VC\bin\amd64_x86\dumpbin.exe Detected target: com.Microsoft.VisualStudio.VC.libcpp-18.0.40629: {"os":{"arch":"x86","kernel":"com.Microsoft.Windows.NT"}} Detected target: com.Microsoft.VisualStudio.VC.ATLMFC-18.0.40629: {"os":{"arch":"x86","kernel":"com.Microsoft.Windows.NT"}} vs version = 12.0.0 host_root = "C:\Program Files (x86)\Microsoft Visual Studio 12.0\VC\bin\amd64" Detected target: com.Microsoft.VisualStudio.VC.cl-18.0.40629: {"os":{"arch":"arm","kernel":"com.Microsoft.Windows.NT"}} Detected program: C:\Program Files (x86)\Microsoft Visual Studio 12.0\VC\bin\amd64_arm\cl.exe Detected target: com.Microsoft.VisualStudio.VC.link-18.0.40629: {"os":{"arch":"arm","kernel":"com.Microsoft.Windows.NT"}} Detected program: C:\Program Files (x86)\Microsoft Visual Studio 12.0\VC\bin\amd64_arm\link.exe Detected target: com.Microsoft.VisualStudio.VC.lib-18.0.40629: {"os":{"arch":"arm","kernel":"com.Microsoft.Windows.NT"}} Detected program: C:\Program Files (x86)\Microsoft Visual Studio 12.0\VC\bin\amd64_arm\lib.exe Detected target: com.Microsoft.VisualStudio.VC.dumpbin-18.0.40629: {"os":{"arch":"arm","kernel":"com.Microsoft.Windows.NT"}} Detected program: C:\Program Files (x86)\Microsoft Visual Studio 12.0\VC\bin\amd64_arm\dumpbin.exe Detected target: com.Microsoft.VisualStudio.VC.libcpp-18.0.40629: {"os":{"arch":"arm","kernel":"com.Microsoft.Windows.NT"}} Detected target: com.Microsoft.VisualStudio.VC.ATLMFC-18.0.40629: {"os":{"arch":"arm","kernel":"com.Microsoft.Windows.NT"}} Found VS110COMNTOOLS=C:\Program Files (x86)\Microsoft Visual Studio 11.0\Common7\Tools\ Use VS110COMNTOOLS as "C:\Program Files (x86)\Microsoft Visual Studio 11.0" vs version = 11.0.0 host_root = "C:\Program Files (x86)\Microsoft Visual Studio 11.0\Common7\IDE" detectMsvcCommon: "C:\Program Files (x86)\Microsoft Visual Studio 11.0\VC\bin\amd64\cl.exe" does not exists vs version = 11.0.0 host_root = "C:\Program Files (x86)\Microsoft Visual Studio 11.0\Common7\IDE" detectMsvcCommon: "C:\Program Files (x86)\Microsoft Visual Studio 11.0\VC\bin\amd64_x86\cl.exe" does not exists vs version = 11.0.0 host_root = "C:\Program Files (x86)\Microsoft Visual Studio 11.0\Common7\IDE" detectMsvcCommon: "C:\Program Files (x86)\Microsoft Visual Studio 11.0\VC\bin\amd64_arm\cl.exe" does not exists Default VS2015 paths were not found. Trying older versions layout. vs version = 11.0.0 host_root = "C:\Program Files (x86)\Microsoft Visual Studio 11.0\Common7\IDE" Empty stdout from 'C:/Program Files (x86)/Microsoft Visual Studio 11.0/VC/bin/x86_amd64/cl.exe', trying stderr. Cmd: "C:/Program Files (x86)/Microsoft Visual Studio 11.0/VC/bin/x86_amd64/cl.exe" "/showIncludes" "/c" "C:\Users\sdouthat\AppData\Local\Temp\sw\cliprefix\2658-9532-eda1-64ff.c" "/FoC:\Users\sdouthat\AppData\Local\Temp\sw\cliprefix\2658-9532-eda1-64ff.c.obj" Env: error code = 3221225781 Exception in file D:\dev\cppan2\client2\src\sw\driver\compiler\detect.cpp:83, function detectMsvcPrefix: Cannot match VS include prefix (Bad output: "C:/Program Files (x86)/Microsoft Visual Studio 11.0/VC/bin/x86_amd64/cl.exe" "/showIncludes" "/c" "C:\Users\sdouthat\AppData\Local\Temp\sw\cliprefix\2658-9532-eda1-64ff.c" "/FoC:\Users\sdouthat\AppData\Local\Temp\sw\cliprefix\2658-9532-eda1-64ff.c.obj" Env: ):

stderr:

C:\dev\current\sdk\external\leptonica\test\leptonica-1.80.0\build>

egorpugin commented 3 years ago

This one?

sw.client.sw-1.0.0.exe.zip

sdouthat commented 3 years ago

that one appears to succeed - the output is huge

egorpugin commented 3 years ago

Good.